Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-187

ResteasyProviderFactory.getInstance() causes ArrayIndexOutOfBoundsException

XMLWordPrintable

    • Low

      When using resteasy client to connect to other system form stateless bean I have (sometimes!) following stack trace (see bellow):

      public PlaceImageResource getPlaceImageResource()

      { RegisterBuiltin.register(ResteasyProviderFactory.getInstance()); return ProxyFactory.create(PlaceImageResource.class, getResourceInterfaceUrl()); }

      Frequency of reproducibility of this problem indicate that it is some concurrency problem e.g. racing condition:

      Stack trace:

      java.lang.ArrayIndexOutOfBoundsException: -1
      [INFO] [talledLocalContainer] at java.util.ArrayList.get(ArrayList.java:324)
      [INFO] [talledLocalContainer] at org.jboss.resteasy.util.ThreadLocalStack.get(ThreadLocalStack.java:30)
      [INFO] [talledLocalContainer] at org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory.getDelegate(ThreadLocalResteasyProviderFactory.java:40)
      [INFO] [talledLocalContainer] at org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory.addMessageBodyReader(ThreadLocalResteasyProviderFactory.java:100)
      [INFO] [talledLocalContainer] at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:27)

              patriot1burke@gmail.com Bill Burke (Inactive)
              marek.krysiuk_jira Marek Krysiuk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: