[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] NullPointerException WeavingAdaptor.java:252


Greetings,

Just setup with Tomcat 6.0.16, Spring 2.5.4 with TomcatInstrumentableClassLoader for LTW, and AspectJ 1.6.0 final. Getting the below core dump on shutdown. Repeats several times. The core dumps all look about the same, but here are some extra log messages that accompany each one that are also below. User error, or should I file a bug?

Thanks,

Ian


May 13, 2008 10:29:20 AM org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: org/mortbay/io/nio/NIOBuffer
java.lang.NullPointerException
at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass (WeavingAdaptor.java:252)
[...]


May 13, 2008 10:29:20 AM org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: org/mortbay/jetty/HttpException
java.lang.NullPointerException
at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass (WeavingAdaptor.java:252)
[...]


May 13, 2008 10:29:20 AM org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: org/mortbay/io/nio/SelectChannelEndPoint$IdleTask
[...]

May 13, 2008 10:29:20 AM org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: org/jdom/IllegalDataException
[...]

May 13, 2008 10:29:20 AM org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: org/jdom/IllegalTargetException
[...]

May 13, 2008 10:29:20 AM org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: org/dom4j/io/DispatchHandler
[...]

May 13, 2008 10:29:20 AM org.aspectj.weaver.tools.Jdk14Trace error
SEVERE: org/springframework/context/annotation/ CommonAnnotationBeanPostProcessor$ResourceDependencyDescriptor
[...]


That's all of them.  Here's a representative ajcore:

---- AspectJ Properties ---
AspectJ Compiler 1.6.0 built on Wednesday Apr 23, 2008 at 20:27:36 GMT
---- Dump Properties ---
Dump file: ajcore.20080513.102920.721.txt
Dump reason: java.lang.NullPointerException
Dump on exception: true
Dump at exit condition: abort
---- Exception Information ---
java.lang.NullPointerException
at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass (WeavingAdaptor.java:252)
at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:78)
at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform (ClassPreProcessorAgentAdapter.java:52)
at org.springframework.context.weaving.AspectJWeavingEnabler $AspectJClassBypassingClassFileTransformer.transform (AspectJWeavingEnabler.java:92)
at org.springframework.instrument.classloading.WeavingTransformer.transform IfNecessary(WeavingTransformer.java:95)
at org.springframework.instrument.classloading.WeavingTransformer.transform IfNecessary(WeavingTransformer.java:78)
at org.springframework.instrument.classloading.tomcat.TomcatInstrumentableC lassLoader.findResourceInternal(TomcatInstrumentableClassLoader.java: 114)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal (WebappClassLoader.java:1759)
at org.apache.catalina.loader.WebappClassLoader.findClass (WebappClassLoader.java:872)
at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1327)
at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1206)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
at java.lang.Class.getDeclaredFields(Class.java:1715)
at org.apache.catalina.loader.WebappClassLoader.clearReferences (WebappClassLoader.java:1600)
at org.apache.catalina.loader.WebappClassLoader.stop (WebappClassLoader.java:1497)
at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:707)
at org.apache.catalina.core.StandardContext.stop (StandardContext.java:4550)
at org.apache.catalina.core.ContainerBase.removeChild (ContainerBase.java:924)
at org.apache.catalina.startup.HostConfig.undeployApps (HostConfig.java:1189)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1160)
at org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:313)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java: 448)
at org.apache.catalina.core.StandardService.stop (StandardService.java:584)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java: 744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
at org.apache.catalina.startup.Catalina.start(Catalina.java:603)
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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
---- System Properties ---
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path=:/Applications/Development/oracle/ instantclient10_1:/System/Library/Frameworks/JavaVM.framework/ Versions/1.5.0/Libraries
java.vm.version=1.5.0_13-121
shared.loader=
awt.nativeDoubleBuffering=true
gopherProxySet=false
java.vm.vendor="Apple Computer, Inc."
java.vendor.url=http://apple.com/
path.separator=:
tomcat.util.buf.StringCache.byte.enabled=true
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
sun.java.launcher=SUN_STANDARD
user.country=US
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/apps/tomcat/6.0.16/home/bin
java.runtime.version=1.5.0_13-b05-241
java.awt.graphicsenv=apple.awt.CGraphicsEnvironment
java.endorsed.dirs=/apps/tomcat/6.0.16/home/common/endorsed
os.arch=i386
java.io.tmpdir=/apps/tomcat/6.0.16/home/temp
line.separator=


java.vm.specification.vendor=Sun Microsystems Inc.
java.naming.factory.url.pkgs=org.apache.naming
os.name=Mac OS X
sun.jnu.encoding=MacRoman
java.library.path=/System/Library/Frameworks/JavaVM.framework/ Versions/1.5.0/Home/bin:/apps/tomcat/6.0.16/home/bin
java.specification.name=Java Platform API Specification
java.class.version=49.0
sun.management.compiler=HotSpot Client Compiler
sun.io.useCanonCaches=false
os.version=10.4.11
catalina.useNaming=true
user.timezone=America/Los_Angeles
java.awt.printerjob=apple.awt.CPrinterJob
file.encoding=MacRoman
java.specification.version=1.5
catalina.home=/apps/tomcat/6.0.16/home
java.class.path=/apps/tomcat/6.0.16/home/bin/bootstrap.jar:/System/ Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ tools.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Classes/.compatibility/14compatibility.jar
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,or g.apache.tomcat.,org.apache.jasper.
java.vm.specification.version=1.0
java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Home
sun.arch.data.model=32
user.language=en
java.specification.vendor=Sun Microsystems Inc.
awt.toolkit=apple.awt.CToolkit
java.vm.info=mixed mode
java.version=1.5.0_13
java.ext.dirs=/Library/Java/Extensions:/System/Library/Java/ Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Home/lib/ext
sun.boot.class.path=/System/Library/Frameworks/JavaVM.framework/ Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/ JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/ Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/ Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/ 1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/ Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/ JavaVM.framework/Versions/1.5.0/Classes/charsets.jar
server.loader=
java.awt.headless=true
java.vendor=Apple Computer, Inc.
catalina.base=/apps/tomcat/6.0.16/home
file.separator=/
java.vendor.url.bug=http://developer.apple.com/java/
common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
mrj.version=1040.1.5.0_13-241
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.t omcat.,org.apache.jasper.,sun.beans.
sun.cpu.isalist=
---- Command Line ---
Empty
---- Full Classpath ---
Empty
---- Compiler Messages ---
Empty
---- org.aspectj.weaver.reflect.ReflectionWorld@f5a51 ----
Shadow mungers:
Empty
Type mungers:
Empty
Late Type mungers:
Empty
---- org.aspectj.weaver.ltw.LTWWorld@710a3e ----
Class loader:
org.springframework.instrument.classloading.tomcat.TomcatInstrumentableC lassLoader@b27bb5
Class loader parent:
org.apache.catalina.loader.StandardClassLoader@833eca
Shadow mungers:
(before: (((((initialization (org.springframework.beans.factory.aspectj.ConfigurableObject.new (..)) && initialization (org.springframework.beans.factory.aspectj.ConfigurableObject+.new (..))) && this(BindingTypePattern(java.lang.Object, 0))) && @this (org.springframework.beans.factory.annotation.Configurable)) && if (boolean org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect .ajc$if_1 (org.springframework.beans.factory.annotation.Configurable))) && persingleton (org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspec t))->void org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAsp ect.ajc$before $org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAs pect$1$e854fa65(java.lang.Object))
(afterReturning: (((((initialization (org.springframework.beans.factory.aspectj.ConfigurableObject+.new (..)) && this(BindingTypePattern(java.lang.Object, 0))) && !(@this (org.springframework.beans.factory.annotation.Configurable) && if (boolean org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect .ajc$if_1 (org.springframework.beans.factory.annotation.Configurable)))) && @this(org.springframework.beans.factory.annotation.Configurable)) && if(boolean org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAsp ect.ajc$if_0(org.aspectj.lang.JoinPoint))) && persingleton (org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspec t))->void org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAsp ect.ajc$afterReturning $org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAs pect$2$1ea6722c(java.lang.Object))
(afterReturning: (((execution(java.lang.Object org.springframework.beans.factory.aspectj.AbstractInterfaceDrivenDepende ncyInjectionAspect$ConfigurableDeserializationSupport+.readResolve()) && this(BindingTypePattern(java.lang.Object, 0))) && @this (org.springframework.beans.factory.annotation.Configurable)) && persingleton (org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspec t))->void org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAsp ect.ajc$afterReturning $org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAs pect$3$6aa27052(java.lang.Object))
(before(extraFlags: 4): ((((execution(* *(..)) && @annotation (org.springframework.transaction.annotation.Transactional)) && this (BindingTypePattern(java.lang.Object, 0))) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)) | | (((execution(public * @org.springframework.transaction.annotation.Transactional *.*(..)) && this(BindingTypePattern(java.lang.Object, 0))) && @this (org.springframework.transaction.annotation.Transactional)) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)))- >void org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc $before $org_springframework_transaction_aspectj_AbstractTransactionAspect$1 $2a73e96c(java.lang.Object, org.aspectj.lang.JoinPoint$StaticPart))
(afterThrowing(extraFlags: 1): ((((execution(* *(..)) && @annotation (org.springframework.transaction.annotation.Transactional)) && this (BindingTypePattern(java.lang.Object, 0))) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)) | | (((execution(public * @org.springframework.transaction.annotation.Transactional *.*(..)) && this(BindingTypePattern(java.lang.Object, 0))) && @this (org.springframework.transaction.annotation.Transactional)) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)))- >void org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc $afterThrowing $org_springframework_transaction_aspectj_AbstractTransactionAspect$2 $2a73e96c(java.lang.Object, java.lang.Throwable))
(afterReturning: ((((execution(* *(..)) && @annotation (org.springframework.transaction.annotation.Transactional)) && this (BindingTypePattern(java.lang.Object, 0))) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)) | | (((execution(public * @org.springframework.transaction.annotation.Transactional *.*(..)) && this(BindingTypePattern(java.lang.Object, 0))) && @this (org.springframework.transaction.annotation.Transactional)) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)))- >void org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc $afterReturning $org_springframework_transaction_aspectj_AbstractTransactionAspect$3 $2a73e96c(java.lang.Object))
(after: ((((execution(* *(..)) && @annotation (org.springframework.transaction.annotation.Transactional)) && this (BindingTypePattern(java.lang.Object, 0))) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)) | | (((execution(public * @org.springframework.transaction.annotation.Transactional *.*(..)) && this(BindingTypePattern(java.lang.Object, 0))) && @this (org.springframework.transaction.annotation.Transactional)) && persingleton (org.springframework.transaction.aspectj.AnnotationTransactionAspect)))- >void org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc $after $org_springframework_transaction_aspectj_AbstractTransactionAspect$4 $2a73e96c(java.lang.Object))
Type mungers:
(BcelTypeMunger ResolvedTypeMunger(Method, java.lang.Object org.springframework.beans.factory.aspectj.AbstractInterfaceDrivenDepende ncyInjectionAspect$ConfigurableDeserializationSupport.readResolve()))
(BcelTypeMunger ExposeTypeMunger(java.lang.Object))
(BcelTypeMunger ExposeTypeMunger (org.springframework.beans.factory.aspectj.ConfigurableObject))
(BcelTypeMunger ExposeTypeMunger (org.springframework.beans.factory.aspectj.AbstractInterfaceDrivenDepend encyInjectionAspect$ConfigurableDeserializationSupport))
(BcelTypeMunger ExposeTypeMunger(java.lang.Object))
Late Type mungers:
Empty