Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Loading AspectJ with Cassandra 1.2.2 does not work

Hello,

Cassandra 1.2.2 does not seem to like Aspects with it. Before, versions 1.1.x I could load some Aspects to it putting the JARS under its library folder and now with 1.2.2 I can't.

I've got the error:

java.lang.InstantiationException: org.apache.cassandra.service.CassandraDaemon
    at java.lang.Class.newInstance0(Class.java:342)
    at java.lang.Class.newInstance(Class.java:310)
    at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:190)
Cannot load daemon
Service exit with a return value of 3


I've noticed that the CassandraDaemon has changed on 1.2.2.

What is the process to load an Aspect to it?

I am hoping to do something like:

@Around("execution(* org.apache.cassandra.thrift.CassandraServer.doInsert(..))")

And then specify under cassandra-env.sh:

# AspectJ weaving
JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/aspectjweaver-1.6.11.jar"


I had the soma code working with Cassandra 1.1.8 and now with Cassandra 1.2.2 it simply will not start Cassandra.

Aspects are powerful when used with Cassandra as it allows to design triggers to data changes.

I've tried also the new aspectjweaver 1.7.2 without any success.

Any ideas?

Thanks.

Carlos.

Back to the top