Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26915 invoked from network); 14 Jun 2006 09:46:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2006 09:46:00 -0000 Received: (qmail 99723 invoked by uid 500); 14 Jun 2006 09:45:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 99631 invoked by uid 500); 14 Jun 2006 09:45:48 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 99289 invoked by uid 99); 14 Jun 2006 09:45:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 02:45:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 02:45:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4D87771428D for ; Wed, 14 Jun 2006 09:44:33 +0000 (GMT) Message-ID: <15094499.1150278273314.JavaMail.jira@brutus> Date: Wed, 14 Jun 2006 09:44:33 +0000 (GMT+00:00) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-764) using sendreceive(blocking) it throws a nullPointerException In-Reply-To: <410075.1148372190665.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-764?page=all ] Deepal Jayasinghe resolved AXIS2-764: ------------------------------------- Resolution: Fixed Yes , if the server side uses Async message receiver then you have to invoke service in async manner. That is a limitation in Axis2. > using sendreceive(blocking) it throws a nullPointerException > ------------------------------------------------------------- > > Key: AXIS2-764 > URL: http://issues.apache.org/jira/browse/AXIS2-764 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: transports > Versions: 1.0 > Environment: jdk 1.5.0_06 > tomcat 5.5.12 > axis2 1.0 > Reporter: jacopo ravagnan > Assignee: Deepal Jayasinghe > Priority: Critical > > I've deployed a simple webservice with three methods. > First one is echoElement method: > public OMElement echoElementAll(OMElement element){ > element.build(); > element.detach(); > return element; > } > Second one is the same without build and detach, third one is one method that makes a connection to database. > Every time I'm trying to invoke one of these methods using my client with: > OMElement ris=serviceClient.sendReceive(in); > axis 2 throws this exception server-side: > Exception in thread "Axis2 Task" java.lang.NullPointerException > at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747) > at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403) > at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305) > at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:990) > at org.apache.coyote.Response.action(Response.java:182) > at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322) > at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293) > at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:97) > at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410) > at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) > at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) > at java.io.BufferedWriter.flush(BufferedWriter.java:236) > at com.ctc.wstx.sw.BaseStreamWriter.flushStream(BaseStreamWriter.java:1430) > at com.ctc.wstx.sw.BaseStreamWriter.safeFlushStream(BaseStreamWriter.java:1437) > at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313) > at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:119) > at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:382) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:256) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:210) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589) > at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$1.handleResult(AbstractInOutAsyncMessageReceiver.java:42) > at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$2.run(AbstractInOutAsyncMessageReceiver.java:60) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > and this Exception client-side: > Exception in thread "main" org.apache.axis2.AxisFault: Incoming message input stream is null > at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349) > at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399) > at it.ibc.axis2.test.ArtDaCodClient.main(ArtDaCodClient.java:71) > I think it's a timeout-problem or a serialization-problem of message. Can you fix it? > Thank you. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org