org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient() throws java.lang.reflect.UndeclaredThrowableException with Fuse 7.8 on karaf

Solution Verified - Updated -

Issue

It works with Fuse 7.7. But with Fuse 7.7, org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient() throws java.lang.reflect.UndeclaredThrowableException.

Caused by: java.lang.NoSuchMethodException: com.sun.codemodel.internal.JCodeModel.build(java.lang.Object)
at java.lang.Class.getMethod(Class.java:1786) ~[?:1.8.0_275]
at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:84) ~[?:?]
at com.sun.proxy.$Proxy108.build(Unknown Source) ~[?:?]
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:373) ~[?:?]
... 50 more

Environment

  • Red Hat Fuse
    • 7.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content