Page 1 of 1

Client proxy

PostPosted: Thu Oct 07, 2010 2:16 pm
by JuanMartin
Hi all

I have a client in Dubai and my server is in Spain

The problems is that in Dubai there are a censored and for run any applications like skype, facebook,etc is necessary install a proxy un your computer.
I have instaled ultrasurf proxy in my client computer and I can use skype, facebook, etc.. but I can´t use Servoy Client. I can download client Servoy form my server but when I run it, I have: unable to launch the application

How can I solve it?.

Thanks.

Re: Client proxy

PostPosted: Thu Oct 07, 2010 3:09 pm
by ngervasi
You can try to use the HTTP tunnel on port 8080, search the forum or the documentation for setting it up.

Re: Client proxy

PostPosted: Thu Oct 07, 2010 4:17 pm
by JuanMartin
I active the tunnel in Servoy Server but it the same. From Spain all is ok but from Bubai is impossible.

Thanks ngervasi

Re: Client proxy

PostPosted: Thu Oct 07, 2010 4:18 pm
by ngervasi
Did you set java in the client to use "Direct connection"?

Re: Client proxy

PostPosted: Thu Oct 07, 2010 5:48 pm
by jcompagner
i guess you really have to active the http tunnel over port 80

then i dont think it would be blocked..

Direct connection doesnt matter when you use the tunnel (so have set this property: SocketFactory.rmiServerFactory and then in http mode, you can do http&socket but then you have to create a profile that forces your client to do http because socket is default)

Re: Client proxy

PostPosted: Fri Oct 08, 2010 12:50 pm
by JuanMartin
I configure the tunnel on 80 port, but dosen´t work.

I have this message in client java console:

at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Thanks

Re: Client proxy

PostPosted: Fri Oct 08, 2010 2:32 pm
by jcompagner
ok but thats not servoy yet
thats purely javawebstart trying to download the first jars.

I guess you have to use a proxy, what is the settings in the java control panel network settings? I guess that can't be direct.

Re: Client proxy

PostPosted: Fri Oct 08, 2010 2:45 pm
by JuanMartin
jcompagner,

I probe directly, navigator configuration, and proxy.

The problen with the ultrasufr proxy is that the IP of the proxy is Dinamic. I probe with anothers proxy with statics IP and dosen´t work. If I use a static ip proxy, I can´t open any pages or facebook, etc...

In web, all works fine but I need use this application under smart.

Thanks

Re: Client proxy

PostPosted: Fri Oct 08, 2010 3:27 pm
by jcompagner
maybe you can look what your browser exactly uses as proxy?

And if you configure java to use the browsers setting? What happens then, it should then use the same one.

Re: Client proxy

PostPosted: Fri Oct 08, 2010 4:19 pm
by JuanMartin
Yes, I have the browser Through the proxy. If I change this option in browser, I can´t open any pages.

When I have configure java to use the browsers setting I have this in java client console:

at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Thanks

Re: Client proxy

PostPosted: Mon Oct 11, 2010 10:15 am
by jcompagner
what is the actual exception? i just see there a stackdump

But servoy itself can't do much for this, this is pure webstart that should communicate through the proxy