Hi,
I have an app running on Weblogic 8.1 SP6. I re-built the EAR on
Java 1.6 and deployed to Weblogic 10.3.3.
There are a number of JARs used by my app, one of which is a JAR of classes generated from XML schema using JAXB 1.0. I am packaging this JAR as-is, and at run-time get the following error while processing an XML that conforms to the original XSD and valid otherwise. Any pointers is much appreciated! Thanks.
2010-12-16 05:57:10,219 ERROR TranID-[022f7f97-bf01-4a32-9f80-bc8fd78ea085][OMF.LocationManagementService.getAddressInfo][Ordermax]RefID-[A24L34T3][] ERROR- javax.xml.bind.UnmarshalException: Unexpected text "10"
- with linked exception:
[java.lang.ClassCastException: org.w3._2001.xmlschema.impl.AnyTypeImpl incompatible with com.foo.jaxb.addressapp.response.impl.runtime.UnmarshallableObject] Cause=java.lang.ClassCastException: org.w3._2001.xmlschema.impl.AnyTypeImpl incompatible with com.foo.jaxb.addressapp.response.impl.runtime.UnmarshallableObject message=Unexpected text "10"
javax.xml.bind.UnmarshalException: Unexpected text "10"
- with linked exception:
[java.lang.ClassCastException: org.w3._2001.xmlschema.impl.AnyTypeImpl incompatible with com.foo.jaxb.addressapp.response.impl.runtime.UnmarshallableObject]
at com.foo.jaxb.addressapp.response.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:551)
at com.foo.jaxb.addressapp.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:148)
at com.foo.jaxb.addressapp.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.handleUnexpectedTextException(AbstractUnmarshallingEventHandlerImpl.java:130)
at com.foo.jaxb.addressapp.response.impl.CircuitInfoTypeImpl$Unmarshaller.handleText(CircuitInfoTypeImpl.java:343)
at com.foo.jaxb.addressapp.response.impl.runtime.AbstractUnmarshallingEventHandlerImpl.text(AbstractUnmarshallingEventHandlerImpl.java:91)
at com.foo.jaxb.addressapp.response.impl.runtime.SAXUnmarshallerHandlerImpl.consumeText(SAXUnmarshallerHandlerImpl.java:216)
at com.foo.jaxb.addressapp.response.impl.runtime.SAXUnmarshallerHandlerImpl.processText(SAXUnmarshallerHandlerImpl.java:220)
at com.foo.jaxb.addressapp.response.impl.runtime.SAXUnmarshallerHandlerImpl.endElement(SAXUnmarshallerHandlerImpl.java:145)
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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:133)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
at com.foo.jaxb.addressapp.response.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:142)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:148)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:195)
at com.foo.persistence.locationmanagement.dao.addressappJAXBHelper.unmarshall(addressappJAXBHelper.java:70)