IBM Support

PM42347: A FileNotFoundException occurs when accessing RAR files via folder redirection on the Windows 7 platform

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In certain situations on the Windows 7 platform accessing RAR
    files within an application will fail with a
    FileNotFoundException.
    
    The following is an example from the .log file of the product
    when this problem occurs:
    
    !ENTRY com.ibm.adapter.framework 4 4 2011-05-09 09:16:57.587
    !MESSAGE
    \workspace\CWYBC_JDBC\connectorModule\CWYBC_JDBC.jar (The system
    cannot find the path specified.)
    !STACK 0
    java.io.FileNotFoundException:
    \workspace\CWYBC_JDBC\connectorModule\CWYBC_JDBC.jar (The system
    cannot find the path specified.)
     at java.util.zip.ZipFile.open(Native Method)
     at java.util.zip.ZipFile.?init?(ZipFile.java:115)
     at java.util.jar.JarFile.?init?(JarFile.java:136)
     at java.util.jar.JarFile.?init?(JarFile.java:73)
     at
    com.ibm.adapter.j2ca.spi.util.JarURLConnection.getInputStream(Ja
    rURLConnection.java:44)
     at java.net.URL.openStream(URL.java:1011)
     at
    java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:505)
     at java.util.ResourceBundle$2.run(ResourceBundle.java:486)
     at java.util.ResourceBundle$2.run(ResourceBundle.java:484)
     at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:202)
     at
    java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:483
    )
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the workspace is located on a remote server using
    folder redirection on Windows 7 the RAR files cannot be
    found by the class loader when using the J2C tooling in
    Rational Application Developer or the External Service tools
    in WebSphere Integration Developer.
    

Problem conclusion

  • The deprecated toURL() method was being used from the
    java.io.File class which was causing the file paths to be
    encoded incorrectly, which dropped the server name from the
    path.  Instead the method java.io.File.toURI().toURL() is
    now used to correct encoded the file paths.
    
    This issue is fixed in Rational Application Developer
    Version 7.5.5.5 and 8.0.4
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM42347

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-23

  • Closed date

    2011-11-03

  • Last modified date

    2011-11-03

  • 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

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R700 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
03 November 2011