You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by antonypaul <an...@gmail.com> on 2016/03/13 18:15:33 UTC
java.lang.ArrayStoreException:
sun.reflect.annotation.TypeNotPresentExceptionProxy
I am getting this error in Tomee 7 M3. This is an application that runs fine
in Weblogic 12c.
Here is full stack trace.
org.apache.openejb.util.OpenEJBErrorHandler.handleUnknownError FATAL ERROR:
Unknown error in Assembler. Please send the following stack trace and this
message to users@tomee.apache.org :
java.lang.ArrayStoreException:
sun.reflect.annotation.TypeNotPresentExceptionProxy
at
sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
at
sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
at
sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
at
sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
at
sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
at
sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
at java.lang.Class.createAnnotationData(Class.java:3521)
at java.lang.Class.annotationData(Class.java:3510)
at java.lang.Class.getAnnotation(Class.java:3415)
at
java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:258)
at java.lang.Class.isAnnotationPresent(Class.java:3425)
at
org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:589)
at
org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:533)
at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1490)
at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:456)
at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:371)
at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:415)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1002)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:833)
at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:529)
at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:616)
at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:485)
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:464)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:151)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:308)
at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:258)
at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.startup.Catalina.load(Catalina.java:576)
at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Thanks,
Antony
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/java-lang-ArrayStoreException-sun-reflect-annotation-TypeNotPresentExceptionProxy-tp4677887.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
Posted by Romain Manni-Bucau <rm...@gmail.com>.
why not putting it in the main ear (like in its lib folder?)
Otherwise you can use META-INF/jars.txt to add a folder (syntax:
/path/to/folder/*.jar) to the classloader.
Romain Manni-Bucau
@rmannibucau | Blog | Github | LinkedIn | Tomitriber
2016-03-31 14:37 GMT+02:00 antonypaul <an...@gmail.com>:
> Also what should be the package structure of the shared library? Where the
> jars should be placed.
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/java-lang-ArrayStoreException-sun-reflect-annotation-TypeNotPresentExceptionProxy-tp4677887p4678034.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
Re: java.lang.ArrayStoreException:
sun.reflect.annotation.TypeNotPresentExceptionProxy
Posted by antonypaul <an...@gmail.com>.
Also what should be the package structure of the shared library? Where the
jars should be placed.
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/java-lang-ArrayStoreException-sun-reflect-annotation-TypeNotPresentExceptionProxy-tp4677887p4678034.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: java.lang.ArrayStoreException:
sun.reflect.annotation.TypeNotPresentExceptionProxy
Posted by antonypaul <an...@gmail.com>.
It indeed is due to not seeing classes from third party jars. We deploy all
common jars in a seperate EAR file as shared library and refer this library
in weblogic-application.xml.
How to achieve this in TomEE.
Say I have shared library deployed in EAR file - sharedlib.ear. How the
other EAR/WAR can refer this EAR library.
Thanks,
Antony
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/java-lang-ArrayStoreException-sun-reflect-annotation-TypeNotPresentExceptionProxy-tp4677887p4678033.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
looks like a dependency is missing or a class which shouldn't is scanned.
Generally configuring scan.xml or exclusions.list allows to solve it.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>
2016-03-13 18:15 GMT+01:00 antonypaul <an...@gmail.com>:
> I am getting this error in Tomee 7 M3. This is an application that runs
> fine
> in Weblogic 12c.
>
> Here is full stack trace.
> org.apache.openejb.util.OpenEJBErrorHandler.handleUnknownError FATAL ERROR:
> Unknown error in Assembler. Please send the following stack trace and this
> message to users@tomee.apache.org :
> java.lang.ArrayStoreException:
> sun.reflect.annotation.TypeNotPresentExceptionProxy
> at
>
> sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
> at
>
> sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
> at
>
> sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
> at
>
> sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
> at
>
> sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
> at
>
> sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
> at java.lang.Class.createAnnotationData(Class.java:3521)
> at java.lang.Class.annotationData(Class.java:3510)
> at java.lang.Class.getAnnotation(Class.java:3415)
> at
>
> java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:258)
> at java.lang.Class.isAnnotationPresent(Class.java:3425)
> at
>
> org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:589)
> at
>
> org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:533)
> at
>
> org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1490)
> at
>
> org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:456)
> at
>
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:371)
> at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:415)
> at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1002)
> at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:833)
> at
>
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:529)
> at
>
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:616)
> at
>
> org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:485)
> at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:464)
> at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:151)
> at org.apache.openejb.OpenEJB.init(OpenEJB.java:308)
> at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:258)
> at
>
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168)
> at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
> at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
>
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:576)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
>
> Thanks,
> Antony
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/java-lang-ArrayStoreException-sun-reflect-annotation-TypeNotPresentExceptionProxy-tp4677887.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>