[rabbitmq-discuss] RabbitManagement from Berico - Technologies is not working
Rom Cabral
rom.t.cabral at gmail.com
Tue Jun 24 11:14:59 BST 2014
tried to re-compile the berico library and add as system path, but still
got the same error.
On Tuesday, June 24, 2014 5:32:47 PM UTC+8, Rom Cabral wrote:
>
> Hi guys,
>
> 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?
>
> test code:
> RabbitMgmtService service = RabbitMgmtService.builder().build();
> //service.initialize();
> service.queues().create(new Queue("test-queue"));
> Assert.assertEquals("test-queue",
> service.queues().get("test-queue").get().getName());
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.169 sec
> <<< FAILURE! - in com.transport.implementation.ManagementClientTest
> QueueUsageTest(com.trendmicro.grid.transport.implementation.ManagementClientTest)
> Time elapsed: 0.14 sec <<< ERROR!
> java.lang.ExceptionInInitializerError: null
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:188)
> at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:114)
> at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:207)
> at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)
> at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
> at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)
> at com.sun.jersey.core.header.MediaTypes.<clinit>(MediaTypes.java:65)
> at
> com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:182)
> at
> com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:175)
> at
> com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)
> at com.sun.jersey.api.client.Client.init(Client.java:343)
> at com.sun.jersey.api.client.Client.access$000(Client.java:119)
> at com.sun.jersey.api.client.Client$1.f(Client.java:192)
> at com.sun.jersey.api.client.Client$1.f(Client.java:188)
> at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
> at com.sun.jersey.api.client.Client.<init>(Client.java:188)
> at com.sun.jersey.api.client.Client.<init>(Client.java:171)
> at com.sun.jersey.api.client.Client.create(Client.java:683)
> at
> rabbitmq.httpclient.BasicAuthHttpClientProvider.getClient(BasicAuthHttpClientProvider.java:25)
> at rabbitmq.mgmt.RabbitMgmtService.initialize(RabbitMgmtService.java:51)
> at
> rabbitmq.mgmt.RabbitMgmtService.checkInitialize(RabbitMgmtService.java:229)
> at rabbitmq.mgmt.RabbitMgmtService.queues(RabbitMgmtService.java:133)
> at
> com.transport.implementation.ManagementClientTest.QueueUsageTest(ManagementClientTest.java:62)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140624/528fe8b8/attachment.html>
More information about the rabbitmq-discuss
mailing list