This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
This is a rather generic error and without some more context is rather hard to diagnose.
Off the top of my head, since you say this is happening on connect I wonder if you are using a different driver because it sounds like it could be a protocol misfunction. Namely in one place you use a driver that is speaking the correct protocol and with Jasper you are not.