This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Connection.connect is somewhere you have somehow sent a null reference to something.
That has got there via Connection<init> which means the Connector constructor.
The line numbers don't seem to match the code you have supplied.
Most likely cause:
You have managed to pass something null to the Connection constructor. Make sure every argument you pass actually has an object attached to it.
Joined: Apr 15, 2009
Thanks Campbell Ritchie, I did something silly and returned a null after a try catch block without having a return *inside* the try catch block.