Bug 1008337 - Patching module does not work with IBM JDK 6
Summary: Patching module does not work with IBM JDK 6
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Patching
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER7
: EAP 6.2.0
Assignee: Jan Martiska
QA Contact: Jan Martiska
Russell Dickenson
URL:
Whiteboard:
Depends On: 1006876
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-16 08:05 UTC by Jan Martiska
Modified: 2013-12-15 16:20 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:20:41 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.