Download is ok but Upload fails

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Download is ok but Upload fails

Postby Foobrother » Tue Nov 02, 2010 12:42 pm

Hi everybody,

We are having a new issue. We have installed Servoy and our solution on a new network.
We use IT2BE Datastream plugin for Downloads/Uploads. For some reasons the uploads fail but the downloads are fine. However when we try to open a Smart Client on the server itself it works ok.
Also we have had to set the server to tunnel mode: http and socket, to be able to connect over the network. This may be causing the problem, but again it works OK when running the client locally.

Here is the error we get in the console:
Java Web Start 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM

...

INFO - HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
INFO - HttpMethodDirector - Retrying request
INFO - HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
INFO - HttpMethodDirector - Retrying request
INFO - HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
INFO - HttpMethodDirector - Retrying request
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.it2be.datastream.lc.a(Unknown Source)
at com.it2be.datastream.conduit.b.a(Unknown Source)
at com.it2be.datastream.conduit.b.a(Unknown Source)
at com.it2be.datastream.conduit.b.a(Unknown Source)
at com.it2be.datastream.conduit.b.a(Unknown Source)
at com.it2be.datastream.plugin.client.a.a(Unknown Source)
at com.it2be.datastream.conduit.i.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
WARN - components - Streaming http://imac_:8080/servoy-service/Stream ... let/::null


I assume it's a firewall issue that's why I'm posting it here instead of the plugin.

Cheers.
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: Download is ok but Upload fails

Postby Foobrother » Tue Nov 02, 2010 1:31 pm

Solved!

The IMAC_ is the node name of the PC and it looks like that is causing part of the problem we have seen. Having the underscore in the node name meant we were unable to connect unless the server was set to tunnel, http and socket. We then had this upload problem where I think the proxy server was blocking the communications.

We changed the node name of the server and then were able to turn off tunnel mode and connect normally (with Direct connection on the clients) and now all is OK.

A strange error, but although Windows is quite happy with an underscore in the node name it causes problems with RMI communications when that node name is converted to a host name.
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 2 guests

cron