You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2009/02/25 11:23:59 UTC
[jira] Work started: (SMX4-230) Compatibility issue in the
org.apache.servicemix.cxf.transport.nmr project
[ https://issues.apache.org/activemq/browse/SMX4-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on SMX4-230 started by Freeman Fang.
> 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
> Assignee: Freeman Fang
>
> 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.