Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
3.3.0
-
None
-
None
-
Unknown
Description
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
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.6.1</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java-util</artifactId>
<version>3.6.1</version>
</dependency>
The current dependency on cxf-protobuf is as follows
<dependency>
<groupId>com.google.code.cxf.protobuf</groupId>
<artifactId>cxf-protobuf</artifactId>
<version>0.3</version>
</dependency>
Spring framework version is
5.1.3.RELEASEException-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 placeholder
package com.google.code.cxf.protobuf.ProtobufQueryHandler
// code placeholder @PostConstruct void registerWithQueryHandlerRegistry() { QueryHandlerRegistry queryHandlerRegistry = (QueryHandlerRegistry)this.bus.getExtension(QueryHandlerRegistry.class); queryHandlerRegistry.registerHandler(new ProtobufQueryHandler()); }
When the bus tries to getExtension of QueryHandlerRegistry it fail and returns null causing nullpointer Exception.
// 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>
You can also guide me how to register extension for the bus in xml configuration .Currently the configuration is as follows