Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1008337

Summary: Patching module does not work with IBM JDK 6
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jan Martiska <jmartisk>
Component: PatchingAssignee: Jan Martiska <jmartisk>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Martiska <jmartisk>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry, emuckenh, jason.greene, jawilson, jdoyle, kconner, olubyans, pjelinek
Target Milestone: ER7   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:20:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1006876    
Bug Blocks:    

Description Jan Martiska 2013-09-16 08:05:28 UTC
Try compiling EAP with IBM JDK 1.6. It will fail with:

[ERROR] /home/jmartisk/Workspace/jboss-eap/patching/src/main/java/org/jboss/as/patching/metadata/PatchXml.java:[57,76] cannot find symbol
symbol  : method newFactory()
location: class javax.xml.stream.XMLOutputFactory
[ERROR] /home/jmartisk/Workspace/jboss-eap/patching/src/main/java/org/jboss/as/patching/generator/DistributionXml.java:[54,76] cannot find symbol
symbol  : method newFactory()
location: class javax.xml.stream.XMLOutputFactory

I think this error will cause runtime issues as well (if EAP is compiled with another JDK and then run on IBM 6), because it will appear when the classes PatchXml/DistributionXml are loaded so they can be used for parsing patch XML. However, I am unable to verify this hypothesis, because in 6.2.0.ER1, bug #1006876 prevents from applying patches on IBM JDK 6 whatsoever (the same error as described therein appears when trying to apply a patch). 

Proposed fix by pjelinek:
Instead of XMLOutputFactory.newFactory(), call XMLOutputFactory.newInstance()

Comment 1 Jan Martiska 2013-09-16 08:52:43 UTC
I don't think a fix is necessary in upstream, because WildFly 8 requires JDK 7.

Comment 3 Jan Martiska 2013-09-27 09:04:29 UTC
Fixed in 6.2.0.ER3.

Comment 7 Jan Martiska 2013-10-23 13:36:57 UTC
The exact same issue returned in ER6.

[ERROR] /home/jmartisk/Workspace/jboss-eap/patching/src/main/java/org/jboss/as/patching/metadata/PatchBundleXml.java:[49,76] cannot find symbol
[ERROR] symbol  : method newFactory()
[ERROR] location: class javax.xml.stream.XMLOutputFactory

Reopening the issue rather than creating a new one to save some time (this bug already has all the acks...)

Comment 9 Jan Martiska 2013-11-05 09:26:29 UTC
Fixed in ER7.