You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mark Kurley <MK...@p21.com> on 2002/06/07 21:13:00 UTC

Bean Serialization - NullPointerException

I am getting a NullPointerException (see end of message) when calling a web
service.  I have noticed that this is only happening if the "Bean" for the
web service extends another class.  
Example: 
	public class BaseBean implements java.io.Serializable {
		private int count;

		BaseBean() {}
		public void setCount (int c) {	count = c;}
		public int getCount () { return count;}
	}
	public class MyBean extends BaseBean implements java.io.Serializable
{
	...
	}

Does there have to be a specific entry in the deploy.wsdd file for the
TypeMapping of the base class?  

Has anyone else experience this problem when the bean extends another class?

Thanks in advance for the help.
-mark

******************** NullPointerException ******************************

java.lang.NullPointerException
        at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(Unknown So
urce)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Unkn
own Source)
        at org.apache.axis.message.SAX2EventRecorder.replay(Unknown Source)
        at org.apache.axis.message.MessageElement.publishToHandler(Unknown
Sourc
e)
        at org.apache.axis.encoding.DeserializerImpl.startElement(Unknown
Source
)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Unkn
own Source)
        at org.apache.axis.message.SAX2EventRecorder.replay(Unknown Source)
        at org.apache.axis.message.MessageElement.publishToHandler(Unknown
Sourc
e)
        at org.apache.axis.message.RPCElement.deserialize(Unknown Source)
        at org.apache.axis.message.RPCElement.getParams(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
com.p21.xbg.customer.ws.CustomerServicesSoapBindingStub.getCustomerCo
ntrol(CustomerServicesSoapBindingStub.java:224)
        at
com.p21.xbg.customer.test.TestCustomerControl.testService(TestCustome
rControl.java:32)
        at
com.p21.xbg.customer.test.TestCustomerControl.main(TestCustomerContro
l.java:13)


Visit our website at http://www.p21.com/visit 
The information in this e-mail is confidential and may contain legally
privileged information.  It is intended solely for the person or entity to
which it is addressed.  Access to this e-mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, action taken, or action omitted to be taken in
reliance on it, is prohibited and may be unlawful.  If you received this
e-mail in error, please contact the sender and delete the material from any
computer.