I have generated source using Castor 1.2 jar files
It created descriptors and POJOs
I have included them in my project.
I have marshalled using spring Webservices.
Actually I dont want discriptors in my project, I want to marshal them using
introspection mode.
Two questions:
1) How to resolve the following error?
2) Please help me how to achieve (un)marshalling without descriptors.
I got the following error:
java.lang.NullPointerException
at
org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl.resolve(XMLClassDescriptorResolverImpl.java:194)
at
org.exolab.castor.xml.Marshaller.getClassDescriptor(Marshaller.java:2277)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1080)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:838)
at
org.springframework.oxm.castor.CastorMarshaller.marshal(CastorMarshaller.java:365)
at
org.springframework.oxm.castor.CastorMarshaller.marshalSaxHandlers(CastorMarshaller.java:219)
at
org.springframework.oxm.castor.CastorMarshaller.marshalDomNode(CastorMarshaller.java:213)
at
org.springframework.oxm.AbstractMarshaller.marshalDomResult(AbstractMarshaller.java:192)
at
org.springframework.oxm.AbstractMarshaller.marshal(AbstractMarshaller.java:88)
at
org.springframework.ws.support.MarshallingUtils.marshal(MarshallingUtils.java:84)
at
org.springframework.ws.client.core.WebServiceTemplate$1.doWithMessage(WebServiceTemplate.java:268)
at
org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:404)
at
org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:265)
at
org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:253)
at
org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:245)
at
com.tier.uiConnect.common.webServices.business.impl.JournalLoadServiceImpl.journalLoadTemplate(JournalLoadServiceImpl.java:36)
at
com.tier.uiConnect.common.webServices.business.impl.JournalLoadServiceImpl.callWService(JournalLoadServiceImpl.java:72)
at
com.tier.uiConnect.common.webServices.business.TestWebService.testJournalWebService(TestWebService.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
--
View this message in context:
http://www.nabble.com/Marshalling-using-Castor-and-Spring-tp20797925p20797925.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email