Issue while developing DSUB profile using IPF

157 views
Skip to first unread message

vidyasingh

unread,
Oct 26, 2010, 12:49:21 PM10/26/10
to ipf-user, vidya...@ge.com
Hi,

I am implementing DSUB profile using IPF. My application is running on
JBOSS 5 and JDK 1.6.

I am getting the following exception:

ct 26, 2010 7:54:17 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://docs.oasis-open.org/wsn/bw-2}WS-
BrokeredNotificationService from WSDL: wsdl/Subscribe.wsdl
19:54:17,100 INFO [ReflectionServiceFactoryBean] Creating Service
{http://docs.oasis-open.org/wsn/bw-2}WS-BrokeredNotificationService
from WSDL: wsdl/Subscribe.wsdl
19:54:21,771 INFO [STDOUT] 26-Oct 19:54:21.771 ERROR
(http-0.0.0.0-9080-1) [AbstractMessageHandler] loader constraint
violation: when resolving overridden method
"org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addMtomAttachment(Ljavax/
activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/
String;" the class loader (instance of org/jboss/classloader/spi/base/
BaseClassLoader) of the current class, org/apache/cxf/jaxb/attachment/
JAXBAttachmentMarshaller, and its superclass loader (instance of
<bootloader>), have different Class objects for the type javax/
activation/DataHandler used in the signature
java.lang.LinkageError: loader constraint violation: when resolving
overridden method
"org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addMtomAttachment(Ljavax/
activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/
String;" the class loader (instance of org/jboss/classloader/spi/base/
BaseClassLoader) of the current class, org/apache/cxf/jaxb/attachment/
JAXBAttachmentMarshaller, and its superclass loader (instance of
<bootloader>), have different Class objects for the type javax/
activation/DataHandler used in the signature
at
org.apache.cxf.jaxb.JAXBDataBase.getAttachmentMarshaller(JAXBDataBase.java:
82)
at
org.apache.cxf.jaxb.io.DataWriterImpl.createMarshaller(DataWriterImpl.java:
127)
at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:
169)
at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:
111)
at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:
68)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
at
org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:
146)
at org.apache.camel.impl.ProducerCache
$1.doInProducer(ProducerCache.java:179)
at org.apache.camel.impl.ProducerCache
$1.doInProducer(ProducerCache.java:161)
at
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:
146)
at
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:
160)
at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:116)
at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:
102)
at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:
106)
at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:
123)
at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:
271)
at
com.gehcit.cp.notificationinbox.ipf.notify.processor.SubscriberBO.process(Unknown
Source)
at
com.gehcit.cp.ccd.bo.CCDImportFromDRRMessageHandler.processTransactionRequest(CCDImportFromDRRMessageHandler.java:
82)
at
com.gehcit.cp.ccd.bo.CCDImportFromDRRMessageHandler.processTransactionRequest(CCDImportFromDRRMessageHandler.java:
1)
at
com.gehcit.cp.service.message.handler.AbstractMessageHandler.process(AbstractMessageHandler.java:
87)
at
com.gehcit.cp.security.AbstractMessageHandlerForProxyUser.process(AbstractMessageHandlerForProxyUser.java:
52)
at
com.gehcit.cp.security.AbstractMessageHandlerForProxyUser.process(AbstractMessageHandlerForProxyUser.java:
1)
at
com.gehcit.cp.service.handler.ServiceMessageProcessor.run(ServiceMessageProcessor.java:
65)
at
com.gehcit.cp.service.handler.MessageHandlerDelegator.handleMessage(MessageHandlerDelegator.java:
66)
at
com.gehcit.cp.service.handler.AbstractServiceHandler.forwardToNextHandler(AbstractServiceHandler.java:
57)
at
com.gehcit.cp.service.handler.RequestUnmarshaller.handleMessage(RequestUnmarshaller.java:
60)
at
com.gehcit.cp.service.handler.AbstractServiceHandler.forwardToNextHandler(AbstractServiceHandler.java:
57)
at
com.gehcit.cp.service.handler.ServiceSecurityHandler.handleMessage(ServiceSecurityHandler.java:
148)
at
com.gehcit.cp.service.handler.AbstractServiceHandler.forwardToNextHandler(AbstractServiceHandler.java:
57)
at
com.gehcit.cp.service.handler.VersionValidator.handleMessage(VersionValidator.java:
30)
at
com.gehcit.cp.service.handler.ServiceHandlerChain.execute(ServiceHandlerChain.java:
165)
at
com.gehcit.cp.ws.CPWebServiceImpl.processService(CPWebServiceImpl.java:
75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:
108)
at
org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:
221)
at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:
468)
at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:
293)
at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:
203)
at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:
129)
at
org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:
85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:
96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
235)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
190)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
92)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:
126)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
70)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
158)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
330)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
829)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:619)


---------------------------

The piece of code which generates this error is:

Exchange exchange = new
DefaultExchange(AppContext.getCamelContext());
MessageContentsList list = new MessageContentsList();
list.add(subscribeObj);
exchange.getIn().setBody(list);

exchange.getIn().setHeader(org.apache.cxf.headers.Header.HEADER_LIST,
soapHeaders);
ProducerTemplate producertemplate =
AppContext.getProducerTemplate();
Object response =
producertemplate.requestBody("cxf:bean:subscribeClientEndpoint",
exchange);

Can anyone help me resolve this issue.

Thanks,
Vidya

Martin Krasser

unread,
Oct 27, 2010, 12:55:42 AM10/27/10
to ipf-...@googlegroups.com
Hi Vidya,

looks like you have different versions of activation.jar on your
classpath and that these are loaded by different classloaders.

Am 26.10.10 18:49, schrieb vidyasingh:


--
Martin Krasser

blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz

vidyasingh

unread,
Oct 28, 2010, 2:05:49 AM10/28/10
to ipf-user, vidya...@ge.com

Hi Martin,

That resolved the issue. Thanks for your help. Now I am stuck with
another exception, given below. I already have the camel-
core-2.2.0.jar file in my path.

Oct 28, 2010 11:31:21 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://docs.oasis-open.org/wsn/bw-2}WS-
BrokeredNotificationService from WSDL: wsdl/Subscribe.wsdl
11:31:21,123 INFO [ReflectionServiceFactoryBean] Creating Service
Oct 28, 2010 11:31:24 AM org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNING: Interceptor for {http://docs.oasis-open.org/wsn/bw-2}WS-
BrokeredNotificationService#{http://docs.oasis-open.org/wsn/bw-2}
Subscribe has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Marshalling Error: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
246)
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.]
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
328)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:
254)
at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:
75)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:
531)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
221)
... 63 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:
242)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:
257)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:
649)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl
$1.serializeBody(ElementBeanInfoImpl.java:151)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl
$1.serializeBody(ElementBeanInfoImpl.java:185)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:
305)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:
312)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:
71)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:
490)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
325)
... 67 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInf11:31:24,246
WARNING [PhaseInterceptorChain] Interceptor for {http://docs.oasis-
open.org/wsn/bw-2}WS-BrokeredNotificationService#{http://docs.oasis-
open.org/wsn/bw-2}Subscribe has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Marshalling Error: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
246)
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.]
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
328)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:
254)
at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:
75)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:
531)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
221)
... 63 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:
242)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:
257)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:
649)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl
$1.serializeBody(ElementBeanInfoImpl.java:151)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl
$1.serializeBody(ElementBeanInfoImpl.java:185)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:
305)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:
312)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:
71)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:
490)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
325)
... 67 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:
566)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:
644)
... 74 more
o(JAXBContextImpl.java:566)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:
644)
... 74 more
11:31:24,402 INFO [STDOUT] 28-Oct 11:31:24.402 ERROR
(http-0.0.0.0-9080-1) [AbstractMessageHandler]
org.apache.cxf.interceptor.Fault: Marshalling Error: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
org.apache.camel.RuntimeCamelException:
org.apache.cxf.interceptor.Fault: Marshalling Error: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:
1055)
at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:118)
Caused by: org.apache.cxf.interceptor.Fault: Marshalling Error: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
246)
... 52 more
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.]
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
328)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:
254)
at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:
75)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:
531)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
221)
... 63 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:
242)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:
257)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:
649)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl
$1.serializeBody(ElementBeanInfoImpl.java:151)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl
$1.serializeBody(ElementBeanInfoImpl.java:185)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:
305)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:
312)
at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:
71)
at com.sun.xml.bind.v2.runtime.XMLS
11:31:24,402 INFO [STDOUT] erializer.childAsRoot(XMLSerializer.java:
490)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
325)
... 67 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.camel.impl.DefaultExchange nor any of its super class is
known to this context.
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:
566)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:
644)
... 74 more

Regards,
Vidya

Dmytro Rud

unread,
Oct 28, 2010, 3:00:11 AM10/28/10
to ipf-...@googlegroups.com
Hi,

you seem to have a DefaultExchange instance in message body.

Best Regards,
Dmytro


2010/10/28 vidyasingh <vidyas...@gmail.com>:

vidyasingh

unread,
Oct 28, 2010, 6:51:39 AM10/28/10
to ipf-user
Hi Dmyto,

I have made the changes and i m sending the object of subscribe class
in the code. This is the code that I have:

Subscribe subscribeObj = new Subscribe();
FilterType filter = new FilterType();
subscribeObj.setFilter(populateFilter(filter,
internalPatientID,externalPatientID));
subscribeObj.setConsumerReference(populateConsumerRef());
subscribeObj.setInitialTerminationTime(populateTerminationTime(subscribeObj));
List<SoapHeader> soapHeaders = createSoapHeader();
Exchange exchange = new DefaultExchange(AppContext.getCamelContext());
MessageContentsList list = new MessageContentsList();
list.add(subscribeObj);
exchange.getIn().setBody(list);
exchange.getIn().setHeader(org.apache.cxf.headers.Header.HEADER_LIST,
soapHeaders);
ProducerTemplate producertemplate = AppContext.getProducerTemplate();
Object response =
producertemplate.requestBody("cxf:bean:subscribeClientEndpoint",
subscribeObj);

This is resulting in the following exception. Please help me resolve
this.

15:30:43,664 INFO [ReflectionServiceFactoryBean] Creating Service
Oct 28, 2010 3:30:43 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://docs.oasis-open.org/wsn/bw-2}WS-
BrokeredNotificationService from WSDL: wsdl/Subscribe.wsdl
Oct 28, 2010 3:31:04 PM org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNING: Interceptor for {http://docs.oasis-open.org/wsn/bw-2}WS-
BrokeredNotificationService#{http://docs.oasis-open.org/wsn/bw-2}
Subscribe has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Marshalling Error: class
org.oasis_open.docs.wsn.b_2.Subscribe nor any of its super class is
org.oasis_open.docs.wsn.b_2.Subscribe nor any of its super class is
known to this context.]
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
328)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:
254)
at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:
75)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:
531)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
221)
... 63 more
Caused by: javax.xml.bind.JAXBException: class
org.oasis_open.docs.wsn.b_2.Subscribe nor any of its super class is
org.oasis_open.docs.wsn.b_2.Subscribe nor any of its super class is
known to this context.
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:
566)
at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:
644)
... 74 more
15:31:04,438 WARNING [PhaseInterceptorChain] Interceptor for {http://
docs.oasis-open.org/wsn/bw-2}WS-BrokeredNotificationService#{http://
docs.oasis-open.org/wsn/bw-2}Subscribe has thrown exception, unwinding
now
org.apache.cxf.interceptor.Fault: Marshalling Error: class
org.oasis_open.docs.wsn.b_2.Subscribe nor any of its super class is
org.oasis_open.docs.wsn.b_2.Subscribe nor any of its super class is
known to this context.]
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:
328)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:
254)
at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:
75)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:
531)
at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:
221)
... 63 more
Regards,
Vidya

Do you see any issue with this? I use jboss 5.1 and jdk 1.6

On Oct 28, 12:00 pm, Dmytro Rud <dmytro....@googlemail.com> wrote:
> Hi,
>
> you seem to have a DefaultExchange instance in message body.
>
> Best Regards,
> Dmytro
>
> 2010/10/28 vidyasingh <vidyasing...@gmail.com>:
> ...
>
> read more »

Dmytro Rud

unread,
Oct 28, 2010, 7:04:15 AM10/28/10
to ipf-...@googlegroups.com
Hi,

1. How is the endpoint "cxf:bean:subscribeClientEndpoint" configured
(Spring and WSDL documents)?
2. How is the class org.oasis_open.docs.wsn.b_2.Subscribe used in the
service endpoint interface (portType stub)?
3. Are you sure that this issue is related to the IPF?

Best Regards,
Dmytro


2010/10/28 vidyasingh <vidyas...@gmail.com>:

vidyasingh

unread,
Oct 28, 2010, 1:03:32 PM10/28/10
to ipf-user

Hi Dmyto,

This is how the endpoint is configured in applicationcontext.xml

<cxf:cxfEndpoint id="subscribeClientEndpoint" address="http://
3.204.42.2:8181/pxsdemo/unsecured_webservices/NotificationBroker/
Subscribe"
wsdlURL="wsdl/Subscribe.wsdl"
serviceClass="org.oasis_open.docs.wsn.bw_2.NotificationProducer"
endpointName="s:NotificationProducer"
serviceName="s:WS-BrokeredNotificationService"
xmlns:s="http://docs.oasis-open.org/wsn/bw-2">
<cxf:properties>
<entry key="dataFormat" value="POJO" />
</cxf:properties>
<cxf:features>
<wsa:addressing usingAddressingAdvisory="true"
xmlns:wsa="http://cxf.apache.org/ws/addressing" />
</cxf:features>
</cxf:cxfEndpoint>

I have generated the classes for the subscribe.wsdl and placed it.
I am not sure if the issue is related to IPF.
Is there anything extra that I need to do to load the Subscribe class
as its not found at runtime ( I generated this class from
subscribe.wsdl)?

Regards,
Vidya

On Oct 28, 4:04 pm, Dmytro Rud <dmytro....@googlemail.com> wrote:
> Hi,
>
> 1. How is the endpoint "cxf:bean:subscribeClientEndpoint" configured
> (Spring and WSDL documents)?
> 2. How is the class org.oasis_open.docs.wsn.b_2.Subscribe used in the
> service endpoint interface (portType stub)?
> 3. Are you sure that this issue is related to the IPF?
>
> Best Regards,
> Dmytro
>
> 2010/10/28 vidyasingh <vidyasing...@gmail.com>:
> ...
>
> read more »

Dmytro Rud

unread,
Oct 28, 2010, 6:18:10 PM10/28/10
to ipf-...@googlegroups.com
Hi,

try to add annotation
@XmlSeeAlso({org.oasis_open.docs.wsn.b_2.Subscribe.class})
to the generated service endpoint interface.

What this annotation means:
http://download.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSeeAlso.html

This does not relate to the IPF.

Best Regards,
Dmytro


2010/10/28 vidyasingh <vidyas...@gmail.com>:

Boris Stanojević

unread,
Apr 29, 2013, 3:49:19 AM4/29/13
to ipf-...@googlegroups.com
Hi Edgardo,

in short, yes. Nevertheless I would suggest some in-depth
jar-dependency and classloading analysis of your running environment
firstly to get more understanding why this happens,

Regards,
Boris

2013/4/26 Edgardo Quiroz <edgardo....@gmail.com>
>
> So, If I get the same error, I need to delete a specific activation jar?
> --
> You received this message because you are subscribed to the Google Groups "ipf-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Edgardo Quiroz

unread,
Apr 29, 2013, 10:26:18 AM4/29/13
to ipf-...@googlegroups.com, stanojev...@googlemail.com
thanks Boris
Reply all
Reply to author
Forward
0 new messages