[
https://issues.apache.org/activemq/browse/SMX4-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet updated SMX4-230:
---------------------------------
Description:
in the org.apache.servicemix.cxf.transport.nmr.NMRDestination class
{code}
public NMRDestination(EndpointInfo info, NMR nmr) {
super(getTargetReference(info, null), info);
this.nmr = nmr;
this.properties = new HashMap<String, Object>();
this.properties.put(Endpoint.NAME, info.getName().toString());
this.properties.put(Endpoint.SERVICE_NAME, info.getService().getName());
this.properties.put(Endpoint.INTERFACE_NAME,
info.getInterface().getName());
}
public void activate() {
nmr.getEndpointRegistry().register(this, properties);
}
{code}
info.getService().getName() and info.getInterface().getName() return QName
instances
In the DeliveryChannelImpl(line 161)
There is an entry
{code}
Map<String, ?> props = context.getNmr().getEndpointRegistry().getProperties(ep);
String strSvcName = (String) props.get(Endpoint.SERVICE_NAME);
{code}
eventually I get
{code}
java.lang.ClassCastException: javax.xml.namespace.QName
at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.getMessageExchange(DeliveryChannelImpl.java:161)
at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.accept(DeliveryChannelImpl.java:128)
{code}
was:
in the org.apache.servicemix.cxf.transport.nmr.NMRDestination class
public NMRDestination(EndpointInfo info, NMR nmr) {
super(getTargetReference(info, null), info);
this.nmr = nmr;
this.properties = new HashMap<String, Object>();
this.properties.put(Endpoint.NAME, info.getName().toString());
this.properties.put(Endpoint.SERVICE_NAME, info.getService().getName());
this.properties.put(Endpoint.INTERFACE_NAME,
info.getInterface().getName());
}
public void activate() {
nmr.getEndpointRegistry().register(this, properties);
}
info.getService().getName() and info.getInterface().getName() return QName
instances
In the DeliveryChannelImpl(line 161)
There is an entry
Map<String, ?> props = context.getNmr().getEndpointRegistry().getProperties(ep);
String strSvcName = (String) props.get(Endpoint.SERVICE_NAME);
eventually I get
java.lang.ClassCastException: javax.xml.namespace.QName
at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.getMessageExchange(DeliveryChannelImpl.java:161)
at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.accept(DeliveryChannelImpl.java:128)
> Compatibility issue in the org.apache.servicemix.cxf.transport.nmr project
> --------------------------------------------------------------------------
>
> Key: SMX4-230
> URL: https://issues.apache.org/activemq/browse/SMX4-230
> Project: ServiceMix 4
> Issue Type: Bug
> Reporter: Volodymyr Zhabiuk
>
> in the org.apache.servicemix.cxf.transport.nmr.NMRDestination class
> {code}
> public NMRDestination(EndpointInfo info, NMR nmr) {
> super(getTargetReference(info, null), info);
> this.nmr = nmr;
> this.properties = new HashMap<String, Object>();
> this.properties.put(Endpoint.NAME, info.getName().toString());
> this.properties.put(Endpoint.SERVICE_NAME,
> info.getService().getName());
> this.properties.put(Endpoint.INTERFACE_NAME,
> info.getInterface().getName());
> }
> public void activate() {
> nmr.getEndpointRegistry().register(this, properties);
> }
> {code}
> info.getService().getName() and info.getInterface().getName() return QName
> instances
> In the DeliveryChannelImpl(line 161)
> There is an entry
> {code}
> Map<String, ?> props =
> context.getNmr().getEndpointRegistry().getProperties(ep);
> String strSvcName = (String) props.get(Endpoint.SERVICE_NAME);
> {code}
> eventually I get
> {code}
> java.lang.ClassCastException: javax.xml.namespace.QName
> at
> org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.getMessageExchange(DeliveryChannelImpl.java:161)
> at
> org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.accept(DeliveryChannelImpl.java:128)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.