You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Peter Neu <pe...@gmx.net> on 2006/11/21 16:26:20 UTC

Axis2: Problems with running MTOM Sample

Hello,

I'm trying to get the MTOM example from the sample directory to work. 
When I trying to run the client I get this exception:

Exception in thread "main" org.apache.axis2.AxisFault: org.apache.ax
iom.om.OMException: Referenced Attachment not found in the MIME Message.
Content
ID:1.urn:uuid:6CB603287ADB2373DE11641216232963@apache.org
at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:308)
at sample.mtom.service.MTOMSampleStub.attachment(Unknown Source)

at sample.mtom.client.Client.transferFile(Unknown Source)
at sample.mtom.client.Client.main(Unknown Source)
Java Result: 1

I start the ant script with these parameters (tried parameters also in
hyphens):

ant run.client -Dfile C:/out.txt -Ddest C:\in.txt

Don't see what I did wrong. Any idea what to check?

Cheers,
Pete



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


Re: AW: Axis2: Problems with running MTOM Sample - [Solved]

Posted by Thilina Gunarathne <cs...@gmail.com>.
Wow...Nice to heat that..

It would be great if you can share your solution(or may be the cause)
with us?? :)

~Thilina

On 11/23/06, Peter Neu <pe...@gmx.net> wrote:
> Got it!
>
> Cheers,
> Pete
>
> > -----Ursprüngliche Nachricht-----
> > Von: Peter Neu [mailto:peter.neu@gmx.net]
> > Gesendet: Donnerstag, 23. November 2006 11:17
> > An: axis-user@ws.apache.org
> > Betreff: AW: AW: Axis2: Problems with running MTOM Sample
> >
> > Hello,
> >
> > I ran the example with: run.client -Dfile c:\out.txt -Ddest c:\in.txt
> >
> > But the error message is the same. I just can't think of what might be
> > wrong. Just for changes I tried the other attachment sample
> > "soapwithattachments". It also didn't work but the error message is
> > somehow
> > different. Maybe this helps a bit:
> >
> > First thing which is strange: The run-client triggers a redeploy on the
> > server and then error on client side is this:
> >
> > [java] INFO: Deploying Web service  version.aar
> > [java] Exception in thread "main" org.apache.axis2.AxisFault:
> > Exception occurred while trying to invoke service method uploadFile
> > [java]     at
> > org.apache.axis2.description.OutInAxisOperationClient.execute
> > (OutInAxisOperation.java:308)
> > [java]     at
> > sample.soapwithattachments.client.SWAClient.transferFile(SWAC
> > lient.java:133)
> > [java]     at
> > sample.soapwithattachments.client.SWAClient.main(SWAClient.ja
> > va:81)
> > [java] Java Result: 1
> >
> > Also on the server side an error occurs:
> >
> > 23.11.2006 11:06:49 org.apache.axis2.rpc.receivers.RPCMessageReceiver
> > invokeBusinessLogic
> > SCHWERWIEGEND: Exception occurred while trying to invoke service method
> > uploadFile
> > java.lang.reflect.InvocationTargetException
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >         at java.lang.reflect.Method.invoke(Unknown Source)
> >         at
> > org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCM
> > es
> > sageReceiver.
> > java:118)
> >         at
> > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstra
> > ct
> > InOutSyncMess
> > ageReceiver.java:39)
> >         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
> >         at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> > HT
> > TPTransportUt
> > ils.java:319)
> >         at
> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
> >         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(Applicati
> > on
> > FilterChain.j
> > ava:252)
> >         at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> > Ch
> > 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:1
> > 26
> > )
> >         at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> > 05
> > )
> >         at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> > va
> > :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.proces
> > sC
> > onnection(Htt
> > p11BaseProtocol.java:664)
> >         at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j
> > av
> > a:527)
> >         at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower
> > Wo
> > rkerThread.ja
> > va:80)
> >         at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
> > av
> > a:684)
> >         at java.lang.Thread.run(Unknown Source)
> > Caused by: java.lang.NullPointerException
> >         at
> > sample.soapwithattachments.service.AttachmentService.uploadFile(Attachment
> > Se
> > rvice.java:21
> > )
> >         ... 25 more
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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


AW: AW: Axis2: Problems with running MTOM Sample - [Solved]

Posted by Peter Neu <pe...@gmx.net>.
Got it!

Cheers,
Pete

> -----Ursprüngliche Nachricht-----
> Von: Peter Neu [mailto:peter.neu@gmx.net]
> Gesendet: Donnerstag, 23. November 2006 11:17
> An: axis-user@ws.apache.org
> Betreff: AW: AW: Axis2: Problems with running MTOM Sample
> 
> Hello,
> 
> I ran the example with: run.client -Dfile c:\out.txt -Ddest c:\in.txt
> 
> But the error message is the same. I just can't think of what might be
> wrong. Just for changes I tried the other attachment sample
> "soapwithattachments". It also didn't work but the error message is
> somehow
> different. Maybe this helps a bit:
> 
> First thing which is strange: The run-client triggers a redeploy on the
> server and then error on client side is this:
> 
> [java] INFO: Deploying Web service  version.aar
> [java] Exception in thread "main" org.apache.axis2.AxisFault:
> Exception occurred while trying to invoke service method uploadFile
> [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.execute
> (OutInAxisOperation.java:308)
> [java]     at
> sample.soapwithattachments.client.SWAClient.transferFile(SWAC
> lient.java:133)
> [java]     at
> sample.soapwithattachments.client.SWAClient.main(SWAClient.ja
> va:81)
> [java] Java Result: 1
> 
> Also on the server side an error occurs:
> 
> 23.11.2006 11:06:49 org.apache.axis2.rpc.receivers.RPCMessageReceiver
> invokeBusinessLogic
> SCHWERWIEGEND: Exception occurred while trying to invoke service method
> uploadFile
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCM
> es
> sageReceiver.
> java:118)
>         at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstra
> ct
> InOutSyncMess
> ageReceiver.java:39)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HT
> TPTransportUt
> ils.java:319)
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
>         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(Applicati
> on
> FilterChain.j
> ava:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> Ch
> 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:1
> 26
> )
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 05
> )
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> va
> :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.proces
> sC
> onnection(Htt
> p11BaseProtocol.java:664)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j
> av
> a:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower
> Wo
> rkerThread.ja
> va:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
> av
> a:684)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NullPointerException
>         at
> sample.soapwithattachments.service.AttachmentService.uploadFile(Attachment
> Se
> rvice.java:21
> )
>         ... 25 more
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org



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


AW: AW: Axis2: Problems with running MTOM Sample

Posted by Peter Neu <pe...@gmx.net>.
Hello,

I ran the example with: run.client -Dfile c:\out.txt -Ddest c:\in.txt

But the error message is the same. I just can't think of what might be
wrong. Just for changes I tried the other attachment sample 
"soapwithattachments". It also didn't work but the error message is somehow 
different. Maybe this helps a bit:

First thing which is strange: The run-client triggers a redeploy on the
server and then error on client side is this:

[java] INFO: Deploying Web service  version.aar
[java] Exception in thread "main" org.apache.axis2.AxisFault: 
Exception occurred while trying to invoke service method uploadFile
[java]     at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:308)
[java]     at sample.soapwithattachments.client.SWAClient.transferFile(SWAC
lient.java:133)
[java]     at sample.soapwithattachments.client.SWAClient.main(SWAClient.ja
va:81)
[java] Java Result: 1

Also on the server side an error occurs:

23.11.2006 11:06:49 org.apache.axis2.rpc.receivers.RPCMessageReceiver
invokeBusinessLogic
SCHWERWIEGEND: Exception occurred while trying to invoke service method
uploadFile
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes
sageReceiver.
java:118)
        at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstract
InOutSyncMess
ageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUt
ils.java:319)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
        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.j
ava: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(Htt
p11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.ja
va:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
        at
sample.soapwithattachments.service.AttachmentService.uploadFile(AttachmentSe
rvice.java:21
)
        ... 25 more



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


Re: AW: Axis2: Problems with running MTOM Sample

Posted by Philipp Perner <ph...@healthgate.at>.
it depends on the commandline environment you are using.
For example:

When you use cmd.exe (in windows) you have to type:
ant run.client -Dfile c:\out.txt -Ddest c:\in.txt

Or in linux command line environments like cygwin:
ant[.sh] run.client -Dfile c:/out.txt -Ddest c:/in.txt

Don't use quotes or hyphens!!!

cheers,
Philipp




Peter Neu schrieb:
> Hi, 
>
> I used that as well. Didn't work out. Any ideas what I could try beside
> that?
>
> Cheers,
> Pete 
>
>   
>> -----Ursprüngliche Nachricht-----
>> Von: Thilina Gunarathne [mailto:csethil@gmail.com]
>> Gesendet: Dienstag, 21. November 2006 18:14
>> An: axis-user@ws.apache.org
>> Betreff: Re: Axis2: Problems with running MTOM Sample
>>
>> Hmm... Strange...
>>
>> Please try using inverted commas to the file names as follows.
>> ant run.client -Dfile "C:\out.txt" -Ddest "C:\in.txt"
>>
>> Thanx,
>> ~Thilina
>>
>> On 11/21/06, Peter Neu <pe...@gmx.net> wrote:
>>     
>>> Hello,
>>>
>>> I'm trying to get the MTOM example from the sample directory to work.
>>> When I trying to run the client I get this exception:
>>>
>>> Exception in thread "main" org.apache.axis2.AxisFault: org.apache.ax
>>> iom.om.OMException: Referenced Attachment not found in the MIME Message.
>>> Content
>>> ID:1.urn:uuid:6CB603287ADB2373DE11641216232963@apache.org
>>> at org.apache.axis2.description.OutInAxisOperationClient.execute
>>> (OutInAxisOperation.java:308)
>>> at sample.mtom.service.MTOMSampleStub.attachment(Unknown Source)
>>>
>>> at sample.mtom.client.Client.transferFile(Unknown Source)
>>> at sample.mtom.client.Client.main(Unknown Source)
>>> Java Result: 1
>>>
>>> I start the ant script with these parameters (tried parameters also in
>>> hyphens):
>>>
>>> ant run.client -Dfile C:/out.txt -Ddest C:\in.txt
>>>
>>> Don't see what I did wrong. Any idea what to check?
>>>
>>> Cheers,
>>> Pete
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>>       
>> --
>> http://webservices.apache.org/~thilina/
>> http://thilinag.blogspot.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>     
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>   


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


AW: Axis2: Problems with running MTOM Sample

Posted by Peter Neu <pe...@gmx.net>.
Hi, 

I used that as well. Didn't work out. Any ideas what I could try beside
that?

Cheers,
Pete 

> -----Ursprüngliche Nachricht-----
> Von: Thilina Gunarathne [mailto:csethil@gmail.com]
> Gesendet: Dienstag, 21. November 2006 18:14
> An: axis-user@ws.apache.org
> Betreff: Re: Axis2: Problems with running MTOM Sample
> 
> Hmm... Strange...
> 
> Please try using inverted commas to the file names as follows.
> ant run.client -Dfile "C:\out.txt" -Ddest "C:\in.txt"
> 
> Thanx,
> ~Thilina
> 
> On 11/21/06, Peter Neu <pe...@gmx.net> wrote:
> > Hello,
> >
> > I'm trying to get the MTOM example from the sample directory to work.
> > When I trying to run the client I get this exception:
> >
> > Exception in thread "main" org.apache.axis2.AxisFault: org.apache.ax
> > iom.om.OMException: Referenced Attachment not found in the MIME Message.
> > Content
> > ID:1.urn:uuid:6CB603287ADB2373DE11641216232963@apache.org
> > at org.apache.axis2.description.OutInAxisOperationClient.execute
> > (OutInAxisOperation.java:308)
> > at sample.mtom.service.MTOMSampleStub.attachment(Unknown Source)
> >
> > at sample.mtom.client.Client.transferFile(Unknown Source)
> > at sample.mtom.client.Client.main(Unknown Source)
> > Java Result: 1
> >
> > I start the ant script with these parameters (tried parameters also in
> > hyphens):
> >
> > ant run.client -Dfile C:/out.txt -Ddest C:\in.txt
> >
> > Don't see what I did wrong. Any idea what to check?
> >
> > Cheers,
> > Pete
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> 
> 
> --
> http://webservices.apache.org/~thilina/
> http://thilinag.blogspot.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org



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


Re: Axis2: Problems with running MTOM Sample

Posted by Thilina Gunarathne <cs...@gmail.com>.
Hmm... Strange...

Please try using inverted commas to the file names as follows.
ant run.client -Dfile "C:\out.txt" -Ddest "C:\in.txt"

Thanx,
~Thilina

On 11/21/06, Peter Neu <pe...@gmx.net> wrote:
> Hello,
>
> I'm trying to get the MTOM example from the sample directory to work.
> When I trying to run the client I get this exception:
>
> Exception in thread "main" org.apache.axis2.AxisFault: org.apache.ax
> iom.om.OMException: Referenced Attachment not found in the MIME Message.
> Content
> ID:1.urn:uuid:6CB603287ADB2373DE11641216232963@apache.org
> at org.apache.axis2.description.OutInAxisOperationClient.execute
> (OutInAxisOperation.java:308)
> at sample.mtom.service.MTOMSampleStub.attachment(Unknown Source)
>
> at sample.mtom.client.Client.transferFile(Unknown Source)
> at sample.mtom.client.Client.main(Unknown Source)
> Java Result: 1
>
> I start the ant script with these parameters (tried parameters also in
> hyphens):
>
> ant run.client -Dfile C:/out.txt -Ddest C:\in.txt
>
> Don't see what I did wrong. Any idea what to check?
>
> Cheers,
> Pete
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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