Author: doogie
Date: Wed Oct 17 07:53:07 2007
New Revision: 585526
URL:
http://svn.apache.org/viewvc?rev=585526&view=revLog:
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();