[JBoss-dev] Backend session information - Tx - Data distribution
Title: Backend session information - Tx - Data distribution Hi, I already asked this question on the user-list, but got not a single answer. Could somebody help me please? I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients. In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc. It is important that data is distributed only when the container transaction commits. What's the best way to do this? Create an MBean, just like the TxManager works, with a ThreadLocal variable? What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? Also, is it possible to lookup the current transaction or transactionID or info or transaction information? Thanks in advance for any tips! Wonne
[JBoss-dev] Automated JBoss(Branch_3_0) Testsuite Results: 6-June-2002
Number of tests run: 606 Successful tests: 576 Errors:29 Failures: 1 [time of test: 6 June 2002 0:29 GMT] [java.version: 1.3.1] [java.vendor: Apple Computer, Inc.] [java.vm.version: 1.3.1] [java.vm.name: Java HotSpot(TM) Client VM] [java.vm.info: mixed mode] [os.name: Mac OS X] [os.arch: ppc] [os.version: 10.1.4] See http://lubega.com/testarchive/${build.uid} for details of this test. See http://lubega.com for general test information. NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. Remember - if a test becomes broken after your changes - fix it or fix the test! Oh dear - still got some errors! Thanks for all your effort - we really do love you! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-563384 ] SAR with entity fails on server start
Bugs item #563384, was opened at 2002-06-01 20:56 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 Category: JBossCMP Group: v3.1 Status: Open Resolution: Invalid Priority: 5 Submitted By: Scott M Stark (starksm) Assigned to: Scott M Stark (starksm) Summary: SAR with entity fails on server start Initial Comment: The attached sar include an entity bean for perisisting the service config. The sar deploys fine if the JBoss server is running, but if the server is started with the sar in the deploy directory it fails to start. There are depends tags at both the ejb and service level on the DefaultDS but this does not work. -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 07:42 Message: Logged In: YES user_id=211618 I think that the moving of the creation of the entityBridge in the start part of JDBCStoreManager have this problem: when is invoked the startCommand (instance of JDBCStartCommand) there is a NPE at line 103 of JDBCStartCommand because cmrField.getRelatedJDBCEntity () returns null. This method returns null because in the costructor of JDBCEntityBridge class is invoked in the start method of JDBCStoreManager class and not in create method and so there the call of initRelatedData in JDBCCMRFieldBridge simply returns (the related entity is not initialized). The patch is simple... in the JDBCStoreManager class move the lines // setup the type factory, which is used to map java types to sql types. typeFactory = new JDBCTypeFactory( metaData.getTypeMapping(), metaData.getJDBCApplication().getValueClasses()); // create the bridge between java land and this engine (sql land) entityBridge = new JDBCEntityBridge(metaData, this); from the start method at the end of create method. I cannot give you a stacktrace :-) because I have triggered (and resolved) the problem at home and now I am at work. I cannot test fully this patch because in the HEAD testsuite I have other errors in CMR tests (I think). Claudio -- Comment By: Scott M Stark (starksm) Date: 2002-06-04 04:33 Message: Logged In: YES user_id=175228 Yes, I have reduced the work being done by the JDBCStoreManager in its create step to resolve the problem. -- Comment By: David Jencks (d_jencks) Date: 2002-06-02 02:43 Message: Logged In: YES user_id=60525 This is caused by the cmp framework not abiding by the same service lifecycle contracts as the jca framework mbeans. The jca makes the jca mbeans available, and useable and the DataSource bound after the start step, whereas the cmp framework uses the DataSource in its create step. IMO the best fix for this is to make the cmp framework abide by the contracts: create sets up everything visible to other parties but uses nothing outside the current mbean start can use references to the outside world. I'm willing to fix the problem in this way if there is general agreement that this is the best solution. david jencks -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-563384 ] SAR with entity fails on server start
Bugs item #563384, was opened at 2002-06-01 20:56 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 Category: JBossCMP Group: v3.1 Status: Open Resolution: Invalid Priority: 5 Submitted By: Scott M Stark (starksm) Assigned to: Scott M Stark (starksm) Summary: SAR with entity fails on server start Initial Comment: The attached sar include an entity bean for perisisting the service config. The sar deploys fine if the JBoss server is running, but if the server is started with the sar in the deploy directory it fails to start. There are depends tags at both the ejb and service level on the DefaultDS but this does not work. -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 07:56 Message: Logged In: YES user_id=211618 OK, I have checked the testsuite and so you can see that the cmp2 tests are falling by the NPE (and you have the stacktrace in jboss logs). I rerun the testsuite... -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 07:42 Message: Logged In: YES user_id=211618 I think that the moving of the creation of the entityBridge in the start part of JDBCStoreManager have this problem: when is invoked the startCommand (instance of JDBCStartCommand) there is a NPE at line 103 of JDBCStartCommand because cmrField.getRelatedJDBCEntity () returns null. This method returns null because in the costructor of JDBCEntityBridge class is invoked in the start method of JDBCStoreManager class and not in create method and so there the call of initRelatedData in JDBCCMRFieldBridge simply returns (the related entity is not initialized). The patch is simple... in the JDBCStoreManager class move the lines // setup the type factory, which is used to map java types to sql types. typeFactory = new JDBCTypeFactory( metaData.getTypeMapping(), metaData.getJDBCApplication().getValueClasses()); // create the bridge between java land and this engine (sql land) entityBridge = new JDBCEntityBridge(metaData, this); from the start method at the end of create method. I cannot give you a stacktrace :-) because I have triggered (and resolved) the problem at home and now I am at work. I cannot test fully this patch because in the HEAD testsuite I have other errors in CMR tests (I think). Claudio -- Comment By: Scott M Stark (starksm) Date: 2002-06-04 04:33 Message: Logged In: YES user_id=175228 Yes, I have reduced the work being done by the JDBCStoreManager in its create step to resolve the problem. -- Comment By: David Jencks (d_jencks) Date: 2002-06-02 02:43 Message: Logged In: YES user_id=60525 This is caused by the cmp framework not abiding by the same service lifecycle contracts as the jca framework mbeans. The jca makes the jca mbeans available, and useable and the DataSource bound after the start step, whereas the cmp framework uses the DataSource in its create step. IMO the best fix for this is to make the cmp framework abide by the contracts: create sets up everything visible to other parties but uses nothing outside the current mbean start can use references to the outside world. I'm willing to fix the problem in this way if there is general agreement that this is the best solution. david jencks -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] IllegalAccessError in 3.0.0
I've already asked this on the -user list. I have a couple of EARs that run fine in 2.4, and I am wondering what has changed to cause this to happen. Environment is Win2K/3.0.0 release/JDK 1.4.0. I have 2 EARs : sef.ear and aa.ear. sef.ear contains an EJB - SessionManagerBean, which loads and saves objects of type 'SessionEnv' into a database. Both SessionManagerBean and SessionEnv exist in the same package. aa.ear contains unrelated code, but has a 'sef.jar' which contains a copy of SessionEnv, so that the SessionManagerBean is callable by that application. SessionEnv has a protected method called setExpiryDate which is called by SessionManagerBean.load, which is allowed because both classes are in the same package. A servlet inside sef.ear configures a new SessionEnv object, and calls save on the EJB. this writes the instance to an Oracle database. Later on, a servlet inside aa.ear calls the SessionManagerBean EJB in order to load the EJB. This has always worked before. Now the instantiation appears to work correctly. However, when the EJB attempts to call setExpiryDate (the protected method), I get: 08:49:17,329 ERROR [LogInterceptor] TransactionRolledbackException, causedBy: java.lang.IllegalAccessError: try to access method com.newton.sef.service.session.SessionEnv.setExpiryDate(Ljava/util/Date;)V from class com.newton.se f.service.session.SessionManagerBean at com.newton.sef.service.session.SessionManagerBean.load(Unknown Source) 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:664) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach edConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe ssionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 9) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav a:313) at org.jboss.ejb.Container.invoke(Container.java:705) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInter ceptor.java:111) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) ...error trimmed... Both aa.ear and sef.ear were recompiled from source and redeployed at the same time. Am I missing something or does anyone have any ideas as to why the JVM thinks it shouldn't be allowed to access the method? ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-563384 ] SAR with entity fails on server start
Bugs item #563384, was opened at 2002-06-01 20:56 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 Category: JBossCMP Group: v3.1 Status: Open Resolution: Invalid Priority: 5 Submitted By: Scott M Stark (starksm) Assigned to: Scott M Stark (starksm) Summary: SAR with entity fails on server start Initial Comment: The attached sar include an entity bean for perisisting the service config. The sar deploys fine if the JBoss server is running, but if the server is started with the sar in the deploy directory it fails to start. There are depends tags at both the ejb and service level on the DefaultDS but this does not work. -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 08:36 Message: Logged In: YES user_id=211618 OK, I have checked the testsuite and so you can see that the cmp2 tests are falling by the NPE (and you have the stacktrace in jboss logs). I rerun the testsuite... -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 07:56 Message: Logged In: YES user_id=211618 OK, I have checked the testsuite and so you can see that the cmp2 tests are falling by the NPE (and you have the stacktrace in jboss logs). I rerun the testsuite... -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 07:42 Message: Logged In: YES user_id=211618 I think that the moving of the creation of the entityBridge in the start part of JDBCStoreManager have this problem: when is invoked the startCommand (instance of JDBCStartCommand) there is a NPE at line 103 of JDBCStartCommand because cmrField.getRelatedJDBCEntity () returns null. This method returns null because in the costructor of JDBCEntityBridge class is invoked in the start method of JDBCStoreManager class and not in create method and so there the call of initRelatedData in JDBCCMRFieldBridge simply returns (the related entity is not initialized). The patch is simple... in the JDBCStoreManager class move the lines // setup the type factory, which is used to map java types to sql types. typeFactory = new JDBCTypeFactory( metaData.getTypeMapping(), metaData.getJDBCApplication().getValueClasses()); // create the bridge between java land and this engine (sql land) entityBridge = new JDBCEntityBridge(metaData, this); from the start method at the end of create method. I cannot give you a stacktrace :-) because I have triggered (and resolved) the problem at home and now I am at work. I cannot test fully this patch because in the HEAD testsuite I have other errors in CMR tests (I think). Claudio -- Comment By: Scott M Stark (starksm) Date: 2002-06-04 04:33 Message: Logged In: YES user_id=175228 Yes, I have reduced the work being done by the JDBCStoreManager in its create step to resolve the problem. -- Comment By: David Jencks (d_jencks) Date: 2002-06-02 02:43 Message: Logged In: YES user_id=60525 This is caused by the cmp framework not abiding by the same service lifecycle contracts as the jca framework mbeans. The jca makes the jca mbeans available, and useable and the DataSource bound after the start step, whereas the cmp framework uses the DataSource in its create step. IMO the best fix for this is to make the cmp framework abide by the contracts: create sets up everything visible to other parties but uses nothing outside the current mbean start can use references to the outside world. I'm willing to fix the problem in this way if there is general agreement that this is the best solution. david jencks -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565026 ] Warning: No warning message found
Bugs item #565026, was opened at 2002-06-05 22:24 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565026group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Closed Resolution: Duplicate Priority: 5 Submitted By: Daniel Sieroka (sieroka) Assigned to: Christian Riege (lqd) Summary: Warning: No warning message found Initial Comment: 15:57:11,048 INFO [EJBDeployer] Bean : PS_BACKUP_SV_MAPPING Section: 10.6.13 Warning: No warning message found, please file a Bug report. 15:57:15,626 INFO [EJBDeployer] -- Comment By: Christian Riege (lqd) Date: 2002-06-06 11:16 Message: Logged In: YES user_id=176671 see bug 564862; this has been fixed in CVS Branch_3_0 and HEAD. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565026group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565237 ] StatefulHandleImpl not serializable
Bugs item #565237, was opened at 2002-06-06 19:31 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565237group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Stephen Coy (scoy) Assigned to: Nobody/Anonymous (nobody) Summary: StatefulHandleImpl not serializable Initial Comment: JBoss 3.0.0 final MacOS X 10.1.5 Java 1.3.1 The class org.jboss.proxy.ejb.handle.StatefulHandleImpl is not properly serializable because (I think) it has an org.jboss.invocation.Invoker member. Some invoker implementations are serializable and some are not. I have a stateful session bean containing a collection of data objects containing back pointers (via javax.ejb.Handle) to the session bean. Passivation of the session bean fails while serializing the data objects: 2002-06-06 18:06:23,806 ERROR [org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter] unhandled throwable java.rmi.ServerException: Could not passivate; nested exception is: java.rmi.MarshalException: Invalid remote object java.rmi.MarshalException: Invalid remote object at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:153) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea m.java:1864) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1210) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.writeExtern al(JRMPInvokerProxy.java:149) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1180) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at com.whitesmiths.sacha.ejb.worklists.interfaces.WorklistElement. writeObject(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea m.java:1864) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1210) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java: 1098) at java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(Ob jectOutputStream.java:456) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 361) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.pas sivateSession(StatefulSessionFilePersistenceManager.java:288) at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(Sta tefulSessionInstanceCache.java:78) at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractIn stanceCache.java:615) at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:20 6) at java.lang.Thread.run(Thread.java:496) 2002-06-06 18:06:39,260 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean Priv: old capacity = 100, new capacity = 50 2002-06-06 18:06:59,049 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean GSMServiceFacade: old capacity = 100, new capacity = 50 2002-06-06 18:07:00,982 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean NumberStatus: old capacity = 100, new capacity = 50 2002-06-06 18:07:02,759 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean GSMService: old capacity = 100, new capacity = 50 2002-06-06 18:07:11,227 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean Numbers: old capacity = 100, new capacity = 50
[JBoss-dev] [ jboss-Bugs-565237 ] StatefulHandleImpl not serializable
Bugs item #565237, was opened at 2002-06-06 19:31 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565237group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Stephen Coy (scoy) Assigned to: Nobody/Anonymous (nobody) Summary: StatefulHandleImpl not serializable Initial Comment: JBoss 3.0.0 final MacOS X 10.1.5 Java 1.3.1 The class org.jboss.proxy.ejb.handle.StatefulHandleImpl is not properly serializable because (I think) it has an org.jboss.invocation.Invoker member. Some invoker implementations are serializable and some are not. I have a stateful session bean containing a collection of data objects containing back pointers (via javax.ejb.Handle) to the session bean. Passivation of the session bean fails while serializing the data objects: 2002-06-06 18:06:23,806 ERROR [org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter] unhandled throwable java.rmi.ServerException: Could not passivate; nested exception is: java.rmi.MarshalException: Invalid remote object java.rmi.MarshalException: Invalid remote object at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:153) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea m.java:1864) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1210) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.writeExtern al(JRMPInvokerProxy.java:149) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1180) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at com.whitesmiths.sacha.ejb.worklists.interfaces.WorklistElement. writeObject(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea m.java:1864) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1210) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java: 1098) at java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(Ob jectOutputStream.java:456) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 361) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.pas sivateSession(StatefulSessionFilePersistenceManager.java:288) at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(Sta tefulSessionInstanceCache.java:78) at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractIn stanceCache.java:615) at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:20 6) at java.lang.Thread.run(Thread.java:496) 2002-06-06 18:06:39,260 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean Priv: old capacity = 100, new capacity = 50 2002-06-06 18:06:59,049 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean GSMServiceFacade: old capacity = 100, new capacity = 50 2002-06-06 18:07:00,982 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean NumberStatus: old capacity = 100, new capacity = 50 2002-06-06 18:07:02,759 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean GSMService: old capacity = 100, new capacity = 50 2002-06-06 18:07:11,227 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean Numbers: old capacity = 100, new capacity = 50
[JBoss-dev] [ jboss-Bugs-563384 ] SAR with entity fails on server start
Bugs item #563384, was opened at 2002-06-01 20:56 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 Category: JBossCMP Group: v3.1 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Scott M Stark (starksm) Assigned to: Claudio Vesco (cazzius) Summary: SAR with entity fails on server start Initial Comment: The attached sar include an entity bean for perisisting the service config. The sar deploys fine if the JBoss server is running, but if the server is started with the sar in the deploy directory it fails to start. There are depends tags at both the ejb and service level on the DefaultDS but this does not work. -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 10:03 Message: Logged In: YES user_id=211618 The cmp2 testsuite is now ok. CVS HEAD fixed -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 08:36 Message: Logged In: YES user_id=211618 OK, I have checked the testsuite and so you can see that the cmp2 tests are falling by the NPE (and you have the stacktrace in jboss logs). I rerun the testsuite... -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 07:56 Message: Logged In: YES user_id=211618 OK, I have checked the testsuite and so you can see that the cmp2 tests are falling by the NPE (and you have the stacktrace in jboss logs). I rerun the testsuite... -- Comment By: Claudio Vesco (cazzius) Date: 2002-06-06 07:42 Message: Logged In: YES user_id=211618 I think that the moving of the creation of the entityBridge in the start part of JDBCStoreManager have this problem: when is invoked the startCommand (instance of JDBCStartCommand) there is a NPE at line 103 of JDBCStartCommand because cmrField.getRelatedJDBCEntity () returns null. This method returns null because in the costructor of JDBCEntityBridge class is invoked in the start method of JDBCStoreManager class and not in create method and so there the call of initRelatedData in JDBCCMRFieldBridge simply returns (the related entity is not initialized). The patch is simple... in the JDBCStoreManager class move the lines // setup the type factory, which is used to map java types to sql types. typeFactory = new JDBCTypeFactory( metaData.getTypeMapping(), metaData.getJDBCApplication().getValueClasses()); // create the bridge between java land and this engine (sql land) entityBridge = new JDBCEntityBridge(metaData, this); from the start method at the end of create method. I cannot give you a stacktrace :-) because I have triggered (and resolved) the problem at home and now I am at work. I cannot test fully this patch because in the HEAD testsuite I have other errors in CMR tests (I think). Claudio -- Comment By: Scott M Stark (starksm) Date: 2002-06-04 04:33 Message: Logged In: YES user_id=175228 Yes, I have reduced the work being done by the JDBCStoreManager in its create step to resolve the problem. -- Comment By: David Jencks (d_jencks) Date: 2002-06-02 02:43 Message: Logged In: YES user_id=60525 This is caused by the cmp framework not abiding by the same service lifecycle contracts as the jca framework mbeans. The jca makes the jca mbeans available, and useable and the DataSource bound after the start step, whereas the cmp framework uses the DataSource in its create step. IMO the best fix for this is to make the cmp framework abide by the contracts: create sets up everything visible to other parties but uses nothing outside the current mbean start can use references to the outside world. I'm willing to fix the problem in this way if there is general agreement that this is the best solution. david jencks -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563384group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565279 ] null instead of stacktrace!!!!
Bugs item #565279, was opened at 2002-06-06 14:11 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565279group_id=22866 Category: JBossServer Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Marius Kotsbak (mkotsbak) Assigned to: Nobody/Anonymous (nobody) Summary: null instead of stacktrace Initial Comment: When a runtimeexception (nullpointer, arrayindexoutofbound etc) happens inside a bean method, a serverexception is displayed, but it does NOT display the stacktrace, only ex.getMessage(), which is often null. This gives no clue of where the error really is. Example: -- java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: null Embedded Exception null; nested exception is: javax.ejb.EJBException: null Embedded Exception null - ex.printstacktrace is needed! Check out my patch #562036 (http://sourceforge.net/tracker/index.php?func=detailaid=562036group_id=22866atid=376687), which does that. Don't know any problems applying this (i haven't had any problem myself, other than I often forget to apply it - so please include it in cvs) This bug is really annoying, I get this exception quite often because of nullpointers. Marius K Boostcom.no -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565279group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Backend session information - Tx - Data distribution
I'm still a little unclear about what you want. I think it is to be notified right after every transaction commits. Unfortuneately there is no way to register a listener with the tx manager for all transactions. I think the simplest ways to do this are: if you use only cmt, no bmt, modify the tx interceptor to call something after (successful) commit If you use bmt as well, modify the tx manager to notify you. david jencks On 2002.06.06 02:29:52 -0400 Keysers, Wonne wrote: Hi, I already asked this question on the user-list, but got not a single answer. Could somebody help me please? I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients. In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc. It is important that data is distributed only when the container transaction commits. What's the best way to do this? Create an MBean, just like the TxManager works, with a ThreadLocal variable? What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? Also, is it possible to lookup the current transaction or transactionID or info or transaction information? Thanks in advance for any tips! Wonne !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=US-ASCII META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.19 TITLEBackend session information - Tx - Data distribution/TITLE /HEAD BODY PFONT SIZE=2Hi, /FONT /P PFONT SIZE=2I already asked this question on the user-list, but got not a single answer. Could somebody help me please?/FONT /P PFONT SIZE=2I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients./FONT/P PFONT SIZE=2In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc.nbsp; It is important that data is distributed only when the container transaction commits./FONT/P PFONT SIZE=2What's the best way to do this?/FONT /P PFONT SIZE=2Create an MBean, just like the TxManager works, with a ThreadLocal variable? /FONT BRFONT SIZE=2What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? /FONT/P PFONT SIZE=2Also, is it possible to lookup the current transaction or transactionID or info or transaction information?/FONT /P BR PFONT SIZE=2Thanks in advance for any tips!/FONT /P PFONT SIZE=2Wonne/FONT /P /BODY /HTML ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Patches-565308 ] to correct build/deploy of 3.0QuickStart
Patches item #565308, was opened at 2002-06-06 15:37 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376687aid=565308group_id=22866 Category: JBossDoc Group: CVS HEAD Status: Open Resolution: None Priority: 5 Submitted By: Massimo Lusetti (datacode) Assigned to: Nobody/Anonymous (nobody) Summary: to correct build/deploy of 3.0QuickStart Initial Comment: I've applied very small patches to the template project build and deploy system to make it build and deploy correctly without warning. I've also supplied and .ant.properties example file. Regards and THANKS FOR THE INCREDIBLE JOB YOU'RE DOING! Massimo -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376687aid=565308group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] 3.0QuickStart template project patch
On Wed, 2002-06-05 at 21:15, Tobias Frech wrote: Hi! Great! Why not submit your changes as a patch at Sourceforge ? You should be able to attach files there too. If you want to post diffs please use the -u option. Done. -- Massimo Lusetti ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] I can't believe france is out of the world cup
I'll say we suck... oh well, can't win them all, but to go out that way :( marcf x Marc Fleury, Ph.D President JBoss Group, LLC x ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] I can't believe france is out of the world cup
I'll say we suck... oh well, can't win them all, but to go out that way :( They still have a tiny chance the 11th of June! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] I can't believe france is out of the world cup
I'll say we suck... oh well, can't win them all, but to go out that way :( They still have a tiny chance the 11th of June! Come on, Tomasson will kick them out with 3-0 ! Ah, justice is made ! Go Italy ! Simon ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565325 ] generated-sql not executed correctly
Bugs item #565325, was opened at 2002-06-06 17:14 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565325group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Bogdan Ghidireac (ghidi) Assigned to: Nobody/Anonymous (nobody) Summary: generated-sql not executed correctly Initial Comment: Hi, I have created a finder that is using declared-sql. The problem is that the generated sql does not substiture ? with the actual value of the parameter as you can see in the log generated by HypersonicSQL. [jbosscmp-jdbc.xml] entity ejb-nameEmployee/ejb-name query query-method method- namefindEmployeesByPattern/method-name method-params method-paramjava.lang.String/method- param /method-params /query-method declared-sql wherefirstName LIKE '{0}%'/where /declared-sql /query /entity JbossCMP log 17:08:05,054 DEBUG [findEmployeesByPattern] Executing SQL: SELECT employeeId, firstName, lastName, address, sSN, email FROM EMPLOYEE WHERE firstName LIKE '?%' HypersonicSQL log 17:08:05,064 INFO [STDOUT] 3:SELECT employeeId, firstName, lastName, address, sSN, email FROM EMPLOYEE WHERE firstName LIKE '?%' I am using Jboss3.0.0 final. Regards, Bogdan -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565325group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] I can't believe france is out of the world cup
I'm just pleased that the US showed Portugal up. They can go back to their usual strategy of treading water and blaming the low support of soccer in the US now. I'm content. ;) -Original Message- From: Bordet, Simone [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 10:13 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] I can't believe france is out of the world cup I'll say we suck... oh well, can't win them all, but to go out that way :( They still have a tiny chance the 11th of June! Come on, Tomasson will kick them out with 3-0 ! Ah, justice is made ! Go Italy ! Simon ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] I can't believe france is out of the world cup
Come on, Tomasson will kick them out with 3-0 ! Ah, justice is made ! Go Italy ! Simone, I personnaly don't care much about football: I just give a little support for French. Today football, this week-end the legislative elections, pfhh... what a hard time! ;) But I am sure you know what I mean: Italian situation has strong similarities with France, but a few year earlier! ;) This new World-Cup mailing-list is cool! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565325 ] generated-sql not executed correctly
Bugs item #565325, was opened at 2002-06-06 09:14 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565325group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Closed Resolution: Invalid Priority: 5 Submitted By: Bogdan Ghidireac (ghidi) Assigned to: Dain Sundstrom (dsundstrom) Summary: generated-sql not executed correctly Initial Comment: Hi, I have created a finder that is using declared-sql. The problem is that the generated sql does not substiture ? with the actual value of the parameter as you can see in the log generated by HypersonicSQL. [jbosscmp-jdbc.xml] entity ejb-nameEmployee/ejb-name query query-method method- namefindEmployeesByPattern/method-name method-params method-paramjava.lang.String/method- param /method-params /query-method declared-sql wherefirstName LIKE '{0}%'/where /declared-sql /query /entity JbossCMP log 17:08:05,054 DEBUG [findEmployeesByPattern] Executing SQL: SELECT employeeId, firstName, lastName, address, sSN, email FROM EMPLOYEE WHERE firstName LIKE '?%' HypersonicSQL log 17:08:05,064 INFO [STDOUT] 3:SELECT employeeId, firstName, lastName, address, sSN, email FROM EMPLOYEE WHERE firstName LIKE '?%' I am using Jboss3.0.0 final. Regards, Bogdan -- Comment By: Dain Sundstrom (dsundstrom) Date: 2002-06-06 09:30 Message: Logged In: YES user_id=251431 It is not legal to try to put a parameter in a literal. This is a JDBC thing not a JBoss thing. Try this instead. wherefirstName LIKE CONCAT({0}, '%')/where It should work, but if it doesn't it is still not a JBoss bug, so I'm going to close this report. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565325group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] I can't believe france is out of the world cup
hi, On Thu, 2002-06-06 at 16:25, Rhett Aultman wrote: I'm just pleased that the US showed Portugal up. They can go back to their usual strategy of treading water and blaming the low support of soccer in the US now. I'm content. ;) he. portugal lost on purpose b/c they didn't want to get a beating by the Germans in the semis :P. christian ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] I can't believe france is out of the world cup
Go Italy!!! uhmmm, can we change jboss-development in soccer-jboss? :-))) Claudio -Original Message- From: Sacha Labourey [SMTP:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] I can't believe france is out of the world cup Come on, Tomasson will kick them out with 3-0 ! Ah, justice is made ! Go Italy ! Simone, I personnaly don't care much about football: I just give a little support for French. Today football, this week-end the legislative elections, pfhh... what a hard time! ;) But I am sure you know what I mean: Italian situation has strong similarities with France, but a few year earlier! ;) This new World-Cup mailing-list is cool! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] Backend session information - Tx - Data distribution
Title: RE: [JBoss-dev] Backend session information - Tx - Data distribution Thanks for replying. What I want is the following: During a CMT, all changes are logged to the distribution engine. When the transaction is about to commit, the dist. engine tries to distribute the right changes. (basically this is a copy of the new values in an export table) The engine not only has to use the running transaction (I could use a statefull session bean), but also has to save the password authenticated (JAAS) user(id) and the distribution information (dependant of the context) in the export table. I would like to keep my hands of JBoss' source code. I was thinking of making an MBean for the distribution engine, which is able to reuse the Tx associated with the current Thread and which allows EJB's (afterBegin()?) and other clients to register the required context information as soon as a new Tx is started. In other words, Transaction, User and other context information must be linked to the same thread just like the TxManager does with a Tx and TimeOut? (Or have I interpreted this in the wrong way?) Is all that possible? Oh yes, when I create a new ThreadLocal attribute in my new MBean, will the ThreadLocal attribute within the TxManager be overwritten or are these only known internally? Thanks a lot! Wonne -Original Message- From: David Jencks To: [EMAIL PROTECTED] Sent: 6/6/02 3:20 PM Subject: Re: [JBoss-dev] Backend session information - Tx - Data distribution I'm still a little unclear about what you want. I think it is to be notified right after every transaction commits. Unfortuneately there is no way to register a listener with the tx manager for all transactions. I think the simplest ways to do this are: if you use only cmt, no bmt, modify the tx interceptor to call something after (successful) commit If you use bmt as well, modify the tx manager to notify you. david jencks On 2002.06.06 02:29:52 -0400 Keysers, Wonne wrote: Hi, I already asked this question on the user-list, but got not a single answer. Could somebody help me please? I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients. In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc. It is important that data is distributed only when the container transaction commits. What's the best way to do this? Create an MBean, just like the TxManager works, with a ThreadLocal variable? What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? Also, is it possible to lookup the current transaction or transactionID or info or transaction information? Thanks in advance for any tips! Wonne !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=US-ASCII META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.19 TITLEBackend session information - Tx - Data distribution/TITLE /HEAD BODY PFONT SIZE=2Hi, /FONT /P PFONT SIZE=2I already asked this question on the user-list, but got not a single answer. Could somebody help me please?/FONT /P PFONT SIZE=2I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients./FONT/P PFONT SIZE=2In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc.nbsp; It is important that data is distributed only when the container transaction commits./FONT/P PFONT SIZE=2What's the best way to do this?/FONT /P PFONT SIZE=2Create an MBean, just like the TxManager works, with a ThreadLocal variable? /FONT BRFONT SIZE=2What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? /FONT/P PFONT SIZE=2Also, is it possible to lookup the current transaction or transactionID or info or transaction information?/FONT /P BR PFONT SIZE=2Thanks in advance for any tips!/FONT /P PFONT SIZE=2Wonne/FONT /P /BODY /HTML ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Backend session information - Tx - Data distribution
You could also you JMS with XA - send messages out containing whatever you need to track. This will be sent iff the transaction commits. You can then write an MDB (or any other listener) to take the messages and do whatever you want with them. You actually could (maybe) make the offline clients registered listeners on the topic(s) - that way when they connect they should get all of the messages sent since their last connect. JMS experts, correct me if I'm out of line, here. -danch David Jencks wrote: I'm still a little unclear about what you want. I think it is to be notified right after every transaction commits. Unfortuneately there is no way to register a listener with the tx manager for all transactions. I think the simplest ways to do this are: if you use only cmt, no bmt, modify the tx interceptor to call something after (successful) commit If you use bmt as well, modify the tx manager to notify you. david jencks On 2002.06.06 02:29:52 -0400 Keysers, Wonne wrote: Hi, I already asked this question on the user-list, but got not a single answer. Could somebody help me please? I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients. In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc. It is important that data is distributed only when the container transaction commits. What's the best way to do this? Create an MBean, just like the TxManager works, with a ThreadLocal variable? What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? Also, is it possible to lookup the current transaction or transactionID or info or transaction information? Thanks in advance for any tips! Wonne !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=US-ASCII META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.19 TITLEBackend session information - Tx - Data distribution/TITLE /HEAD BODY PFONT SIZE=2Hi, /FONT /P PFONT SIZE=2I already asked this question on the user-list, but got not a single answer. Could somebody help me please?/FONT /P PFONT SIZE=2I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients./FONT/P PFONT SIZE=2In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc.nbsp; It is important that data is distributed only when the container transaction commits./FONT/P PFONT SIZE=2What's the best way to do this?/FONT /P PFONT SIZE=2Create an MBean, just like the TxManager works, with a ThreadLocal variable? /FONT BRFONT SIZE=2What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? /FONT/P PFONT SIZE=2Also, is it possible to lookup the current transaction or transactionID or info or transaction information?/FONT /P BR PFONT SIZE=2Thanks in advance for any tips!/FONT /P PFONT SIZE=2Wonne/FONT /P /BODY /HTML ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Backend session information - Tx - Data distribut ion
What I suggested would let you notify after transaction completion without modifying your ejbs. This is apparently not what you want. I therefore suggest you write another layer of session beans around everything you want notifications from. The session bean will generate an abstract transaction id, added to every outgoing method call. Upon successful return, the session bean will do the notifications using the transaction id as key to find the correct info. I don't see the point of your mbean scheme, nor how it would work. david jencks On 2002.06.06 11:22:38 -0400 Keysers, Wonne wrote: Thanks for replying. What I want is the following: During a CMT, all changes are logged to the distribution engine. When the transaction is about to commit, the dist. engine tries to distribute the right changes. (basically this is a copy of the new values in an export table) The engine not only has to use the running transaction (I could use a statefull session bean), but also has to save the password authenticated (JAAS) user(id) and the distribution information (dependant of the context) in the export table. I would like to keep my hands of JBoss' source code. I was thinking of making an MBean for the distribution engine, which is able to reuse the Tx associated with the current Thread and which allows EJB's (afterBegin()?) and other clients to register the required context information as soon as a new Tx is started. In other words, Transaction, User and other context information must be linked to the same thread just like the TxManager does with a Tx and TimeOut? (Or have I interpreted this in the wrong way?) Is all that possible? Oh yes, when I create a new ThreadLocal attribute in my new MBean, will the ThreadLocal attribute within the TxManager be overwritten or are these only known internally? Thanks a lot! Wonne -Original Message- From: David Jencks To: [EMAIL PROTECTED] Sent: 6/6/02 3:20 PM Subject: Re: [JBoss-dev] Backend session information - Tx - Data distribution I'm still a little unclear about what you want. I think it is to be notified right after every transaction commits. Unfortuneately there is no way to register a listener with the tx manager for all transactions. I think the simplest ways to do this are: if you use only cmt, no bmt, modify the tx interceptor to call something after (successful) commit If you use bmt as well, modify the tx manager to notify you. david jencks On 2002.06.06 02:29:52 -0400 Keysers, Wonne wrote: Hi, I already asked this question on the user-list, but got not a single answer. Could somebody help me please? I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients. In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc. It is important that data is distributed only when the container transaction commits. What's the best way to do this? Create an MBean, just like the TxManager works, with a ThreadLocal variable? What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? Also, is it possible to lookup the current transaction or transactionID or info or transaction information? Thanks in advance for any tips! Wonne !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=US-ASCII META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.19 TITLEBackend session information - Tx - Data distribution/TITLE /HEAD BODY PFONT SIZE=2Hi, /FONT /P PFONT SIZE=2I already asked this question on the user-list, but got not a single answer. Could somebody help me please?/FONT /P PFONT SIZE=2I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients./FONT/P PFONT SIZE=2In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc.nbsp; It is important that data is distributed only when the container transaction commits./FONT/P PFONT SIZE=2What's the best way to do this?/FONT /P PFONT SIZE=2Create an MBean, just like the TxManager works, with a ThreadLocal variable? /FONT BRFONT SIZE=2What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? /FONT/P PFONT SIZE=2Also, is it possible to lookup the current transaction or transactionID or info or transaction information?/FONT /P BR PFONT SIZE=2Thanks in advance for any tips!/FONT /P PFONT SIZE=2Wonne/FONT /P /BODY /HTML
[JBoss-dev] [ jboss-Bugs-551102 ] LOCATE function in Oracle / PostgreSQL
Bugs item #551102, was opened at 2002-05-01 12:05 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=551102group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Closed Resolution: Fixed Priority: 5 Submitted By: Frederik Sauer (fredsa) Assigned to: Dain Sundstrom (dsundstrom) Summary: LOCATE function in Oracle / PostgreSQL Initial Comment: Please also refer to bug#541507 where the postgres mapping of LOCATE was changed to: (coalesce(nullif(position(?2 in substring(?1 from ?3)), 0) + ?3 -1, 0)) The current Oracle mapping is: instr(?1, ?2, ?3) There are two issue I want to describe: 1) The ordering of first two parameters in the LOCATE function 2) How the mapped function deals with the empty string as the substring to be searched for. Here goes: 1) For some reason I'm unable to locate the definitive EJB 2.0 specification which includes a description of the parameters to the LOCATE EJB-QL function. (Help anyone?) I did find plenty of derivative works which all either don't specify the meaning of the first two string parameters or explicity say that the function searches for occurences of the second string parameter in the first string parameter. In other words the current PostgreSQL mapping would need ?1 and ?2 switched, but the ordering in the Oracle mapping is correct. Since I did locate locate this information in the actual EJB-QL specification I don't want to claim that the PostgreSQL parameter ordering is wrong and the Oracle ordering is correct, but since they are different I will claim that one of them is wrong :-). 2a) The Oracle INSTR() SQL function considers a search for the the empty string (i.e. '') as futile and returns 0 (zero) to indicate the empty string was not found, regardless of what the string being searched is. The PostgreSQL POSITION() SQL function considers the empty string to be found, regardless of the length of the string being searched. I'm sorry I again do not have a good reference to the EJB specification to know which behavior is correct for the LOCATE() EJB-QL function. In my opinion the Oracle behavior is more useful, particularly since null string values get passed in as empty strings to the JDBC drivers. So, searching for a null in a string 'Any text' should not in my opinion return a match. The result of the search for '' in 'Any text' could be debated. Currently if a pass either null or '' as a parameter to a custom finder method both become '' in the final SQL statement. Assuming the Oracle behavior is preferable, then the current mapping for PostgreSQL of: (coalesce(nullif(position(?2 in substring(?1 from ?3)), 0) + ?3 -1, 0)) would need to become (coalesce(nullif(position(nullif(?2,'') in substring(?1 from ?3)), 0) + ?3 -1, 0)). Note: depending on the thoughts on 1) this PostgreSQL mapping should be further changed by swapping ?1 and ?2. 2b) If the empty string is passed as either the first or second parameter to the Oracle INSTR() SQL function, the function returns null. Since the EJB-QL function LOCATE() is supposed to return and integer, the Oracle function needs to be changed from: instr(?1, ?2, ?3) to nvl(instr(?1, ?2, ?3),0) Note: depending on the thoughts on 1) this Oracle mapping should be further changed by swapping ?1 and ?2. -- Comment By: Frederik Sauer (fredsa) Date: 2002-06-06 10:38 Message: Logged In: YES user_id=111914 This does leave the behavior when searching for the empty string (i.e. '') or searching in an empty string different between the two databases. For example: PostgreSQL: position('' in 'test') - 1 Oracle: instr('test', '') - NULL Should search for or on the empty string be considered outside the spec and thus the behavior undefined? -- Comment By: Dain Sundstrom (dsundstrom) Date: 2002-06-05 23:36 Message: Logged In: YES user_id=251431 Ok I did some research. The proper argument order is as follows: locate(search_string, string_to_be_searched, start_position) Also if any of the arguments are null the function should return null, which means the Postgres mapping is wrong. The new mappings follow: Oracle: instr(?2, ?1, ?3) PostgreSQL: (CASE position(?1 in substring(?2 from ?3)) WHEN 0 THEN 0 ELSE position(?1 in substring(?2 from ?3)) + ?3 - 1 END) The PostgreSQL mapping is long an possibly inefficent, but is the only sql I could come up with that is spec compliant. -- Comment By: Frederik Sauer (fredsa) Date: 2002-05-14 12:16 Message: Logged In: YES user_id=111914 From a SQL perspective it certainly would be consitent to expect a NULL result from a function if any of the parameters to that function are NULL. As for the result when searching for the empty string: any recollection or references as to whether this should result in a
Re: [JBoss-dev] Backend session information - Tx - Data distribut ion
I must be asleep. The jms + xa scheme is the way to go. david jencks On 2002.06.06 12:38:35 -0400 David Jencks wrote: What I suggested would let you notify after transaction completion without modifying your ejbs. This is apparently not what you want. I therefore suggest you write another layer of session beans around everything you want notifications from. The session bean will generate an abstract transaction id, added to every outgoing method call. Upon successful return, the session bean will do the notifications using the transaction id as key to find the correct info. I don't see the point of your mbean scheme, nor how it would work. david jencks On 2002.06.06 11:22:38 -0400 Keysers, Wonne wrote: Thanks for replying. What I want is the following: During a CMT, all changes are logged to the distribution engine. When the transaction is about to commit, the dist. engine tries to distribute the right changes. (basically this is a copy of the new values in an export table) The engine not only has to use the running transaction (I could use a statefull session bean), but also has to save the password authenticated (JAAS) user(id) and the distribution information (dependant of the context) in the export table. I would like to keep my hands of JBoss' source code. I was thinking of making an MBean for the distribution engine, which is able to reuse the Tx associated with the current Thread and which allows EJB's (afterBegin()?) and other clients to register the required context information as soon as a new Tx is started. In other words, Transaction, User and other context information must be linked to the same thread just like the TxManager does with a Tx and TimeOut? (Or have I interpreted this in the wrong way?) Is all that possible? Oh yes, when I create a new ThreadLocal attribute in my new MBean, will the ThreadLocal attribute within the TxManager be overwritten or are these only known internally? Thanks a lot! Wonne -Original Message- From: David Jencks To: [EMAIL PROTECTED] Sent: 6/6/02 3:20 PM Subject: Re: [JBoss-dev] Backend session information - Tx - Data distribution I'm still a little unclear about what you want. I think it is to be notified right after every transaction commits. Unfortuneately there is no way to register a listener with the tx manager for all transactions. I think the simplest ways to do this are: if you use only cmt, no bmt, modify the tx interceptor to call something after (successful) commit If you use bmt as well, modify the tx manager to notify you. david jencks On 2002.06.06 02:29:52 -0400 Keysers, Wonne wrote: Hi, I already asked this question on the user-list, but got not a single answer. Could somebody help me please? I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients. In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc. It is important that data is distributed only when the container transaction commits. What's the best way to do this? Create an MBean, just like the TxManager works, with a ThreadLocal variable? What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? Also, is it possible to lookup the current transaction or transactionID or info or transaction information? Thanks in advance for any tips! Wonne !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=US-ASCII META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.19 TITLEBackend session information - Tx - Data distribution/TITLE /HEAD BODY PFONT SIZE=2Hi, /FONT /P PFONT SIZE=2I already asked this question on the user-list, but got not a single answer. Could somebody help me please?/FONT /P PFONT SIZE=2I want to create something which keeps track of some backend session information, for data distribution purposes to offline clients./FONT/P PFONT SIZE=2In that session-info are things like the user logged in, data sharing information (some distribution of data is use case specific, most are DB based though), etc.nbsp; It is important that data is distributed only when the container transaction commits./FONT/P PFONT SIZE=2What's the best way to do this?/FONT /P PFONT SIZE=2Create an MBean, just like the TxManager works, with a ThreadLocal variable? /FONT BRFONT SIZE=2What will happen with the transaction information of that current thread (ThreadInfo inside the TxManager) in this case? /FONT/P PFONT
[JBoss-dev] cmp2 relations, mbeans, and the testsuite
For me, 3.0.1 head testsuite is failing all the cmp2 tests with relationships. I think this is due to Scott's recent changes to the content of some create and start methods, although I haven't reverted the changes to make sure. I propose that we manage the dependencies between a relationship and the ejbs it relates by making the relationship into an mbean that depends on both ejb mbeans. The mbean configuration system will then call start on it only after both ejbs are started. It can call methods on each ejb mbean to set up the relationship. I haven't looked into implementing this yet. Anyone see any obvious problems with it or have any objections? Thanks david jencks ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565437 ] Catalina/SSL config problems
Bugs item #565437, was opened at 2002-06-06 17:35 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565437group_id=22866 Category: CatalinaBundle Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Pete Beck (wimflam) Assigned to: Scott M Stark (starksm) Summary: Catalina/SSL config problems Initial Comment: In the JBoss base documentation and JBoss 3 quickstart documentation, an example is given on how to configure catalina with SSL. However these examples are broken in JBoss 3.0 final. The problem is, the name attribute of the JaasSecurityManagerService MBEAN is set to jboss.security:name=JaasSecurityManager When you create the JaasSecurityDomain MBEAN needed for SSL, by default it looks up the old name: Security:name=JaasSecurityManager This causes JBoss to fall over when it starts up. You can correct it in the config file by adding: attribute name=SecurityManagerServicejboss.security:name=Jaa sSecurityManager/attribute to the JaasSecurityDomain MBEAN. To fix this problem, either the docs need to be ammended, or the default value of OBJECT_NAME in org.jboss.security.plugins.JaasSecurityManagerServiceMBean needs to be changed -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565437group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] I can't believe france is out of the world cup
Maybe. Just promise not to get pissed off when the spanish fury sieges the fields. You have been warned :-))) Vesco Claudio wrote: Go Italy!!! uhmmm, can we change jboss-development in soccer-jboss? :-))) Claudio -Original Message- From: Sacha Labourey [SMTP:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] I can't believe france is out of the world cup Come on, Tomasson will kick them out with 3-0 ! Ah, justice is made ! Go Italy ! Simone, I personnaly don't care much about football: I just give a little support for French. Today football, this week-end the legislative elections, pfhh... what a hard time! ;) But I am sure you know what I mean: Italian situation has strong similarities with France, but a few year earlier! ;) This new World-Cup mailing-list is cool! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss(Branch_3_0) Testsuite Results: 6-June-2002
Number of tests run: 606 Successful tests: 574 Errors:31 Failures: 1 [time of test: 6 June 2002 12:29 GMT] [java.version: 1.3.1] [java.vendor: Apple Computer, Inc.] [java.vm.version: 1.3.1] [java.vm.name: Java HotSpot(TM) Client VM] [java.vm.info: mixed mode] [os.name: Mac OS X] [os.arch: ppc] [os.version: 10.1.4] See http://lubega.com/testarchive/${build.uid} for details of this test. See http://lubega.com for general test information. NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. Remember - if a test becomes broken after your changes - fix it or fix the test! Oh dear - still got some errors! Thanks for all your effort - we really do love you! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-497955 ] typos in JDBCStartCommand
Bugs item #497955, was opened at 2001-12-31 00:17 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=497955group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Frank Langelage (lafr) Assigned to: Andreas Schaefer (schaefera) Summary: typos in JDBCStartCommand Initial Comment: In jboss-all/server/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCStartCommand.java there are some typos (constriant) and a missing '. Diff-file is attached. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=497955group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565472 ] Can't access JMS from external app/MBEAN
Bugs item #565472, was opened at 2002-06-06 20:48 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565472group_id=22866 Category: JBossMQ Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Marius Kotsbak (mkotsbak) Assigned to: Nobody/Anonymous (nobody) Summary: Can't access JMS from external app/MBEAN Initial Comment: I'm trying to access a queue defined in jboss from an external java-application. I thought that with the default-security-config I just had to insert user/password in jbossmq-state.xml and securityconf in the queue-mbean. I get this error: WARN [OILServerILService] Client request resulted in a server exception: javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: SMSUt at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:141) at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:599) at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:298) at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:287) at java.lang.Thread.run(Thread.java:498) Definition of the queue: mbean code=org.jboss.mq.server.jmx.Queue name=jboss.mq.destination:service=Queue,name=SMSUt depends optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends depends optional-attribute-name=SecurityManagerjboss.mq:service=SecurityManager/depends attribute name=SecurityConf security role name=smssender read=false write=true/ role name=smsdispatcher read=true write=true create=true / /security /attribute /mbean Default in login-config.xml: !-- Security domain for JBossMQ -- application-policy name = jbossmq authentication login-module code = org.jboss.mq.sm.file.DynamicLoginModule flag = sufficient module-option name = unauthenticatedIdentityguest/module-option module-option name = sm.objectnamjboss.mq:service=StateManager/module-option /login-module /authentication /application-policy In jbossmq-state.xml: User Nameboost/Name Passwordpassword/Password /User Lookup-code: Object o = ictxt.lookup(ConnectionFactory); connFactory = (QueueConnectionFactory) o; queueConnection = connFactory.createQueueConnection(boost,***password*); The same happens when I try the same from a MBean using INVM connectionfactory. I have no problem publishing messages to the queue from an ordinary session-bean using similar sequrity settings. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565472group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] New XDoclet provides modular addition of subtasks
David, I might be able to take a stab and moving to the latest XDoclet. However, it also requires the new Ant 1.5 beta. Would it be ok to migrate JBoss to use the new Ant as well? Also do you have copies of the source used to modify the XDoclet jar in ./tools/lib? I was also thinking of removing the duplicate .jar(s) from the ./tools/lib directory at the same time and make sure we are using the latest stable versions of the third party libraries as well. I will run all the tests to make sure it passes all the same tests as before I made the changes. Thanks. Fred. At 03:56 PM 6/3/2002, David Jencks wrote: Do you personally have enough time to see if the jboss build works with the current xdoclet cvs version? I would like to make sure jboss 3 works well with current xdoclet before the xdoclet 1.2 release, but am pressed for time right now. If you can verify that at least jboss 3.1 builds and the testsuite runs with no more errors I will tag the xdoclet sources and put that version of xdoclet in the jboss tree. If it doesn't work we should at least tell the xdoclet folks and preferably fix it. Thanks david jencks On 2002.06.03 14:39:13 -0400 Frederick N. Brier wrote: One of the XDoclet developers, Pazu, said they just finished a refactoring that allows the addition of new sub tasks merely by copying them into the lib directory. If either David or Aslak, or whom ever has needed customization of XDoclet could transition to the new revision, we can just use the canned XDoclet from now on. Does that sound good? Fred. Em Seg, 2002-06-03 às 11:29, Frederick N. Brier escreveu: Ideally, it would be nice if XDoclet utilized an external XML file and additional subtasks could be seamlessly integrated without having to modify EjbDocletTask.java or having to do a separate XDoclet Ant task. We just finished a big refactory that does that and a bit more. Now you can write xdoclet modules and just drop them on the lib dir and the doclet task will load them up :) Get the source, look at the existing modules, write more of them! -- Pazu [EMAIL PROTECTED] Anime Gaiden - De fãs para fãs, sempre. http://www.animegaiden.com.br -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8+7BQlkXX37ZlscIRAqHUAJ9xEX1m7B69aCsb5tGhVYcE6w1atwCfVkIO VpjSE4vNmyFVI5Nj8hoaFNk= =tRiz -END PGP SIGNATURE- ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Automated JBoss(HEAD) Testsuite Results: 7-June-2002
Number of tests run: 733 Successful tests: 228 Errors:491 Failures: 14 [time of test: 7 June 2002 1:31 GMT] [java.version: 1.3.0] [java.vendor: IBM Corporation] [java.vm.version: 1.3.0] [java.vm.name: Classic VM] [java.vm.info: J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: jitc)] [os.name: Linux] [os.arch: x86] [os.version: 2.4.9-31] Useful resources: - http://lubega.com/testarchive/ibm_jdk13_20010626 for the junit report of this test. - http://lubega.com/testarchive/ibm_jdk13_20010626/logs/ for the logs for this test. - http://lubega.com for general test information. NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. Remember - if a test becomes broken after your changes - fix it or fix the test! Oh dear - still got some errors! Thanks for all your effort - we really do love you! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Does the JBoss have a Admin tool?
Hi. Does the JBoss have an admin tool? If so, I want to know how to work an admin tool?
Re: [JBoss-dev] Does the JBoss have a Admin tool?
Hi Kim Yes, your finger and an text editor !!! The other tool is the HTML-Adaptor on port 8082 but this isn't easy to use. Andy - Original Message - From: HyungChul Kim To: [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 6:02 PM Subject: [JBoss-dev] Does the JBoss have a Admin tool? Hi. Does the JBoss have an admin tool? If so, I want to know how to work an admin tool?
[JBoss-dev] [ jboss-Bugs-551102 ] LOCATE function in Oracle / PostgreSQL
Bugs item #551102, was opened at 2002-05-01 13:05 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=551102group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Closed Resolution: Fixed Priority: 5 Submitted By: Frederik Sauer (fredsa) Assigned to: Dain Sundstrom (dsundstrom) Summary: LOCATE function in Oracle / PostgreSQL Initial Comment: Please also refer to bug#541507 where the postgres mapping of LOCATE was changed to: (coalesce(nullif(position(?2 in substring(?1 from ?3)), 0) + ?3 -1, 0)) The current Oracle mapping is: instr(?1, ?2, ?3) There are two issue I want to describe: 1) The ordering of first two parameters in the LOCATE function 2) How the mapped function deals with the empty string as the substring to be searched for. Here goes: 1) For some reason I'm unable to locate the definitive EJB 2.0 specification which includes a description of the parameters to the LOCATE EJB-QL function. (Help anyone?) I did find plenty of derivative works which all either don't specify the meaning of the first two string parameters or explicity say that the function searches for occurences of the second string parameter in the first string parameter. In other words the current PostgreSQL mapping would need ?1 and ?2 switched, but the ordering in the Oracle mapping is correct. Since I did locate locate this information in the actual EJB-QL specification I don't want to claim that the PostgreSQL parameter ordering is wrong and the Oracle ordering is correct, but since they are different I will claim that one of them is wrong :-). 2a) The Oracle INSTR() SQL function considers a search for the the empty string (i.e. '') as futile and returns 0 (zero) to indicate the empty string was not found, regardless of what the string being searched is. The PostgreSQL POSITION() SQL function considers the empty string to be found, regardless of the length of the string being searched. I'm sorry I again do not have a good reference to the EJB specification to know which behavior is correct for the LOCATE() EJB-QL function. In my opinion the Oracle behavior is more useful, particularly since null string values get passed in as empty strings to the JDBC drivers. So, searching for a null in a string 'Any text' should not in my opinion return a match. The result of the search for '' in 'Any text' could be debated. Currently if a pass either null or '' as a parameter to a custom finder method both become '' in the final SQL statement. Assuming the Oracle behavior is preferable, then the current mapping for PostgreSQL of: (coalesce(nullif(position(?2 in substring(?1 from ?3)), 0) + ?3 -1, 0)) would need to become (coalesce(nullif(position(nullif(?2,'') in substring(?1 from ?3)), 0) + ?3 -1, 0)). Note: depending on the thoughts on 1) this PostgreSQL mapping should be further changed by swapping ?1 and ?2. 2b) If the empty string is passed as either the first or second parameter to the Oracle INSTR() SQL function, the function returns null. Since the EJB-QL function LOCATE() is supposed to return and integer, the Oracle function needs to be changed from: instr(?1, ?2, ?3) to nvl(instr(?1, ?2, ?3),0) Note: depending on the thoughts on 1) this Oracle mapping should be further changed by swapping ?1 and ?2. -- Comment By: Dain Sundstrom (dsundstrom) Date: 2002-06-06 21:05 Message: Logged In: YES user_id=251431 Good point. Does anyone know what the right answear is? Until we get a difinitive answear the behavior will be undefined. -- Comment By: Frederik Sauer (fredsa) Date: 2002-06-06 11:38 Message: Logged In: YES user_id=111914 This does leave the behavior when searching for the empty string (i.e. '') or searching in an empty string different between the two databases. For example: PostgreSQL: position('' in 'test') - 1 Oracle: instr('test', '') - NULL Should search for or on the empty string be considered outside the spec and thus the behavior undefined? -- Comment By: Dain Sundstrom (dsundstrom) Date: 2002-06-06 00:36 Message: Logged In: YES user_id=251431 Ok I did some research. The proper argument order is as follows: locate(search_string, string_to_be_searched, start_position) Also if any of the arguments are null the function should return null, which means the Postgres mapping is wrong. The new mappings follow: Oracle: instr(?2, ?1, ?3) PostgreSQL: (CASE position(?1 in substring(?2 from ?3)) WHEN 0 THEN 0 ELSE position(?1 in substring(?2 from ?3)) + ?3 - 1 END) The PostgreSQL mapping is long an possibly inefficent, but is the only sql I could come up with that is spec compliant. -- Comment By: Frederik Sauer (fredsa) Date: 2002-05-14 13:16 Message:
[JBoss-dev] [ jboss-Bugs-559018 ] CMR table column name wrong
Bugs item #559018, was opened at 2002-05-22 00:57 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=559018group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Closed Resolution: Out of Date Priority: 5 Submitted By: Vincent Zhao (vincentzhao) Assigned to: Dain Sundstrom (dsundstrom) Summary: CMR table column name wrong Initial Comment: In your cmp-example, the jbosscmp-jdbc.xml file, it reads:ejb-relationship-role ejb-relationship-role-namelineitem-belongsto- order/ejb-relationship-role-name foreign-key-fields foreign-key-field field-nameordernumber/field-name column-nameORDER_NUMBER/column-name /foreign-key-field /foreign-key-fields It seems in the LINE_ITEM table, it should has a column named ORDER_NUMBER, but in fact it is named order. -- Comment By: Dain Sundstrom (dsundstrom) Date: 2002-06-06 21:09 Message: Logged In: YES user_id=251431 These examples are way old. The new documentation will be out as soon a Scott gets home and can convert it to PDF. -- Comment By: Johnny Zhou (johnnyzhou) Date: 2002-05-23 20:32 Message: Logged In: YES user_id=551174 This will cause user cannot specify the foreign key column name. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=559018group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-562004 ] 'Error setting column value' using dependent value classes w
Bugs item #562004, was opened at 2002-05-29 13:11 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=562004group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: Accepted Priority: 5 Submitted By: Justin Casp (jcasp) Assigned to: Dain Sundstrom (dsundstrom) Summary: 'Error setting column value' using dependent value classes w Initial Comment: I posted this problem a few weeks ago on jboss.org forums, but it's down right now so I can't reference that post. I figured out how to create a simple test case that reliably reproduces the problem. The error message 'Error setting column value' occurs when I have an existing CMP bean that reads existing records from a datasource. The bean uses a dependent value class, although I'm not sure if this problem is specific to dependent value classes or just any cmp bean with fields mapped to columns. If I create the record externally (e.g., using psql, the postgres command line tool) and only set a few of the columns to non-null values, when I attempt to load that bean instance with a finder, jboss throws the following exception on the server: 12:03:56,650 ERROR [STDERR] java.lang.NullPointerException 12:03:56,652 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 12:03:56,652 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 12:03:56,653 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 12:03:56,653 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 12:03:56,653 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeComplexProperty.setColumnValue(JDBCTypeComplexProperty.java:142) 12:03:56,654 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeComplex.setColumnValue(JDBCTypeComplex.java:158) 12:03:56,654 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeComplex.setColumnValue(JDBCTypeComplex.java:133) 12:03:56,654 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:352) 12:03:56,655 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304) 12:03:56,655 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:140) 12:03:56,655 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62) 12:03:56,655 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:496) 12:03:56,656 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410) 12:03:56,656 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:314) 12:03:56,656 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:310) 12:03:56,657 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:147) 12:03:56,657 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:193) 12:03:56,657 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) 12:03:56,658 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) 12:03:56,658 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) 12:03:56,658 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) 12:03:56,659 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) 12:03:56,659 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) 12:03:56,659 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) 12:03:56,659 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:145) 12:03:56,660 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:482) 12:03:56,660 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:694) 12:03:56,660 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1024) 12:03:56,661 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) 12:03:56,661 ERROR [STDERR] at
[JBoss-dev] Automated JBoss(HEAD) Testsuite Results: 7-June-2002
Number of tests run: 733 Successful tests: 229 Errors:491 Failures: 13 [time of test: 7 June 2002 3:10 GMT] [java.version: 1.3.0] [java.vendor: IBM Corporation] [java.vm.version: 1.3.0] [java.vm.name: Classic VM] [java.vm.info: J2RE 1.3.0 IBM build cx130-20020124 (JIT enabled: jitc)] [os.name: Linux] [os.arch: x86] [os.version: 2.4.9-31] Useful resources: - http://lubega.com/testarchive/ibm_jdk13_20020124 for the junit report of this test. - http://lubega.com/testarchive/ibm_jdk13_20020124/logs/ for the logs for this test. - http://lubega.com for general test information. NOTE: If there are any errors shown above - this mail is only highlighting them - it is NOT indicating that they are being looked at by anyone. Remember - if a test becomes broken after your changes - fix it or fix the test! Oh dear - still got some errors! Thanks for all your effort - we really do love you! ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-560811 ] Array of byte in queries doesn't work
Bugs item #560811, was opened at 2002-05-26 15:17 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=560811group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: Accepted Priority: 5 Submitted By: Robson Miranda (rpdmiranda) Assigned to: Dain Sundstrom (dsundstrom) Summary: Array of byte in queries doesn't work Initial Comment: With 3.0.0RC2, I got an ClassNotFoundException when declaring a finder with a parameter type of byte[]. In this case, it try to load a class named byte. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=560811group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-563799 ] No method permissions assigned to method
Bugs item #563799, was opened at 2002-06-03 04:15 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=563799group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: Accepted Priority: 5 Submitted By: Jakob Dalsgaard (dalsgaard) Assigned to: Dain Sundstrom (dsundstrom) Summary: No method permissions assigned to method Initial Comment: On: JB3.0RC3 + JB3.0 (just downloaded from sourceforge) I experience the following problem; Dain Sundstrom suggested that I submit a bug - I've been using the last few days convincing myself that it is indeed a bug - and collecting more information, so here goes: I am runing: - jdk 1.4 sun, java -version says: java version 1.4.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) - JBoss 3.0, before the same bug was experienced on JBoss 3.0 RC3.0. - Windows XP. I am developing an appllication containing a bunch of entity beans with relations - and one of my entity beans is called Customer - a Customer can have many Policy beans - and thus there is a method on the Policy Bean called setCustomer(CustomerLocal customer) -- when I deploy my ejb without security domain set in the jboss.xml file, everything works fine and my EJBCreatePolicyCommand can set the Customer on a newly created Policy Bean without any problems -- on the web layer I can set a securitydomain and have the user authenticated to access certain areas of the web application; but when I add the same security domain to the ejb-layer, things starts to go wrong. I have no problem calling get on my relations, but the EJBCreatePolicyCommand now fails with the exception: Could not create Policy : javax.ejb.TransactionRolledbackLocalException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation Embedded Exception Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation And the stack trace: Could not create Policy : javax.ejb.TransactionRolledbackLocalException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation Embedded Exception Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation at com.neupart.sa.policy.command.EJBCreatePolicy.execute(EJBCreatePolicy.java:153) at com.neupart.base.ejb.EJBCommandExecutorBean.execute(EJBCommandExecutorBean.java:37) at com.neupart.sa.policy.ejb.PolicyCMDBean.execute(PolicyCMDBean.java:60) 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(StatelessSessionContainer.java:664) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313) at org.jboss.ejb.Container.invoke(Container.java:705) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at
[JBoss-dev] [ jboss-Bugs-565098 ] Store failed to Oracle DB, ok w Default
Bugs item #565098, was opened at 2002-06-05 18:54 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565098group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Closed Resolution: Duplicate Priority: 5 Submitted By: Jeff DeLong (jeffdelong) Assigned to: Dain Sundstrom (dsundstrom) Summary: Store failed to Oracle DB, ok w Default Initial Comment: I originally described this problems on the Forums with RC2, but since they are down I do not know if there has been a response. Since then I have retested with RC3 as well as with the DefaultDS, and there is no proble with the DefaultDS. I have written two StatelessSessionBeans (OrderManager and ProductManager) that provide a facade to the CMP2 commerce example, and written Java clients that access the SSBs via RMI as well as Axis/SOAP. (Axis integration works very nice I might add). The OrderManager.placeOrder method fails with a create exception when attempting to create the order object. I have attached the last portion of the server log with both the successful creation (using DefaultDS) and unsuccessful (using OracleDS). The exception is java.lang.Character. By the way, I am able to create Product and ProductCategory entities as well as their relationship, so perhaps this is something in the data type mapping related to the Order and related EJBs. Thanks. -- Comment By: Dain Sundstrom (dsundstrom) Date: 2002-06-06 21:32 Message: Logged In: YES user_id=251431 There are no attache files, but I think this is a duplicate of [ 556704 ] Unable to persist Character type. If it is not, I'll reopen this bug when you attach the file. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565098group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565237 ] StatefulHandleImpl not serializable
Bugs item #565237, was opened at 2002-06-06 04:31 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565237group_id=22866 Category: JBossServer Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Stephen Coy (scoy) Assigned to: Nobody/Anonymous (nobody) Summary: StatefulHandleImpl not serializable Initial Comment: JBoss 3.0.0 final MacOS X 10.1.5 Java 1.3.1 The class org.jboss.proxy.ejb.handle.StatefulHandleImpl is not properly serializable because (I think) it has an org.jboss.invocation.Invoker member. Some invoker implementations are serializable and some are not. I have a stateful session bean containing a collection of data objects containing back pointers (via javax.ejb.Handle) to the session bean. Passivation of the session bean fails while serializing the data objects: 2002-06-06 18:06:23,806 ERROR [org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter] unhandled throwable java.rmi.ServerException: Could not passivate; nested exception is: java.rmi.MarshalException: Invalid remote object java.rmi.MarshalException: Invalid remote object at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:153) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea m.java:1864) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1210) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.writeExtern al(JRMPInvokerProxy.java:149) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1180) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at com.whitesmiths.sacha.ejb.worklists.interfaces.WorklistElement. writeObject(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea m.java:1864) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1210) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java: 1098) at java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(Ob jectOutputStream.java:456) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 361) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea m.java:1827) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea m.java:480) at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav a:1214) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 366) at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.pas sivateSession(StatefulSessionFilePersistenceManager.java:288) at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(Sta tefulSessionInstanceCache.java:78) at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractIn stanceCache.java:615) at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:20 6) at java.lang.Thread.run(Thread.java:496) 2002-06-06 18:06:39,260 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean Priv: old capacity = 100, new capacity = 50 2002-06-06 18:06:59,049 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean GSMServiceFacade: old capacity = 100, new capacity = 50 2002-06-06 18:07:00,982 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean NumberStatus: old capacity = 100, new capacity = 50 2002-06-06 18:07:02,759 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean GSMService: old capacity = 100, new capacity = 50 2002-06-06 18:07:11,227 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized cache for bean Numbers: old capacity = 100, new capacity = 50
[JBoss-dev] [ jboss-Bugs-564854 ] subscription-durability not optional
Bugs item #564854, was opened at 2002-06-05 08:40 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=564854group_id=22866 Category: JBossMQ Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Daniel Sieroka (sieroka) Assigned to: Nobody/Anonymous (nobody) Summary: subscription-durability not optional Initial Comment: 16:41:30,354 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$ DeployedUR L@ca5ceb4d{ url=file:/C:/jboss- 3.0.0/server/default/deploy/admin.ear, deployedLastModified=0 } org.jboss.deployment.DeploymentException: Error in ejb- jar.xml for Message Driven Bean ejb/ClientEventsMessageBean: expe cted one subscription-durability tag The dtd: !ELEMENT message-driven-destination (destination- type, subscription-durability?) -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=564854group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-565098 ] Store failed to Oracle DB, ok w Default
Bugs item #565098, was opened at 2002-06-05 17:54 You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565098group_id=22866 Category: JBossCMP Group: v3.0 Rabbit Hole Status: Closed Resolution: Duplicate Priority: 5 Submitted By: Jeff DeLong (jeffdelong) Assigned to: Dain Sundstrom (dsundstrom) Summary: Store failed to Oracle DB, ok w Default Initial Comment: I originally described this problems on the Forums with RC2, but since they are down I do not know if there has been a response. Since then I have retested with RC3 as well as with the DefaultDS, and there is no proble with the DefaultDS. I have written two StatelessSessionBeans (OrderManager and ProductManager) that provide a facade to the CMP2 commerce example, and written Java clients that access the SSBs via RMI as well as Axis/SOAP. (Axis integration works very nice I might add). The OrderManager.placeOrder method fails with a create exception when attempting to create the order object. I have attached the last portion of the server log with both the successful creation (using DefaultDS) and unsuccessful (using OracleDS). The exception is java.lang.Character. By the way, I am able to create Product and ProductCategory entities as well as their relationship, so perhaps this is something in the data type mapping related to the Order and related EJBs. Thanks. -- Comment By: Jeff DeLong (jeffdelong) Date: 2002-06-06 20:40 Message: Logged In: YES user_id=531609 Sorry, I guess I forgot to check the box to attach the file. In any case I can see where it might be related, given the exception, however none of the fields trying to store are of type character. -- Comment By: Dain Sundstrom (dsundstrom) Date: 2002-06-06 20:32 Message: Logged In: YES user_id=251431 There are no attache files, but I think this is a duplicate of [ 556704 ] Unable to persist Character type. If it is not, I'll reopen this bug when you attach the file. -- You can respond by visiting: http://sourceforge.net/tracker/?func=detailatid=376685aid=565098group_id=22866 ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] New XDoclet provides modular addition of subtasks
These are all good ideas IMO. JBoss' current xdoclet and xjavadoc versions are tagged in the xdoclet source, as noted in the jboss commit message. If you get it to work in jboss, let me know, I will tag xdoclet, compile, and commit the new versions to jboss. If you find problems with xdoclet and come up with patches let me know, I will apply them. thanks david jencks On 2002.06.06 16:17:57 -0400 Frederick N. Brier wrote: David, I might be able to take a stab and moving to the latest XDoclet. However, it also requires the new Ant 1.5 beta. Would it be ok to migrate JBoss to use the new Ant as well? Also do you have copies of the source used to modify the XDoclet jar in ./tools/lib? I was also thinking of removing the duplicate .jar(s) from the ./tools/lib directory at the same time and make sure we are using the latest stable versions of the third party libraries as well. I will run all the tests to make sure it passes all the same tests as before I made the changes. Thanks. Fred. At 03:56 PM 6/3/2002, David Jencks wrote: Do you personally have enough time to see if the jboss build works with the current xdoclet cvs version? I would like to make sure jboss 3 works well with current xdoclet before the xdoclet 1.2 release, but am pressed for time right now. If you can verify that at least jboss 3.1 builds and the testsuite runs with no more errors I will tag the xdoclet sources and put that version of xdoclet in the jboss tree. If it doesn't work we should at least tell the xdoclet folks and preferably fix it. Thanks david jencks On 2002.06.03 14:39:13 -0400 Frederick N. Brier wrote: One of the XDoclet developers, Pazu, said they just finished a refactoring that allows the addition of new sub tasks merely by copying them into the lib directory. If either David or Aslak, or whom ever has needed customization of XDoclet could transition to the new revision, we can just use the canned XDoclet from now on. Does that sound good? Fred. Em Seg, 2002-06-03 às 11:29, Frederick N. Brier escreveu: Ideally, it would be nice if XDoclet utilized an external XML file and additional subtasks could be seamlessly integrated without having to modify EjbDocletTask.java or having to do a separate XDoclet Ant task. We just finished a big refactory that does that and a bit more. Now you can write xdoclet modules and just drop them on the lib dir and the doclet task will load them up :) Get the source, look at the existing modules, write more of them! -- Pazu [EMAIL PROTECTED] Anime Gaiden - De fãs para fãs, sempre. http://www.animegaiden.com.br -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8+7BQlkXX37ZlscIRAqHUAJ9xEX1m7B69aCsb5tGhVYcE6w1atwCfVkIO VpjSE4vNmyFVI5Nj8hoaFNk= =tRiz -END PGP SIGNATURE- ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] [ jboss-Bugs-565237 ] StatefulHandleImpl not serializable
we got to get rid of this stupid resizing, any volunteers? marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of |[EMAIL PROTECTED] |Sent: Thursday, June 06, 2002 7:34 PM |To: [EMAIL PROTECTED] |Subject: [JBoss-dev] [ jboss-Bugs-565237 ] StatefulHandleImpl not |serializable | | |Bugs item #565237, was opened at 2002-06-06 04:31 |You can respond by visiting: |http://sourceforge.net/tracker/?func=detailatid=376685aid=565237; |group_id=22866 | |Category: JBossServer |Group: v3.0 Rabbit Hole |Status: Open |Resolution: None |Priority: 5 |Submitted By: Stephen Coy (scoy) |Assigned to: Nobody/Anonymous (nobody) |Summary: StatefulHandleImpl not serializable | |Initial Comment: |JBoss 3.0.0 final |MacOS X 10.1.5 |Java 1.3.1 | |The class org.jboss.proxy.ejb.handle.StatefulHandleImpl is not |properly serializable because (I think) it has an |org.jboss.invocation.Invoker member. Some invoker |implementations are serializable and some are not. | |I have a stateful session bean containing a collection of data |objects containing back pointers (via javax.ejb.Handle) to the |session bean. | |Passivation of the session bean fails while serializing the data |objects: | |2002-06-06 18:06:23,806 ERROR |[org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter] |unhandled throwable |java.rmi.ServerException: Could not passivate; nested exception |is: | java.rmi.MarshalException: Invalid remote object |java.rmi.MarshalException: Invalid remote object | at |java.rmi.server.RemoteObject.writeObject(RemoteObject.java:153) | at java.lang.reflect.Method.invoke(Native Method) | at |java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea |m.java:1864) | at |java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav |a:1210) | at |java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: |366) | at |org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.writeExtern |al(JRMPInvokerProxy.java:149) | at |java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav |a:1180) | at |java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: |366) | at |java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea |m.java:1827) | at |java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea |m.java:480) | at |java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav |a:1214) | at |java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: |366) | at |java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea |m.java:1827) | at |java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea |m.java:480) | at |com.whitesmiths.sacha.ejb.worklists.interfaces.WorklistElement. |writeObject(Unknown Source) | at java.lang.reflect.Method.invoke(Native Method) | at |java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStrea |m.java:1864) | at |java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav |a:1210) | at |java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: |366) | at |java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java: |1098) | at |java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(Ob |jectOutputStream.java:456) | at |java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: |361) | at |java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea |m.java:1827) | at |java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea |m.java:480) | at |java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav |a:1214) | at |java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: |366) | at |java.io.ObjectOutputStream.outputClassFields(ObjectOutputStrea |m.java:1827) | at |java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStrea |m.java:480) | at |java.io.ObjectOutputStream.outputObject(ObjectOutputStream.jav |a:1214) | at |java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: |366) | at |org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.pas |sivateSession(StatefulSessionFilePersistenceManager.java:288) | at |org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(Sta |tefulSessionInstanceCache.java:78) | at |org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractIn |stanceCache.java:615) | at |org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:20 |6) | at java.lang.Thread.run(Thread.java:496) |2002-06-06 18:06:39,260 DEBUG |[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized |cache for bean Priv: old capacity = 100, new capacity = 50 |2002-06-06 18:06:59,049 DEBUG |[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Resized |cache for bean GSMServiceFacade: old capacity = 100, new |capacity = 50 |2002-06-06 18:07:00,982 DEBUG
[JBoss-dev] Does the JBoss have a Admin tool?
Hi. Does the JBoss have an admin tool? If so, I want to know how to work an admin tool?