svn commit: r585526 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r585526 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java

doogie-3
Author: doogie
Date: Wed Oct 17 07:53:07 2007
New Revision: 585526

URL: http://svn.apache.org/viewvc?rev=585526&view=rev
Log:
When sending a command to a running ofbiz instance, and waiting for
the response from the server, the socket is not ready; explicitly
checking for that will always fail.  This was the cause of the 'null'
messages during shutdown.  Applied patch from
 https://issues.apache.org/jira/browse/OFBIZ-1282 to fix the issue.

Modified:
    ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java

Modified: ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java?rev=585526&r1=585525&r2=585526&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java (original)
+++ ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java Wed Oct 17 07:53:07 2007
@@ -360,10 +360,7 @@
 
         // read the reply
         BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
-        String response = null;
-        if (reader.ready()) {
-            response = reader.readLine();
-        }
+        String response = reader.readLine();
 
         reader.close();