Skip to main content

"Unable to launch the application"

5 replies [Last post]
mloparco
Offline
Joined: 2007-10-16
Points: 0

I have 0.5preview3 running on Ubuntu server 9.10. Overall it's working well, but periodically I get an "Unable to launch the application" error when downloading the jnlp. I can't really see a pattern in when I get this. I've tried rebuilding the source and restarting the server, but that doesn't seem to reliably help. Here's the log:

java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1072)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:190)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(BasicHttpRequest.java:68)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(DownloadEngine.java:910)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(DownloadEngine.java:816)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1536)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1496)
at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:920)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:803)
at com.sun.javaws.Launcher.downloadResources(Launcher.java:1384)
at com.sun.javaws.Launcher.prepareLaunchFile(Launcher.java:838)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:306)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:183)
at com.sun.javaws.Launcher.launch(Launcher.java:104)
at com.sun.javaws.Main.launchApp(Main.java:405)
at com.sun.javaws.Main.continueInSecureThread(Main.java:252)
at com.sun.javaws.Main$1.run(Main.java:111)
at java.lang.Thread.run(Thread.java:637)

Any idea why I might be getting this? Has anyone else encountered a similar problem?

Thanks,

Mark

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kaplanj
Offline
Joined: 2004-07-13
Points: 0

Can you grab a jstack from the stalled web server process? I am looking at an issue where the web server freezes due to too many webdav connections, but that is only with a few clients, not just one.

morrisford
Offline
Joined: 2008-03-17
Points: 0

I am having more or less the same problem.

I am running preview3 from a source release. I am accessing via internet.

I try to start client on a MacBook and I get the 'cannot launch application' error every time I try to start. Only client running.

I try to start from a fast linux system and the startup does go but it takes at least 10 minutes due to the constant 'download stalled' messages. Once it finally does download it runs just fine.

At the point of a launch failure on the MacBook, I cannot get into Server Admin from the web start page. Also, if I kill the servers (Ctrl-c on ant run-servers) there is a java process that is left running and stays there for at least 5 minutes. A 'jps' shows the process as 'pid Wonderland.jar'. A server restart at this point fails. After waiting for the orphan process to quit or if I kill it the servers start ok.

bernard_horan
Offline
Joined: 2007-06-04
Points: 0

What happens if you download the jnlp file completely before launching? Does that help?

I wonder is this is related to the issues that the iSocial guys have been having, that Jon thinks might be down to open sockets?

regards

Bernard

morrisford
Offline
Joined: 2008-03-17
Points: 0

I'm not sure what you mean by download the jnlp file before launching.

I am not seeing sockets in strange states when in the failure mode. I have been keeping tabs on the state and quantity of sockets and I don't see anything that looks real bad.

----------------------------------

I finally got the MacBook to run. I just kept launching and letting it fail over and over until it finally got everything downloaded. Then it runs ok.

Message was edited by: morrisford

bernard_horan
Offline
Joined: 2007-06-04
Points: 0

> I'm not sure what you mean by download the jnlp file
> before launching.

There have been some reports of JavaWebStart parsing a jnlp file whilst it's downloading and hitting exceptions.

>
> I finally got the MacBook to run. I just kept
> launching and letting it fail over and over until it
> finally got everything downloaded. Then it runs ok.

Odd... smells like a network issue, but I think everything else works. How's the audio? Any latency or breaking up?

B