Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running own compiled .jnlp with error: "Unable to launch the application." #89

Open
GoogleCodeExporter opened this issue Apr 9, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Device name : Odroid-A
Device rooted (yes/no) : Half. (Odroid-A support problem)
Device OS version (1.5/1.6/2.0,...) : 2.3.3

Computer OS and version (Mac,Win,Linux,...) : ubuntu11.10_x64
Java version (java -version from command line) : 1.6.0_25
ADB version (adb version from command line) : 1.0.29
AndroidScreencast version : own compiling.

What steps will reproduce the problem?
1.Used "ant -v -f AndroidScreencast/build.xml" to compile.
2."BUILD SUCCESSFUL" and got 3 "-DEV" files in the dist directory.
3.Used "javaws androidscreencast-DEV.jnlp" to lunch.

What is the expected output? What do you see instead?
It works if I use the "androidscreencast.jnlp" which was downloaded from the 
main page. But Java gave me "Application Error" when launch the application.

Please provide any additional information below.
The Details is shown below:

Error: Ubable to load resource:
http://androidscreencast.googlecode.com/files/androidscreencast-DEV.jnlp

There are to tab {Exception} and {Wrapped Exception}
---------------------------------------------------------------
{Exception}

com.sun.deploy.net.FailedDownloadException: Unable to load resource: 
http://androidscreencast.googlecode.com/files/androidscreencast-DEV.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1372)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1525)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1503)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1609)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1534)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:201)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Launcher.java:469)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:248)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:199)
    at com.sun.javaws.Launcher.launch(Launcher.java:116)
    at com.sun.javaws.Main.launchApp(Main.java:416)
    at com.sun.javaws.Main.continueInSecureThread(Main.java:248)
    at com.sun.javaws.Main$1.run(Main.java:110)
    at java.lang.Thread.run(Thread.java:662)

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

{Wrapped Exception}

java.io.FileNotFoundException: 
http://androidscreencast.googlecode.com/files/androidscreencast-DEV.jnlp
    at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:229)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:113)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequest(BasicHttpRequest.java:78)
    at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1182)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1525)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1503)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1609)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1534)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:201)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Launcher.java:469)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:248)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:199)
    at com.sun.javaws.Launcher.launch(Launcher.java:116)
    at com.sun.javaws.Main.launchApp(Main.java:416)
    at com.sun.javaws.Main.continueInSecureThread(Main.java:248)
    at com.sun.javaws.Main$1.run(Main.java:110)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.FileNotFoundException: 
http://androidscreencast.googlecode.com/files/androidscreencast-DEV.jnlp
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:190)
    ... 17 more

Original issue reported on code.google.com by [email protected] on 21 Feb 2012 at 3:51

@GoogleCodeExporter
Copy link
Author

Sorry, one thing forgot.
Cause I couldn't compile the code at beginning. I change the "build.xml" file 
line 26 from "${ddmlib}" to 
"/XXX/androidscreencast/AndroidScreenCast/ddmlib.jar", so that I could compile 
the code. Maybe here is the problem.

btw, I also tried point the "classpath" to the "ddmlib.jar" which is located in 
the android-sdk as what "Issue 36" did. But I couldn't compile either. So I use 
the one under the source code as above.

Original comment by [email protected] on 21 Feb 2012 at 4:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant