Unable to match names in Java 7

Any questions? Need some help?
Post Reply
racingsquirrel
Posts: 6
Joined: 17 Aug 2012, 18:48

Unable to match names in Java 7

Post by racingsquirrel »

I have FileBot_3.0_x64.msi installed and I get a SocketTimeoutException: connect time out when attempting to match names.

Program works perfectly with Java 6 but not Java 7.

Not sure if this is useful:

Aug 17, 2012 7:53:32 PM net.sourceforge.filebot.ui.rename.RenamePanel$AutoComple
teAction$2 done
WARNING: SocketTimeoutException: connect timed out
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException
: java.util.concurrent.ExecutionException: java.net.SocketTimeoutException: conn
ect timed out
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at javax.swing.SwingWorker.get(Unknown Source)
at net.sourceforge.filebot.ui.rename.RenamePanel$AutoCompleteAction$2.do
ne(Unknown Source)
at javax.swing.SwingWorker$5.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Sour
ce)
at sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(
Unknown Source)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.Executi
onException: java.net.SocketTimeoutException: connect timed out
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at net.sourceforge.filebot.ui.rename.EpisodeListMatcher.match(Unknown So
urce)
at net.sourceforge.filebot.ui.rename.RenamePanel$AutoCompleteAction$2.do
InBackground(Unknown Source)
at net.sourceforge.filebot.ui.rename.RenamePanel$AutoCompleteAction$2.do
InBackground(Unknown Source)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: java.net.SocketTimeoutExcept
ion: connect timed out
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at net.sourceforge.filebot.ui.rename.EpisodeListMatcher.fetchEpisodeSet(
Unknown Source)
at net.sourceforge.filebot.ui.rename.EpisodeListMatcher.matchEpisodeSet(
Unknown Source)
at net.sourceforge.filebot.ui.rename.EpisodeListMatcher$3.call(Unknown S
ource)
at net.sourceforge.filebot.ui.rename.EpisodeListMatcher$3.call(Unknown S
ource)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
... 3 more
Caused by: java.net.SocketTimeoutException: connect timed out
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unkno
wn Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at net.sourceforge.filebot.web.WebRequest.getReader(Unknown Source)
at net.sourceforge.filebot.web.WebRequest.getDocument(Unknown Source)
at net.sourceforge.filebot.web.WebRequest.getDocument(Unknown Source)
at net.sourceforge.filebot.web.TVRageClient.fetchSearchResult(Unknown So
urce)
at net.sourceforge.filebot.web.AbstractEpisodeListProvider.search(Unknow
n Source)
at net.sourceforge.filebot.ui.rename.EpisodeListMatcher$2.call(Unknown S
ource)
at net.sourceforge.filebot.ui.rename.EpisodeListMatcher$2.call(Unknown S
ource)
... 5 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown So
urce)
at java.net.URLConnection.getContentType(Unknown Source)
... 12 more
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unable to match names in Java 7

Post by rednoah »

Are you sure it's a Java 6/7 problem?? Maybe TVRage is just down at the time.

The error says that the server doesn't respond. Nothing FileBot can do about that except wait longer. In 3.0 connection timeout is set to 5s, read timeout set to 25s. You can adjust these settings in the *.l4j.ini config files.
:idea: Please read the FAQ and How to Request Help.
racingsquirrel
Posts: 6
Joined: 17 Aug 2012, 18:48

Re: Unable to match names in Java 7

Post by racingsquirrel »

I have tried all sources with the same result. If I uninstall Java 7 then it connects to the server without issue.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unable to match names in Java 7

Post by rednoah »

From filebot.launcher.l4j.ini remove these lines:

Code: Select all

# http connection timeouts
-Dsun.net.client.defaultConnectTimeout=5000
-Dsun.net.client.defaultReadTimeout=25000
And see what happens.
:idea: Please read the FAQ and How to Request Help.
racingsquirrel
Posts: 6
Joined: 17 Aug 2012, 18:48

Re: Unable to match names in Java 7

Post by racingsquirrel »

That has certainly helped.

I can now look up some files on TVRage but all other sources are still giving the same timeout exception. I am testing with files(including movies) that have previously been renamed by Filebot so it should be able to find them.

Thanks for your help with this.
racingsquirrel
Posts: 6
Joined: 17 Aug 2012, 18:48

Re: Unable to match names in Java 7

Post by racingsquirrel »

Although removing the timeout lines allowed for a few names to be looked up it is now back to the timeout exception every time I try it.

I have removed all instances of Java and Filebot and then re-installed Java 7 DK 64 bit and FileBot_3.0_x64.msi but I still get the same exception.

I am also unable to run the web launcher

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://filebot.sourceforge.net/webstart/filebot.jnlp
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unable to match names in Java 7

Post by rednoah »

I suppose it's a general network problem. Not really a FileBot problem, WebStart even fails before it can startup FileBot.

Aren't you having problems with other apps as well? Or accessing these sites via the browser?
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unable to match names in Java 7

Post by rednoah »

Basically your Internet connection seems to be really bad.
:idea: Please read the FAQ and How to Request Help.
racingsquirrel
Posts: 6
Joined: 17 Aug 2012, 18:48

Re: Unable to match names in Java 7

Post by racingsquirrel »

My internet connection is fine.

The only other Java application I use regurlarly is Minecraft and that is fine. However upon further investigation the problem does seem to lie with the Java install as I cannot run other applets successfully.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unable to match names in Java 7

Post by rednoah »

Well, it's all http requests that seem to always time out. Maybe you have a proxy setup that's not working properly?

Also you could test with fiddler http proxy what is really going on. Cause fetching episode data etc is really just basic http requests, if it doesn't work with java, it doesn't work with your browser neither.
:idea: Please read the FAQ and How to Request Help.
racingsquirrel
Posts: 6
Joined: 17 Aug 2012, 18:48

Re: Unable to match names in Java 7

Post by racingsquirrel »

It seems the problem is related to this bug in Java:

http://bugs.sun.com/bugdatabase/view_bu ... id=7183450

I have just reverted to Java 6 until I can investigate further.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unable to match names in Java 7

Post by rednoah »

Yeah, that is probably the same issue you're having.

Easiest way to work around this is forcing IPv4:

Code: Select all

-Djava.net.preferIPv4Stack=true
:idea: Please read the FAQ and How to Request Help.
Post Reply