axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramon Turnes <ramon.turnes-pe...@hermes.si>
Subject Attachment example
Date Wed, 20 Feb 2002 09:27:10 GMT

Hi,

I am trying to run the attachment example but without success. After
a couple of days I was able to deploy and undeploy the service but
the client fails. This is the error I get:

W:\jakarta-tomcat\webapps\axis\WEB-INF\classes>java
samples.attachments.EchoAtta
chment temp
java.lang.NullPointerException
        at
org.apache.axis.encoding.JAFDataHandlerSerializer.serialize(Unknown S
ource)
        at org.apache.axis.encoding.TypeMappingRegistry.serialize(Unknown
Source
)
        at org.apache.axis.encoding.SerializationContext.serialize(Unknown
Sourc
e)
        at
org.apache.axis.encoding.SerializationContext.outputMultiRefs(Unknown
 Source)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(Unknown Source)
        at org.apache.axis.message.MessageElement.output(Unknown Source)
        at org.apache.axis.SOAPPart.getAsString(Unknown Source)
        at org.apache.axis.SOAPPart.getAsBytes(Unknown Source)
        at org.apache.axis.Message.getContentLength(Unknown Source)
        at org.apache.axis.transport.http.HTTPSender.invoke(Unknown Source)
        at org.apache.axis.strategies.InvocationStrategy.visit(Unknown
Source)
        at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
        at org.apache.axis.SimpleChain.invoke(Unknown Source)
        at org.apache.axis.client.AxisClient.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at
samples.attachments.EchoAttachment.echoDir(EchoAttachment.java:229)
        at samples.attachments.EchoAttachment.main(EchoAttachment.java:326)
AxisFault
  faultCode: http://xml.apache.org/axis/:Server.userException
  faultString: java.lang.NullPointerException
  faultActor: null
  faultDetail:
        stackTrace: java.lang.NullPointerException
        at org.apache.axis.SOAPPart.getAsBytes(Unknown Source)
        at org.apache.axis.Message.getContentLength(Unknown Source)
        at org.apache.axis.transport.http.HTTPSender.invoke(Unknown Source)
        at org.apache.axis.strategies.InvocationStrategy.visit(Unknown
Source)
        at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
        at org.apache.axis.SimpleChain.invoke(Unknown Source)
        at org.apache.axis.client.AxisClient.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at
samples.attachments.EchoAttachment.echoDir(EchoAttachment.java:229)
        at samples.attachments.EchoAttachment.main(EchoAttachment.java:326)


This is my classpath.

CLASSPATH=.;.\class;c:\wstk-3.0\lib\xerces.jar;c:\jakarta-tomcat\lib\activat
ion.jar;
c:\xml-axis\lib\axis.jar;c:\xml-axis\lib\log4j.jar;c:\xml-axis\lib\clutil.ja
r;
c:\xml-axis\lib\wsdl4j.jar

Some idea where the ptroblem may be? Thanks.

--------------------------------------
Ramon Turnes Perez 
HERMES SoftLab, Litijska 47 
1000 Ljubljana, SLOVENIA 
Phone: +386 1 5865 638 
Fax:     +386 1 5865 270
E-mail: ramon@hermes.si 
www.hermes-softlab.com 
--------------------------------------


> -----Original Message-----
> From: Adam.Leggett [mailto:Adam.Leggett@upco.co.uk]
> Sent: Wednesday, February 20, 2002 10:19 AM
> To: 'axis-user@xml.apache.org'
> Subject: RE: Axis over https/SSL?
> 
> 
> Check this guide to SSL with Apache SOAP 2.2, not Axis but 
> should cover
> most/all u need to know about SOAP with SSL:
> 
> http://xml.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html
> 
> -----Original Message-----
> From: Chris Ruegger [mailto:cruegger@speakeasy.net] 
> Sent: Tuesday, February 19, 2002 10:15 PM
> To: axis-user@xml.apache.org
> Subject: Re: Axis over https/SSL?
> 
> 
> It is a simple matter of adding these lines?:
>  
> import jsse classes....
>  
>      // Set up Security
>      System.setProperty("java.protocol.handler.pkgs",
>                       "com.sun.net.ssl.internal.www.protocol");
> 
>      //Register JSSE
>      Security.addProvider(new 
> com.sun.net.ssl.internal.ssl.Provider());
>  
>     // Connect to Axis Servlet
>    URL url = new URL("https://myserver/axis/servlet/AxisServlet");
>  
>    etc...
>  
>  
> It looks like SOAP hiccups if I don't have a valid 
> certificate installed,
> which is
> what I would expect. Any way to get around this or do I need a legit
> certificate?
> thanks
>  
>  
> ----- Original Message ----- 
> From: Chris Ruegger 
> To: axis-user@xml.apache.org 
> Sent: Tuesday, February 19, 2002 4:59 PM
> Subject: Axis over https/SSL?
> 
> 
>  
> I want to connec to the stock quote example over https. I've 
> downloaded jsse
> 1.0.2. 
> What mods would I need to make to the client to connect via https?
> Thanks ahead of time
> 

Mime
View raw message