Server deadlocked when trying to reserve a connection
I have domain which has a connection pool with four connections. Under certain circumstances all four connections are in use. A fifth thread comes along, tries to get a connection and causes a deadlock. Question is why doesn't the connection reserve timeout (10 seconds) kick in and break the deadlock ? Is this a bug in WLS ?
I am just curious here. I was able to solve this by increasing the number of connections and also changing a singleton number generator that was involved in the picture. But the root cause appears to be the behaviour of the DataSource.getConnection call. Any info will be appreciated.
"ExecuteThread: '17' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1
f354ca8 nid=0x1d in Object.wait() [20609000..2060b1a8]
at java.lang.Object.wait(Native Method)
- waiting on <ff8e718> (a weblogic.jdbc.common.internal.ConnectionPool)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(Resourc
ePoolImpl.java:414)
- locked <ff8e718> (a weblogic.jdbc.common.internal.ConnectionPool)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
ava:430)
at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(Connectio
nPoolManager.java:78)
at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:
1329)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
198)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:385)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:343)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:305)
at com.zowi.common.db.DatabaseContext.getConnection(DatabaseContext.java
:367)
at com.zowi.common.db.DatabaseContext.getPreparedStatement(DatabaseConte
xt.java:472)
at com.zowi.common.db.DatabaseContext.getPreparedStatement(DatabaseConte
xt.java:455)
at com.zowi.managers.ejb.sequence.SequenceManagerBean.getCurrentSequence
(SequenceManagerBean.java:170)
at com.zowi.managers.ejb.sequence.SequenceManager_k49jdc_ELOImpl.getCurr
entSequence(SequenceManager_k49jdc_ELOImpl.java:103)
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGener
ator.java:90)
- locked <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.managers.dao.CardManager.insertCard(CardManager.java:2266)
We are using WLS81SP2 (on HP NonStop Server). Here is the full thread dump. Subsequent dumps show no runnable activity other than muxer polling.
Full thread dump Java HotSpot(TM) Server VM (1.4.1 mixed mode):
"ListenThread.Default" prio=5 tid=0x1ef1bd00 nid=0x3d runnable [2142e000..2142e9a8]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked <1170b670> (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at weblogic.socket.WeblogicServerSocket.accept(WeblogicServerSocket.java:24)
at weblogic.t3.srvr.ListenThread.accept(ListenThread.java:739)
at weblogic.t3.srvr.ListenThread.run(ListenThread.java:292)
"Thread-9" prio=5 tid=0x1e3c73e8 nid=0x3c runnable [213ac000..213ac9a8]
at java.net.PlainDatagramSocketImpl.receive(Native Method)
- locked <1170b960> (a java.net.PlainDatagramSocketImpl)
at java.net.DatagramSocket.receive(DatagramSocket.java:680)
- locked <1170b990> (a java.net.DatagramPacket)
- locked <1170b9b0> (a java.net.DatagramSocket)
at snmp.SNMPv1AgentInterface.run(SNMPv1AgentInterface.java:183)
at java.lang.Thread.run(Thread.java:536)
"Thread-6" daemon prio=5 tid=0x1f4163f0 nid=0x3a in Object.wait() [2132a000..2132a9a8]
at java.lang.Object.wait(Native Method)
- waiting on <1170ba30> (a com.zowi.common.util.Queue)
at com.zowi.common.log.Log.run(Log.java:126)
- locked <1170ba30> (a com.zowi.common.util.Queue)
at java.lang.Thread.run(Thread.java:536)
"zowi.watchdog" daemon prio=5 tid=0x1f3d8fa0 nid=0x39 in Object.wait() [212a8000..212a89a8]
at java.lang.Object.wait(Native Method)
- waiting on <1170ba58> (a com.zowi.common.helper.Watchdog)
at com.zowi.common.helper.Watchdog.run(Watchdog.java:54)
- locked <1170ba58> (a com.zowi.common.helper.Watchdog)
"Thread-5" prio=5 tid=0x1ec172a8 nid=0x37 in Object.wait() [1fb18000..1fb189a8]
at java.lang.Object.wait(Native Method)
- waiting on <ff66ea0> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:429)
- locked <ff66ea0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:382)
"weblogic.health.CoreHealthMonitor" daemon prio=5 tid=0x1ebeb000 nid=0x36 waiting on condition [1f7cc000..1f7cd1a8]
at java.lang.Thread.sleep(Native Method)
at weblogic.t3.srvr.CoreHealthMonitorThread.run(CoreHealthMonitorThread.java:127)
"Thread-4" prio=5 tid=0x822d4d8 nid=0x35 in Object.wait() [1f74a000..1f74b1a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa36fc0> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:429)
- locked <fa36fc0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:382)
"LDAPConnThread-0 ldap://16.74.49.24:7001" daemon prio=5 tid=0x1f649588 nid=0x34 runnable [21136000..211371a8]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
- locked <fa37890> (a java.io.BufferedInputStream)
at netscape.ldap.ber.stream.BERElement.getElement(BERElement.java:101)
at netscape.ldap.LDAPConnThread.run(LDAPConnThread.java:538)
at java.lang.Thread.run(Thread.java:536)
"VDE Transaction Processor Thread" prio=2 tid=0x1f63bd10 nid=0x32 in Object.wait() [210b4000..210b51a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa37928> (a com.octetstring.vde.backend.standard.TransactionProcessor)
at java.lang.Object.wait(Object.java:426)
at com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(TransactionProcessor.java:356)
- locked <fa37928> (a com.octetstring.vde.backend.standard.TransactionProcessor)
at com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:212)
"ExecuteThread: '2' for queue: 'weblogic.admin.RMI'" daemon prio=5 tid=0x1f51f340 nid=0x31 in Object.wait() [21032000..210331a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa379a0> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa379a0> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '1' for queue: 'weblogic.admin.RMI'" daemon prio=5 tid=0x1f51f050 nid=0x30 in Object.wait() [20fb0000..20fb11a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa37a18> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa37a18> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '0' for queue: 'weblogic.admin.RMI'" daemon prio=5 tid=0x1f51eda0 nid=0x2f in Object.wait() [20f2e000..20f2f1a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa37a90> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa37a90> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" daemon prio=5 tid=0x1f074d20 nid=0x2e waiting for monitor entry [20eac000..20ead1a8]
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:93)
- waiting to lock <fa37b80> (a java.lang.String)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" daemon prio=5 tid=0x1f074bb8 nid=0x2d waiting for monitor entry [20e2a000..20e2b1a8]
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:93)
- waiting to lock <fa37b80> (a java.lang.String)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" daemon prio=5 tid=0x1ec7d448 nid=0x2c runnable [20da8000..20da91a8]
at weblogic.socket.PosixSocketMuxer.poll(Native Method)
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:100)
- locked <fa37b80> (a java.lang.String)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"weblogic.security.SpinnerRandomSource" daemon prio=5 tid=0x1f38a868 nid=0x2b in Object.wait() [20d26000..20d271a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa5bd68> (a java.lang.Object)
at java.lang.Object.wait(Object.java:426)
at weblogic.security.SpinnerRandomBitsSource.run(SpinnerRandomBitsSource.java:60)
- locked <fa5bd68> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:536)
"weblogic.time.TimeEventGenerator" daemon prio=9 tid=0x1f35edb8 nid=0x2a in Object.wait() [20ca4000..20ca51a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa5bdd8> (a weblogic.time.common.internal.TimeTable)
at weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:271)
- locked <fa5bdd8> (a weblogic.time.common.internal.TimeTable)
at weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java:118)
at java.lang.Thread.run(Thread.java:536)
"ExecuteThread: '4' for queue: 'weblogic.kernel.System'" daemon prio=5 tid=0x1f35dfa8 nid=0x29 in Object.wait() [20c22000..20c231a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa5be48> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa5be48> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '3' for queue: 'weblogic.kernel.System'" daemon prio=5 tid=0x1f35d368 nid=0x28 in Object.wait() [20ba0000..20ba11a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa5bec0> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa5bec0> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '2' for queue: 'weblogic.kernel.System'" daemon prio=5 tid=0x1f35c728 nid=0x27 in Object.wait() [20b1e000..20b1f1a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa5bf38> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa5bf38> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '1' for queue: 'weblogic.kernel.System'" daemon prio=5 tid=0x1f35bae8 nid=0x26 in Object.wait() [20a9c000..20a9d1a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa5bfb0> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa5bfb0> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '0' for queue: 'weblogic.kernel.System'" daemon prio=5 tid=0x1f35aea8 nid=0x25 in Object.wait() [20a1a000..20a1b1a8]
at java.lang.Object.wait(Native Method)
- waiting on <fa5c028> (a weblogic.kernel.ExecuteThread)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:145)
- locked <fa5c028> (a weblogic.kernel.ExecuteThread)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:164)
"ExecuteThread: '24' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f35a268 nid=0x24 waiting for monitor entry [20998000..209991a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:150)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '23' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f359628 nid=0x23 waiting for monitor entry [20915000..209171a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.managers.dao.CardManager.insertCard(CardManager.java:2266)
at com.zowi.managers.dao.CardManager.getorInsertCardInfo(CardManager.java:1312)
at com.zowi.services.issuer.ejb.card.IssuerCardServicesBean.initializeTransaction(IssuerCardServicesBean.java:809)
at com.zowi.services.issuer.ejb.card.IssuerCardServices_lier6m_ELOImpl.initializeTransaction(IssuerCardServices_lier6m_ELOImpl.java:46)
at com.zowi.services.issuer.ejb.BaseIssuerBean.init(BaseIssuerBean.java:167)
at com.zowi.services.issuer.ejb.BaseIssuerBean.execute(BaseIssuerBean.java:117)
at com.zowi.services.issuer.ejb.olmauthorization.IssuerOlmAuthorizationServicesBean_ryrje8_ELOImpl.execute(IssuerOlmAuthorizationServicesBean_ryrje8_ELOImpl.java:160)
at com.zowi.common.util.EjbUtil.invokeServiceBean(EjbUtil.java:167)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:192)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '22' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f3589e8 nid=0x22 waiting for monitor entry [20894000..208951a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:150)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '21' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f357da8 nid=0x21 waiting for monitor entry [20811000..208131a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.managers.dao.CardManager.insertCard(CardManager.java:2266)
at com.zowi.managers.dao.CardManager.getorInsertCardInfo(CardManager.java:1312)
at com.zowi.services.issuer.ejb.card.IssuerCardServicesBean.initializeTransaction(IssuerCardServicesBean.java:809)
at com.zowi.services.issuer.ejb.card.IssuerCardServices_lier6m_ELOImpl.initializeTransaction(IssuerCardServices_lier6m_ELOImpl.java:46)
at com.zowi.services.issuer.ejb.BaseIssuerBean.init(BaseIssuerBean.java:167)
at com.zowi.services.issuer.ejb.BaseIssuerBean.execute(BaseIssuerBean.java:117)
at com.zowi.services.issuer.ejb.olmauthorization.IssuerOlmAuthorizationServicesBean_ryrje8_ELOImpl.execute(IssuerOlmAuthorizationServicesBean_ryrje8_ELOImpl.java:160)
at com.zowi.common.util.EjbUtil.invokeServiceBean(EjbUtil.java:167)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:192)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '20' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f357168 nid=0x20 waiting for monitor entry [20790000..207911a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:150)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '19' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f356528 nid=0x1f waiting for monitor entry [2070e000..2070f1a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:150)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '18' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f3558e8 nid=0x1e waiting for monitor entry [2068c000..2068d1a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:150)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '17' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f354ca8 nid=0x1d in Object.wait() [20609000..2060b1a8]
at java.lang.Object.wait(Native Method)
- waiting on <ff8e718> (a weblogic.jdbc.common.internal.ConnectionPool)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:414)
- locked <ff8e718> (a weblogic.jdbc.common.internal.ConnectionPool)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:430)
at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:78)
at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:1329)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1198)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:385)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:343)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
at com.zowi.common.db.DatabaseContext.getConnection(DatabaseContext.java:367)
at com.zowi.common.db.DatabaseContext.getPreparedStatement(DatabaseContext.java:472)
at com.zowi.common.db.DatabaseContext.getPreparedStatement(DatabaseContext.java:455)
at com.zowi.managers.ejb.sequence.SequenceManagerBean.getCurrentSequence(SequenceManagerBean.java:170)
at com.zowi.managers.ejb.sequence.SequenceManager_k49jdc_ELOImpl.getCurrentSequence(SequenceManager_k49jdc_ELOImpl.java:103)
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:90)
- locked <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.managers.dao.CardManager.insertCard(CardManager.java:2266)
at com.zowi.managers.dao.CardManager.getorInsertCardInfo(CardManager.java:1312)
at com.zowi.services.issuer.ejb.card.IssuerCardServicesBean.initializeTransaction(IssuerCardServicesBean.java:809)
at com.zowi.services.issuer.ejb.card.IssuerCardServices_lier6m_ELOImpl.initializeTransaction(IssuerCardServices_lier6m_ELOImpl.java:46)
at com.zowi.services.issuer.ejb.BaseIssuerBean.init(BaseIssuerBean.java:167)
at com.zowi.services.issuer.ejb.BaseIssuerBean.execute(BaseIssuerBean.java:117)
at com.zowi.services.issuer.ejb.olmauthorization.IssuerOlmAuthorizationServicesBean_ryrje8_ELOImpl.execute(IssuerOlmAuthorizationServicesBean_ryrje8_ELOImpl.java:160)
at com.zowi.common.util.EjbUtil.invokeServiceBean(EjbUtil.java:167)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:192)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
"ExecuteThread: '16' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x1f354068 nid=0x1c waiting for monitor entry [20588000..205891a8]
at com.zowi.common.db.SequenceNbrGenerator.getNewNumber(SequenceNbrGenerator.java:81)
- waiting to lock <11943dd0> (a com.zowi.common.db.SequenceNbrGenerator)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:90)
at com.zowi.common.util.SqlUtil.getRawSequence(SqlUtil.java:67)
at com.zowi.common.util.SqlUtil.getLongSequence(SqlUtil.java:41)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:150)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandlerBean.process(IssuerViewHandlerBean.java:105)
at com.zowi.services.issuer.ejb.viewhandler.IssuerViewHandler_ybado0_EOImpl.process(IssuerViewHandler_ybado0_EOImpl.java:102)
at com.zowi.servlets.appserver.EjbServlet.doPost(EjbServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.Servle
Similar Messages
-
hi i am getting message that CANNOT GET MAIL THE CONNECTION TO THE SERVER FAILED when trying to add official mail to Exchange in IPHONE 5
Talk to your IT department...
Or if you're at University, talk to the computer team.
Most Uni's are using outlook.com as the server connection not mail.youruniversity.edu -
I keep getting a " the connection to the server failed" when trying to use hotmail
I keep getting a "The connectioin to the server failed" when trying to use hotmail
Go into Settings, Mail, Contacts, Calendars, select the Hotmail account and check the account settings. Did you set it up with the Hotmail preset? Has this account ever worked on the iPhone? What other troubleshooting have you done?
-
Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout). It is as if the server has decided that the client has timed out during the file upload. The default setting is 30 seconds for AcceptTimeout in the magnus.conf file. This should be ample to get the file across, even increasing this to 2 minutes just produces the same error after 2 minutes. Any help appreciated. Apologies if this is not the correct forum for this, I couldn't see one for iPlanet and Web, many thanks, Kieran.
Hi,
You didnt mention which version of IWS. follow these steps.
(1)Goto Web Server Administration Server, select the server you want to manage.
(2)Select Preference >> Perfomance Tuning.
(3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)
(4) Apply changes and restart the server.
*Setting the timeout to a lower value, however, may prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before the connection is closed is 432000 bits (2400 multiplied by 180)
Regards
T.Raghulan
[email protected] -
500 internal server error when trying to create users
I am getting a 500 internal server error when trying to create users. What is the cause? We tried reinstalling the latest java jdk release and that didn't help.
Check whether your DBControl or ASControl service is still running or crashed. EM is not able to connect to the Management Server.
For instance in Windows, you may see that the Servise is not started. Then check for error logs in $ORACLE_HOME/sysman/logs for any related error messages in the log files -
"500 internal server error" when trying to use F4 help in the variable sele
Hi Experts,
I am getting "500 internal server error" when trying to use F4 help in the variable selection screen (in WAD).
How could this be resolved?
Quick reply would be very helpfull.
Thanks in advance !!It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
if this solution helps u then pls assign points -
HT203796 Get server error when trying to sign on to icloud control panel in pc
Get server error when trying to sign on to icloud control panel in pc
HI,
Please try the following document.
http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html
Thanks
Kapil -
Internal Server Error When Trying to Open Flex Builder Tutorials
Anyone know what I need to set up to run the tutorials in
Flex Builder - get an internal error server (500) when trying to
open up the tutorials listed on the start page.
I can open, compile and run projects .
Thankswell thats a real vague error that IIS can spit out and it
could mean anything. If you are using a server side script in
conjunction with the tutorials for some reason that i would start
by commenting it all out. If you are just getting that error when
just trying to access a static html file that resides whithin your
web root then i would open up IIS and check you permisions under
your default web site for that folder. -
500 Server Error when Trying to Download Files
Hi,
I keep getting a 500 server error when trying to download any of the Oracle ORION files: http://www.oracle.com/technology/software/tech/orion/index.html Any ideas? Thank you for your help.
PS. Here's the exact error:
"Server Error
The following error occurred:
[code=SERVER_RESPONSE_RESET] The server response could not be read because of an error. Contact your system administrator.
Please contact the administrator."Thanks. It seems to be fixed now.
-
Always getting a server error when trying to download the products
I' always getting a server error when trying to download the products since yesterday, what can I do ?
Try using a different browser
-
Server error when trying to download ODTwithODAC10202
Hi!
I recieve error (illegal or unknown answer from server) message when trying to download ODTwithODAC10202 from url http://download.oracle.com/otn/other/ole-oo4o/ODTwithODAC10202.exe.
regards,
HelgeAre you using a download manager? Thats will do that to you because most of those don't pick it up that you are logged in to a secure site. They just get the link to download from.
I hope that helps you out although I'm responding very late.
Take care -
Getting invalid server certificate when trying to send email on Droid x
getting invalid server certificate when trying to send email on Droid x.....
There was a possible solution posted at http://community.vzw.com/t5/DROID-X-by-Motorola/Invalid-Server-Certificate/td-p/228300
-
'500 Internal Server Error' when trying to connect to Music Store
Does ANYBODY at Apple CARE that I've been writing posts for 2 WEEKS trying to get an answer to the reason why I can't connect to the Music Store? This is absurd!
Since upgrading to iTunes 6.0.3 (and now 6.0.5), I get a 'Music Store termporarily unavailable' message. I have the same PC, OS, and ISP that I've used to buy hundreds of dollars worth of your music - but since upgrading - I'm dead in the water. Norton is set to PERMIT i-tunes - but I get the same problem with Norton turned OFF.
When trying to connect to the Music Store via the following URL: phobos.apple.com/WebObjects/MZStore.woa/wa/storeFront
as suggested in other posts, I get a "Error 500 Internal Server Error" - which according to my ISP and Microsoft is on APPLE'S Server - not my end.
HELP HELP HELP!!!!
Dell Windows XP Pro
Dell Windows XP ProCheck whether your DBControl or ASControl service is still running or crashed. EM is not able to connect to the Management Server.
For instance in Windows, you may see that the Servise is not started. Then check for error logs in $ORACLE_HOME/sysman/logs for any related error messages in the log files -
Keep getting connection to server error when trying to sign in to iCloud
I am getting a connection to server error when I triy to sing in to iCloud.com
This query seems to be related to Edge Code. you can get help from this forum.
Also EdgeCode doesn't have troubleshooting page but you can get help from Brackets trouble shooting page. -
I am using WLS7 with SP1.
I just recently migrated from WLS6.0. When my code tries to grab a
connection from the pool, it throws an exception
java.sql.SQLException: Pool connect failed:
weblogic.common.ResourceException: Access not allowed
at weblogic.jdbc.pool.Driver.connect(Driver.java:202)
Does anyone know if anything changed from 6.0 to 7?
Here is a piece of the code that throws exception.
Driver driver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver")
.newInstance();
conn = driver.connect("jdbc:weblogic:pool:" +
dbName, null);
Thanks in advance.Hi Jung,
"Jung Yang" <[email protected]> wrote in message
news:[email protected]...
Do you know how to change security setting on the connection pool?
Thanks.WebConsole:
1.Compatibility Security => ACLs
Create a new ACL,
name : weblogic.jdbc.connectionPool.yourPoolname
permission : reserve, reset
group : everynone
2.Services => JDBC => Connection Pool
Create a new Connection Pool
ACL Name : weblogic.jdbc.connectionPool.yourPoolname
In 'Target' tab, choose server and click the Apply button
Slava
>
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]...
Hi Jung,
Could you try providing weblogic user name and password
in the properties?
Could you also check security setting of the connection pool?
Regards,
Slava Imeshev
"Jung Yang" <[email protected]> wrote in message
news:[email protected]...
Well that is exactly what I am doing. The variable dbName is database
connection pool name that I created in weblogic console. Again, it
worked
in WLS6 but after migration, it stopped working.
Thanks.
"Mitesh Patel" <[email protected]> wrote in message
news:[email protected]...
In my code I am supplying name of the connection pool already
created
in
weblogic server. I am asking you to get connection from the pool
using
pool
driver.
In your case you are trying to create connection straight to
database
using pool
driver.
What I am asking is pass name of the connection pool instead of
database
name.
Thanks,
Mitesh
Jung Yang wrote:
What would be the difference between your code and mine? Mine
simple
appends dbName string value for connection pool name at the end of
"jdbc:weblogic:pool:"? And why same exact code would work in WLS6and
not
work in WLS7?
Thanks.
"Mitesh Patel" <[email protected]> wrote in message
news:[email protected]...
conn = driver.connect("jdbc:weblogic:pool:" +
dbName, null);Instead of doing this what if you use
Connection conn =
myDriver.connect("jdbc:weblogic:pool:myConnectionPool", null);
Will you please try this and see if that helps?
Mitesh
Jung Yang wrote:
Isn't that exactly what I posted for my code piece?
Thanks.
"Mitesh Patel" <[email protected]> wrote in message
news:[email protected]...
Try As described below:
The following example demonstrates how to use a database
connection
pool
from a servlet.
Load the pool driver and cast it to java.sql.Driver. The
full
pathname
of
the driver is weblogic.jdbc.pool.Driver. For example:
Driver myDriver = (Driver)
Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Create a connection using the URL for the driver, plus
(optionally)
the
name of the registered connection pool. The URL of the pool
driver
is
jdbc:weblogic:pool.
You can identify the pool in either of two ways:
Specify the name of the connection pool in a
java.util.Properties
object
using the key connectionPoolID. For example:
Properties props = new
Properties();props.put("connectionPoolID",
"myConnectionPool");Connection conn =
myDriver.connect("jdbc:weblogic:pool", props);
Add the name of the pool to the end of the URL. In this case
you
do
not
need a Properties object unless you are setting a username
and
password
for using a connection from the pool. For example:
Connection conn =
myDriver.connect("jdbc:weblogic:pool:myConnectionPool",
null);
Note that the Driver.connect() method is used in theseexamples
instead of
the DriverManger.getConnection() method. Although you may
use
DriverManger.getConnection() to obtain a databaseconnection,
we
recommend
that you use Driver.connect() because this method is not
synchronized
and
provides better performance.
Note that the Connection returned by connect() is an
instance
of
weblogic.jdbc.pool.Connection.
Call the close() method on the Connection object when youfinish
with
your
JDBC calls, so that the connection is properly returned to
the
pool. A
good coding practice is to create the connection in a try
block
and
then
close the connection in a finally block, to make sure the
connection
is
closed in all cases.
conn.close();
Mitesh
Jung Yang wrote:
I am using WLS7 with SP1.
I just recently migrated from WLS6.0. When my code tries
to
grab a
connection from the pool, it throws an exception
java.sql.SQLException: Pool connect failed:
weblogic.common.ResourceException: Access not allowed
at
weblogic.jdbc.pool.Driver.connect(Driver.java:202)
Does anyone know if anything changed from 6.0 to 7?
Here is a piece of the code that throws exception.
Driver driver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver")
.newInstance();
conn =
driver.connect("jdbc:weblogic:pool:"
+
dbName,
null);
>>>>>>>>>
Thanks in advance.
Maybe you are looking for
-
OSX Lion, stuck on grey screen at startup w/ spinning gear.
i believe i have tried everything i could find, so any info is good. about a week ago my 2009 macbook pro 15 inch stopped starting up, always going to a grey screen with the apple logo and spinning gear. what i have done so far. reset nvram repair di
-
How to delete the BPEL instance in Java code
Hi all, How to delete the BPEL instance which I initiate in Java code? Thanks Jayson
-
While synching my iPhone, a box popped up and said that so many of my contacts are going to change. That happened before and my contacts and my wifes contacts ended up in each others phones. So we just had to go through and delete the ones we didnt
-
Mac mini + ASUS VW192s - not correct detected !
Hi. ASUS VW192s detect on Mac mini as Standart VGA monitor without wide resolution 1440x900 !. How fix it ?
-
Apps services not starting up after Linux OS upgrade to 5.0
Hi guys, I'm actually new to APPS DBA and i'm stuck with this prob for the past few days...I searched a lot but couldn't find a solution to it...could u pls help me out... Actually, the Linux OS was upgraded from 4.0 to 5.0 and the old instance that