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

Bug 899898 (JBPAPP6-1255)

Summary: IIOPNamingInContainerTestCase and IIOPNamingTestCase fails on Oracle JDK7 across all platforms
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Madhumita Sadhukhan <msadhukh>
Component: IIOPAssignee: Shelly McGowan <smcgowan>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Jelinek <pjelinek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: msadhukh, pjelinek, pslavice, rsvoboda
Target Milestone: ER4   
Target Release: EAP 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1255
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-23 18:38:14 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
TEST-org.jboss.as.test.integration.ejb.iiop.naming.IIOPNamingInContainerTestCase.xml
none
server.log none

Description Madhumita Sadhukhan 2012-02-24 08:02:34 UTC
project_key: JBPAPP6

IIOPNamingInContainerTestCase fails across all platforms on Oracle JDK7 with following stacktrace:

java.rmi.MarshalException: CORBA COMM_FAILURE 1398079691 Maybe; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203 completed: Maybe
	at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:205)
	at javax.rmi.CORBA.Util.mapSystemException(Util.java:83)
	at com.sun.corba.se.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:164)
.......................................................................................................................
.......................................................................................................................
Caused by: org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203 completed: Maybe
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(ORBUtilSystemException.java:2231)
........................................................................................................................
.........................................................................................................................
Caused by: java.nio.channels.ClosedChannelException
	at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:249)
	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:440)

Comment 1 Madhumita Sadhukhan 2012-02-24 08:25:52 UTC
No exception was found in server logs for this failure.
Nevertheless Attaching logs.

Java Version used:

java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)

Since there is no server side exception found and there is a failure in SocketOrChannelConnectionImpl.sendWithoutLock (probably due to closed connection) 
the ORB gets stuck in cache.(client)

https://hudson.qa.jboss.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL-matrix/3/jdk=java17_default,label=RHEL6_x86/

http://hudson.qa.jboss.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-Win2k8R2_x86_64-OracleJDK7/2/testReport/

My guess is this failure could be due to bug in Oracle JDK 7(which was already fixed for JDK6 and JDK5).Referring to similar issues....
http://bugs.sun.com/view_bug.do?bug_id=6553303
http://bugs.sun.com/view_bug.do?bug_id=6828768

I am assigning to dev to verify this and confirm if it is a bug in JDK7 or could be handled in testcase as well as follow up with Oracle for a fix if necessary


Comment 2 Madhumita Sadhukhan 2012-02-24 08:33:17 UTC
Attachment: Added: TEST-org.jboss.as.test.integration.ejb.iiop.naming.IIOPNamingInContainerTestCase.xml
Attachment: Added: server.log


Comment 3 Madhumita Sadhukhan 2012-02-24 09:04:27 UTC
Ondrej this got automatically assigned to you please feel free to reassign to concerned person.

Comment 4 Shelly McGowan 2012-02-24 13:18:40 UTC
This has been fixed upstream and the commit has already been brought into the product branch.  Will be fixed in ER2.
ests running with OpenJDK 6 are fixed upstream with this commit:
hests running with OpenJDK 6 are fixed upstream with this commit:
https://github.com/jbossas/jboss-as/commit/41f5bee4efedad4b8857141bacbb9273431abee0

Comment 5 Madhumita Sadhukhan 2012-02-28 15:58:32 UTC
Link: Added: This issue relates to JBPAPP-7949


Comment 6 Madhumita Sadhukhan 2012-03-01 22:17:32 UTC
verified that this test passes on Oracle JDK7 with ER2 bits

Comment 7 Madhumita Sadhukhan 2012-10-03 13:52:14 UTC
reopening this as this testcase was fixed passed until EAP6 ER3 but regression is seen and they fail again on OracleJDK7(both ipv4 and ipv6 env)

Comment 9 Madhumita Sadhukhan 2012-10-03 13:57:13 UTC
Link: Added: This issue is duplicated by JBPAPP-9030


Comment 10 Madhumita Sadhukhan 2012-11-06 09:05:32 UTC
Well i just noticed that the failing testcase currently(in 6.0.1.ER2 and 6.0.1.ER3) is IIOPNamingTestCase and IIOPNamingIncontainerTestCase passes now.
However the stacktrace is exactly same so I believe a similar fix as above could be applicable here.

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-Solaris-matrix-OracleJDK7/jdk=java17_default,label=sol11_x86/19/testReport/org.jboss.as.test.integration.ejb.iiop.naming/IIOPNamingTestCase/testIIOPNamingCorbanameInvocation/

Error Message

CORBA COMM_FAILURE 1398079691 Maybe; nested exception is:   org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203 completed: Maybe

Stacktrace

java.rmi.MarshalException: CORBA COMM_FAILURE 1398079691 Maybe; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203 completed: Maybe
	at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:205)
	at javax.rmi.CORBA.Util.mapSystemException(Util.java:83)
	at com.sun.corba.se.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:164)

Comment 11 Anne-Louise Tangring 2012-11-13 20:53:10 UTC
Docs QE Status: Removed: NEW 


Comment 13 Shelly McGowan 2013-04-05 19:33:44 UTC
These tests appear to be passing on EAP 6.1.0.ER4 :
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-61-as-testsuite-Win-matrix-OracleJDK7/6/jdk=java17_default,label_exp=w2k8%26%26x86_64/testReport/org.jboss.as.test.integration.ejb.iiop.naming/IIOPNamingInContainerTestCase/

I'm going to move this to ON_QA for an update on what is left with this test case issue.  If a problem persists, I suggest to file another bug to track moving forward (6.1.0++).  The EAP 6.0.x stream is not accepting fixes.

Comment 14 Pavel Jelinek 2013-04-15 13:16:01 UTC
No failing for EAP 6.1.0.ER4 any platform.