NPE with Openstack SDK in OSGi

If you use the Openstack SDK library, you may have encounter this exception. java.lang.NullPointerException at com.woorea.openstack.base.client.OpenStackClient.request(OpenStackClient.java:51) at com.woorea.openstack.base.client.OpenStackClient.execute(OpenStackClient.java:66) at com.woorea.openstack.base.client.OpenStackRequest.execute(OpenStackRequest.java:98) And if you use it in OSGi, you will most likely have it. The reason is that the default client is searched within the class path by using Java service loaders. And this mechanism does […]

Posted at 3:23 pm on November 6, 2014 | Leave a comment | Filed Under: Java tips, OSGi | Tagged: , , , | Continue reading

Using java.util.logging with Apache Karaf

The Situation You have bundles that use JDK logging (java.util.logging). These bundles are deployed in Apache Karaf and you want to configure the loggers for your bundles. The solution Edit the org.ops4j.pax.logging.cfg file under Karaf’s etc directory. You will configure your loggers with a Log4J configuration. Karaf (Pax Logging in fact) will make the bridge […]

Posted at 3:55 pm on October 7, 2014 | Leave a comment | Filed Under: OSGi | Tagged: , , | Continue reading

About

My name is Vincent Zurczak.
I am a R&D Engineer working for a French Software Editor.

I have a solid experience in Eclipse development, Service-Oriented Architectures (SOA) and integration issues. I am now working on a project related to deployment and cloud computing. The project is called Roboconf and is open source.

I used to be a committer on Petals ESB (OW2), SCA Tools (Eclipse) and BPEL Designer (Eclipse).

You can also take a look at my French blog and my GitHub account.


Follow

Get every new post delivered to your Inbox.