United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6909759 : using JDK 1.6.0_18-ea does not work with GlassFish v3

Details
Type:
Bug
Submit Date:
2009-12-11
Status:
Closed
Updated Date:
2012-04-24
Project Name:
JDK
Resolved Date:
2009-12-11
Component:
xml
OS:
generic
Sub-Component:
javax.xml.stream
CPU:
generic
Priority:
P1
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
1.4.0 (h1191)

Related Reports
Backport:
Relates:

Sub Tasks

Description
Today on IRC someone reported they could not get v3 to work (admin console would not come up).  They ran into this error:

    Caused by: java.lang.UnsupportedOperationException: Cannot create XMLStreamReader or XMLEventReader from a javax.xml.transform.stream.StreamSource
        at com.sun.xml.internal.stream.XMLInputFactoryImpl.jaxpSourcetoXMLInputSource(XMLInputFactoryImpl.java:285)
        at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:145)
        at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:109)
        at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:104)
        at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:100)
        at org.glassfish.admingui.plugin.ConsolePluginService.init(ConsolePluginService.java:121)
        at org.glassfish.admingui.plugin.ConsolePluginService.getIntegrationPoints(ConsolePluginService.java:423)
        at org.glassfish.admingui.common.handlers.PluginHandlers.getIntegrationPoints(PluginHandlers.java:160)
        at org.glassfish.admingui.handlers.ThemeHandlers.getThemeFromIntegrationPoints(ThemeHandlers.java:98)
        ... 47 more

After spending some time looking into this, I finally found this post after doing a google search (should have done this first):

    http://old.nabble.com/Console-load-error-on-fresh-install-(Cannot-create-XMLStreamReader-...-jaxpSourcetoXMLInputSource)-td26411987.html

Which showed that using JDK 1.6.0_18-ea (at least on linux) does not work with GlassFish v3.  Downgrading to the latest stable release (1.6.0_16) solved that person's problem, it also solved the person's problem on IRC.

                                    

Comments
EVALUATION

ChangeSet=http://hg.openjdk.java.net/jdk6/jdk6/jaxp/rev/5c070921580c,ChangeRequest=6923146,ChangeRequest=6917454,ChangeRequest=6472982,ChangeRequest=6909759,ChangeRequest=6333993,ChangeRequest=6900779,ChangeRequest=6900773,ChangeRequest=6900249,ChangeRequest=6675332,ChangeRequest=6889654,ChangeRequest=6889649,ChangeRequest=6863312
                                     
2010-02-18
EVALUATION

SJSXP had an incomplete support for the optional method XMLInputFactory#createXMLStreamReader(Source source), which was reported in sjsxp issue 38 (https://sjsxp.dev.java.net/issues/show_bug.cgi?id=38). The change was then to remove the support and add a complete support in a future time as requested with sjsxp issue 39 (https://sjsxp.dev.java.net/issues/show_bug.cgi?id=39). 

This change, however, has caused regression in applications such as GlassFish v3. A quick fix for the issue would be to restore the code that supports StreamSource, but through UnsupportedOperationException for other sources.
                                     
2009-12-11
EVALUATION

Fixed in jaxp 1.4. Request for integration. Original fix for issue 38 was 6631274.
                                     
2009-12-11



Hardware and Software, Engineered to Work Together