CyberGarage warning : Connection refused

j Aguilera
2011-03-02
2013-05-02
  • j Aguilera
    j Aguilera
    2011-03-02

    hi! i´m trying to run the devices examples of the cyberlink for java and always happen that error. Please, i need help. I saw other people that have similar problems but there arent any good reply to solve the problem. Thanks.

    the error is:

    CyberGarage warning : Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.cybergarage.http.HTTPRequest.post(HTTPRequest.java:404)
    at org.cybergarage.http.HTTPRequest.post(HTTPRequest.java:471)
    at org.cybergarage.xml.Parser.parse(Parser.java:82)
    at org.cybergarage.upnp.Service.getSCPDNode(Service.java:384)
    at org.cybergarage.upnp.Service.getSCPDNode(Service.java:407)
    at org.cybergarage.upnp.Service.getActionList(Service.java:446)
    at org.cybergarage.upnp.Device.getAction(Device.java:1190)
    at TvDevice.<init>(TvDevice.java:59)
    at TvFrame.<init>(TvFrame.java:29)
    at TvFrame.main(TvFrame.java:134)
    Exception in thread "main" java.lang.NullPointerException
    at TvDevice.<init>(TvDevice.java:60)
    at TvFrame.<init>(TvFrame.java:29)
    at TvFrame.main(TvFrame.java:134)

     
  • Satoshi Konno
    Satoshi Konno
    2011-03-03

    Hi,

    I have not been checked the sample applications such as the TV device ….

    I will check your problem this weekend. Please wait for a while :-)

    Best Regards,

    Satoshi Konno

     
  • j Aguilera
    j Aguilera
    2011-03-03

    thanks! it happen in all the dispositive samples, the aircon, the clock, the light, the tv and the washer.

    thanks for check my problem

     
  • Fady Hamoui
    Fady Hamoui
    2011-04-15

    Hello Satoshi Konno,
    I have the same problem. Can you help me please ?
    Thank you for Cyberlink, it's very useful.

     

  • Anonymous
    2011-08-25

    I have the same problem. I already add <uses-permission android:name="android.permission.INTERNET" /> to AndroidManifest.xml but the error is the same.
    here is my trace dump :

    CyberGarage warning : localhost/::1:80 - Connection refused
    java.net.ConnectException: localhost/::1:80 - Connection refused
    at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
    at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:437)
    at java.net.Socket.connect(Socket.java:983)
    at org.cybergarage.http.HTTPRequest.post(HTTPRequest.java:407)
    at org.cybergarage.http.HTTPRequest.post(HTTPRequest.java:473)
    at org.cybergarage.xml.Parser.parse(Parser.java:85)
    at org.cybergarage.upnp.Service.getSCPDNode(Service.java:386)
    at org.cybergarage.upnp.Service.getSCPDNode(Service.java:430)
    at org.cybergarage.upnp.Service.getServiceStateTable(Service.java:524)
    at org.cybergarage.upnp.Service.setQueryListener(Service.java:674)
    at com.foxconn.DiscoveryServiceProxyDevice.<init>(DiscoveryServiceProxyDevice.java:55)
    at com.foxconn.UpnpDiscoveryService.onCreate(UpnpDiscoveryService.java:34)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:1920)
    at android.app.ActivityThread.access$2500(ActivityThread.java:117)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:982)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3647)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)
    java.lang.NullPointerException
    at org.cybergarage.upnp.Service.getServiceStateTable(Service.java:524)
    at org.cybergarage.upnp.Service.setQueryListener(Service.java:674)
    at com.foxconn.DiscoveryServiceProxyDevice.<init>(DiscoveryServiceProxyDevice.java:55)
    at com.foxconn.UpnpDiscoveryService.onCreate(UpnpDiscoveryService.java:34)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:1920)
    at android.app.ActivityThread.access$2500(ActivityThread.java:117)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:982)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3647)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)

    java.lang.NullPointerException
    at org.cybergarage.upnp.Service.getServiceStateTable(Service.java:524)
    at org.cybergarage.upnp.Service.setQueryListener(Service.java:674)
    at com.foxconn.DiscoveryServiceProxyDevice.<init>(DiscoveryServiceProxyDevice.java:55)
    at com.foxconn.UpnpDiscoveryService.onCreate(UpnpDiscoveryService.java:34)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:1920)
    at android.app.ActivityThread.access$2500(ActivityThread.java:117)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:982)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3647)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)
      onStart()
    java.lang.NullPointerException
    at com.foxconn.UpnpDiscoveryService.onStart(UpnpDiscoveryService.java:72)
    at android.app.Service.onStartCommand(Service.java:428)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2014)
    at android.app.ActivityThread.access$2800(ActivityThread.java:117)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:991)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3647)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)

    java.lang.NullPointerException
    at com.foxconn.UpnpDiscoveryService.onStart(UpnpDiscoveryService.java:72)
    at android.app.Service.onStartCommand(Service.java:428)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2014)
    at android.app.ActivityThread.access$2800(ActivityThread.java:117)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:991)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3647)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)

    any idea about this error?