IBM Support

PI12116: APPLICATION REPORTS JAVA.IO.IOEXCEPTION: EXCEPTION IN OPENING ZIP FILE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When redeploying an application the application fails to
    restart reporting
    [ERROR   ] CWWKE0701E: FrameworkEvent ERROR
    Bundle:gateway.bundle.EARApplication.MyApplication(id=200)
    java.io.IOException: Exception in opening zip file:
    C:\Users\myUser\Desktop\wlp\usr\servers\defaultServer\workarea\o
    rg.eclipse.osgi\bundles\200\1\bundlefile
     at
    org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAc
    tion.java:291)
     at [internal classes]
     at com.ibm.cds.CDSBundleFile.getEntry(CDSBundleFile.java:95)
     at
    org.eclipse.osgi.baseadaptor.bundlefile.BundleFileWrapperChain.g
    etEntry(BundleFileWrapperChain.java:43)
     at [internal classes]
    Caused by: java.io.FileNotFoundException:
    C:\Users\myUser\Desktop\wlp\usr\servers\defaultServer\workarea\o
    rg.eclipse.osgi\bundles\200\1\bundlefile (The system cannot
    find the path specified.)
    
    Note, that the error also occurs when simply commenting out the
    application from the server.xml and then later re-enabling
    

Local fix

  • N.A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Core                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: Application fails to restart,           *
    *                      reporting FileNotFoundException         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When redeploying an application on the Liberty profile it is
    possible that an IOException or FileNotFoundException will
    occur and the application will not start.
    Note that commenting out the application from the server.xml
    and later reactivating is the same as redeploying.
    The FileNotFoundException will be similar to:
    [ERROR   ] CWWKE0701E: FrameworkEvent ERROR
    Bundle:gateway.bundle.EARApplication.MyApplication(id=200)
    java.io.IOException: Exception in opening zip file:
    C:\Users\myUser\Desktop\wlp\usr\servers\defaultServer\workarea\o
    rg.eclipse.osgi\bundles\200\1\bundlefile
    at
    org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAc
    tion.java:291)
    at [internal classes]
    at com.ibm.cds.CDSBundleFile.getEntry(CDSBundleFile.java:95)
    at
    org.eclipse.osgi.baseadaptor.bundlefile.BundleFileWrapperChain.g
    etEntry(BundleFileWrapperChain.java:43)
    at [internal classes]
    Caused by: java.io.FileNotFoundException:
    C:\Users\myUser\Desktop\wlp\usr\servers\defaultServer\workarea\o
    rg.eclipse.osgi\bundles\200\1\bundlefile (The system cannot
    find the path specified.)
    

Problem conclusion

  • The problem occurs because the gateway bundle associated with
    the application's context classloader is uninstalled when the
    application stops, but the classloader is re-used when the
    application restarts. The (now stale) classloader refers to
    the missing bundle which can cause the IOException or
    FileNotFoundException. The correct and now modified behavior
    is to create a new classloader instance when the application
    restarts.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.2. Please refer to the Recommended Updates page
    for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI12116

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-02-19

  • Closed date

    2014-03-17

  • Last modified date

    2014-03-17

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

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

Document Information

Modified date:
27 April 2022