5 Replies Latest reply on Jan 2, 2007 7:43 AM by ben.wang

    Debuging with JBossCache (from IntelliJ)

      I want to run the JBossCache examples from the IntelliJ (for debugging). I saw on the examples build file, it is using AOP during compilcation. is it possible to compile with AOP from the IntelliJ?

      Is it required to use JBossAOP when using JBossCahce?

        • 1. Re: Debuging with JBossCache (from IntelliJ)
          manik

          Your question inspired me to start a developer's guide page on the wiki.

          Please see http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheDevelopment

          Anyone else want to add screen shots of setting up Eclipse?

          • 2. Re: Debuging with JBossCache (from IntelliJ)

            i tried to run \JBossCache-all-2.0.0.ALPHA1\examples\PojoCache\annotated50 using the same configuration and got the following error:


            -------------------------------------------------------
            GMS: address is 192.168.10.222:4578
            -------------------------------------------------------

            -------------------------------------------------------
            GMS: address is 192.168.10.222:4582
            -------------------------------------------------------
            org.jboss.cache.ReplicationException: java.lang.Exception: Don't know how to marshall object of type class examples.Student
            at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2110)
            at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2045)
            at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2177)
            at org.jboss.cache.RPCManager.callRemoteMethods(RPCManager.java:65)
            at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:84)
            at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:62)
            at org.jboss.cache.interceptors.ReplicationInterceptor.handleReplicatedMethod(ReplicationInterceptor.java:114)
            at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:86)
            at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
            at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:290)
            at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:128)
            at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
            at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:151)
            at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
            at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:61)
            at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3803)
            at org.jboss.cache.TreeCache.put(TreeCache.java:1556)
            at org.jboss.cache.TreeCacheProxyImpl.put(TreeCacheProxyImpl.java:226)
            at org.jboss.cache.pojo.impl.InternalHelper.put(InternalHelper.java:162)
            at org.jboss.cache.pojo.impl.SerializableObjectHandler.putIntoCache(SerializableObjectHandler.java:76)
            at org.jboss.cache.pojo.impl.SerializableObjectHandler.put(SerializableObjectHandler.java:60)
            at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:179)
            at org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:139)
            at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoCacheImpl.java:117)
            at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.attach3085019539260813833(PojoCacheImpl$PojoCacheImplAdvisor.java)
            at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
            at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:109)
            at test.examples.StudentMaintTest.testPropagation(StudentMaintTest.java:98)
            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.textui.TestRunner.doRun(TestRunner.java:116)
            at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:69)
            at junit.textui.TestRunner.doRun(TestRunner.java:109)
            at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24)
            at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118)
            at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
            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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
            Caused by: java.lang.Exception: Don't know how to marshall object of type class examples.Student
            at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:253)
            at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallMap(TreeCacheMarshaller200.java:328)
            at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:238)
            at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallMethodCall(TreeCacheMarshaller200.java:279)
            at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:182)
            at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallMethodCall(TreeCacheMarshaller200.java:279)
            at org.jboss.cache.marshall.TreeCacheMarshaller200.marshallObject(TreeCacheMarshaller200.java:182)
            at org.jboss.cache.marshall.TreeCacheMarshaller200.objectToStream(TreeCacheMarshaller200.java:82)
            at org.jboss.cache.marshall.VersionAwareMarshaller.objectToByteBuffer(VersionAwareMarshaller.java:121)
            at org.jgroups.blocks.RpcDispatcher.callRemoteMethod(RpcDispatcher.java:205)
            at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2104)
            ... 50 more

            org.jboss.cache.pojo.PojoCacheException: PojoTreeCache: org.jboss.cache.ReplicationException: java.lang.Exception: Don't know how to marshall object of type class examples.Student
            at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoCacheImpl.java:122)
            at org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.attach3085019539260813833(PojoCacheImpl$PojoCacheImplAdvisor.java)
            at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
            at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:109)
            at test.examples.StudentMaintTest.testPropagation(StudentMaintTest.java:98)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)


            Process finished with exit code -1

            • 3. Re: Debuging with JBossCache (from IntelliJ)

              How did you run your annotated50 example? I just did a "run.aopc.example" target there and it works.

              • 4. Re: Debuging with JBossCache (from IntelliJ)

                I wanted to see that i can run it from inside the IntelliJ (as a "main" class). The ant task run for me as well.

                I notice that the wiki page was update last night, so i tried to run it with the new mentioned VM params and it runs now.

                thanks.

                • 5. Re: Debuging with JBossCache (from IntelliJ)

                  Yeah, I have updated the VM args to use -javagent instead of classloader option.