0 Replies Latest reply: Aug 12, 2011 9:31 AM by sureshtechspot RSS

    ClientAbortException on  applyChangeSet invocation

    sureshtechspot Newbie

      hi

       

        I have below environment,

       

      1. guvnor-5.2.0.Final-jboss-as-5.1.war is deployed in JBOSS 5.1.0.

      2. A WebService is  deployed in JBOSS4.2.3.GA

      3. I have created a rule package in guvnor and writtern a rule.

      4. I deployed the snapshot of that package by using guvnor user interface.

       

      Now,

       

        I am interacting with the guvnor from my webservice. If I receive any request to my webservice to derive some thing  I am invoking rules,

       

      The Code I am using is some thing like this,

       

      KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("MyAgent");

      Resource changeset = ResourceFactory.newClassPathResource("change-set.xml");

      kagent.applyChangeSet(changeset);

       

      While executing applyChangeSet method I am gettting a ClientAbortException message in the Guvnor server. Which I am not able to uderstand, below is the stacktrace

       

       

      ClientAbortException:  java.net.SocketException: Connection reset by peer: socke

      t write error

              at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffe

      r.java:399)

              at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:354)

              at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.ja

      va:422)

              at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:41

      1)

              at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputSt

      ream.java:89)

              at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputSt

      ream.java:83)

              at org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(Pac

      kageDeploymentServlet.java:281)

              at org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(R

      epositoryServlet.java:76)

              at org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(Package

      DeploymentServlet.java:135)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:625)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)

              at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHtt

      pServletRequest.java:53)

              at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi

      lter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

      alve.java:235)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

      alve.java:191)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit

      yAssociationValve.java:190)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv

      e.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce

      ss(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok

      e(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

      ava:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

      ava:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC

      onnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

      ve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

      a:330)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

      :829)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce

      ss(Http11Protocol.java:598)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44

      7)

              at java.lang.Thread.run(Thread.java:619)

       

       

      Urgent help is needed. Your help will be appreciated.

       

      Thanks

      Suresh