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

Bug 901174 (JBPAPP6-1158)

Summary: BasicIIOPInvocationTestCase fails on ibm jdk due to failure in server startup for failed parsing
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Madhumita Sadhukhan <msadhukh>
Component: IIOPAssignee: baranowb <bbaranow>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: bbaranow, msadhukh, pslavice
Target Milestone: ---   
Target Release: EAP 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1158
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-29 15:39:35 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:
Attachments:
Description Flags
JBPAPP-10361-hack.patch none

Description Madhumita Sadhukhan 2012-11-07 10:19:20 UTC
project_key: JBPAPP6

There is a timeout exception that is actually caused by failure in server startup

05:55:21,342 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at org.jboss.as.server.ServerService.boot(ServerService.java:275) [jboss-as-server-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:156) [jboss-as-controller-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at java.lang.Thread.run(Thread.java:736) [vm.jar:1.6.0]
Caused by: javax.xml.stream.XMLStreamException: JBAS014789: Unexpected element 'initializers' encountered
	at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) [jboss-as-controller-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at org.jboss.as.jacorb.JacORBSubsystemParser.parseORBConfig(JacORBSubsystemParser.java:290)
	at org.jboss.as.jacorb.JacORBSubsystemParser.readElement(JacORBSubsystemParser.java:184)
	at org.jboss.as.jacorb.JacORBSubsystemParser.readElement(JacORBSubsystemParser.java:92)
	at org.jboss.as.jacorb.JacORBSubsystemParser.readElement(JacORBSubsystemParser.java:62)
	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
	at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
	at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:905) [jboss-as-server-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:331) [jboss-as-server-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:127) [jboss-as-server-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:99) [jboss-as-server-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
	at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2]
	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.3.Final-redhat-3.jar:7.1.3.Final-redhat-3]
	... 3 more

05:55:21,350 FATAL [org.jboss.as.server] JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.


There seems to be problem while parsing standalone.xml on IBMJDK only while implementation of this testcase.

It could be related to https://issues.jboss.org/browse/AS7-4303

Hudson job(IBMJDK6):

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL6-buildIBMJDK6_testrunIBMJDK16/lastCompletedBuild/testReport/org.jboss.as.test.iiop.basic/BasicIIOPInvocationTestCase/org_jboss_as_test_iiop_basic_BasicIIOPInvocationTestCase/

Hudson job(IBMJDK7):

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL6-buildIBMJDK7_testrunIBMJDK7/lastCompletedBuild/testReport/org.jboss.as.test.iiop.basic/BasicIIOPInvocationTestCase/org_jboss_as_test_iiop_basic_BasicIIOPInvocationTestCase/

Comment 1 baranowb 2012-11-08 13:02:42 UTC
I have some problems with JDK switch and eclipse exploding with OOM but...
The XML file has something like
{noformat}
<subsystem xmlns="urn:jboss:domain:jacorb:1.2">
   <orb>
      <initializers xmlns="" xmlns:t="urn:jboss:domain:transactions:1.2" xmlns:j="urn:jboss:domain:jacorb:1.2" transactions="on" security="on"/>
    </orb>
</subsystem>
{noformat}

Trick is that initializers sets the namespace(default) to "". If the source I got for woodstock(wstx?) is correct, this is properly picked up on IBM JDK, while it is ignored on oracle.
So it seems that running this test on IBM JDK produces valid parsing failure.

Comment 2 baranowb 2012-11-08 13:22:06 UTC
If you dig a bit further, the jarcorb.xml which is a template for jacorb conf for standalone-full.xml looks as follows:

{noformat}
<config>
   <extension-module>org.jboss.as.jacorb</extension-module>
   <subsystem xmlns="urn:jboss:domain:jacorb:1.2">
       <orb socket-binding="jacorb" ssl-socket-binding="jacorb-ssl">
           <initializers transactions="spec" security="on"/>
       </orb>
   </subsystem>
   <socket-binding name="jacorb" interface="unsecure" port="3528"/>
   <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>
</config>
{noformat}

No empty namespace, at first glance, looks like "generate-server-config" ANT task puts bad NS. Or fiel is created from different src( tooo many files and scripting is a killer)

Comment 3 baranowb 2012-11-09 09:42:43 UTC
Further investigation: ts.config-as.add-jts <- this target is a culprit.

{noformat}
    <xsl:template match="//j:subsystem/j:orb">
                <xsl:copy>
                        <initializers transactions="on" security="on"/>
                </xsl:copy>
    </xsl:template>
{noformat}

Comment 4 baranowb 2012-11-09 09:45:31 UTC
Oracle JDK:
{noformat}
<subsystem xmlns="urn:jboss:domain:jacorb:1.2">
    <orb>
       <initializers xmlns:j="urn:jboss:domain:jacorb:1.2" xmlns:t="urn:jboss:domain:transactions:1.2" transactions="on" security="on"/>
    </orb>
</subsystem>
{noformat}

IBM JDK
{noformat}
<subsystem xmlns="urn:jboss:domain:jacorb:1.2">
    <orb>
        <initializers xmlns="" xmlns:t="urn:jboss:domain:transactions:1.2" xmlns:j="urn:jboss:domain:jacorb:1.2" transactions="on" security="on"/>
    </orb>
</subsystem>
{noformat}


Without transformation:
{noformat}
<subsystem xmlns="urn:jboss:domain:jacorb:1.2">
     <orb socket-binding="jacorb" ssl-socket-binding="jacorb-ssl">
         <initializers transactions="spec" security="on"/>
     </orb>
</subsystem>
{noformat}

Comment 5 baranowb 2012-11-09 12:56:05 UTC
This possibly should be filed as bug in IBM JDK. The "xslt" task use the javax.xml.transform.TransformerFactory.  If the "javax.xml.transform.TransformerFactory" is not set to transformer factory, it defaults to "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl". IBM JDK hijacks this. It has dumb implementation of this class which extends some IBM factory class. This is what causes wrong translation.

Comment 6 baranowb 2012-11-12 08:30:27 UTC
Hack to make test pass.

Comment 7 baranowb 2012-11-12 08:30:27 UTC
Attachment: Added: JBPAPP-10361-hack.patch


Comment 8 baranowb 2012-11-12 08:32:01 UTC
Attached hack fix. But since this is a JVM issue, this is a "WontFix" (as has been agreed with Madhumita)

Comment 9 Anne-Louise Tangring 2012-11-13 20:43:44 UTC
Docs QE Status: Removed: NEW 


Comment 10 Madhumita Sadhukhan 2012-11-29 15:39:27 UTC
Failure is due to issue in IBM JDK hence closing