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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
RupakKhurana
Level 1

Likes

0 likes

Total Posts

39 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
RupakKhurana
Level 1

Likes

0 likes

Total Posts

39 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
RupakKhurana
Level 1

07-10-2011

Hello

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 java.net.ServerSocket 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 thread.run() is blocked on socket.inputStream.avaialble() and is not letting other servlets to run.. how to resolve this....

thanks

RK

Replies

Avatar

Avatar
Boost 5
Employee
tomj
Employee

Likes

7 likes

Total Posts

56 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Employee
tomj
Employee

Likes

7 likes

Total Posts

56 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
tomj
Employee

13-10-2011

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.

Tom