You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating Object: tutorialUser Exception in thread "main" java.lang.IllegalStateException: InjectionManagerFactory not found. at org.glassfish.jersey.internal.inject.Injections.lambda$lookupInjectionManagerFactory$0(Injections.java:74) at java.util.Optional.orElseThrow(Optional.java:290) at org.glassfish.jersey.internal.inject.Injections.lookupInjectionManagerFactory(Injections.java:74) at org.glassfish.jersey.internal.inject.Injections.createInjectionManager(Injections.java:44) at org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:412) at org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:317) at org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:807) at org.glassfish.jersey.client.ClientRequest.getConfiguration(ClientRequest.java:262) at org.glassfish.jersey.client.JerseyInvocation.validateHttpMethodAndEntity(JerseyInvocation.java:119) at org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:88) at org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:84) at org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:75) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:421) at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:327) at com.solace.labs.sempclient.lib.ApiClient.invokeAPI(ApiClient.java:682) at com.solace.labs.sempclient.api.MsgVpnApi.createMsgVpnClientUsernameWithHttpInfo(MsgVpnApi.java:1876) at com.solace.labs.sempclient.api.MsgVpnApi.createMsgVpnClientUsername(MsgVpnApi.java:1823) at com.solace.samples.BasicOperationsSample.createObjectUsingPost(BasicOperationsSample.java:74) at com.solace.samples.BasicOperationsSample.main(BasicOperationsSample.java:166)
Bug Description
Exception triggers when running samples:
Creating Object: tutorialUser Exception in thread "main" java.lang.IllegalStateException: InjectionManagerFactory not found. at org.glassfish.jersey.internal.inject.Injections.lambda$lookupInjectionManagerFactory$0(Injections.java:74) at java.util.Optional.orElseThrow(Optional.java:290) at org.glassfish.jersey.internal.inject.Injections.lookupInjectionManagerFactory(Injections.java:74) at org.glassfish.jersey.internal.inject.Injections.createInjectionManager(Injections.java:44) at org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:412) at org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:317) at org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:807) at org.glassfish.jersey.client.ClientRequest.getConfiguration(ClientRequest.java:262) at org.glassfish.jersey.client.JerseyInvocation.validateHttpMethodAndEntity(JerseyInvocation.java:119) at org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:88) at org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:84) at org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:75) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:421) at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:327) at com.solace.labs.sempclient.lib.ApiClient.invokeAPI(ApiClient.java:682) at com.solace.labs.sempclient.api.MsgVpnApi.createMsgVpnClientUsernameWithHttpInfo(MsgVpnApi.java:1876) at com.solace.labs.sempclient.api.MsgVpnApi.createMsgVpnClientUsername(MsgVpnApi.java:1823) at com.solace.samples.BasicOperationsSample.createObjectUsingPost(BasicOperationsSample.java:74) at com.solace.samples.BasicOperationsSample.main(BasicOperationsSample.java:166)
Fix:
Add the following dependency in
build.gradle
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"
Expected Behavior
No exception when running sample
Steps to Reproduce
Build repo and then run sample:
./basicOperationsSample
Solace Product
Other
Solace Broker version
Any
Solace API
Java
Solace API version
Any
The text was updated successfully, but these errors were encountered: