Re: Issue with ASM and WAS 6.1

Eugene Kuleshov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
  Can you please submit a bug report to ASM issue tracker and attach the 
problematic class?
  http://forge.ow2.org/tracker/?atid=100023&group_id=23

  regards,
  Eugene


[email protected] wrote:
> Hello,
>
>   So I have been fighting with IBM WAS 6.1 and ASM for a while now, but it
> seems I am unable to get parameter level annotations working properly in IBM
> WAS 6.1.  When I try to deploy an application with a an EJB method that has a
> parameter annotation, I get the following error.
>
> [5/7/10 17:25:18:689 EDT] 0000007b SystemErr	 R Caused by:
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
>       at org.objectweb.asm.MethodWriter.visitParameterAnnotation(Unknown
> Source)
>       at org.objectweb.asm.MethodAdapter.visitParameterAnnotation(Unknown
> Source)
>       at org.objectweb.asm.ClassReader.a(Unknown Source)
>       at org.objectweb.asm.ClassReader.accept(Unknown Source)
>       at org.objectweb.asm.ClassReader.accept(Unknown Source)
>       at
> com.ibm.ws.metadata.annotations.AnnotationConfigReader.getAnnotationData(AnnotationConfigReader.java:316)
>       at
> com.ibm.ws.metadata.annotations.AnnotationConfigReader.populateModuleData(AnnotationConfigReader.java:246)
>       at
> com.ibm.ws.metadata.MetaDataOrchestrator.getModuleData(MetaDataOrchestrator.java:115)
>       at
> com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImpl.java:3811)
>       at
> com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:172)
>       at
> com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:306)
>       at
> com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:581)
>       at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
>       at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:950)
>       …
>       at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
>       at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
>       at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
>       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
>
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> org.objectweb.asm.MethodWriter.visitParameterAnnotation(Unknown Source)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> org.objectweb.asm.MethodAdapter.visitParameterAnnotation(Unknown Source)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> org.objectweb.asm.ClassReader.a(Unknown Source)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> org.objectweb.asm.ClassReader.accept(Unknown Source)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> org.objectweb.asm.ClassReader.accept(Unknown Source)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> com.ibm.ws.metadata.annotations.AnnotationConfigReader.getAnnotationData(AnnotationConfigReader.java:316)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> com.ibm.ws.metadata.annotations.AnnotationConfigReader.populateModuleData(AnnotationConfigReader.java:246)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> com.ibm.ws.metadata.MetaDataOrchestrator.getModuleData(MetaDataOrchestrator.java:115)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    at
> com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImpl.java:3811)
> [5/7/10 17:25:18:690 EDT] 0000007b SystemErr	 R    ... 89 more
>
>   My first thought was that I was somehow implementing my annotations
> incorrectly, and so I tried replacing my custom annotation with a JRE parameter
> annotation (I used @deprecated).   I still received the same results.  Removing
> the parameter annotations allows the application to deploy properly.  It seems
> that there is something happening in the ASM library when it is doing some sort
> of method decorating.  The version of ASM that IBM WAS 6.1 is using is 3.1, but
> the most recent version is 3.2, and so it doesn’t seem like this should be an
> issue.	What concerns me is that the library has code for handling parameter
> annotations, but using even built-in annotations is broken.  I find it hard to
> believe that no one else has had this problem, but after googling for
> “parameter annotations” and a combination of IBM, websphere, 6.1, EJB, WAS,
> ASM  provided no results that were similar to my problem.  So now I am at a
> loss, and was hoping that someone with more experience could provide some
> insight.
>
> Thanks.
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.