axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ferruh Zamangoer" <ferruh.zamang...@gmx.de>
Subject AW: BeanDeserializer exception.
Date Wed, 06 Jul 2005 12:06:36 GMT
Janet don't need to edit the URL's, if you test the services on localhost.
If you deploy your service on a another server. Then you have to set the
endpoint of the service otherwise you can use localhost. The endpoint you
can set at your Locator class.

 

-----Urspr√ľngliche Nachricht-----
Von: Miller, Janet [mailto:MillerJa@pbworld.com] 
Gesendet: Mittwoch, 6. Juli 2005 14:04
An: axis-user@ws.apache.org
Betreff: RE: BeanDeserializer exception.

Bo,

I'm doing the same thing, but can't even access my web service at all.
Didn't you also have to modify the Locator, Skeleton, and Stub classes
to change the address/url for your web service?  If so, what did you
change them to?  I'm having trouble trying to figure out what the urls
should be.

Jan 

-----Original Message-----
From: Bo Hu [mailto:bo.hu2@mail.dcu.ie] 
Sent: Wednesday, July 06, 2005 5:20 AM
To: axis-user@ws.apache.org
Subject: BeanDeserializer exception.


Hello, 
I am developing a axis web service based on a .wsdl file.
I used WSDL2Java generate both server and client side code, and then,
modified implementation the add the actual service. after that, used
deploy.wsdd generated to deploy the service on a tomcat server. then, I
used a client to test my server, on the server side, I can see the soap
message been sent, but  on the client side, i got this exception: 

Exception thrown: 
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: 
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}exceptionName:
localhost.axis.services.RePower.MessageBaseType
	{http://xml.apache.org/axis/}stackTrace: AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: 
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}exceptionName:
localhost.axis.services.RePower.MessageBaseType


	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at
org.apache.axis.encoding.ser.BeanDeserializer.&lt;init&gt;(BeanDeseriali
zer.java:125)
	at
org.apache.axis.encoding.ser.BeanDeserializer.&lt;init&gt;(BeanDeseriali
zer.java:111)
	at
localhost.axis.services.RePower.MessageBaseType.getDeserializer(MessageB
aseType.java:124)
	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.encoding.ser.BaseDeserializerFactory.getSpecialized(Base
DeserializerFactory.java:176)
	at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(B
aseDeserializerFactory.java:117)
	at
org.apache.axis.encoding.DeserializationContextImpl.getDeserializer(Dese
rializationContextImpl.java:466)
	at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:289)
	at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:963)
	at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
198)
	at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:722)
	at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
	at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
	at org.apache.axis.client.Call.invoke(Call.java:2272)
	at org.apache.axis.client.Call.invoke(Call.java:2171)
	at org.apache.axis.client.Call.invoke(Call.java:1691)
	at
localhost.axis.services.RePower.RePowerBindingStub.topUp(RePowerBindingS
tub.java:265)
	at localhost.axis.services.RePower.Tester.main(Tester.java:96)



	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.ja
va:125)
	at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.ja
va:111)
	at
localhost.axis.services.RePower.MessageBaseType.getDeserializer(MessageB
aseType.java:124)
	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.encoding.ser.BaseDeserializerFactory.getSpecialized(Base
DeserializerFactory.java:176)
	at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(B
aseDeserializerFactory.java:117)
	at
org.apache.axis.encoding.DeserializationContextImpl.getDeserializer(Dese
rializationContextImpl.java:466)
	at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:289)
	at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:963)
	at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
198)
	at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:722)
	at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
	at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
	at org.apache.axis.client.Call.invoke(Call.java:2272)
	at org.apache.axis.client.Call.invoke(Call.java:2171)
	at org.apache.axis.client.Call.invoke(Call.java:1691)Exception
cause: null end

	at
localhost.axis.services.RePower.RePowerBindingStub.topUp(RePowerBindingS
tub.java:265)
	at localhost.axis.services.RePower.Tester.main(Tester.java:96)



somebody please help me since I am working on it for weeks, and can not
find the cause.

thanks a lot.



Bo.


BH 



Mime
View raw message