axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cilas de Freitas" <ci...@brturbo.com>
Subject problem with sample\attachments
Date Wed, 24 Jul 2002 15:51:48 GMT
Hello,

I'm using jdk1.4, Tomcat4.0.4 and axis-beta2 and try to run attachments
example, but I got this:

   C:\JAVA\ws\xml-axis-beta2>java samples.attachments.EchoAttachment
teste.txt
   java.lang.NullPointerException
   java.lang.NullPointerException
           at org.apache.axis.AxisFault.makeFault(AxisFault.java:116)
           at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:381)
           at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:306)
           at org.apache.axis.Message.getContentLength(Message.java:334)
           at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:382)

           at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
   y.java:71)
           at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
           at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
           at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:174)
           at org.apache.axis.client.Call.invoke(Call.java:1905)
           at org.apache.axis.client.Call.invoke(Call.java:1690)
           at org.apache.axis.client.Call.invoke(Call.java:1608)
           at org.apache.axis.client.Call.invoke(Call.java:1169)
           at
samples.attachments.EchoAttachment.echo(EchoAttachment.java:138)
           at
samples.attachments.EchoAttachment.main(EchoAttachment.java:310)
   Caused by: java.lang.NullPointerException
           at
org.apache.axis.encoding.ser.JAFDataHandlerSerializer.serialize(JAFDa
   taHandlerSerializer.java:112)
           at
org.apache.axis.encoding.SerializationContextImpl.serializeActual(Ser
   ializationContextImpl.java:1033)
           at
org.apache.axis.encoding.SerializationContextImpl.serialize(Serializa
   tionContextImpl.java:633)
           at
org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(Ser
   ializationContextImpl.java:685)
           at
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:387
   )
           at
org.apache.axis.message.MessageElement.output(MessageElement.java:651
   )
           at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:379)
           ... 13 more


  The error is happend in this line:
  
  Object ret = call.invoke( new Object[] {
              dhSource
          } 
      ); //Add the attachment.

  I already checked the dhSource and it insn't null.

  Do you have some clue about that!?

  Thanks in advance

  Cilas


Mime
View raw message