DeBortoliWines / openerp-java-api

A Java API to connect to OpenERP and manage data using the XMLRPC interface.
Apache License 2.0
38 stars 71 forks source link

[Fatal Error] :1:1: Premature end of file #58

Closed anmvphan closed 3 years ago

anmvphan commented 3 years ago

I get this error from time to time, which usually occurs when processing data in large quantities. I don't know if it has something to do with the anti-virus software? When I uninstall ESET, my app work normal.

org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: Premature end of file.
    at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188)
    at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
    at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
    at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
    at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
    at com.odoojava.api.Session.executeCommand(Session.java:395)
    at com.odoojava.api.Session.executeCommandWithContext(Session.java:451)
    at com.odoojava.api.OdooCommand.readObject(OdooCommand.java:133)
    at com.odoojava.api.ObjectAdapter.readObject(ObjectAdapter.java:242)
    at com.abc.smtsupervisor.util.OdooServer.writeSerialMap(OdooServer.java:1518)
    at com.abc.smtsupervisor.controllers.project.MapSerial.lambda$buttonAction$1(MapSerial.java:306)
    at com.abc.smtsupervisor.util.WorkIndicatorDialog$2.call(WorkIndicatorDialog.java:152)
    at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
    at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1243)
    at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
    at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
    ... 17 more

Caused by:
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
    at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1243)
    at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
    at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
    at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
    at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
    at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
    at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
    at com.odoojava.api.Session.executeCommand(Session.java:395)
    at com.odoojava.api.Session.executeCommandWithContext(Session.java:451)
    at com.odoojava.api.OdooCommand.readObject(OdooCommand.java:133)
    at com.odoojava.api.ObjectAdapter.readObject(ObjectAdapter.java:242)
    at com.abc.smtsupervisor.util.OdooServer.writeSerialMap(OdooServer.java:1518)
    at com.abc.smtsupervisor.controllers.project.MapSerial.lambda$buttonAction$1(MapSerial.java:306)
    at com.abc.smtsupervisor.util.WorkIndicatorDialog$2.call(WorkIndicatorDialog.java:152)
    at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.lang.Thread.run(Thread.java:834)