[aspectwerkz-user] Problem using Hibernate with Aspectwerkz
"Dikshit Luthra" <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have an application using hibernate. I am trying to aspectize that
application with
aspectwerkz 2.0.RC3. I have tried it on JRockit 1.4.2 and Sun 1.4.2 JVM.
JRockit 1.4.2 :
With JRockit when I try to run the application, the hibernate service is
not started
giving the following error.....
java.lang.ClassFormatError
at
java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.P
rotectionDomain;)Ljava.lang.Class;(Unknown Source)
at
java.lang.ClassLoader.defineClass([BII)Ljava.lang.Class;(Unknown Source)
at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lan
g.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang
.Object;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Lja
va.lang.Object;)Ljava.lang.Object;(Unknown Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)L
java.lang.Object;(Unknown Source)
at
net.sf.cglib.CodeGenerator.defineClass(Ljava.lang.String;[BLjava.lang.Cl
assLoader;)Ljava.lang.Class;(CodeGenerator.java:205)
at
net.sf.cglib.CodeGenerator.define()Ljava.lang.Class;(CodeGenerator.java:
175)
at
net.sf.cglib.KeyFactory.create(Ljava.lang.Class;Ljava.lang.ClassLoader;)
Lnet.sf.cglib.KeyFactory;(KeyFactory.java:114)
at
net.sf.hibernate.impl.SessionFactoryImpl.<clinit>()V(SessionFactoryImpl.
java:297)
at jrockit.vm.RNI.initializeClassFromJava(II)V(Unknown
Source)
at jrockit.vm.RNI.clinitTrampoline()V(Unknown Source)
...... more
Sun J2SDK 1.4.2 :
The hibernate service is started but I get the AW warning..
AspectWerkz - WARN - Error pre-processing class null in
Thread[TP-Processor4,5,jboss]
java.lang.NullPointerException
at
org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor.preProcess(As
pectWerkzPreProcessor.java:131)
at
org.codehaus.aspectwerkz.hook.impl.ClassPreProcessorHelper.defineClass0P
re(ClassPreProcessorHelper.java:107)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.lang.ClassLoader.defineClass(ClassLoader.java:382)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
net.sf.cglib.CodeGenerator.defineClass(CodeGenerator.java:205)
at net.sf.cglib.CodeGenerator.define(CodeGenerator.java:175)
at net.sf.cglib.KeyFactory.create(KeyFactory.java:114)
at
net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.jav
a:297)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:627)
....... more
Environment : JBoss 3.2.3, Hibernate 2.0.3 with CGLIB 2.0.1
Can anybody help?
Thanks,
Dikshit