Hi Abid, This is strange, it just has the non blocking http transport. I wonder how you get this exception in that case. Is this error re-producible, if so please give us the steps so that we can try to re-produce this and fix it.
Thanks, Ruwan On Fri, Aug 20, 2010 at 8:20 PM, Abid Khan-EXT <[email protected]>wrote: > I think I am using blocking transports, I am using synapse 1.2, please see > attached files, and suggest/recommend changes. > > Thanks & Regards, > Abid > > -----Original Message----- > From: Ruwan Linton [mailto:[email protected]] > Sent: Thursday, August 19, 2010 10:41 PM > To: [email protected] > Subject: Re: NullPointerException occurs when synapse is deployed on JBOSS > > The problem here is that you are using both the servlet and non blocking > http transports, in your axis2.xml, and a response for a message received > from the nhttp transport has been directed to the servlet transport. > > If you do not have the servlet transport in the axis2.xml, please attach > both the axis2.xml and the synapse.xml files. I am assuming that you are > using the synapse 1.2, right? > > Thanks, > Ruwan > > On Fri, Aug 20, 2010 at 6:27 AM, Abid Khan-EXT <[email protected] > >wrote: > > > Hello all, > > > > I am seeing this exception very frequently and was wondering if it has > been > > fixed. This exception occurs every time, the problem is that some time > the > > response is not ever received. > > > > 00:41:58,000 ERROR [STDERR] java.lang.NullPointerException > > 00:41:58,001 ERROR [STDERR] at > > > org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:724) > > 00:41:58,001 ERROR [STDERR] at > > org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449) > > 00:41:58,001 ERROR [STDERR] at > > > org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:299) > > 00:41:58,001 ERROR [STDERR] at > > org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:950) > > 00:41:58,001 ERROR [STDERR] at > > org.apache.coyote.Response.action(Response.java:186) > > 00:41:58,001 ERROR [STDERR] at > > org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:343) > > 00:41:58,001 ERROR [STDERR] at > > org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:314) > > 00:41:58,001 ERROR [STDERR] at > > > org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:98) > > 00:41:58,001 ERROR [STDERR] at > > java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124) > > 00:41:58,001 ERROR [STDERR] at > > com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99) > > 00:41:58,002 ERROR [STDERR] at > > com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214) > > 00:41:58,002 ERROR [STDERR] at > > com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311) > > 00:41:58,002 ERROR [STDERR] at > > > org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:146) > > 00:41:58,002 ERROR [STDERR] at > > > org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:472) > > 00:41:58,002 ERROR [STDERR] at > > > org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:143) > > 00:41:58,002 ERROR [STDERR] at > > > org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendUsingOutputStream(HttpCoreNIOSender.java:449) > > 00:41:58,002 ERROR [STDERR] at > > > org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:266) > > 00:41:58,002 ERROR [STDERR] at > > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) > > 00:41:58,002 ERROR [STDERR] at > > org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:138) > > 00:41:58,002 ERROR [STDERR] at > > > org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:169) > > 00:41:58,002 ERROR [STDERR] at > > > org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:301) > > 00:41:58,003 ERROR [STDERR] at > > > org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:131) > > 00:41:58,003 ERROR [STDERR] at > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) > > 00:41:58,003 ERROR [STDERR] at > > > org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:200) > > 00:41:58,003 ERROR [STDERR] at > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > > 00:41:58,003 ERROR [STDERR] at > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > 00:41:58,003 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619) > > > > Thanks & Regards, > > > > Abid Khan > > Java Consultant > > Jeppesen (Software Product Development) > > Desk: 303.328.6554 | Cell: 720.480.3523 > > <Promotor of simple solutions, even rocket science can be simplified.> > > > > > > > > > -- > Ruwan Linton > Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb > WSO2 <http://wso2.org/esb%0AWSO2> Inc.; http://wso2.org > > Lean . Enterprise . Middleware > > phone: +1 408 754 7388 ext 51789 > email: [email protected]; cell: +94 77 341 3097 > blog: http://blog.ruwan.org > linkedin: http://www.linkedin.com/in/ruwanlinton > google: http://www.google.com/profiles/ruwan.linton > tweet: http://twitter.com/ruwanlinton > -- Ruwan Linton Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb WSO2 Inc.; http://wso2.org Lean . Enterprise . Middleware phone: +1 408 754 7388 ext 51789 email: [email protected]; cell: +94 77 341 3097 blog: http://blog.ruwan.org linkedin: http://www.linkedin.com/in/ruwanlinton google: http://www.google.com/profiles/ruwan.linton tweet: http://twitter.com/ruwanlinton
