<div dir="ltr">Hi guys,<div><br></div><div>Just asking if anyone here tried using the library from Berico Technologies from https://github.com/Berico-Technologies/RabbidManagement. I tried using it but encounters the error below. It seems to me that there is null pointer exception somewhere. I tried to call the initialize explicitly but still got the error. Do I need to add on my project other than dependency and repositories on my pom.xml?</div><div><br></div><div>   test code:</div><div><div>   RabbitMgmtService service = RabbitMgmtService.builder().build();</div><div>        //service.initialize();</div><div>        service.queues().create(new Queue("test-queue"));</div><div>        Assert.assertEquals("test-queue", service.queues().get("test-queue").get().getName());</div></div><div><br></div><div><div>Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.169 sec <<< FAILURE! - in com.transport.implementation.ManagementClientTest</div><div>QueueUsageTest(com.trendmicro.grid.transport.implementation.ManagementClientTest)  Time elapsed: 0.14 sec  <<< ERROR!</div><div>java.lang.ExceptionInInitializerError: null</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at java.net.URLClassLoader$1.run(URLClassLoader.java:366)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at java.net.URLClassLoader$1.run(URLClassLoader.java:355)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at java.security.AccessController.doPrivileged(Native Method)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at java.net.URLClassLoader.findClass(URLClassLoader.java:354)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.ClassLoader.loadClass(ClassLoader.java:423)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at java.lang.ClassLoader.loadClass(ClassLoader.java:356)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at java.lang.Class.forName0(Native Method)</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>at java.lang.Class.forName(Class.java:188)</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:114)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:207)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at com.sun.jersey.core.header.MediaTypes.<clinit>(MediaTypes.java:65)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:182)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:175)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>at com.sun.jersey.api.client.Client.init(Client.java:343)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at com.sun.jersey.api.client.Client.access$000(Client.java:119)</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>at com.sun.jersey.api.client.Client$1.f(Client.java:192)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at com.sun.jersey.api.client.Client$1.f(Client.java:188)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>at com.sun.jersey.api.client.Client.<init>(Client.java:188)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at com.sun.jersey.api.client.Client.<init>(Client.java:171)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at com.sun.jersey.api.client.Client.create(Client.java:683)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>at rabbitmq.httpclient.BasicAuthHttpClientProvider.getClient(BasicAuthHttpClientProvider.java:25)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at rabbitmq.mgmt.RabbitMgmtService.initialize(RabbitMgmtService.java:51)</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>at rabbitmq.mgmt.RabbitMgmtService.checkInitialize(RabbitMgmtService.java:229)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>at rabbitmq.mgmt.RabbitMgmtService.queues(RabbitMgmtService.java:133)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.transport.implementation.ManagementClientTest.QueueUsageTest(ManagementClientTest.java:62)</div></div><div><br></div></div>