java.lang.RuntimeException error when try to load file

Any questions? Need some help?
Post Reply
eleses
Posts: 8
Joined: 03 Nov 2014, 16:57

java.lang.RuntimeException error when try to load file

Post by eleses »

daniel@daniel-main:~$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

ubuntu 14.04.1 64 bit fully updated

filebot loaded from software centre

Filebot was working fine but now when I try to load a file I get:

java.lang.RuntimeException:java.util.concurrent.ExecutionException:java.lang.illegalArgumentException: Folder parameter must be a valid folder

I can drag and drop and it will rename them fine but will then not allow me to download subtitles.

Any Ideas?
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.lang.RuntimeException error when try to load file

Post by rednoah »

If you want to give me your system details you should use filebot -script fn:sysinfo

What are you trying to do?

What path are you trying to load?

Is this a local file? Or a remote file? Is there anything special about it? What works? What doesn't?

Are you saying dropping files into rename panel works but dropping them into the subtitle drop area doesn't work?

Screenshots would be very helpful. ;)
:idea: Please read the FAQ and How to Request Help.
eleses
Posts: 8
Joined: 03 Nov 2014, 16:57

Re: java.lang.RuntimeException error when try to load file

Post by eleses »

Sorry, - and thanks for the quick reply. sysinfo below.

with regard to path, this happens when I click the 'load' button on the rename section for original files. dropping into rename panel works fine but subtitle one does nothing - the file won't go in (I din't even know you could do this.)

I've attached a screen shot.



daniel@daniel-main:~$ filebot -script fn:sysinfo
FileBot 4.5.2 (r2652)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/opt/filebot/fpcalc)
Extended Attributes: OK
GVFS: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 21 MB Used Memory
OS: Linux (amd64)
uname: Linux daniel-main 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:36:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

--- UPDATE AVAILABLE: FileBot 4.5.3 (r2728) ---
eleses
Posts: 8
Joined: 03 Nov 2014, 16:57

Re: java.lang.RuntimeException error when try to load file

Post by eleses »

added screen shot now
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.lang.RuntimeException error when try to load file

Post by rednoah »

Please run "filebot" (which will start GUI app) from console so you can the full error trace if the issue happens. If you copy & paste that for me that'd be very helpful. ;)

Also, which folder (please give me the full path) were you trying to load?

Does the error occur immediately when you press the "Load" button or after you select a folder?
:idea: Please read the FAQ and How to Request Help.
eleses
Posts: 8
Joined: 03 Nov 2014, 16:57

Re: java.lang.RuntimeException error when try to load file

Post by eleses »

Below is the error trace.

As for the path - I can't access any. This error comes up before I can choose anything. It's on the default settings after reinstalling from software centre after purging.

Code: Select all

daniel@daniel-main:~$ filebot
Dec 29, 2014 4:49:16 PM net.filebot.ui.transfer.LoadAction actionPerformed
WARNING: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Folder parameter must be a valid folder
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Folder parameter must be a valid folder
	at net.filebot.UserFiles$FileChooser$3.runAndWait(UserFiles.java:277)
	at net.filebot.UserFiles$FileChooser$3.showLoadDialogSelectFiles(UserFiles.java:196)
	at net.filebot.UserFiles.showLoadDialogSelectFiles(UserFiles.java:52)
	at net.filebot.ui.transfer.LoadAction.actionPerformed(LoadAction.java:50)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6525)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6290)
	at java.awt.Container.processEvent(Container.java:2234)
	at java.awt.Component.dispatchEventImpl(Component.java:4881)
	at java.awt.Container.dispatchEventImpl(Container.java:2292)
	at java.awt.Component.dispatchEvent(Component.java:4703)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
	at java.awt.Container.dispatchEventImpl(Container.java:2278)
	at java.awt.Window.dispatchEventImpl(Window.java:2739)
	at java.awt.Component.dispatchEvent(Component.java:4703)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:719)
	at java.awt.EventQueue$4.run(EventQueue.java:717)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Folder parameter must be a valid folder
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at net.filebot.UserFiles$FileChooser$3.runAndWait(UserFiles.java:275)
	... 39 more
Caused by: java.lang.IllegalArgumentException: Folder parameter must be a valid folder
	at com.sun.glass.ui.CommonDialogs.convertFolder(CommonDialogs.java:238)
	at com.sun.glass.ui.CommonDialogs.showFolderChooser(CommonDialogs.java:226)
	at com.sun.javafx.tk.quantum.QuantumToolkit.showDirectoryChooser(QuantumToolkit.java:1452)
	at javafx.stage.DirectoryChooser.showDialog(DirectoryChooser.java:103)
	at net.filebot.UserFiles$FileChooser$3$1.call(UserFiles.java:208)
	at net.filebot.UserFiles$FileChooser$3$1.call(UserFiles.java:196)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292)
	at com.sun.javafx.application.PlatformImpl$$Lambda$55/248816096.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
	at com.sun.javafx.application.PlatformImpl$$Lambda$54/537308165.run(Unknown Source)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
	at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at com.sun.glass.ui.gtk.GtkApplication.lambda$null$45(GtkApplication.java:126)
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.lang.RuntimeException error when try to load file

Post by rednoah »

I see. Apparently on Linux it's crashing if it's trying to restore a previously accessed folder that has since been deleted. You could temporary fix it by calling filebot -clear-prefs and make the file chooser work again. But why not use drag-n-drop to avoid this issue altogether?

The best solution is to just use Drag-and-Drop to load files.

Problem is fixed with r2772 but the Ubuntu App Review team is slow like a turtle so new releases can take a few months (currently, hopefully app review will become faster in the future).
:idea: Please read the FAQ and How to Request Help.
eleses
Posts: 8
Joined: 03 Nov 2014, 16:57

Re: java.lang.RuntimeException error when try to load file

Post by eleses »

filebot -clear-prefs has worked - it seems to be running again. Thanks for the help!
Post Reply