You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2019/04/30 09:14:00 UTC

[jira] [Resolved] (CXF-8002) Upgrading to latest version's apache 3.3.3 , having exception with cxf-protobuf

     [ https://issues.apache.org/jira/browse/CXF-8002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved CXF-8002.
--------------------------------------
    Resolution: Incomplete

> Upgrading to latest version's apache 3.3.3 , having exception with cxf-protobuf
> -------------------------------------------------------------------------------
>
>                 Key: CXF-8002
>                 URL: https://issues.apache.org/jira/browse/CXF-8002
>             Project: CXF
>          Issue Type: Bug
>          Components: Bus
>    Affects Versions: 3.3.0
>            Reporter: Rajesh
>            Priority: Major
>         Attachments: Exception-trace.txt
>
>
> Hi Team,
>   We are in the process of upgrading to latest apache-cxf framework , We use cxf in combination with google protocol buffer. I have update the cxf dependencies to 3.3.0
> and using the latest following dependency
> <{color:#000080}dependency{color}>
>  <{color:#000080}groupId{color}>com.google.protobuf</{color:#000080}groupId{color}>
>  <{color:#000080}artifactId{color}>protobuf-java</{color:#000080}artifactId{color}>
>  <{color:#000080}version{color}>3.6.1</{color:#000080}version{color}>
> </{color:#000080}dependency{color}>
> <{color:#000080}dependency{color}>
>  <{color:#000080}groupId{color}>com.google.protobuf</{color:#000080}groupId{color}>
>  <{color:#000080}artifactId{color}>protobuf-java-util</{color:#000080}artifactId{color}>
>  <{color:#000080}version{color}>3.6.1</{color:#000080}version{color}>
> </{color:#000080}dependency{color}>
> The current dependency on cxf-protobuf is as follows
> <{color:#000080}dependency{color}>
>  <{color:#000080}groupId{color}>com.google.code.cxf.protobuf</{color:#000080}groupId{color}>
>  <{color:#000080}artifactId{color}>cxf-protobuf</{color:#000080}artifactId{color}>
>  <{color:#000080}version{color}>0.3</{color:#000080}version{color}>
> </{color:#000080}dependency{color}>
> Spring framework version is
> 5.1.3.RELEASE[^Exception-trace.txt]
>  
> Looking at the exception trace that i am getting i should be going for an higher version of  cxf-protobuf dependency .i didn't find any higher version of the above dependency in any maven repository. Can you please guide me where or how can i get the higher version , also is protobuf-java supported with CXF anymore. 
> Attached the stacktrace
>   The exception happens here in the class
> {code:java}
> // code placeholder
> {code}
> {color:#000080}package {color}com.google.code.cxf.protobuf.ProtobufQueryHandler
> {code:java}
> // code placeholder
> @PostConstruct
> void registerWithQueryHandlerRegistry() {
> QueryHandlerRegistry queryHandlerRegistry = (QueryHandlerRegistry)this.bus.getExtension(QueryHandlerRegistry.class);
> queryHandlerRegistry.registerHandler(new ProtobufQueryHandler());
> }
> {code}
> When the bus tries to getExtension of QueryHandlerRegistry it fail and returns null causing nullpointer Exception.
>  
> {code:java}
> // code placeholder
> <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl">
>     <property name="inInterceptors">
>         <list>
>             <ref bean="logInbound"/>
>         </list>
>     </property>
>     <property name="outInterceptors">
>         <list>
>             <ref bean="logOutbound"/>
>         </list>
>     </property>
>     <property name="outFaultInterceptors">
>         <list>
>             <ref bean="logOutbound"/>
>         </list>
>     </property>
> </bean>
> {code}
>  
> You can also guide me how to register extension for the bus in xml configuration .Currently the configuration is as follows
>  
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)