Can you also provide the resulting soap message? I'm very confused by this. "corticon.CorticonResponse is not known to this context"
I cannot see how a CorticonResponse object would be created. I see a CorticonResponseType, but not a CorticonResponse. Thus, I'm not sure what's going on with it. Dan On Tuesday, February 21, 2012 4:26:15 AM srinivas thallapalli wrote: > Hi All, > > On invocation of my webservice using the attached code, I am getting the > exceptions from JAXB while unmarshalling of response SOAP message, as > follows > I have attached the wsdl also. can anybody please help me to fix this > issue?. I am using CXF 2.4.X version. > > http://cxf.547215.n5.nabble.com/file/n5502040/DummyClient.java > DummyClient.java > http://cxf.547215.n5.nabble.com/file/n5502040/CorticonGeneric.wsdl > CorticonGeneric.wsdl > > > Thanks, > > > org.apache.cxf.interceptor.Fault: Unmarshalling Error: > corticon.CorticonResponse is not known to this context > at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:79 > 8) at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:63 > 2) at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:156) at > org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralI > nInterceptor.java:201) at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain > .java:263) at > org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:771) at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse > Internal(HTTPConduit.java:1600) at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse > (HTTPConduit.java:1485) at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPCond > uit.java:1393) at > org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStr > eam.java:47) at > org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188) at > org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at > org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:640) at > org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInter > ceptor.handleMessage(MessageSenderInterceptor.java:62) at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain > .java:263) at > org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:519) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:449) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:352) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:304) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324) at > com.savvion.webservice.cxf.client.DummyClient.invokeCorticon(DummyClient.jav > a:77) at > com.savvion.webservice.cxf.client.DummyClient.test(DummyClient.java:38) at > com.savvion.webservice.cxf.client.DummyClient.main(DummyClient.java:94) > Caused by: javax.xml.bind.JAXBException: corticon.CorticonResponse is not > known to this context > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java > :625) at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBeanInfo(Unmars > hallerImpl.java:535) at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unmarsha > llerImpl.java:339) at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:76 > 8) ... 22 more > org.apache.cxf.interceptor.Fault: Unmarshalling Error: > corticon.CorticonResponse is not known to this context > at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:79 > 8) at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:63 > 2) at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:156) at > org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralI > nInterceptor.java:201) at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain > .java:263) at > org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:771) at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse > Internal(HTTPConduit.java:1600) at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse > (HTTPConduit.java:1485) at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPCond > uit.java:1393) at > org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStr > eam.java:47) at > org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188) at > org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at > org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:640) at > org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInter > ceptor.handleMessage(MessageSenderInterceptor.java:62) at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain > .java:263) at > org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:519) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:449) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:352) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:304) at > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324) at > com.savvion.webservice.cxf.client.DummyClient.invokeCorticon(DummyClient.jav > a:77) at > com.savvion.webservice.cxf.client.DummyClient.test(DummyClient.java:38) at > com.savvion.webservice.cxf.client.DummyClient.main(DummyClient.java:94) > Caused by: javax.xml.bind.JAXBException: corticon.CorticonResponse is not > known to this context > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java > :625) at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBeanInfo(Unmars > hallerImpl.java:535) at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unmarsha > llerImpl.java:339) at > org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:76 > 8) ... 22 more > Exception in thread "main" java.lang.RuntimeException: Invocation failed > at > com.savvion.webservice.cxf.client.DummyClient.invokeCorticon(DummyClient.jav > a:84) at > com.savvion.webservice.cxf.client.DummyClient.test(DummyClient.java:38) at > com.savvion.webservice.cxf.client.DummyClient.main(DummyClient.java:94) > > > > > > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Unmarshalling-exception-from-CXF-respponse- > tp5502040p5502040.html Sent from the cxf-user mailing list archive at > Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
