IBM Support

PI16718: JAVA.LANG.STRINGINDEXOUTOFBOUNDSEXCEPTION OCCURS WHEN STARTING OSGI APPLICATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The StringIndexOutOfBoundsException problem is caused by the
    OSGi application code failing to process a blueprint application
    Java class constructor that has multiple exceptions thrown from
    it.
    
    Following exceptions are seen
    
    org.apache.aries.blueprint.container.BlueprintContainerImpl
    doRun
    Unable to start blueprint container for bundle
    <bundle name>
    
    org.osgi.service.blueprint.container.ComponentDefinitionExceptio
    n:
    Unable to instantiate components
    at
    org.apache.aries.blueprint.container.BlueprintContainerImpl.inst
    antiateEagerComponents(BlueprintContainerImpl.java:645)
    at
    org.apache.aries.blueprint.container.BlueprintContainerImpl.doRu
    n(BlueprintContainerImpl.java:332)
    ...
    ...
    Caused by: java.lang.StringIndexOutOfBoundsException
    at java.lang.String.substring(String.java:1148)
    at org.objectweb.asm.commons.Method.getMethod(Unknown
    Source)
    at org.objectweb.asm.commons.Method.getMethod(Unknown
    Source)
    at
    org.apache.aries.proxy.impl.gen.ProxySubclassAdapter.visit(Proxy
    SubclassAdapter.java:145)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at
    org.apache.aries.proxy.impl.gen.ProxySubclassGenerator.processCl
    ass(ProxySubclassGenerator.java:243)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using Blueprint.                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: StringIndexOutOfBounds exception        *
    *                      reported when starting blueprint        *
    *                      application.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If a blueprint application contains a constructor that throws
    multiple exceptions, during startup a StringIndexOutOfBounds
    exception is thrown.
    This is caused by code that attempts to parse the method
    signature, but that did not account for multiple exceptions.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI16718

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-04-24

  • Closed date

    2014-06-06

  • Last modified date

    2014-06-06

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022