Java error DSM 6.0

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

Java error DSM 6.0

Post by terra17 »

Hi, i've got a DS213j synology NAS and today I've installed new DSM 6.0.

I have the latest Filebot version and both Java 7 and Java 8 Synology packages installed.

admin@DiskStation213j:/$ java -version
java version "1.8.0"
Java(TM) SE Embedded Runtime Environment (build 1.8.0-b132, headless)
Java HotSpot(TM) Embedded Client VM (build 25.0-b70, mixed mode)

admin@DiskStation213j:/$ filebot -version
FileBot 4.6.1 (r3315) / Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)



When I run Filebot with Terminal as I always did, I obtain this error :


ArrayIndexOutOfBoundsException: 0
java.lang.ArrayIndexOutOfBoundsException: 0
at net.filebot.web.WebRequest.fetch(WebRequest.java:123)
at net.filebot.web.WebRequest.fetchIfModified(WebRequest.java:101)
at net.filebot.web.CachedResource.fetchData(CachedResource.java:28)
at net.filebot.web.CachedResource.fetchData(CachedResource.java:11)
at net.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:137)
at net.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:82)
at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:210)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
at net.filebot.Main.main(Main.java:169)
Failure (°_°)



could anybody tell me why ?

thank you !!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Java error DSM 6.0

Post by rednoah »

Run these commands and post the output:

Code: Select all

filebot -clear-cache && filebot -script fn:sysinfo

Code: Select all

curl -I "https://raw.githubusercontent.com/filebot/scripts/m1/sysinfo.groovy"

Also, you could try the latest revision:
viewtopic.php?f=7&t=1609
:idea: Please read the FAQ and How to Request Help.
terra17
Posts: 47
Joined: 06 Sep 2014, 11:10

Re: Java error DSM 6.0

Post by terra17 »

1.

Clear cache and temporary files
* Delete /volume2/@appstore/filebot/data/root/temp
* Delete /volume2/@appstore/filebot/data/root/cache
ArrayIndexOutOfBoundsException: 0
java.lang.ArrayIndexOutOfBoundsException: 0
at net.filebot.web.WebRequest.fetch(WebRequest.java:123)
at net.filebot.web.WebRequest.fetchIfModified(WebRequest.java:101)
at net.filebot.web.CachedResource.fetchData(CachedResource.java:28)
at net.filebot.web.CachedResource.fetchData(CachedResource.java:11)
at net.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:137)
at net.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:82)
at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:210)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
at net.filebot.Main.main(Main.java:169)
Failure (°_°)




2.

HTTP/1.1 200 OK
Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'
X-XSS-Protection: 1; mode=block
X-Frame-Options: deny
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
ETag: "1a7307ae094e102834f600dbc2ede5a439b70588"
Content-Type: text/plain; charset=utf-8
Cache-Control: max-age=300
X-GitHub-Request-Id: B91F1122:3F88:87B6FFA:56F84146
Content-Length: 3670
Accept-Ranges: bytes
Date: Sun, 27 Mar 2016 20:23:36 GMT
Via: 1.1 varnish
Connection: keep-alive
X-Served-By: cache-fra1223-FRA
X-Cache: MISS
X-Cache-Hits: 0
Vary: Authorization,Accept-Encoding
Access-Control-Allow-Origin: *
X-Fastly-Request-ID: 7169bfb8843b4b4bc4fc4914916e711533ae34f0
Expires: Sun, 27 Mar 2016 20:28:36 GMT
Source-Age: 0
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Java error DSM 6.0

Post by rednoah »

Uninstall the Synology Java package. Install my Oracle Java package. See if it works. If not, try the latest revision.
:idea: Please read the FAQ and How to Request Help.
vletroye
Posts: 40
Joined: 27 Sep 2014, 11:25

Re: Java error DSM 6.0

Post by vletroye »

I have also upgraded to DSM 6.0.

Filebot still runs very fine (I only had to reinstall the "Unofficial java Installer" package after the upgrade. It was not installed anymore).

FileBot Node (the UI) however doesn't start... I did uninstall and reinstall it without more success (node.js running fine and up-to-date).

NB.:
- I tried to start http://<my synology>:<the admin port>/webman/3rdparty/filebot-node/index.html
But I get a "Sorry, the page you are looking for is not found." This is logical as I didn't find filebot-node under /usr/syno/synoman/webman/3rdparty/. This is to be created when starting the package I think)
- I did allow the ports 5452 and 5453 in the rules of the firewall but it did help (curl still answer connection refused), IMO also simply because the package didn't start.
- The "View Log" is empty.


If I look into the "start.sh", I see a call to "/usr/bin/node" (which is not found). If I execute a "which node", I get "/usr/local/bin/node".
So I tried to execute "/usr/local/bin/node --max_executable_size=16 --use_idle_notification "/usr/local/filebot-node/server/app.js"
", I get :

Code: Select all

fs.js:989
  return binding.chown(pathModule._makeLong(path), uid, gid);
                 ^
TypeError: uid must be an unsigned int
    at TypeError (native)
    at Object.fs.chownSync (fs.js:989:18)
    at Object.<anonymous> (/volume1/@appstore/filebot-node/server/app.js:48:8)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
And here are my limits :/
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Java error DSM 6.0

Post by rednoah »

FileBot Node 0.1.8 doesn't work on DSM 6. Please read any of the other DSM 6 threads. There's a new build that should work, and feedback if it works for you or not would be helpful.

@see viewtopic.php?f=13&t=3273
:idea: Please read the FAQ and How to Request Help.
vletroye
Posts: 40
Joined: 27 Sep 2014, 11:25

Re: Java error DSM 6.0

Post by vletroye »

Thx.. I will post at the end of the mentioned thread!

V.
Post Reply