Thank you for the quick replies.  I have removed weblogic from the equation and 
created the following unit test that gives me the same result.

Note that I originally posted this to the cache forum, because that is where we 
are headed, but if need be, I could repost this to the AOP forum.  We are using 
jboss-aop-1.3.5.jar, btw.  Also I forgor to mention that we are using compile 
time annotations and aopc.


package com.gestalt.dmit.mcsoa.registrar.presence.jbosscache.impl;
  | 
  | /**
  |  * A class that blah....
  |  *
  |  * @@org.jboss.cache.aop.AopMarker
  |  *
  |  */
  | 
  | public class JeffImpl {
  | 
  |     private long _foo;
  |     private long _bar;
  | 
  |     public JeffImpl(long duration, long expires) {
  |         _foo = duration;
  |         _bar= expires;
  |     }
  | }


package com.gestalt.dmit.mcsoa.registrar.presence;
  | 
  | import com.gestalt.dmit.mcsoa.registrar.presence.jbosscache.impl.*;
  | import junit.framework.TestCase;
  | 
  | public class PresenceSubscriptionFactoryTest extends TestCase {
  | 
  |     public void testGetJeffInstance() {
  | 
  |         try {
  | 
  |            JeffImpl jps = new JeffImpl(Long.MAX_VALUE, Long.MIN_VALUE);
  | 
  |            assertTrue("JeffImpl came back as incorrect implementation! " + 
jps.getClass().getName(),
  |                 jps instanceof JeffImpl);
  | 
  |         } catch (Exception e) {
  |            e.printStackTrace();
  |         }
  |     }
  | }
  | 

Which throws the following exception:

    [gcpunit] ------------- Standard Error -----------------
  |     [gcpunit] java.lang.ArrayIndexOutOfBoundsException: 1
  |     [gcpunit]   at 
com.gestalt.dmit.mcsoa.registrar.presence.jbosscache.impl.JeffImpl._foo_w_$aop(JeffImpl.java)
  |     [gcpunit]   at 
com.gestalt.dmit.mcsoa.registrar.presence.jbosscache.impl.JeffImpl.<init>(JeffImpl.java:16)
  |     [gcpunit]   at 
com.gestalt.dmit.mcsoa.registrar.presence.PresenceSubscriptionFactoryTest.testGetJeffInstance(PresenceSubscriptionFactory
  | Test.java:12)
  |     [gcpunit]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
  |     [gcpunit]   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     [gcpunit]   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     [gcpunit]   at java.lang.reflect.Method.invoke(Method.java:324)
  |     [gcpunit]   at junit.framework.TestCase.runTest(TestCase.java:154)
  |     [gcpunit]   at junit.framework.TestCase.runBare(TestCase.java:127)
  |     [gcpunit]   at junit.framework.TestResult$1.protect(TestResult.java:106)
  |     [gcpunit]   at 
junit.framework.TestResult.runProtected(TestResult.java:124)
  |     [gcpunit]   at junit.framework.TestResult.run(TestResult.java:109)
  |     [gcpunit]   at junit.framework.TestCase.run(TestCase.java:118)
  |     [gcpunit]   at junit.framework.TestSuite.runTest(TestSuite.java:208)
  |     [gcpunit]   at junit.framework.TestSuite.run(TestSuite.java:203)

This is about the simpliest case I could distill our code down to and I am 
still baffled.

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

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


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to