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 Şükrü Uzel <su...@yaz.com.tr> on 2008/08/13 10:20:55 UTC

MTOM Sample Error ?

I have error when mtom run client in axis2 sample ( MTOM ).

 

Error :

 

Exception in thread "main" org.apache.axis2.AxisFault

    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

    at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:90)

    at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx
isOperation.java:353)

    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
n.java:416)

    at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO
peration.java:228)

    at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

    at
org.apache.ws.axis2.mtomsample.MTOMSampleMTOMSampleSOAP11Port_httpStub.attac
hment(Unknown Source)

    at sample.mtom.client.Client.transferFile(Unknown Source)

    at sample.mtom.client.Client.main(Unknown Source)

Caused by: java.lang.NullPointerException

    at
org.apache.axiom.attachments.Attachments.getSOAPPartContentType(Attachments.
java:438)

    at
org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:40)

    at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUti
ls.java:164)

    at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:112)

    at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:88)

 

what is problem ?

 

 


RE: MTOM Sample Error ?

Posted by Şükrü Uzel <su...@yaz.com.tr>.
File location is valid. I sure.

But I have this error.

I use Java 1.6

 

Bu I don't understand ?

 

  _____  

From: Thilina Gunarathne [mailto:csethil@gmail.com] 
Sent: Wednesday, August 13, 2008 6:14 PM
To: axis-user@ws.apache.org
Subject: Re: MTOM Sample Error ?

 

Since you r getting a NPE, also check whether the file path you gave is
correct...

thanks,
Thilina

2008/8/13 Charitha Kankanamge <ch...@wso2.com>

Hi,

Which Axis2 version are you using?

regards
Charitha

Şükrü Uzel wrote:

I have error when mtom run client in axis2 sample ( MTOM ).

 
Error :

 
Exception in thread "main" org.apache.axis2.AxisFault

   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

   at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:90)

   at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx
isOperation.java:353)

   at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
n.java:416)

   at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO
peration.java:228)

   at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

   at
org.apache.ws.axis2.mtomsample.MTOMSampleMTOMSampleSOAP11Port_httpStub.attac
hment(Unknown Source)

   at sample.mtom.client.Client.transferFile(Unknown Source)

   at sample.mtom.client.Client.main(Unknown Source)

Caused by: java.lang.NullPointerException

   at
org.apache.axiom.attachments.Attachments.getSOAPPartContentType(Attachments.
java:438)

   at
org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:40)

   at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUti
ls.java:164)

   at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:112)

   at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:88)

 
what is problem ?

 
 

------------------------------------------------------------------------

Internal Virus Database is out-of-date.
Checked by AVG. Version: 7.5.524 / Virus Database: 270.4.7/1543 - Release
Date: 7/9/2008 6:32 PM
 



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




-- 
Thilina Gunarathne - http://thilinag.blogspot.com


Re: MTOM Sample Error ?

Posted by Thilina Gunarathne <cs...@gmail.com>.
Since you r getting a NPE, also check whether the file path you gave is
correct...

thanks,
Thilina

2008/8/13 Charitha Kankanamge <ch...@wso2.com>

> Hi,
>
> Which Axis2 version are you using?
>
> regards
> Charitha
>
> Şükrü Uzel wrote:
>
>  I have error when mtom run client in axis2 sample ( MTOM ).
>>
>>
>> Error :
>>
>>
>> Exception in thread "main" org.apache.axis2.AxisFault
>>
>>    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>>
>>    at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:90)
>>
>>    at
>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353)
>>
>>    at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
>>
>>    at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>>
>>    at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>
>>    at
>> org.apache.ws.axis2.mtomsample.MTOMSampleMTOMSampleSOAP11Port_httpStub.attachment(Unknown
>> Source)
>>
>>    at sample.mtom.client.Client.transferFile(Unknown Source)
>>
>>    at sample.mtom.client.Client.main(Unknown Source)
>>
>> Caused by: java.lang.NullPointerException
>>
>>    at
>> org.apache.axiom.attachments.Attachments.getSOAPPartContentType(Attachments.java:438)
>>
>>    at
>> org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:40)
>>
>>    at
>> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:164)
>>
>>    at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112)
>>
>>    at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88)
>>
>>
>> what is problem ?
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> Internal Virus Database is out-of-date.
>> Checked by AVG. Version: 7.5.524 / Virus Database: 270.4.7/1543 - Release
>> Date: 7/9/2008 6:32 PM
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thilina Gunarathne - http://thilinag.blogspot.com

Re: MTOM Sample Error ?

Posted by Charitha Kankanamge <ch...@wso2.com>.
Hi,

Which Axis2 version are you using?

regards
Charitha

Şükrü Uzel wrote:

> I have error when mtom run client in axis2 sample ( MTOM ).
>
>  
>
> Error :
>
>  
>
> Exception in thread "main" org.apache.axis2.AxisFault
>
>     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>
>     at 
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:90)
>
>     at 
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353)
>
>     at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
>
>     at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>
>     at 
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>
>     at 
> org.apache.ws.axis2.mtomsample.MTOMSampleMTOMSampleSOAP11Port_httpStub.attachment(Unknown 
> Source)
>
>     at sample.mtom.client.Client.transferFile(Unknown Source)
>
>     at sample.mtom.client.Client.main(Unknown Source)
>
> Caused by: java.lang.NullPointerException
>
>     at 
> org.apache.axiom.attachments.Attachments.getSOAPPartContentType(Attachments.java:438)
>
>     at 
> org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:40)
>
>     at 
> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:164)
>
>     at 
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112)
>
>     at 
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88)
>
>  
>
> what is problem ?
>
>  
>
>  
>
>------------------------------------------------------------------------
>
>Internal Virus Database is out-of-date.
>Checked by AVG. 
>Version: 7.5.524 / Virus Database: 270.4.7/1543 - Release Date: 7/9/2008 6:32 PM
>  
>


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