java - IJ000305: Connection error occured -


i'm getting 2 exceptions when calling stored proc mdb.

the first 1 shows nullpointerexception. second 1 talks lock owned during cleanup.

i enabled tracing on org.jboss.jca, , seems connections fine. connection obtained(5b0032a7) not in use, , there no other connection requests before errors happen.

to rule out multi-threading, updated code send 1 message mdb. there no other threads using connections.

the whole thing runs locally on desktop.

there mdb makes calls same datasource(all work fine), , once it's done (i verified it's done , connections closed), sends 1 message mdb errors below show up.

why happening?

exception#1:  warn  [org.jboss.jca.core.connectionmanager.listener.notxconnectionlistener] (thread-3 (hornetq-client-global-threads-1812940249)) ij000305: connection error occured: org.jboss.jca.core.connectionmanager.listener.notxconnectionlistener@5b0032a7[state=normal managed connection=org.jboss.jca.adapters.jdbc.local.localmanagedconnection@69fda09d connection handles=1 lastuse=1429721443319 trackbytx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.poolbysubject@6b17a43e pool internal context=semaphorearraylistmanagedconnectionpool@37638d4f[pool=my-datasource]]: java.lang.nullpointerexception @ oracle.jdbc.driver.t4c8oall.getnumrows(t4c8oall.java:1153) [oracle-ojdbc-1.6.jar:11.2.0.1.0] @ oracle.jdbc.driver.t4ccallablestatement.executeforrows(t4ccallablestatement.java:956) [oracle-ojdbc-1.6.jar:11.2.0.1.0] @ oracle.jdbc.driver.oraclestatement.doexecutewithtimeout(oraclestatement.java:1222) [oracle-ojdbc-1.6.jar:11.2.0.1.0] @ oracle.jdbc.driver.oraclepreparedstatement.executeinternal(oraclepreparedstatement.java:3387) [oracle-ojdbc-1.6.jar:11.2.0.1.0] @ oracle.jdbc.driver.oraclepreparedstatement.executequery(oraclepreparedstatement.java:3431) [oracle-ojdbc-1.6.jar:11.2.0.1.0] @ oracle.jdbc.driver.oraclepreparedstatementwrapper.executequery(oraclepreparedstatementwrapper.java:1491) [oracle-ojdbc-1.6.jar:11.2.0.1.0] @ org.jboss.jca.adapters.jdbc.wrappedpreparedstatement.executequery(wrappedpreparedstatement.java:462)   exception#2  [org.jboss.jca.adapters.jdbc.local.localmanagedconnectionfactory] (thread-3 (hornetq-client-global-threads-1812940249)) lock owned during cleanup: java.lang.throwable: lock owned during cleanup @ java.lang.thread.getstacktrace(thread.java:1589) [rt.jar:1.7.0_75] @ org.jboss.jca.adapters.jdbc.basewrappermanagedconnection.cleanup(basewrappermanagedconnection.java:308) @ org.jboss.jca.core.connectionmanager.pool.mcp.semaphorearraylistmanagedconnectionpool.returnconnection(semaphorearraylistmanagedconnectionpool.java:429) @ org.jboss.jca.core.connectionmanager.pool.abstractpool.returnconnection(abstractpool.java:561) @ org.jboss.jca.core.connectionmanager.abstractconnectionmanager.returnmanagedconnection(abstractconnectionmanager.java:425) @ org.jboss.jca.core.connectionmanager.listener.abstractconnectionlistener.connectionerroroccurred(abstractconnectionlistener.java:359) @ org.jboss.jca.adapters.jdbc.basewrappermanagedconnection.broadcastconnectionerror(basewrappermanagedconnection.java:592) @ org.jboss.jca.adapters.jdbc.basewrappermanagedconnection.connectionerror(basewrappermanagedconnection.java:546) @ org.jboss.jca.adapters.jdbc.wrappedconnection.checkexception(wrappedconnection.java:1635) @ org.jboss.jca.adapters.jdbc.wrappedstatement.checkexception(wrappedstatement.java:1262) @ org.jboss.jca.adapters.jdbc.wrappedpreparedstatement.executequery(wrappedpreparedstatement.java:467)  connection pool info:      managedconnectionfactory:   class: org.jboss.jca.adapters.jdbc.local.localmanagedconnectionfactory   object: 429e0dd5 connectionlistenerfactory:   class: org.jboss.jca.core.connectionmanager.notx.notxconnectionmanagerimpl   object: 169e3d1e pool:   name: my-datasource poolconfiguration:   minsize: 5   maxsize: 15   blockingtimeout: 30000   idletimeoutminutes: 30   backgroundvalidation: false   backgroundvalidationmillis: 0   strictmin: false   usefastfail: false available:   49ee44eb (normal)   5d20195f (normal)   a880a34 (normal)   27e933c (normal)   5b0032a7 (normal) inuse: statistics:   activecount: 5   availablecount: 15   averageblockingtime: 0   averagecreationtime: 354   createdcount: 5   destroyedcount: 0   maxcreationtime: 394   maxusedcount: 1   maxwaitcount: 0   maxwaittime: 0   timedout: 0   totalblockingtime: 0   totalcreationtime: 1772      [org.jboss.jca.core.connectionmanager.pool.strategy.poolbysubject] (thread-3 (hornetq-client-global-threads-1812940249)) supplying managedconnection pool: org.jboss.jca.core.connectionmanager.listener.notxconnectionlistener@5b0032a7[state=normal managed connection=org.jboss.jca.adapters.jdbc.local.localmanagedconnection@69fda09d connection handles=0 lastuse=1429721443319 trackbytx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.poolbysubject@6b17a43e pool internal context=semaphorearraylistmanagedconnectionpool@37638d4f[pool=my-datasource]] 11:50:43,633 trace [org.jboss.jca.core.connectionmanager.pool.strategy.poolbysubject] (thread-3 (hornetq-client-global-threads-1812940249)) got connection pool: org.jboss.jca.core.connectionmanager.listener.notxconnectionlistener@5b0032a7[state=normal managed connection=org.jboss.jca.adapters.jdbc.local.localmanagedconnection@69fda09d connection handles=0 lastuse=1429721443319 trackbytx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.poolbysubject@6b17a43e pool internal context=semaphorearraylistmanagedconnectionpool@37638d4f[pool=my-datasource]] 11:50:43,634 trace [org.jboss.jca.core.api.connectionmanager.ccm.cachedconnectionmanager] (thread-3 (hornetq-client-global-threads-1812940249)) registering connection connection manager: org.jboss.jca.core.connectionmanager.notx.notxconnectionmanagerimpl@169e3d1e, connection : org.jboss.jca.adapters.jdbc.jdk6.wrappedconnectionjdk6@7c9a9293, key: org.jboss.as.connector.deployers.processors.cachedconnectionmanagersetupprocessor$cachedconnectionmanagersetupaction@720674c9 


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -