Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Scout behind a proxy server, http calss throws timeout
Scout behind a proxy server, http calss throws timeout [message #897782] Wed, 25 July 2012 09:00 Go to next message
Karlheinz Alber is currently offline Karlheinz Alber
Messages: 5
Registered: July 2012
Junior Member
How can i configure Scout to use a proxy server for http links like
in the Javamagazin example for 'Alice im Wunderland' Picture URL.

After a same minutes a TimeOut is thrown :

java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:483)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:213)
at sun.net.www.http.HttpClient.New(HttpClient.java:300)
at sun.net.www.http.HttpClient.New(HttpClient.java:316)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:992)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:928)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:846)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1296)
at java.net.URL.openStream(URL.java:1035)
at de.javamagazin.scouttutorial.client.ui.forms.PersonForm$MainBox$PersonBox$PictureField.execChangedMasterValue(PersonForm.java:178)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField$P_MasterListener.masterChanged(AbstractFormField.java:1613)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractValueField.fireMasterChanged(AbstractValueField.java:185)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractValueField.setValue(AbstractValueField.java:306)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractValueField.importFormFieldData(AbstractValueField.java:113)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.importFormData(AbstractForm.java:862)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.importFormData(AbstractForm.java:789)
at de.javamagazin.scouttutorial.client.ui.forms.PersonForm$ModifyHandler.execLoad(PersonForm.java:290)
at org.eclipse.scout.rt.client.ui.form.AbstractFormHandler.onLoad(AbstractFormHandler.java:181)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.loadStateInternal(AbstractForm.java:1138)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.startInternal(AbstractForm.java:666)
at de.javamagazin.scouttutorial.client.ui.forms.PersonForm.startModify(PersonForm.java:68)
at de.javamagazin.scouttutorial.client.ui.desktop.outlines.pages.PersonTablePage$Table$EditPersonMenu.execAction(PersonTablePage.java:124)
at de.javamagazin.scouttutorial.client.ui.desktop.outlines.pages.PersonTablePage$Table.execRowAction(PersonTablePage.java:47)
at org.eclipse.scout.rt.client.ui.basic.table.AbstractTable.fireRowAction(AbstractTable.java:3572)
at org.eclipse.scout.rt.client.ui.basic.table.AbstractTable.access$1(AbstractTable.java:3569)
at org.eclipse.scout.rt.client.ui.basic.table.AbstractTable$P_TableUIFacade.fireRowActionFromUI(AbstractTable.java:3915)
at org.eclipse.scout.rt.ui.swt.basic.table.SwtScoutTable$8.run(SwtScoutTable.java:750)
at org.eclipse.scout.rt.ui.swt.concurrency.SwtScoutSynchronizer$1.runVoid(SwtScoutSynchronizer.java:60)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:177)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:161)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:149)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



Re: Scout behind a proxy server, http calss throws timeout [message #897787 is a reply to message #897782] Wed, 25 July 2012 09:04 Go to previous messageGo to next message
Arthur vD is currently offline Arthur vD
Messages: 51
Registered: March 2010
Member
Hi
Are you behind a proxy or something? The request to get the picture times out.

[EDIT: Sorry, you already write that you're behind a proxy. Embarrassed
In the client's config.ini file you can try to add the following lines:

-Dhttp.proxyHost=HOST
-Dhttp.proxyPort=PORT

If needed:

-Dhttp.proxyUser=USER
-Dhttp.proxyPassword=PASS

]

Regards

Arthur

[Updated on: Wed, 25 July 2012 12:14]

Report message to a moderator

Re: Scout behind a proxy server, http calss throws timeout [message #897945 is a reply to message #897787] Wed, 25 July 2012 13:37 Go to previous message
Karlheinz Alber is currently offline Karlheinz Alber
Messages: 5
Registered: July 2012
Junior Member
Hi,

-Dxxx=yyy is a program argument syntax, so perhaps it works from
client product file->Launching->Program Arguments.

but this works from client.config how suggested

http.proxyHost=HOST
http.proxyPort=PORT

thanks
kh
Previous Topic:Scout Web App + CSS
Next Topic:Wrong behavior of SmartField Ubuntu 12.04 /SWT
Goto Forum:
  


Current Time: Fri Oct 31 19:29:35 GMT 2014

Powered by FUDForum. Page generated in 0.01700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software