Re: SQLException

From: Cris Daniluk (
Date: Mon May 02 2005 - 11:30:41 EDT

  • Next message: Erik Hatcher: "Re: How to use Enums"

    If you look at the stacktrace, you'll see weblogic in there swallowing
    your connection with its own wrapper. This is a "feature" of Weblogic
    and thus probably nothing that anyone on this list can help you with.

    However, my guess is that weblogic is expecting you to request
    connections through its pool, and Cayenne is trying to use its own
    pool and request connections directly (by default, anyway). It should
    be fairly easy to get Cayenne to use the Weblogic connection pool (see
    some of the mailing list archive entries on changing the default
    connection pool), or to disable weblogic's oracle connection pool.


    On 5/2/05, Sami Mohammed <> wrote:
    > Hi all,
    > I am getting the following error, when i test on WSAD 5.1 its work fine, when i deployed same EAR file on Weblogic 8.1 with the same oracle drive and same configuration.
    > i am getting error in weblogic server see below.
    > java.sql.SQLException: Closed Connection at oracle.jdbc.dbaccess.DBError.throwSqlException( at oracle.jdbc.dbaccess.DBError.throwSqlException( at oracle.jdbc.dbaccess.DBError.throwSqlException( at oracle.jdbc.driver.OracleConnection.privatePrepareStatement( at oracle.jdbc.driver.OracleConnection.prepareStatement( at weblogic.jdbc.common.internal..ConnectionEnv.makeStatement( at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement( at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement( at weblogic.jdbc.wrapper.Connection.prepareStatement( at at org.objectstyle.cayenne.access.DataNode.runSelect( at org.objectstyle.cayenne.access.DataNode.performQueries( at org.objectstyle.cayenne.access.DataDomain.performQueries( at org.objectstyle.cayenne.access.DataContext.performQueries( at org.objectstyle.cayenne.access.Transaction.performQueries( at org.objectstyle.cayenne.access.DataContext.performQueries( at org.objectstyle.cayenne.access.DataContext.performQuery( at org.objectstyle.cayenne.access.DataContext.performQuery( at com.independenthealth.edwdma.admin.actions.LoginAction.execute( at org.apache.struts.action.RequestProcessor.processActionPerform( at org.apache.struts.action.RequestProcessor.process( at org.apache.struts..action.ActionServlet.process( at org.apache.struts..action.ActionServlet.doPost( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet..service( at weblogic.servlet.internal.ServletStubImpl$ at weblogic.servlet.internal.ServletStubImpl.invokeServlet( at weblogic.servlet.internal.ServletStubImpl.invokeServlet( at weblogic.servlet.internal.WebAppServletContext$ at at at weblogic.servlet.internal.WebAppServletContext.invokeServlet( at weblogic.servlet.internal.ServletRequestImpl.execute( at weblogic.kernel.ExecuteThread.execute( at
    > CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential information which is privileged and protected from disclosure by Federal and State
    > confidentiality laws rules and regulations. This e-mail and attachments, if any, are intended for the designated addressee only. If you are not the designated addressee, you
    > are hereby notified that any disclosure, copying, or distribution of this e-mail and its attachments, if any, may be unlawful and may subject you to legal consequences. If you
    > have received this e-mail and attachments in error, please contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its attachments from your
    > computer. Thank you for your attention

    This archive was generated by hypermail 2.0.0 : Mon May 02 2005 - 11:30:43 EDT