fayizkc / androidscreencast

Automatically exported from code.google.com/p/androidscreencast
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 LiuHuiYa...@gmail.com on 21 Feb 2012 at 3:51

GoogleCodeExporter commented 9 years ago
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 LiuHuiYa...@gmail.com on 21 Feb 2012 at 4:17