Kabir
I get the folowing error when I am running the test cases 11377 DEBUG [NoTxUnitTestCase]
==== setUp org.jboss.test.jca.notx.test.NoTxUnitTestCase ====
| 11377 DEBUG [KernelFactory] Starting JBoss Kernel construction...
| 11380 DEBUG [KernelFactory] Completed JBoss Kernel construction. Duration: 3
milliseconds
| 11380 DEBUG [NoTxUnitTestCase] Deploying
file:/home/vicky/workspace/JBOSS%20JCA/trunk/core/output/org/jboss/test/jca/notx/test/NoTxUnitTestCase.xml
| 11558 DEBUG [Aspect] Bound aspect TraceAspect; deployed:true
| 11597 DEBUG [Aspect] Bound aspect ExceptionAspect; deployed:true
| 11632 DEBUG [Aspect] Bound aspect SecurityAspect; deployed:true
| 11674 DEBUG [Aspect] Bound aspect PoolAspect; deployed:true
| 11713 DEBUG [Aspect] Bound aspect ListenerAspect; deployed:true
| 11873 DEBUG [GenericBeanAspectFactory] Creating advice
0000-ihb4eo-f4ma5t47-1-f4ma5t48-2
| 12287 DEBUG [ConnectionManagerFactory] Created
connectionFactory=org.jboss.test.jca.rar.support.TestConnectionFactoryImpl@15f4a7f for
MCF=org.jboss.test.jca.rar.support.TestManagedConnectionFactory@113e9fd
| 12288 DEBUG [NoTxUnitTestCase] ==== Starting testNoTx ====
| 12291 TRACE [TraceAdvice] BEFORE: [advisedMethod=public abstract java.lang.Object
javax.resource.spi.ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory,javax.resource.spi.ConnectionRequestInfo)
throws javax.resource.ResourceException, unadvisedMethod=public abstract java.lang.Object
javax.resource.spi.ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory,javax.resource.spi.ConnectionRequestInfo)
throws javax.resource.ResourceException, metadata=null,
targetObject=java.lang.Object@12462b3, arguments=[Ljava.lang.Object;@1cbfa42]
| 12293 TRACE [TraceAdvice] AFTER: [advisedMethod=public abstract java.lang.Object
javax.resource.spi.ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory,javax.resource.spi.ConnectionRequestInfo)
throws javax.resource.ResourceException, unadvisedMethod=public abstract java.lang.Object
javax.resource.spi.ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory,javax.resource.spi.ConnectionRequestInfo)
throws javax.resource.ResourceException, metadata=null,
targetObject=java.lang.Object@12462b3, arguments=[Ljava.lang.Object;@1cbfa42]
| java.lang.IllegalArgumentException: Wrong target. class java.lang.Object for public
abstract java.lang.Object
javax.resource.spi.ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory,javax.resource.spi.ConnectionRequestInfo)
throws javax.resource.ResourceException
| at org.jboss.aop.joinpoint.MethodInvocation.handleErrors(MethodInvocation.java:150)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:125)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
| at org.jboss.jca.plugins.cm.TraceAdvice.invoke(TraceAdvice.java:42)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at AOPContainerProxy$0.allocateConnection(AOPContainerProxy$0.java)
| at
org.jboss.test.jca.rar.support.TestConnectionFactoryImpl.getConnection(TestConnectionFactoryImpl.java:57)
| at org.jboss.test.jca.notx.test.NoTxUnitTestCase.testNoTx(NoTxUnitTestCase.java:47)
| 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:585)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| 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:585)
| at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
| at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
| at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
| 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:585)
| at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
| 12295 DEBUG [NoTxUnitTestCase] testNoTx took 7ms
| 12295 DEBUG [NoTxUnitTestCase] ==== Stopping testNoTx ====
| 12301 DEBUG [NoTxUnitTestCase] ==== tornDown
org.jboss.test.jca.notx.test.NoTxUnitTestCase ====
| 12301 DEBUG [NoTxUnitTestCase] Undeploying
[file:/home/vicky/workspace/JBOSS%20JCA/trunk/core/output/org/jboss/test/jca/notx/test/NoTxUnitTestCase.xml]
| 12306 DEBUG [Aspect] Unbinding aspect ListenerAspect
| 12309 DEBUG [Aspect] Unbinding aspect PoolAspect
| 12312 DEBUG [Aspect] Unbinding aspect SecurityAspect
| 12314 DEBUG [Aspect] Unbinding aspect ExceptionAspect
| 12316 DEBUG [Aspect] Unbinding aspect TraceAspect
|
I have noticed that I don't get the error when I run this from the Windows Box , I
have been getting the error when I am doing development on Fedora box :(
Any clue about what could be happening ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068096#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...