Deadlock with nested connections and connection pool.

I recently had to debug a deadlock issue with a legacy code that would deadlock when accessing its REST API by multiple threads. The issue was in the way the REST API was calling Oracle Database and using connections from the pool. Here is a pseudo code showing the database access used by the REST […]

Static state and Maven build.

Recently I had to deal with a weird and occasional Maven build fails from different plugins failing with this same exception:

Caused by: java.lang.NullPointerException at org.apache.http.impl.conn.SystemDefaultRoutePlanner.determineProxy( at org.apache.http.impl.conn.DefaultRoutePlanner.determineRoute( at org.apache.http.impl.client.InternalHttpClient.determineRoute(

Since it was only failing on my local box and subsequent build would run fine I kept on ignoring it until it started […]