[JBoss-user] No Managed Connections
Hi, We are facing a problem with database connections in JBoss. Our application uses hibernate for O-R mapping and the database connections are also used through Hibernate calls. During peak loads, getting the following exception.. org.jboss.util.NestedSQLException: No ManagedConnections Available!; - nested throwable: (javax.resource.ResourceException: No ManagedConnections Available!) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:126) at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:58) at net.sf.hibernate.impl.SessionFactoryImpl.openConnection(SessionFactoryImpl.java:396) at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:2914) at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:56) at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:482) at net.sf.hibernate.loader.Loader.doFind(Loader.java:136) at net.sf.hibernate.loader.Loader.find(Loader.java:620) at net.sf.hibernate.hql.QueryTranslator.find(QueryTranslator.java:928) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1343) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:76) have increased the pool size but still keep getting the error what could be the cause. Could be because the connections are not being closed in all the places in the application? or is there any other reason to it.. thanks, Naushad.
[JBoss-user] Re: problem in starting jboss4.0.0dr2/ again :-(
Hi Bill, i tried to follow ur suggestion to run jboss in following mode run -c all (i am using window xp), but this time i got following exception.. MBeans waiting for classes: noneMBeans waiting for other MBeans: { objectName: jboss.system:service=DeploymentInfoURIResolver state: CREATED Waiting for me: jboss.net:service=WS4EEDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss.net:service=WS4EEDeployer state: CREATED I am waiting for: jboss.net:service=WebServiceEntityResolver state: RUNNING, jboss.system:service=DeploymentInfoURIResolver state: CREATED, jboss.net:service=Axis state: RUNNING Waiting for me: jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss:service=ClusteredHttpSession state: CONFIGURED I am waiting for: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession state: NOTYETINSTALLED} [EMAIL PROTECTED], { objectName: jboss.ejb:service=EJBDeployer state: CREATED I am waiting for: jboss.net:service=WS4EEDeployer state: CREATED, jboss:service=WebService state: RUNNING, jboss.tm:service=TransactionManagerService state: RUNNING Waiting for me: jboss:service=FarmMember,partition=DefaultPartition state: CREATED, jboss.ejb:service=ActivationSpecDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss.ejb:service=ActivationSpecDeployer state: CREATED I am waiting for: jboss.ejb:service=EJBEntityResolver state: RUNNING, jboss.jca:service=RaURIResolver state: RUNNING, jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss:service=FarmMember,partition=DefaultPartition state: CREATED I am waiting for: jboss.web:service=WebServer state: RUNNING, jboss.system:service=MainDeployer state: RUNNING, jboss:service=DefaultPartition state: RUNNING, jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], any other suggestions?? thanx in advance and regards marco - Original Message - From: marco mistroni To: [EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 9:03 PM Subject: problem in starting jboss4.0.0dr2 Hi all, i have just downloaded jboss4.0.0dr2 and installed it, but when i ran it i got following problem. Packages waiting for a deployer:[{ 'ejb-management.jar' URL: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/ejb-management.jar' localURL: 'file:/C:/jboss-4.0.0DR2/server/default/tmp/deploy/server/default/deploy/ejb-management.jar/58.ejb-management.jar' watching: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/ejb-management.jar' SubDeployer: null }, {'jmx-ejb-adaptor.jar' URL: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/jmx-ejb-adaptor.jar' localURL: 'file:/C:/jboss-4.0.0DR2/server/default/tmp/deploy/server/default/deploy/jmx-ejb-adaptor.jar/59.jmx-ejb-adaptor.jar' watching: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/jmx-ejb-adaptor.jar' SubDeployer: null }]Incompletely deployed packages:[{ 'ejb-management.jar' URL: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/ejb-management.jar' localURL: 'file:/C:/jboss-4.0.0DR2/server/default/tmp/deploy/server/default/deploy/ejb-management.jar/58.ejb-management.jar' watching: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/ejb-management.jar' SubDeployer: null }, {'jmx-ejb-adaptor.jar' URL: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/jmx-ejb-adaptor.jar' localURL: 'file:/C:/jboss-4.0.0DR2/server/default/tmp/deploy/server/default/deploy/jmx-ejb-adaptor.jar/59.jmx-ejb-adaptor.jar' watching: 'file:/C:/jboss-4.0.0DR2/server/default/deploy/jmx-ejb-adaptor.jar' SubDeployer: null }]MBeans waiting for classes: noneMBeans waiting for other MBeans: { objectName: jboss.system:service=DeploymentInfoURIResolver state: CREATED Waiting for me: jboss.net:service=WS4EEDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss.net:service=WS4EEDeployer state: CREATED I am waiting for: jboss.net:service=WebServiceEntityResolver state: RUNNING, jboss.system:service=DeploymentInfoURIResolver state: CREATED, jboss.net:service=Axis state: RUNNING Waiting for me: jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss.ejb:service=EJBDeployer state: CREATED I am waiting for: jboss.net:service=WS4EEDeployer state: CREATED, jboss:service=WebService state: RUNNING, jboss.tm:service=TransactionManagerService state: RUNNING Waiting for me: jboss.ejb:service=ActivationSpecDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss.ejb:service=ActivationSpecDeployer state: CREATED I am waiting for: jboss.ejb:service=EJBEntityResolver state: RUNNING, jboss.jca:service=RaURIResolver state: RUNNING, jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], Cause: Incomplete Deployment listing:Packages waiting for a deployer:[{ 'ejb-management.jar' URL:
[JBoss-user] JBoss 3.2.2/Oracle 9i - Unregistered handle that was not register ed (need some help)
Hello All, We are trying to port our BEA Weblogic application to JBoss and are seeing this entry being logged. Is this some cause for concern or is okay? Any ideas or tips on what we should be looking for? Thanks in advance for your time and help. rgds MS 2004-01-08 12:52:07,736 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Unregistered handle that was not registered! [EMAIL PROTECTED] for managedConnection: [EMAIL PROTECTED] 2004-01-08 12:52:07,781 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Unregistered handle that was not registered! [EMAIL PROTECTED] for managedConnection: [EMAIL PROTECTED] 2004-01-08 12:52:07,805 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Unregistered handle that was not registered! [EMAIL PROTECTED] for managedConnection: [EMAIL PROTECTED] 2004-01-08 12:52:07,822 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Unregistered handle that was not registered! [EMAIL PROTECTED] for managedConnection: [EMAIL PROTECTED] 2004-01-08 12:52:07,823 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Unregistered handle that was not registered! [EMAIL PROTECTED] for managedConnection: [EMAIL PROTECTED] 2004-01-08 12:52:07,966 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Unregistered handle that was not registered! [EMAIL PROTECTED] for managedConnection: [EMAIL PROTECTED] --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 3.2.2/Oracle 9i - Connection handle is not currently associ ated with a ManagedConnection (need some help)
Hello All, We are trying to port our BEA Weblogic application to JBoss and are experiencing a new problem. The system gives the following exception. We did review the code and could not see why this should happen. Any ideas or tips on what we should be looking for? Thanks in advance for your time and help. rgds MS 2003-12-29 19:29:43,313 WARN [org.jboss.resource.connectionmanager.TxConnectionManager] Prepare called on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsis tent data in some cases of failure. 2003-12-29 19:29:43,422 ERROR [STDERR] [Mon Dec 29 19:29:43 PST 2003][ERROR][9628012][Debug.java:333]: Connection handle is not currently associated with a ManagedConnection [SQL]: UPDATE test_tab_1 SET str_1 = ? WHERE plx_courier_id = ? 2003-12-29 19:29:43,431 ERROR [STDERR] [ERROR]Connection handle is not currently associated with a ManagedConnection 2003-12-29 19:29:43,436 ERROR [STDERR] [Mon Dec 29 19:29:43 PST 2003][CALL STACK][9628012][java.sql.SQLException: Connection handle is not currently associated with a ManagedConnectionat org.jboss.resource.adapter.jdbc.WrappedConnection.checkStatus(WrappedConnect ion.java:776) at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedCo nnection.java:206) at com.plx.framework.sql.SQLProcessor.execute(SQLProcessor.java:238) at com.plx.efw.server.variable.VariableHelper.addValue(VariableHelper.java:365) at com.plx.efw.server.courier.CourierSessionBean.add(CourierSessionBean.java:51 2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles sSessionContainer.java:683) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach edConnectionInterceptor.java:185) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe ssionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:267) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11 8) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde rInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta iner.java:331) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta iner.java:331) at org.jboss.ejb.Container.invoke(Container.java:700) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFacto ry.java:375) at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionPro xy.java:83) at $Proxy146.add(Unknown Source) at com.plx.efw.common.command.CourierAddMapActSetCommand.executeCommand(Courier AddMapActSetCommand.java:154) at com.plx.efw.common.command.CourierCommand.execute(CourierCommand.java:70) at com.plx.framework.command.CommandServer.executeCommand(CommandServer.java:91 ) at com.plx.framework.command.CommandServer.execute(CommandServer.java:66) at com.plx.efw.server.command.EJBCommandServerBean.execute(EJBCommandServerBean .java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles sSessionContainer.java:683) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach edConnectionInterceptor.java:185) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe ssionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:267) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11 8) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde rInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta iner.java:331)
Re: [JBoss-user] jboss-3.2.3 clustering problem - unable to find other nodes , though multicasting seems working
Mridul Jain wrote: hi, I am running jboss-3.2.3 on GNU/Linux box and trying to get jboss clustering up and running. First I check if multicasting works fine, by running the following from jgroup: On host1: -- java org.javagroups.tests.McastReceiverTest -mcast_addr 228.1.2.3 -port 45566 -- Onhost2: --- java org.javagroups.tests.McastSenderTest -mcast_addr 228.1.2.3 -port 45566 --- I am able to communicate perfectly without any problems. Then I start jboss-3.2.3 using ./run.sh -c all on both the hosts. But I am able to see that both the nodes/servers cannot find each other as can be seen in server.log and it shows only one cluster member in both. Probing further I tried receiving messages using : java org.javagroups.tests.McastReceiverTest -mcast_addr 228.1.2.3 -port 45566 - on host1 and running the jboss-server on the same node. At periodic intervals I started getting some junk message from the jboss-server as soon as cluster-service.xml was deployed. The messages were from 127.0.0.1:45566. Did you try setting bind_addr in the cluster config (in cluster-service.xml) ? Post your cluster-service.xml -- Bela Ban http://www.jgroups.org Cell: (408) 316-4459 --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user