axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <cset...@gmail.com>
Subject Re: question on how to save pdf file in mtom service
Date Sat, 05 Aug 2006 23:03:20 GMT
If possible please post the message snapshots. Given stacktrace does
not seem to give much of an idea.

~Thilina

On 8/4/06, Pader, Erwin <Erwin.Pader@hma.org> wrote:
> Hi all,
>
> i've been playing around MTOMService and added functionality that will let
> it read a pdf file and subsequently saving it.  this is a code snippet of
> what i added in MTOMService:
>
>        byte[] b = null;
>        actualDH.getDataSource().getInputStream().read(b);
>        FileOutputStream fileOutStream = new FileOutputStream(fileName);
>
>        fileOutStream.write(b);
>
> for some reason i am getting this exception on the client side:
>
> org.apache.axis2.AxisFault: unknown
>        at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOpera
> tion.java:287)
>        at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
>        at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
>        at
> sample.mtom.imagetransfer.client.MTOMPDFClient.main(MTOMPDFClient.java:106)
> Caused by: java.lang.Exception: org.apache.axis2.AxisFault
>        at
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(Ra
> wXMLINOutMessageReceiver.java:102)
>        at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstract
> InOutSyncMessageReceiver.java:37)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
>        at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
> TPTransportUtils.java:284)
>        at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:252)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:173)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:213)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:178)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
> )
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
> )
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :107)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>        at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
> onnection(Http11BaseProtocol.java:664)
>        at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
> a:527)
>        at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
> rkerThread.java:80)
>        at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:684)
>        at java.lang.Thread.run(Unknown Source)
>
>        at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>        ... 4 more
>
> any help is greatly appreciated.
>
> Erwin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
"May the SourcE be with u"
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/
http://www.bloglines.com/blog/Thilina

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


Mime
View raw message