Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unable to call remoting service if another java thread listens to socket.


Level 3


I have an LCDS server running under tomcat that works fine so far and I can call remote procedures defined in remoting-config.xml. So far all is well.

Now in this server application, inside a servlet.init(), I start a java thread that creates a and starts listening to it for data that is coming from some other remote machine over the TCP/IP socket.

If I instantiate this java thread, I am unable to call remote procedures from the flex client. I get an error - RPC Fault faultString="Could not send message reliably, FaultCode=client.error.messageSend, FaultDetail=channel.connect.Failed, error NetConnection.Call.Failed....

If I dont instantiate this thread, then the RPC calls work. Whats going on?

Is it that this java is blocked on socket.inputStream.avaialble() and is not letting other servlets to run.. how to resolve this....



0 Replies



Sounds like you need to make sure that everything has its own port number.  You can't listen (for instance) on port 8400 if you application server is also listening there.