harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Alberto Pimentel Gonzalez" <lapimen...@uci.cu>
Subject [classlib][kernel] Problem with org.apache.harmony.lang.reflect.support.AuxiliaryFinder
Date Sat, 17 May 2008 15:35:16 GMT
The exact cause of the problem is in this line:

                 while (klass != null) {

                        klass = klass.getDeclaringClass();

                        /**/variable =
TypeVariableRepository.findTypeVariable(typeVariableName, klass);

                        /**/if (variable != null) {

                        /**/    return variable;

                        /**/}

                        va = klass.getTypeParameters(); (klass is null)

 

I trying to migrate to Harmony JDK a project developed with Sun JDK but
there is a problem whit the spring aspects.

Here is the complete trace.

 

 

Caused by: 

java.lang.NullPointerException

      at
org.apache.harmony.lang.reflect.support.AuxiliaryFinder.findTypeVariable
(AuxiliaryFinder.java:293)

      at
org.apache.harmony.lang.reflect.parser.Parser.getGenericParameterTypes(P
arser.java:742)

      at
java.lang.reflect.Method.getGenericParameterTypes(Method.java:109)

      at
org.aspectj.weaver.reflect.Java15GenericSignatureInformationProvider.get
GenericParameterTypes(Java15GenericSignatureInformationProvider.java:44)

      at
org.aspectj.weaver.reflect.ReflectionBasedResolvedMemberImpl.getGenericP
arameterTypes(ReflectionBasedResolvedMemberImpl.java:120)

      at
org.aspectj.weaver.ResolvedMemberImpl.parameterizedWith(ResolvedMemberIm
pl.java:641)

      at
org.aspectj.weaver.ResolvedMemberImpl.parameterizedWith(ResolvedMemberIm
pl.java:597)

      at
org.aspectj.weaver.ReferenceType.getDeclaredMethods(ReferenceType.java:5
08)

      at
org.aspectj.weaver.ResolvedType.addAndRecurse(ResolvedType.java:262)

      at
org.aspectj.weaver.ResolvedType.addAndRecurse(ResolvedType.java:301)

      at
org.aspectj.weaver.ResolvedType.getMethodsWithoutIterator(ResolvedType.j
ava:257)

      at
org.aspectj.weaver.ResolvedType.lookupResolvedMember(ResolvedType.java:3
78)

      at
org.aspectj.weaver.JoinPointSignatureIterator.findSignaturesFromSupertyp
es(JoinPointSignatureIterator.java:178)

      at
org.aspectj.weaver.JoinPointSignatureIterator.hasNext(JoinPointSignature
Iterator.java:69)

      at
org.aspectj.weaver.patterns.SignaturePattern.matches(SignaturePattern.ja
va:287)

      at
org.aspectj.weaver.patterns.KindedPointcut.matchInternal(KindedPointcut.
java:106)

      at org.aspectj.weaver.patterns.Pointcut.match(Pointcut.java:146)

      at
org.aspectj.weaver.internal.tools.PointcutExpressionImpl.getShadowMatch(
PointcutExpressionImpl.java:235)

      at
org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesExecutio
n(PointcutExpressionImpl.java:101)

      at
org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesMethodEx
ecution(PointcutExpressionImpl.java:92)

      at
org.springframework.aop.aspectj.AspectJExpressionPointcut.getShadowMatch
(AspectJExpressionPointcut.java:304)

      at
org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(Aspect
JExpressionPointcut.java:190)

      at
org.springframework.aop.support.AopUtils.canApply(AopUtils.java:188)

      at
org.springframework.aop.support.AopUtils.canApply(AopUtils.java:231)

      at
org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUti
ls.java:256)

      at
org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCrea
tor.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:68)

      at
org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCrea
tor.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:54
)

      at
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.pos
tProcessAfterInitialization(AbstractAutoProxyCreator.java:247)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableB
eanFactory.java:311)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1038)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:420)

      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)

      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:141)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:246)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:128)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:729)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:416)

      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)

      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:141)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:246)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:128)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveManagedList(BeanDefinitionValueResolver.java:266)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:132)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:729)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:416)

      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)

      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:141)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:246)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:128)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:729)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:416)

      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)

      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:141)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)

      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)

      at
org.springframework.beans.factory.support.DefaultListableBeanFactory.get
BeansOfType(DefaultListableBeanFactory.java:238)

      at
org.springframework.context.support.AbstractApplicationContext.getBeansO
fType(AbstractApplicationContext.java:697)

      at
org.springframework.context.support.AbstractApplicationContext.registerL
isteners(AbstractApplicationContext.java:521)

      at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:345)

      at
org.springframework.web.context.support.AbstractRefreshableWebApplicatio
nContext.refresh(AbstractRefreshableWebApplicationContext.java:156)

      at
cu.uci.base.loader.AbstractModuleLoader.loadCoreModules(AbstractModuleLo
ader.java:86)

      at
cu.uci.base.loader.tree.TreeModuleLoader.loadModules(TreeModuleLoader.ja
va:57)

      at cu.uci.base.loader.AppLoader.loadModules(AppLoader.java:69)

      at cu.uci.base.loader.AppLoader.load(AppLoader.java:30)

      at
cu.uci.base.context.BaseContextLoader.createWebApplicationContext(BaseCo
ntextLoader.java:56)

      at
org.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:184)

      at
org.springframework.web.context.ContextLoaderListener.contextInitialized
(ContextLoaderListener.java:49)

      at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
ava:3729)

      at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4187
)

      at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

      at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

      at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

      at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

      at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

      at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

      at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

      at java.lang.reflect.Method.invoke(Method.java:317)

      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

 

Greetings, Pimentel


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message