IBM Support

PK35320: GETRESOURCEASSTREAM() FAILS ON CLASSPATH RESOURCE THAT HAS CHARACTER '+' IN ITS NAME

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • getResourceAsStream() returns null for classpath resource name
    with character '+' in the name:
    
    [11/14/06 19:19:55:658 GMT] 0000001b CompoundClass 3   looking
    for resource test/loader/test+1 in SinglePathClassProvider :
    com.ibm.ws.classloader.SinglePathClassProvider@53be53be
    classpath =
    C:\was\profiles\AppSrv01\installedApps\IBM-BEADF8B7A11Node01Cell
    \LoadPlusEar.ear\LoadPlus.war
    [11/14/06 19:19:55:658 GMT] 0000001b CompoundClass <
    localGetResourceAsStream is=null Exit
    [11/14/06 19:19:55:658 GMT] 0000001b CompoundClass <
    getResourceAsStream is=null Exit
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: WebSphere Application Server users who call  *
    *                 getResourceAsStream with paths containing    *
    *                 a plus sign '+'.                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: The getResourceAsStream() method will   *
    *                      return null even though the             *
    *                      getResource() method returns non-null.  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The wsjar protocol handler improperly decodes '+' in a path to
    the space character, which causes a search for the wrong
    resource.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PK35320

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    61A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-11-29

  • Closed date

    2006-11-30

  • Last modified date

    2006-11-30

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

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

Modules/Macros

  • RUNTIME
    

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R60A PSY

       UP

  • R60H PSY

       UP

  • R60I PSY

       UP

  • R60P PSY

       UP

  • R60S PSY

       UP

  • R60W PSY

       UP

  • R60Z PSY

       UP

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

  • R61Z 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":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 December 2021