[JBoss-user] Problems JBoss-3.2.1 with XA and MS SqlServer
Hi, I have a problem using XA transactions with JDBC and JMS on JBoss 3.2.1 with MS SqlServer 2000 (JDBC driver is MS JDBC driver Version 2.2.0029). This is my datasource configuration: ?xml version=1.0 encoding=UTF-8? !-- = -- !-- -- !-- Xtrend JBoss Datasource Configuration -- !-- -- !-- = -- datasources xa-datasource jndi-nameBFlowDS/jndi-name xa-datasource-classcom.microsoft.jdbcx.sqlserver.SQLServerDataSource/xa-d atasource-class xa-datasource-property name=ServerNamep01044377/xa-datasource-property xa-datasource-property name=DatabaseNametest/xa-datasource-property xa-datasource-property name=SelectMethodcursor/xa-datasource-property user-nametest/user-name passwordtest/password /xa-datasource /datasources On startup the following exception is thrown: 10:09:39,674 INFO [BFlowDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=XATxCM,name=BFlowDS to JNDI name 'java:/BFlowDS' 10:09:39,674 INFO [TxConnectionManager] Started 10:09:39,674 INFO [PersistenceManager] Starting 10:09:40,253 WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping 10:09:40,253 WARN [WrappedConnection] Closing a statement you left open, please do your own housekeeping 10:09:40,268 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=p01044377//1, BranchQual=] errorCode=XAER_RMERR javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_rollback (0) returns -4 at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source) at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.rollback(Unknown Source) at com.microsoft.jdbcx.base.BaseXAResource.rollback(Unknown Source) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.rollback(XAManagedCon nection.java:185) at org.jboss.tm.TransactionImpl.rollbackResources(TransactionImpl.java:1648) at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:448) at org.jboss.mq.pm.jdbc2.PersistenceManager$TransactionManagerStrategy.endTX(Pe rsistenceManager.java:179) at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(Persistence Manager.java:301) at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.jav a:1299) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav a:966) at $Proxy11.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:392) at org.jboss.system.ServiceController.start(ServiceController.java:408) at org.jboss.system.ServiceController.start(ServiceController.java:408) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne r.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner. java:476) at
[JBoss-user] JBoss 3.2.3
hi, I downloaded the new JBoss 3.2.3 version. We are waiting for the Jetty archive, but I tested our application with Tomcat, which should work. We have an startup servlet, which should initialize some data. But we get exception: 2003-12-01 11:27:02,265 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=, warUrl=file:/E:/jboss/jboss-3.2.3/server/oma/tmp/deploy/tmp6695oma.ear-contents/oma.war/ 2003-12-01 11:27:02,781 INFO [org.jboss.web.localhost.Engine] SingleSignOnContextConfig[]: Added certificates - request attribute Valve 2003-12-01 11:27:02,812 WARN [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Unable to invoke setDelegate on class loader:[EMAIL PROTECTED] 2003-12-01 11:27:02,812 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 2003-12-01 11:27:02,812 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding of random number generator has been completed 2003-12-01 11:27:02,906 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:default]: Loading container servlet default 2003-12-01 11:27:03,062 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.CodecBean#findAll] Executing SQL: SELECT t0_o.codec_id FROM codec t0_o 2003-12-01 11:27:03,140 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String net.magix.ejb.media.entitybeans.CodecBeanLocal.getName(), causedBy: javax.ejb.EJBException: Could not load field value: name at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceValue(JDBCCMP2xFieldBridge.java:180) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getValue(JDBCAbstractCMPFieldBridge.java:202) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:119) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at net.magix.ejb.media.entitybeans.CodecBean$Proxy.getName(generated) 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.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1096) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:72) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:282) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:114) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:349) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:489) at org.jboss.ejb.Container.invoke(Container.java:700) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy193.getName(Unknown Source) at net.magix.valueobject.helper.media.CodecVOHelper.getVO(CodecVOHelper.java:66) at net.magix.ejb.media.sessionbeans.MediaBean.getAllCodecVO(MediaBean.java:1001) I added category name=org.jboss.ejb.plugins.cmp priority value=DEBUG/ /category for more debug print out. Regards, Rafal --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem in JBoss 3.2.3
hi, this is my second posting about JBoss 3.2.3. I tryied an other appication which runs on JBoss 3.2.2 without any problem. On JBoss 3.2.3 I get the same exception like in my first posting: javax.ejb.EJBException: Could not load field value: name at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceValue(JDBCCMP2xFieldBridge.java:180) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getValue(JDBCAbstractCMPFieldBridge.java:202 ) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:119) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at net.magix.ejb.access.entitybeans.PartnerBean$Proxy.getName(generated) at net.magix.ejb.access.entitybeans.PartnerBean.getMetaData(PartnerBean.java:208) 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.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1096) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:72) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:282) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) Regards, Rafal --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 3.2.3
Could you please increase the log level to trace for this same case? category name=org.jboss.ejb.plugins.cmp priority value=TRACE class=org.jboss.logging.XLevel/ /category Thank you. Rafal Kedziorski wrote: hi, I downloaded the new JBoss 3.2.3 version. We are waiting for the Jetty archive, but I tested our application with Tomcat, which should work. We have an startup servlet, which should initialize some data. But we get exception: 2003-12-01 11:27:02,265 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=, warUrl=file:/E:/jboss/jboss-3.2.3/server/oma/tmp/deploy/tmp6695oma.ear-contents/oma.war/ 2003-12-01 11:27:02,781 INFO [org.jboss.web.localhost.Engine] SingleSignOnContextConfig[]: Added certificates - request attribute Valve 2003-12-01 11:27:02,812 WARN [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Unable to invoke setDelegate on class loader:[EMAIL PROTECTED] 2003-12-01 11:27:02,812 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 2003-12-01 11:27:02,812 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding of random number generator has been completed 2003-12-01 11:27:02,906 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:default]: Loading container servlet default 2003-12-01 11:27:03,062 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.CodecBean#findAll] Executing SQL: SELECT t0_o.codec_id FROM codec t0_o 2003-12-01 11:27:03,140 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String net.magix.ejb.media.entitybeans.CodecBeanLocal.getName(), causedBy: javax.ejb.EJBException: Could not load field value: name at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceValue(JDBCCMP2xFieldBridge.java:180) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getValue(JDBCAbstractCMPFieldBridge.java:202) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:119) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at net.magix.ejb.media.entitybeans.CodecBean$Proxy.getName(generated) 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.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1096) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:72) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:282) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:114) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:349) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:489) at org.jboss.ejb.Container.invoke(Container.java:700) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy193.getName(Unknown Source) at net.magix.valueobject.helper.media.CodecVOHelper.getVO(CodecVOHelper.java:66) at net.magix.ejb.media.sessionbeans.MediaBean.getAllCodecVO(MediaBean.java:1001) I added category name=org.jboss.ejb.plugins.cmp priority value=DEBUG/ /category for more debug print out. Regards, Rafal --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED]
Re: [JBoss-user] JBoss 3.2.3
At 12:28 01.12.2003, Alexey Loubyansky wrote: Could you please increase the log level to trace for this same case? category name=org.jboss.ejb.plugins.cmp priority value=TRACE class=org.jboss.logging.XLevel/ /category Thank you. no problem. and this is the result: 2003-12-01 13:45:42,625 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=, warUrl=file:/E:/jboss/jboss-3.2.3/server/oma/tmp/deploy/tmp36875oma.ear-contents/oma.war/ 2003-12-01 13:45:42,843 INFO [org.jboss.web.localhost.Engine] SingleSignOnContextConfig[]: Added certificates - request attribute Valve 2003-12-01 13:45:42,890 WARN [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Unable to invoke setDelegate on class loader:[EMAIL PROTECTED] 2003-12-01 13:45:42,890 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 2003-12-01 13:45:42,890 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding of random number generator has been completed 2003-12-01 13:45:42,968 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:default]: Loading container servlet default 2003-12-01 13:45:43,234 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.CodecBean#findAll] Executing SQL: SELECT t0_o.codec_id FROM codec t0_o 2003-12-01 13:45:43,265 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] Add finder results: entity=CodecBean results=[1, 2, 3, 4, 5, 100, 101, 102, 103, 104, 105, 200, 201, 202, 203, 204] readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=4, eagerLoadGroup=*] 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CodecBean] RESET PERSISTENCE CONTEXT: id=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] load data: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] No preload data found: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.CodecBean] Eager-load for entity: readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=4, eagerLoadGroup=*] 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CodecBean] RESET PERSISTENCE CONTEXT: id=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] load data: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] No preload data found: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.CodecBean] Eager-load for entity: readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=4, eagerLoadGroup=*] 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] load data: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] No preload data found: entity=CodecBean pk=1 2003-12-01 13:45:43,296 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String net.magix.ejb.media.entitybeans.CodecBeanLocal.getName(), causedBy: javax.ejb.EJBException: Could not load field value: name at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceValue(JDBCCMP2xFieldBridge.java:180) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getValue(JDBCAbstractCMPFieldBridge.java:202) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:119) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at net.magix.ejb.media.entitybeans.CodecBean$Proxy.getName(generated) 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.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1096) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:72) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:282) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:114) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54)
[JBoss-user] deployment question
Hello list, I have two questions regarding deployment: 1/ Could someone explain me how I can put dependencies on the deployment of an ejb-jar file. Let's say I want to deploy the myapp.jar if and only if - the queue/something/MyQueue is deployed in the environment - the unit myapp2.jar (another ejb-jar) is deployed I know already the MBean trick but if we can do this throug jboss-???.xml it would be better 2/ Could someone confirm that an XML file which is dropped in the deploy directory is added to the classpath. Example I want to drop in deploy/myapp the file MyConfig.xml. How can I access this file in the classpath getResource(/deploy/myapp/MyConfig.xml ?) Regards, Stephane --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] No Security Context set
Hi, I am trying to understand the security framework used by JBoss I have a simple stateless session EJB and I have written a SecurityProxy which intercepts the method calls on my EJB. Now in my EJBs method when I make a call context.getCallerPrincipal() in any of my beans methods I always get Java.lang.IllegalStateException: No Security context set but I am successfully able to call the context.isCallerInRole(String) method.. Can someone throw any light on thisI am stuck here Thanks and Regards Munesh
Re: [JBoss-user] JBoss 3.2.3
Unfortunately, I still can't reproduce it. Could you please provide me with the DDs and instructions to reproduce this? Thank you. Rafal Kedziorski wrote: At 12:28 01.12.2003, Alexey Loubyansky wrote: Could you please increase the log level to trace for this same case? category name=org.jboss.ejb.plugins.cmp priority value=TRACE class=org.jboss.logging.XLevel/ /category Thank you. no problem. and this is the result: 2003-12-01 13:45:42,625 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=, warUrl=file:/E:/jboss/jboss-3.2.3/server/oma/tmp/deploy/tmp36875oma.ear-contents/oma.war/ 2003-12-01 13:45:42,843 INFO [org.jboss.web.localhost.Engine] SingleSignOnContextConfig[]: Added certificates - request attribute Valve 2003-12-01 13:45:42,890 WARN [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Unable to invoke setDelegate on class loader:[EMAIL PROTECTED] 2003-12-01 13:45:42,890 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding random number generator class java.security.SecureRandom 2003-12-01 13:45:42,890 INFO [org.jboss.web.localhost.Engine] StandardManager[]: Seeding of random number generator has been completed 2003-12-01 13:45:42,968 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:default]: Loading container servlet default 2003-12-01 13:45:43,234 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.CodecBean#findAll] Executing SQL: SELECT t0_o.codec_id FROM codec t0_o 2003-12-01 13:45:43,265 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] Add finder results: entity=CodecBean results=[1, 2, 3, 4, 5, 100, 101, 102, 103, 104, 105, 200, 201, 202, 203, 204] readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=4, eagerLoadGroup=*] 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CodecBean] RESET PERSISTENCE CONTEXT: id=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] load data: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] No preload data found: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.CodecBean] Eager-load for entity: readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=4, eagerLoadGroup=*] 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.CodecBean] RESET PERSISTENCE CONTEXT: id=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] load data: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] No preload data found: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.CodecBean] Eager-load for entity: readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=4, eagerLoadGroup=*] 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] load data: entity=CodecBean pk=1 2003-12-01 13:45:43,296 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.CodecBean] No preload data found: entity=CodecBean pk=1 2003-12-01 13:45:43,296 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String net.magix.ejb.media.entitybeans.CodecBeanLocal.getName(), causedBy: javax.ejb.EJBException: Could not load field value: name at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceValue(JDBCCMP2xFieldBridge.java:180) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getValue(JDBCAbstractCMPFieldBridge.java:202) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:119) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at net.magix.ejb.media.entitybeans.CodecBean$Proxy.getName(generated) 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.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1096) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:72) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:282) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:114) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163) at
[JBoss-user] JMS - MessageCache
All, is the org.jboss.mq.server.MessageCache also used if we have a Point-To-Point connection without durable subscriber? Or is it only used with durable subscriber? Thanks, --Marcus --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Unexpected Signal : 11
Hello, Does anyone know what this means? How to solve? Unexpected Signal : 11 occurred at PC=0x4044F990 Function=(null)+0x4044F990 Library=/usr/java/j2sdk1.4.2_02/jre/lib/i386/server/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Heap at VM Abort: Heap def new generation total 15488K, used 1335K [0x4493, 0x459f, 0x475a) eden space 13824K, 4% used [0x4493, 0x449c99a8, 0x456b) from space 1664K, 43% used [0x4585, 0x45904358, 0x459f) to space 1664K, 0% used [0x456b, 0x456b, 0x4585) tenured generation total 136576K, used 29053K [0x475a, 0x4fb0, 0x5d93) the space 136576K, 21% used [0x475a, 0x491ff708, 0x491ff800, 0x4fb0) compacting perm gen total 22784K, used 22718K [0x5d93, 0x5ef7, 0x6193) the space 22784K, 99% used [0x5d93, 0x5ef5fbb0, 0x5ef5fc00, 0x5ef7) Local Time = Mon Dec 1 11:11:24 2003 Elapsed Time = 969 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Server VM (1.4.2_02-b03 mixed mode) # -- Gabriel Esteves Marques Pinto Diretor de TI [EMAIL PROTECTED] www.brainweb.com.br (19)3287-7060 Ramal:253 Núcleo SOFTEX-Campinas Enviado usando webmail v2.3 --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 3.2.3
At 17:31 01.12.2003, Alexey Loubyansky wrote: Unfortunately, I still can't reproduce it. Could you please provide me with the DDs and instructions to reproduce this? Thank you. We have problems with Tables, where one column names is name. Than I call findAll() and call the getName() method. I just took our application which run without any problem with JBoss 3.2.2 and Jetty, configure log4j and mysql-ds.xml and deploy our ear. We have this table: CREATE TABLE `codec` ( `codec_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(20) NOT NULL, `description` VARCHAR(100) NOT NULL, `file_suffix` VARCHAR(50) NOT NULL, `mime_type`VARCHAR(50) NOT NULL, # PRIMARY KEY (`codec_id`) ) TYPE=InnoDB; CREATE UNIQUE INDEX `codec_name__idx` ON `codec` (`name`); and this mathod in our media session bean: public List getAllCodecVO() throws OMAException { logger.debug(getAllCodecVO() entered); CodecVOHelper codecVOHelper = CodecVOHelper.getInstance(); try { CodecBeanLocalHome codecHome = (CodecBeanLocalHome) serviceLocator.getLocalHome(JNDINamesMedia.CODEC_EJB); Collection codecCol = codecHome.findAll(); int codecColSize = codecCol.size(); List resultList = new ArrayList(codecColSize); Iterator codecColIte = codecCol.iterator(); for (int i = 0; i codecColSize; i++) { CodecBeanLocal codecLocal = (CodecBeanLocal) codecColIte.next(); CodecVO codecVO = codecVOHelper.getVO(codecLocal); resultList.add(codecVO); } return resultList; } catch (ServiceLocatorException sle) { logger.fatal(getAllCodecVO() failed with ServiceLocatorException, sle); throw new OMAException(MediaBean::getAllCodecVO() failed with ServiceLocatorException, ErrorIDs.FATAL_ERROR); } catch (FinderException fe) { logger.fatal(getAllCodecVO() failed with FinderException, fe); throw new OMAException(MediaBean::getAllCodecVO() failed with FinderException, ErrorIDs.FATAL_ERROR); } } getVO() in CodecVOHelper looks so: public CodecVO getVO(CodecBeanLocal c) { if (c != null) { CodecVO vo = new CodecVO(c.getCodec_id(), c.getName(), c.getDescription(), c.getFile_suffix(), c.getMime_type()); return vo; } return null; } Regards, Rafal --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] replace JBossMQ by Tibco ?
Hi, Is it possible to replace JBossMQ by the Tibco messaging system ? If so, how to do this ? = -- Regards, Ionel ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JMS - MessageCache
On Mon, 2003-12-01 at 17:04, Marcus Redeker wrote: All, is the org.jboss.mq.server.MessageCache also used if we have a Point-To-Point connection without durable subscriber? Or is it only used with durable subscriber? It is used for all messages. Typically if you have persistent messages and permenant queues/subscritions the cache isn't really used if you use jdbc2 persistence. Regards, Adrian Thanks, --Marcus --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] WAR Classloading in 3.2.1 vs 3.2.2
Hello List, According to the 3.2.1 administration book, *classes loaded by a WAR class loader are not visible to the rest of the server. This behavior seems to have changed in 3.2.2. Has anyone else seen this behavior? Does this mean that the documentation has to be updated for the 3.2 series? It seems like a somewhat drastic change for a maintenance release... Thanks! Patrick *The WARDeployer behaves differently than other deployers in that it only adds its WAR archive to the DeploymentInfo UCL classpath. The loading of classes from the WAR WEB-INF/classes and WEB-INF/lib locations is handled by the servlet container class loader. The servlet container class loaders delegate to the WAR DeploymentInfo UCL as their parent class loader, but the server container class loader is not part of the JBoss class loader repository. Therefore, classes inside of a WAR are not visible to other components. JBoss Administration and Development, 3rd edition, p 170 --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] WAR Classloading in 3.2.1 vs 3.2.2
On Mon, 2003-12-01 at 18:46, Patrick Peralta wrote: Hello List, According to the 3.2.1 administration book, *classes loaded by a WAR class loader are not visible to the rest of the server. This behavior seems to have changed in 3.2.2. Has anyone else seen this behavior? Does this mean that the documentation has to be updated for the 3.2 series? It seems like a somewhat drastic change for a maintenance release... See jbossweb-xxx.sar/META-INF/jboss-service.xml and UseJBossWebLoader Regards, Adrian Thanks! Patrick *The WARDeployer behaves differently than other deployers in that it only adds its WAR archive to the DeploymentInfo UCL classpath. The loading of classes from the WAR WEB-INF/classes and WEB-INF/lib locations is handled by the servlet container class loader. The servlet container class loaders delegate to the WAR DeploymentInfo UCL as their parent class loader, but the server container class loader is not part of the JBoss class loader repository. Therefore, classes inside of a WAR are not visible to other components. JBoss Administration and Development, 3rd edition, p 170 --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] replace JBossMQ by Tibco ?
On Mon, 2003-12-01 at 18:21, Ionel GARDAIS wrote: Hi, Is it possible to replace JBossMQ by the Tibco messaging system ? Heard of people doing it, even helped somebody do it over the phone. I got the impression he was following some Tibco docs? Sorry I don't have the reference. If so, how to do this ? Put the jars in server/default/lib find someway to include tibco's jndi within jboss's tree. Specify the Tibco jndi config for the JMSProvider at the top of jms-ds.xml I rememeber some config xml that should be put in server/default/conf. Because the guy tried to hot deploy it in server/default/deploy :-) Remove jbossmq? Regards, Adrian = -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Multihome JBoss Issue
Status Update on Multihome A vanilla InitialContext worked as you suggested, thank you. Here is what we observed. If you run with the implicit host subsequent launches of JBoss with an explicit host will fail with the JNDI connection error. Killing the implicit (localhost) JBoss has no effect which seems to suggest the JNDI service is still running. Also, there is no way to perform a clean shutdown since shutdown does not accept the --host switch. Moreover, shutting down without a host switch gives you this error: 11:28:07,623 WARN [NamingContext] Failed to connect to http:1099 javax.naming.CommunicationException: Failed to connect to server http:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server http:1099 [Root exception is java.net.UnknownHostException: http: http]] The solution is to use the vanilla InitialContext() OR, and this is also a good solution, always startup explicit hosts and do not launch localhost. -Original Message- From: Bill Burke [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 2:37 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Multihome JBoss Issue Is the JSP and SessionBean within same VM? Then just do new InitialContext(); make sure that jboss/server/xxx/conf/jndi.properties has the Provider URL commented out. This will force JBoss to connect locally rather than going over net. Maybe you have a jndi.properties file? Or maybe you have a Provider URL hardcoded with your JSP. Bill Rod Macpherson wrote: Thanks Bill, Scott posted this as well. I am using that but here is the problem 1. Have a box with three virtual IP addresses we will call default, primary and secondary. 2. Launch JBoss on primary using --host primary with nothing running on the others. 3. Telnet to primary port 1099 reveals that JNDI is listening. 4. Browsing to primary:8080 works fine revealing that JBoss is up and running on primary. Here is the problem when we try to access a session bean lookup from a given JSP page: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 1.2.11.21; nested exception is: java.net.ConnectException: Connection refused: connect] Here is where that IP address 1.2.11.21 fits in: Default 1.2.11.21 (not running anything but access is being attempted) Primary 1.2.11.22 (running JBoss) Secondary 1.2.11.23 (not running anything) As you can see, there is no JNDI or RMI listener on 1.2.11.21 so no wonder it is complaining. The listener is on primary where it should be. I am using the jboss.bind.address is being reported as primary and that is being used to cobble together the JNDI properties prior to doing the context.lookup. So everything looks cool and this used to work. It still works like a charm on my home PC. Ideas? Our multihome 3.2.2 is fubar:( TIA, (P.S. If we need the JBG to fix this that's not a problem but want to cover all the bases first) Rod -Original Message- From: Bill Burke [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 1:25 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Multihome JBoss Issue System.getProperty(jboss.bind.address); Rod Macpherson wrote: I use this to get the JNDI properties and bind Globals.HOST in a static class initializer using java.net.InetAddress.getLocalHost().getHostName(). The problem is that method returns the hostname of my box NOT the hostname that JBoss was started with using the --host switch. Given the static method call and the fact that the JVM is not running on the bound --host, it's not surprising that Globals.HOST is not what I want but how then do we get the --host value? public static Properties getJNDIProperties() { Properties properties = new Properties(); if(Globals.JBOSS == Boolean.TRUE) { properties.put(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); properties.put(java.naming.provider.url, Globals.HOST + :1099); properties.put(java.naming.factory.url.pkgs, org.jboss.naming); } -- Bill Burke Chief Architect JBoss Group LLC. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
RE: [JBoss-user] replace JBossMQ by Tibco ?
You should be able to. Check the path 753022 (http://sourceforge.net/tracker/index.php?func=detailaid=753022group_id=22 866atid=376687), it is a detailed readme to configure WSMQ as a JMS provider in Jboss. You should be able to apply the same recipe for Tibco. Thomas -Original Message- From: Ionel GARDAIS [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 1:22 PM To: jboss-user Subject: [JBoss-user] replace JBossMQ by Tibco ? Hi, Is it possible to replace JBossMQ by the Tibco messaging system ? If so, how to do this ? = -- Regards, Ionel ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 3.2.3
This is fixed in Branch_3_2 and HEAD. The bug was that, the fields with read-time-out=-1 would never be loaded. Thanks for the details. Rafal Kedziorski wrote: At 17:31 01.12.2003, Alexey Loubyansky wrote: Unfortunately, I still can't reproduce it. Could you please provide me with the DDs and instructions to reproduce this? Thank you. We have problems with Tables, where one column names is name. Than I call findAll() and call the getName() method. I just took our application which run without any problem with JBoss 3.2.2 and Jetty, configure log4j and mysql-ds.xml and deploy our ear. We have this table: CREATE TABLE `codec` ( `codec_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(20) NOT NULL, `description` VARCHAR(100) NOT NULL, `file_suffix` VARCHAR(50) NOT NULL, `mime_type`VARCHAR(50) NOT NULL, # PRIMARY KEY (`codec_id`) ) TYPE=InnoDB; CREATE UNIQUE INDEX `codec_name__idx` ON `codec` (`name`); and this mathod in our media session bean: public List getAllCodecVO() throws OMAException { logger.debug(getAllCodecVO() entered); CodecVOHelper codecVOHelper = CodecVOHelper.getInstance(); try { CodecBeanLocalHome codecHome = (CodecBeanLocalHome) serviceLocator.getLocalHome(JNDINamesMedia.CODEC_EJB); Collection codecCol = codecHome.findAll(); int codecColSize = codecCol.size(); List resultList = new ArrayList(codecColSize); Iterator codecColIte = codecCol.iterator(); for (int i = 0; i codecColSize; i++) { CodecBeanLocal codecLocal = (CodecBeanLocal) codecColIte.next(); CodecVO codecVO = codecVOHelper.getVO(codecLocal); resultList.add(codecVO); } return resultList; } catch (ServiceLocatorException sle) { logger.fatal(getAllCodecVO() failed with ServiceLocatorException, sle); throw new OMAException(MediaBean::getAllCodecVO() failed with ServiceLocatorException, ErrorIDs.FATAL_ERROR); } catch (FinderException fe) { logger.fatal(getAllCodecVO() failed with FinderException, fe); throw new OMAException(MediaBean::getAllCodecVO() failed with FinderException, ErrorIDs.FATAL_ERROR); } } getVO() in CodecVOHelper looks so: public CodecVO getVO(CodecBeanLocal c) { if (c != null) { CodecVO vo = new CodecVO(c.getCodec_id(), c.getName(), c.getDescription(), c.getFile_suffix(), c.getMime_type()); return vo; } return null; } Regards, Rafal --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Two stateful EJBs share the same passivation file?
Hi, We have JBoss 3.2.1-tomcat 4.1.24 combo running on Linux. The problem we see is: when one instance of stateful EJB fails with EJBException, more often than not another instance of the same stateful EJB fails with NoSuchObjectException. We've seen up to 5 different instances fail after the first failure. And the most interesting thing is - stack traces for all failed instances refer to the SAME file name. Here's an example. This thread'd produced an EJBException first and the subsequent call to the stateful EJB failed with NoSuchObjectException (expected behaviour): Caused by: java.rmi.NoSuchObjectException: Could not activate; failed to restore state; CausedByException is: /home/re/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/sessions/BagEJB-dnlqu6 13-4/dno0r5tp-87d.ser (No such file or directory) at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:1 22) at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:212) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) 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.StatefulSessionContainer.internalInvoke(StatefulSessionContain er.java:410) at org.jboss.ejb.Container.invoke(Container.java:674) at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:104) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) at $Proxy187.getUserId(Unknown Source) at com.redenvelope.recs.framework.Locker.makeBag(Locker.java:337) ... 52 more And then the next call to a DIFFERENT instance of the same stateful EJB fails with NoSuchObjectException (notice the file name - the same as above) Caused by: java.rmi.NoSuchObjectException: Could not activate; failed to restore state; CausedByException is: /home/re/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/sessions/BagEJB-dnlqu6 13-4/dno0r5tp-87d.ser (No such file or directory) at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:1 22) at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:212) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) 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.StatefulSessionContainer.internalInvoke(StatefulSessionContain er.java:410) at org.jboss.ejb.Container.invoke(Container.java:674) at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:104) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) at $Proxy187.getUserId(Unknown Source) at