Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java socket server running from witin weblogic

 
robert sturn
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have requirement that my java server program to be running from within weblogic server.

I created a java Server program which is created as a thread.This thread is started when weblogic starts.



Here is the code for actual request handler




sendMessage



When I run the third party client which talks to ths server program I get socket exception saying connection reset.

If I run this server as an independent program it works fine.
Running from within gives socket exception.

Has anyone faced this problem?I would appreciate your reply since I already spent couple of days on this.

Regards
Robert sk
 
robert sturn
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the exception i get..

java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)Inside if if(message.isOneLiner() && message.isHeader())
at java.io.BufferedReader.readLine(BufferedReader.java:362)Entering sendMessage
at com.fapd.lpi.mlpi.util.MLPIRequestHandler.handleRequest(MLPIRequestHandler.java:119)
at com.fapd.lpi.mlpi.util.MLPIRequestHandler.run(MLPIRequestHandler.java:190)
at java.lang.Thread.run()V(Unknown Source)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!