Download
Downloadable File
File link | File size | File description |
---|---|---|
Abstract
manifest attributes for annotation filtering are not being honored
Download Description
PH17014 resolves the following problem:
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:
none
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:
None
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.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(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.3.
Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
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:
none
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:
None
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.
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.3.
Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Prerequisites
None
Installation Instructions
Review the readme.txt for detailed installation instructions.
URL | SIZE(Bytes) |
---|---|
V90 Readme | 6790 |
Download Package
DOWNLOAD | RELEASE DATE | SIZE(Bytes) | DOWNLOAD Options What is Fix Central(FC)? |
---|---|---|---|
9.0.5.0-WS-WASProd-IFPH17014 | 31 January 2020 | 339170 | FC |
Problems Solved
PH17014
On
Technical Support
Contact IBM Support at https://www.ibm.com/software/mysupport/s/ or 1-800-IBM-SERV (US only).
Document Location
Worldwide
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"9.0.5.0;9.0.5.1;9.0.5.2","Edition":"Advanced,Base,Developer,Enterprise,Express,Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]
Problems (APARS) fixed
Was this topic helpful?
Document Information
Modified date:
31 January 2020
UID
ibm11288336