axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2357) SOAP Attachment not working
Date Wed, 27 Jun 2007 09:10:25 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508488
] 

Thilina Gunarathne commented on AXIS2-2357:
-------------------------------------------

Hi Deepal,
This is about MTOM, not about SwA (subject seems to have mislead us)... 

>When I debug I found the the issue is Axis2 is not sending the attachment , there was
no any NPEs but Axis2 send the response as base64 even if I have enableSwA set to >true
, but I can not see that Axis2 is send the data as Attachments.
If  Axis2 is sending the data as base64, then part of the problem is already solved... We
should try enablingMTOM, not SwA...

>Seems like the problem is in Attachment handling in Axis2 , and I even look at the test
cases , but it copy the incoming attachments map to out put one. But if we do not have >incoming
attachment map then our attachment does not work. 
Attachment map is used when we deal with SwA type attachments... We do not need to store attachments
in the attachmentMap when sending out MTOM attachments..


I'lll try this with enablingMTOM in the latest Axis2 head...

> SOAP Attachment not working
> ---------------------------
>
>                 Key: AXIS2-2357
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2357
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel, modules
>    Affects Versions: 1.1.1
>         Environment: axis2-1.1.1, JDK1.5.0_05, tomcat-5.5.20
>            Reporter: Sigirisetty Surya Kiran
>            Assignee: Thilina Gunarathne
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: AXIS2-2357.zip
>
>
> Hi Folks,
> I am trying to create a service which servers files. Client is successfully making call
to service and infact
> service is executed successfully. But i am getting exception on server some where after
service execution. 
> Pls let me know what's the possible cause.
> Env: Running Axis2-1.1.1 on tomcat.
> Mar 9, 2007 10:00:04 AM org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver invokeBusinessLogic
> SEVERE: Exception occurred while trying to invoke service method getTermSheetFile
> java.lang.NullPointerException
> 	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:197)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
> 	at org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver.invokeBusinessLogic(RPCInOutAsyncMessageReceiver.java:121)
> 	at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$2.run(AbstractInOutAsyncMessageReceiver.java:61)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> 	at java.lang.Thread.run(Unknown Source)
> Exception in thread "Axis2 Task" java.lang.NullPointerException
> 	at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
> 	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
> 	at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
> 	at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
> 	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 java.io.BufferedOutputStream.flush(Unknown Source)
> 	at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99)
> 	at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:184)
> 	at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
> 	at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:115)
> 	at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:420)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:276)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
> 	at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:714)
> 	at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$1.handleFault(AbstractInOutAsyncMessageReceiver.java:51)
> 	at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$2.run(AbstractInOutAsyncMessageReceiver.java:68)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> 	at java.lang.Thread.run(Unknown Source)
>  
> cheers,
> sigirisetti
>   
> ------------------------------------------------------------------------
> >
> Mar 9, 2007 9:57:31 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_05\bin;.;C:\WINNT\system32;C:\WINNT;C:\Program
Files\WRQ\Reflection;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Real\Realplayer;C:\WINNT\System32\Wbem;C:\Program
Files\sql11\DLL;C:\Program Files\sql11\BIN;C:\Program Files\jetform\5.2\;C:\Program Files\Oracle\ora92\bin;C:\Program
Files\SimonTatham\Putty\;C:\Program Files\Sybase\shared\powerbuilder;C:\Program Files\rational\clearcase\bin;C:\Java\maven-2.0.4\bin;C:\Sun\SDK\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Java\jad
> Mar 9, 2007 9:57:31 AM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Mar 9, 2007 9:57:31 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 906 ms
> Mar 9, 2007 9:57:31 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Mar 9, 2007 9:57:31 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
> Mar 9, 2007 9:57:31 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Mar 9, 2007 9:57:32 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying module : addressing-1.1.1
> Mar 9, 2007 9:57:33 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying module : sandesha2-1.1
> Mar 9, 2007 9:57:33 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying module : soapmonitor-1.1.1
> Mar 9, 2007 9:57:33 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying Web service  RMSampleService.aar
> Mar 9, 2007 9:57:33 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying Web service  termsheet.aar
> Mar 9, 2007 9:57:33 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying Web service  version.aar
> Mar 9, 2007 9:57:33 AM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Mar 9, 2007 9:57:34 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Mar 9, 2007 9:57:34 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/31  config=null
> Mar 9, 2007 9:57:34 AM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Mar 9, 2007 9:57:34 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3000 ms
> file:/C:/Documents and Settings/sigirsu/Desktop/termsheet/XS0271956954.pdf
> Mar 9, 2007 10:00:04 AM org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver invokeBusinessLogic
> SEVERE: Exception occurred while trying to invoke service method getTermSheetFile
> java.lang.NullPointerException
> 	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:197)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
> 	at org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver.invokeBusinessLogic(RPCInOutAsyncMessageReceiver.java:121)
> 	at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$2.run(AbstractInOutAsyncMessageReceiver.java:61)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> 	at java.lang.Thread.run(Unknown Source)
> Exception in thread "Axis2 Task" java.lang.NullPointerException
> 	at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
> 	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
> 	at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
> 	at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
> 	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 java.io.BufferedOutputStream.flush(Unknown Source)
> 	at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99)
> 	at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:184)
> 	at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
> 	at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:115)
> 	at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:420)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:276)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
> 	at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:714)
> 	at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$1.handleFault(AbstractInOutAsyncMessageReceiver.java:51)
> 	at org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver$2.run(AbstractInOutAsyncMessageReceiver.java:68)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> 	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> 	at java.lang.Thread.run(Unknown Source)
>   
> ------------------------------------------------------------------------
> <service name="TermsheetService">
> 	<description>Termsheet Service</description>
> 	<parameter name="ServiceClass" locked="false">
> 		com.ssk.ws.termsheet.TermsheetFileService
> 	</parameter>
> 	<operation name="getTermSheetFile">
> 		<messageReceiver
> 			class="org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver" />
> 	</operation>
> </service>
>   
> ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message