OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

The java cilent api got a bug

Open fanyo190 opened this issue 1 year ago • 2 comments

When I use the Java Client API of OpenMetadata 1.3.0,I got a bug as fellow:

Caused by: java.lang.NullPointerException: Cannot invoke "org.openmetadata.client.ApiClient.getObjectMapper()" because "this.apiClient" is null at org.openmetadata.client.gateway.OpenMetadata.initClient(OpenMetadata.java:55) at org.openmetadata.client.gateway.OpenMetadata.(OpenMetadata.java:43) at org.springblade.bigdata.dataassets.configuration.GatewayConfig.buildMetadataGateway(GatewayConfig.java:37) at org.springblade.bigdata.dataassets.configuration.GatewayConfig$$EnhancerBySpringCGLIB$$cde01ee8.CGLIB$buildMetadataGateway$8() at org.springblade.bigdata.dataassets.configuration.GatewayConfig$$EnhancerBySpringCGLIB$$cde01ee8$$FastClassBySpringCGLIB$$6891da4e.invoke() at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) at org.springblade.bigdata.dataassets.configuration.GatewayConfig$$EnhancerBySpringCGLIB$$cde01ee8.buildMetadataGateway() at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 51 common frames omitted

fanyo190 avatar Feb 07 '24 03:02 fanyo190

the source of 1.3.0: image the source of 1.2.5: image

fanyo190 avatar Feb 07 '24 03:02 fanyo190

I don't know if this is helpful but I have the same issue. Thank you.

stlkielbasa avatar Feb 14 '24 19:02 stlkielbasa

Fixed

harshach avatar Jun 23 '24 18:06 harshach