Here is my stack trace.  It's not from AXIOM.

java.lang.IllegalStateException: The attachments stream can only be
accessed once; either by using the IncomingAttachmentStreams class or
by getting a collection of AttachmentPart objects.  They cannot both
be called within the life time of the same service request.
        at 
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:546)
        at org.apache.axis.Message.getContentLength(Message.java:511)
        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.axis.utils.BeanPropertyDescriptor.get(BeanPropertyDescriptor.java:127)
        at 
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:192)
        at 
org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)
        at 
org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
        at 
org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
        at 
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at 
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
        at 
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
        at org.apache.axis.client.Call.invoke(Call.java:2757)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at 
com.walsworth.od2.FileWebServiceSoapBindingStub.put(FileWebServiceSoapBindingStub.java:334)
        at com.walsworth.od2.FileWSClient.main(FileWSClient.java:51)

On 5/2/07, Glen Mazza <[EMAIL PROTECTED]> wrote:
This may be related to AXIOM internally (I don't know if AXIOM is used
in Axis 1, however).  I googled the error message and it seems like the
only thing that could cause that error message to occur (search on "The
attachments stream" within [1]) is that you called *both* getPart() and
getIncomingAttachmentStreams() -- but you can only call one of the
methods.

Glen

[1]
http://mail-archives.apache.org/mod_mbox/ws-commons-dev/200703.mbox/%
[EMAIL PROTECTED]

Am Mittwoch, den 02.05.2007, 16:20 -0500 schrieb Prasad Viswatmula:
> I am using Axis 1.4 and getting the above error.
>
> Thanks,
> Prasad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to