IBM Support

PH17014: MANIFEST ATTRIBUTES FOR ANNOTATION FILTERING ARE NOT BEING HONORED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When an ear is being started, the following manifest attributes
    are not being honored correctly and annotation scanning may fail
    :
    
    Ignore-Scanning-Archives
    Ignore-Scanning-Packages
    Include-Scanning-Archives
    Include-Scanning-Packages
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using annotation scanning filters    *
    *                  to                                          *
    *                  avoid scanning a corrupt application        *
    *                  class.                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: An exception occurs during              *
    *                      application start and annotation        *
    *                      scanning does not complete.             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Annotation scanning filters were never intended to be used to
    avoid scanning corrupt classes in an application.  The intent
    was to reduce the amount of annotation scanning as a
    performance improvement.  Thus, not all components of
    WebSphere Application Server that do annotation scanning
    implement the filters.
    If you are using annotation scanning filters to completely
    avoid scanning a particular class because the class is
    corrupt, an exception similar to the following might occur.
    9/5/19 13:43:33:162 CEST] 00000235 targets W TargetsDataImpl
    apply Corrupt class java.lang.ArrayIndexOutOfBoundsException
    at org.objectweb.asm.ClassReader.<init>(Unknown Source) at
    org.objectweb.asm.ClassReader.<init>(Unknown Source) at
    org.objectweb.asm.ClassReader.<init>(Unknown Source) at
    com.ibm.ws.anno.targets.impl.TargetsDataImpl.apply(TargetsDataIm
    pl.java:985) at
    com.ibm.ws.anno.targets.impl.TargetsDataImpl$1.scan(TargetsDataI
    mpl.java:754) at
    com.ibm.ws.anno.archive.impl.ClassSourceDirectZipImpl.scan(Class
    SourceDirectZipImpl.java:376) at
    com.ibm.ws.anno.archive.impl.ClassSourceDirectZipImpl.scan(Class
    SourceDirectZipImpl.java:293) at
    com.ibm.ws.anno.targets.impl.TargetsDataImpl.scanInternal(Target
    sDataImpl.java:759) at
    com.ibm.ws.anno.targets.impl.TargetsScannerImpl.scanInternal(Tar
    getsScannerImpl.java:210) at
    com.ibm.ws.anno.targets.impl.TargetsScannerImpl_Overall.validInt
    ernalContainer(TargetsScannerImpl_Overall.java:493) at
    com.ibm.ws.anno.targets.impl.TargetsScannerImpl_Overall.validInt
    ernalContainers(TargetsScannerImpl_Overall.java:657) at
    com.ibm.ws.anno.targets.impl.TargetsScannerImpl_Overall.validInt
    ernalContainers_Select(TargetsScannerImpl_Overall.java:631) at
    com.ibm.ws.anno.targets.impl.TargetsScannerImpl_Overall.validUnr
    esolvedClasses(TargetsScannerImpl_Overall.java:842) at
    com.ibm.ws.anno.targets.impl.TargetsScannerImpl_Overall.validInt
    ernal(TargetsScannerImpl_Overall.java:1162) at
    com.ibm.ws.anno.targets.impl.AnnotationTargetsImpl_Targets.ensur
    eInternalResults(AnnotationTargetsImpl_Targets.java:589) at
    com.ibm.ws.anno.targets.impl.AnnotationTargetsImpl_Targets.getSe
    edData(AnnotationTargetsImpl_Targets.java:427) at
    com.ibm.ws.anno.targets.impl.AnnotationTargetsImpl_Targets.i_get
    ClassNames(AnnotationTargetsImpl_Targets.java:747) at
    com.ibm.ws.anno.targets.impl.AnnotationTargetsImpl_Targets.getCl
    assNames(AnnotationTargetsImpl_Targets.java:738) at
    com.ibm.ws.anno.archive.impl.ArchiveClassStoreImpl.getArchiveCla
    ssNames(ArchiveClassStoreImpl.java:424) at
    com.ibm.ws.cdi.classic.AbstractClassicCDIArchive.getClassNames(A
    bstractClassicCDIArchive.java:973) at
    com.ibm.ws.cdi.impl.weld.BDAFactory.createBDA(BDAFactory.java:13
    2) at
    com.ibm.ws.cdi.impl.weld.BDAFactory.createBDA(BDAFactory.java:57
    ) at
    com.ibm.ws.cdi.impl.CDIContainerImpl.processModuleLibraries(CDIC
    ontainerImpl.java:446) at
    com.ibm.ws.cdi.impl.CDIContainerImpl.processModules(CDIContainer
    Impl.java:396) at
    com.ibm.ws.cdi.impl.CDIContainerImpl.createWebSphereCDIDeploymen
    t(CDIContainerImpl.java:247) at
    com.ibm.ws.cdi.impl.CDIContainerImpl.startInitialization(CDICont
    ainerImpl.java:129) at
    com.ibm.ws.cdi.classic.CDIRuntimeImpl.applicationStarting(CDIRun
    timeImpl.java:348) at
    com.ibm.ws.cdi.classic.CDIRuntimeImpl.start(CDIRuntimeImpl.java:
    440) at
    com.ibm.ws.cdi.classic.CDIRuntimeImpl.stateChanged(CDIRuntimeImp
    l.java:577)
    The above exception occurs because the CDI component does not
    implement annotation scanning filters.
    

Problem conclusion

  • The code has been updated, and the CDI component now implements
    annotation scanning filters.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 9.0.5.8.  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

    PH17014

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-09-17

  • Closed date

    2019-11-04

  • Last modified date

    2021-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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

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

Document Information

Modified date:
04 November 2021