axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "OUYANG Yang" <youy...@smu.edu.sg>
Subject RE: Problem met in axis2
Date Wed, 12 Apr 2006 02:40:34 GMT
Hi Chinthaka:
Thank you so much for your quick reply:)
My edition is 0.95. I am wondering whether it is because of the messagereceiver?

Ouyang yang

-----Original Message-----
From: Eran Chinthaka [mailto:chinthaka@opensource.lk] 
Sent: 2006年4月12日 10:37
To: axis-user@ws.apache.org
Subject: Re: Problem met in axis2

Hi OUYANG,

what is the version of Axis2 you are using ?

-- Chinthaka

OUYANG Yang wrote:
> Hello all!
>     I am testing a simple example on axis2. I've written a web service named hello:
>     public class hello2{
>     public String hello(String name){
>         if(name==null)
>             name = "";
>         return "hello"+name+",welcome to the world of web services!";        
>     }
> }
> 
> And the services.xml file is as follows:
> <service name="hello2">
>     <description>
>         This service is to say hello to users.
>     </description>
>     <parameter name="HelloClass" locked="false">hello2</parameter>
>     <operation name="hello">
>     <messageReceiver  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
>     </operation>
> </service>
> 
> I can successfully depoly the hello.aar to axis2 and can see the service on list of services
in axis2 platform. But when I tried to click the lick of hello?wsdl, it will jump error which
says:
> 
> description The server encountered an internal error () that prevented it from fulfilling
this request.
> exception
> java.lang.NullPointerException
> 	org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:191)
> 	org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:191)
> 	org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:125)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> Could anyone tell me what's the problem is?
> Thank you very much!
> 
> yangyang
> 
> 
> 
> 


Mime
View raw message