View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821609#3821609

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821609

Here's a patch that does what I suggested once the situation that would cause the NPE 
is detected

...I just now read your message about the Deployment verifier...

That sounds a little tougher...

I'll see if I can come up with something.



===================================================================

RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/cache/invalidation/InvalidationsTxGrouper.java,v

retrieving revision 1.1.2.1

diff -u -r1.1.2.1 InvalidationsTxGrouper.java

--- InvalidationsTxGrouper.java 8 Nov 2002 16:35:34 -0000       1.1.2.1

+++ InvalidationsTxGrouper.java 15 Feb 2004 20:01:18 -0000

@@ -66,6 +66,11 @@



    public static void registerInvalidationSynchronization(Transaction tx, 
InvalidationGroup group, Serializable key) throws Exception

    {

+      if (tx == null)

+      {

+         log.warn("JBossCMP requires a transaction.");

+         throw new IllegalStateException("JBossCMP requires a transaction.");

+      }

       InvalidatorSynchronization synch = null;

       synchronized(synchronizations)

       {


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to