yippeesoft / androidscreencast

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

unable to launch android screecast #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Device name : NA
Device rooted (yes/no) : YES
Device OS version (1.5/1.6/2.0,...) : 1.6

Computer OS and version (Mac,Win,Linux,...) : ubuntu 8.04
Java version (java -version from command line) : jdk6
ADB version (adb version from command line) :  only our device
AndroidScreencast version : latest

What steps will reproduce the problem?
1.Download Err
2.General:
An error occurred while launching/running the application.

Title: Android Screencast
Vendor: Alexandre Thiel
Category: Download Error

Unable to load resource:
http://androidscreencast.googlecode.com/svn/trunk/AndroidScreencast/dist/android
screencast.jnlp

3.Launch File:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="0.2 1.0"

codebase="http://androidscreencast.googlecode.com/svn/trunk/AndroidScreencast/di
st/"
      href="androidscreencast.jnlp">
   <information> 
      <title>Android Screencast</title> 
      <vendor>Alexandre Thiel</vendor>
      <homepage href="http://code.google.com/p/androidscreencast/"/>
      <description>Control an android device remotely !</description>
      <description kind="short">Control an android device
remotely</description>
      <offline-allowed/> 
      <shortcut online="true"/>
      <update check="timeout" policy="always"/>
   </information> 
   <resources>
      <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
      <j2se version="1.5+"/>
      <jar href="androidscreencast.jar" main="true" download="eager"/>
      <jar href="ddmlib.jar" main="false" download="eager"/>
   </resources>
   <application-desc main-class="net.srcz.android.screencast.Main"/>
   <security>
       <all-permissions/>
    </security> 

</jnlp> 
4.Exception:
JNLPException[category: Download Error : Exception:
java.net.ConnectException: Connection refused : LaunchDesc: null ]
    at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:701)
    at
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(DownloadProtoc
ol.java:819)
    at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(LaunchDownload.java:135)
    at com.sun.javaws.Launcher.downloadResources(Launcher.java:1040)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:379)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:219)
    at com.sun.javaws.Launcher.run(Launcher.java:166)
    at java.lang.Thread.run(Thread.java:595)
5.Wrapped application:
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.Socket.connect(Socket.java:520)
    at java.net.Socket.connect(Socket.java:470)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
    at sun.net.www.http.HttpClient.New(HttpClient.java:304)
    at sun.net.www.http.HttpClient.New(HttpClient.java:321)
    at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.j
ava:830)
    at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:
782)
    at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:707)
    at com.sun.javaws.net.BasicNetworkLayer.doRequest(BasicNetworkLayer.java:175)
    at
com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(BasicNetworkLayer.java:104)
    at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:614)
    at
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(DownloadProtoc
ol.java:819)
    at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(LaunchDownload.java:135)
    at com.sun.javaws.Launcher.downloadResources(Launcher.java:1040)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:379)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:219)
    at com.sun.javaws.Launcher.run(Launcher.java:166)
    at java.lang.Thread.run(Thread.java:595)

What is the expected output? What do you see instead?

Please provide any additional information below.

Original issue reported on code.google.com by antonyw7...@gmail.com on 4 Jun 2010 at 7:33

GoogleCodeExporter commented 9 years ago
You can see:

4.Exception: [..] Download Error [..] Connection refused 

The .jnlp itself doesn't includes the code, it downloads androidscreencast.jar 
and
ddmlib.jar from 
http://androidscreencast.googlecode.com/svn/trunk/AndroidScreencast/dist/

It seems your java needs proxy, etc.. run "javaws -viewer".

Or download both jar files manually and run
# javaws -codebase file:///path/to/files androidscreencast.jnlp 

Folke

Original comment by fashb...@gmail.com on 4 Jun 2010 at 8:00

GoogleCodeExporter commented 9 years ago
thank you for your help~

Maybe our company's firewall will block it.

what proxy or network port I need to set?? or what proxy or network port out 
MIS must
release?? please help me~thanks.

Original comment by antonyw7...@gmail.com on 4 Jun 2010 at 8:41

GoogleCodeExporter commented 9 years ago
Same problem here. I'm running it just from my home network, without any ports 
blocked.

Original comment by p...@paultondeur.nl on 28 Jun 2010 at 9:24

GoogleCodeExporter commented 9 years ago
I set proxy server to fixed this problem.
My solution:
 Tap in "javaws -viewer" in cmd.exe,
 that will jump a java setting window.
 And this window can setting proxy server and port number.

Original comment by PeiHe...@gmail.com on 3 Nov 2011 at 5:40