Warnings after switch to Java 8 Update 31

All your suggestions, requests and ideas for future development
Post Reply
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Warnings after switch to Java 8 Update 31

Post by Sheldon »

Hi,

if I switch from Java 8 Update 25 to Java 8 Update 31 I get warnings.

Java 8 Update 25

FileBot 4.5.6 (r2813)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (D:\Portable Applications\Platform\PortableApps\FileBot\Lib\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 17 MB Used Memory
OS: Windows Vista (x86)


Java 8 Update 31

Jan 21, 2015 12:27:59 PM net.filebot.cli.ArgumentBean getFiles
WARNUNG: Illegal Argument: java.io.IOException: Invalid argument (%*)
Jan 21, 2015 12:28:00 PM net.filebot.cli.ArgumentBean getFiles
WARNUNG: Illegal Argument: java.io.IOException: Invalid argument (%*)
FileBot 4.5.6 (r2813)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (D:\Portable Applications\Platform\PortableApps\FileBot\Lib\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_31
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 21 MB Used Memory
OS: Windows Vista (x86)

Kind regards,

Sheldon
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Warnings after switch to Java 8 Update 31

Post by rednoah »

Are you sure it's not an issue with your portable package? It seems to me filebot.cmd is not called correctly, since if cmd.exe was executing the call %* would be replaced by the parameters passed on to filebot.cmd call, so I assume your PortableApps packages have some issues.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Warnings after switch to Java 8 Update 31

Post by Sheldon »

If so it should appear with Java 8 Update 25 as well! Right?
I only switched the JRE! There must be a difference.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Warnings after switch to Java 8 Update 31

Post by rednoah »

Java is clearly running fine. If anything it's a Windows CMD / BAT file issue. You're passing in odd cmdline arguments.

Are you sure you're running filebot.cmd with Windows CMD? Did you modify filebot.cmd yourself? How did you install Java? Are you using some odd unofficial "PortableApps" package for Java and/or FileBot?
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Warnings after switch to Java 8 Update 31

Post by Sheldon »

I receive the warnings after pressing F5 and running your info script It's not about the cmd call.
And as I mentioned above. The only thing I changed is the JRE.

That's my call:

java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=D:\Portable Applications\Platform\PortableApps\FileBot" "-Duser.home=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.io.tmpdir=D:\Portable Applications\Platform\PortableApps\FileBot\Temp" "-Djna.library.path=D:\Portable Applications\Platform\PortableApps\FileBot\Lib" "-Djava.library.path=D:\Portable Applications\Platform\PortableApps\Filebot\Lib" -Dnet.filebot.AcoustID.fpcalc="D:\Portable Applications\Platform\PortableApps\FileBot\Lib\fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=D:\Portable Applications\Platform\PortableApps\FileBot\prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot\FileBot.jar" %*

The JRE is an unzipped gz from the Oracle website.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Warnings after switch to Java 8 Update 31

Post by rednoah »

%* is a special syntax in *.cmd scripts that will pass along arguments, i.e. it'll be expanded to the argument array passed to the *.cmd script.

If you call the script from cmd directly than %* will not be expanded. So I assume the call above is what you call directly in the cmd? In which case you simply shouldn't pass along %* though it doesn't matter either way.

Besides, why do you call the GUI with filebot.cmd which is meant for CLI use? Anyway, ignore the "issue" ... it's just a warning, doesn't seem to break anything, probably related to your very specific setup.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Warnings after switch to Java 8 Update 31

Post by Sheldon »

There are no more warnings if I skip %* . Great! Thanks!
So there is one question left. Why didn't I get the warnings before?

The CLI is fine for me because:
- The PortableApps platform uses JRE 7, Filebot uses JRE 8. I can easily handle the JRE usage in a batch.
- Your portable version doesn't handle fpcalc.exe, 7-Zip-JBinding.dll, jnidispatch.dll and mingwm10.dll. This can be easily done via CLI.
- I can use one command for the filebot app call and my CLI call.
Post Reply