title: Jersey REST Exception java.lang.ArrayIndexOutOfBoundsException at org.objectweb.asm.ClassReader.readInt
body: <p>I am using Jersey 1.2 for building RESTful services using JDK1.5</p>
  
  <p>When I test REST services, I am getting the following exception.</p>
  
  <blockquote>
    <p>java.lang.ArrayIndexOutOfBoundsException: 2884779   at
        org.objectweb.asm.ClassReader.readInt(Unknown Source)   at
        org.objectweb.asm.ClassReader.accept(Unknown Source)    at
        org.objectweb.asm.ClassReader.accept(Unknown Source)    at 
        com.sun.jersey.spi.scanning.AnnotationScannerListener.onProcess
        (AnnotationScannerListener.java:130)    at
        com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner$1.
        f(FileSchemeScanner.java:83)    at 
        com.sun.jersey.core.util.Closing.f(Closing.java:68)</p>
  </blockquote>
  
  <p>I have created a simple class for testing</p>
  
  <pre><code>@Path("/employee")
  public class TestRest {
  
  
      @GET
      @Produces( { MediaType.TEXT_HTML })
      public String getClichedMessage() {
  
          return "Hello Smith";
      }
  }
  </code></pre>
  
  <p>How can I resolve this issue?</p>
  
  <p>My jar versions </p>
  
  <pre><code>jersey-server-1.2.jar
  jersey-core-1.2.jar
  grizzly-servlet-webserver-1.9.18-i.jar
  asm-3.1.jar
  jsr311-api-1.1.jar
  </code></pre>