2 Replies Latest reply on Oct 28, 2005 9:53 AM by Thomas Diesler

    no attachment with id

    Ludek Falta Newbie

      Hi,

      I changed a little bit the wiki wsattachent example, successfully
      deployed on jboss-4.0.3, j2se-1.5.0_04 and tested with jboss-client
      libraries, everything ok.

      But when I generate the client-side code from the endpoint address with
      Java Web Service Developer Pack 1.6 and run the test with libraries
      from the sun I get this error:

      Exception in thread "main" java.rmi.RemoteException: Runtime exception; nested exception is:
      no attachment with id "cid:09BED78D3F0C4440D841841256E90AF0" found in message
      at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318)
      at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300)
      at org.jboss.ws.example.attachment.SOAPAttachment_Stub.download(SOAPAttachment_Stub.java:69)
      at org.jboss.ws.example.attachment.SOAPAttachmentClientStub.main(SOAPAttachmentClientStub.java:29)
      Caused by: no attachment with id "cid:09BED78D3F0C4440D841841256E90AF0" found in message
      at com.sun.xml.rpc.encoding.AttachmentSerializer.deserialize(AttachmentSerializer.java:198)
      at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:137)
      at org.jboss.ws.example.attachment.SOAPAttachment_download_ResponseStruct_SOAPSerializer.doDeserialize(SOAPAttachment_download_ResponseStruct_SOAPSerializer.java:43)
      at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:192)
      at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155)
      at org.jboss.ws.example.attachment.SOAPAttachment_Stub._deserialize_download(SOAPAttachment_Stub.java:118)
      at org.jboss.ws.example.attachment.SOAPAttachment_Stub._readFirstBodyElement(SOAPAttachment_Stub.java:104)
      at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215)
      ... 2 more

      Is there any compatibility problem?