On 29/07/2019 13:03, Vikram Darsi wrote:
> Hi Team
> 
>  
> 
> Distribution : ODL Neon SR1
> 
>  
> 
> Installed “odl-netconf-all” feature and ran “service:list”
> 
>  
> 
> [org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory,
> org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer]
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> 
> service.id = 224
> 
> osgi.service.blueprint.compname = mappingCodec
> 
> service.bundleid = 125
> 
> service.scope = bundle
> 
> type = default
> 
> Provided by :
> 
> org.opendaylight.controller.sal-binding-broker-impl (125)
> 
>  
> 
> [org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory,
> org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer]
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> 
> service.id = 169
> 
> osgi.service.blueprint.compname = mappingCodec
> 
> service.bundleid = 144
> 
> service.scope = bundle
> 
> type = default
> 
> Provided by :
> 
> mdsal-binding-dom-adapter (144)
> 
>  
> 
>  
> 
> Is this expected?

Yes.

> When below statement is executed, we are getting ClassCastException
> 
>  
> 
> BindingNormalizedNodeCodecRegistrycodecReg=
> ((BindingToNormalizedNodeCodec)/codecRegistry/).getCodecRegistry();

Yes, obviously. You are attempting to cast a service reference to an
implementation class -- I suspect that blows up on the reference being a
proxy. Why would you even need that cast?

Regards,
Robert

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to