Hi,

Vuppala wrote:
> Thanks for Quick response.
> 
> I have deleted .cdr file and descriptors folder from my project and I tried
> to call the webservice after populating the pojo:
> webserviceTemplate.marshalSendAndReceive(MyPOJO);
> 
> And no luck,I got the same error.
> 
> I have Spring ws modules 1.0.4 versions , castor 1.2-xml.jar in my lib
Did you try to switch to Castor 1.3rc1 as suggested by Joachim ?
> folder.
> 
> 
> My SpringConfig:
> <bean id="marshaller"
>               class="org.springframework.oxm.castor.CastorMarshaller">
>       </bean>
>       <bean id="webserviceTemplate"
>               class="org.springframework.ws.client.core.WebServiceTemplate">
>               <property name="messageFactory">
>                       <bean
>                               
> class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />
>               </property>
>               <property name="messageSender">
>                       <bean id="messageSender"
>                       
> class="org.springframework.ws.transport.http.HttpUrlConnectionMessageSender"
> />
>               </property>
>               <property name="defaultUri" value="${ERPServicesEndPointUrl}" />
>               <property name="marshaller" ref="marshaller" />
>               <property name="unmarshaller" ref="marshaller" />
> 
>       </bean>
> 
> Please help me. I appreciate your help.
> 
> Thanks in advance,
> Vuppala
> 
> 
> Werner Guttmann-6 wrote:
>> Hi,
>>
>> Vuppala wrote:
>>> 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?
>> That's hard, as there too little information for us to answer that
>> question. How does e.g. your Spring application context look like ? And
>> what version of spring-ws are you using ?
>>
>>> 2) Please help me how to achieve (un)marshalling without descriptors.
>> Quite simply, simply do *not* include/compile the generated descriptor
>> classes with your project setup. As such, Castor will fall-back to using
>> introspection mode.
>>
>>> 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)
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to