axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donncha Redmond <...@donncha.com>
Subject SAXException: unknown class
Date Wed, 27 Jul 2005 07:13:20 GMT
Hi all,
I hope someone can help me with the following as I'm stumped.

System: OSX 10.4.2, Java 1.4.2, Tomcat 4.1.21, Axis 1.2.1

I have two versions of a WS whose interfaces are the same. V2 is just  
V1 with just some parameter checking added, and a refactoring of some  
internals.
The JAR containing my code is deployed in tomcat/common/lib/
I deploy the WS, use WSDL2Java to auto-generate client code, then run  
a unit test. Both versions of the client produce identical requests  
(ie: the XML msg is identical).
However, while V1 works perfectly, V2 generates the following exception:

org.xml.sax.SAXException: No object was found for class type class  
[Lau.gov.bafcsi.chunk.UserId;
     at org.apache.axis.message.SOAPFaultBuilder.createFault 
(SOAPFaultBuilder.java:221)
     at org.apache.axis.message.SOAPFaultBuilder.endElement 
(SOAPFaultBuilder.java:128)
     at org.apache.axis.encoding.DeserializationContext.endElement 
(DeserializationContext.java:1087)
     at org.apache.xerces.parsers.AbstractSAXParser.endElement 
(Unknown Source)
     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement 
(Unknown Source)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl 
$FragmentContentDispatcher.dispatch(Unknown Source)
     at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument 
(Unknown Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
Source)
     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown  
Source)
     at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
     at org.apache.axis.encoding.DeserializationContext.parse 
(DeserializationContext.java:227)
     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
     at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke 
(MustUnderstandChecker.java:62)
     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
     at org.apache.axis.client.Call.invoke(Call.java:2748)
     at org.apache.axis.client.Call.invoke(Call.java:2424)
     at org.apache.axis.client.Call.invoke(Call.java:2347)
     at org.apache.axis.client.Call.invoke(Call.java:1804)
     at  
_53._0._168._192.axis.services.Encrypt.EncryptSoapBindingStub.start 
(EncryptSoapBindingStub.java:235)
     at client.EncryptTest.process(EncryptTest.java:73)
     at client.EncryptTest.test1K(EncryptTest.java:38)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
     at com.intellij.rt.execution.junit2.JUnitStarter.main 
(JUnitStarter.java:31)

I've checked the JAR, and the au.gov.bafcsi.chunk.UserId file does  
exist. I'm using the built-in BeanSerializer as the UserId class is  
just a long and a byte[] with only the usual setters/getters.

Can anyone shed some light on what this exception may indicate, as  
the class is clearly present in the JAR?

thanks,
donncha

Mime
View raw message