AnsweredAssumed Answered

Intermittent SocketException

Question asked by rhinmass on Jan 25, 2014
I get the below error intermittently when checking in content using AuthoringService as follows:


   public static void checkIn(AlfrescoNode node) throws AuthoringFault, RemoteException {
      Reference ref = new Reference();          
      ref.setStore(STORE);
      ref.setUuid(node.getUid());
      
      Predicate predicate = new Predicate(new Reference[]{ref}, null, null);
      NamedValue[] comments = new NamedValue[]{Utils.createNamedValue("description", "The content has been updated")};
        WebServiceFactory.getAuthoringService().checkin(predicate, comments, false);
   }



Most of the time this works fine.  But intermittently, this exception is thrown.  Note that the document does get checked in even when the exception is thrown.

Any thoughts as to why this is happening, and what would explain the intermittent nature?

I'm running this in a Share webscript.

Thanks for any help.
Robin


AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Connection reset
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Connection reset
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.BufferedInputStream.read1(Unknown Source)
   at java.io.BufferedInputStream.read(Unknown Source)
   at java.io.FilterInputStream.read(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
   at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.authoring.AuthoringServiceSoapBindingStub.checkin(AuthoringServiceSoapBindingStub.java:654)

Outcomes