Hi,
OK. After running the class loader:
java org.jboss.aop.hook.GenerateInstrumentedClassLoader
/opt/JBC1/bin/classloader/
I've tried to run my Main class:
java -Xbootclasspath/p:/opt/JBC1/bin/classloader
-Djboss.aop.path=/opt/JBC1/bin/META-INF/jboss-aodp.xml Main
I got the following error:
Hi,
I'm trying to run the examples, distributed with the JBossCache, within
Eclipse, but it looks like I'm missing something. I keep getting the following
exception...
java.lang.IllegalArgumentException: TreeCacheAop.putObject(): Object type is
neither aspectized nor Serializable nor an array
Did you get it to run under commnad line first? If yo want to run it under
Eclipse, you will need to either 1) use the aop classloader (see the ant
target), or 2) use aopc first to instrument the pojo (also ant target).
View the original post :
Hi,
First, I would like to thank you for the answer.
I'm trying to declare the object with annotation:
@org.jboss.cache.aop.annotation.InstanceOfPojoCacheable
| public class Node implements Serializable {
| ...
But I still haven't figured out how can I instrument the class using the
BTW - when I'm trying to remove the implements Serializable on the Node
declaration, I get:
java.lang.IllegalArgumentException: TreeCacheAop.putObject():
| Object type is neither aspectized nor Serializable nor an array of
primitives.
| Object class name is Node
Any idea why?
Gilad
Yes, the IllegalArgumentException indicates that your POJO is not instrumented
properly.
Under the distro example, there are examples for load-time and compile-time
options. So please run it through first and I think you will get the idea.
View the original post :
Has your Node class been instrumented already, e.g., running thru aopc? Since
it is Serializable, it still can be used by putObject, but PojoCache won't
intercept it if it is not instrumented beforehand.
To test your enviornment, you can also run thru the examples that came with
JBossCache