Bug 927318

Summary: Using AS 7.2 / EAP 6.1 client jars to connect to AS 7.0.x fails with hang.
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Rob Stryker <rstryker>
Component: RemotingAssignee: David M. Lloyd <david.lloyd>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: brian.stansberry, jawilson, jdoyle, lthon, mharvey, myarboro
Target Milestone: ER5   
Target Release: EAP 6.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-23 18:34:43 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:

Description Rob Stryker 2013-03-25 16:15:20 UTC
Description of problem:
Using AS 7.2 / EAP 6.1 client jars to connect to AS 7.0.x fails with hang. 


Version-Release number of selected component (if applicable):
 jboss-as-controller-client-7.2.0.Final-redhat-3.jar,
 jboss-as-logging-7.2.0.Final-redhat-3.jar,
 jboss-as-protocol-7.2.0.Final-redhat-3.jar,
 jboss-dmr-1.1.6.Final-redhat-1.jar,
 jboss-logging-3.1.2.GA-redhat-1.jar,
 jboss-marshalling-1.3.16.GA-redhat-1.jar,
 jboss-marshalling-river-1.3.16.GA-redhat-1.jar,
 jboss-remoting-3.2.15.GA-redhat-1.jar,
 jboss-sasl-1.0.3.Final-redhat-1.jar,
 jboss-threads-2.1.0.Final-redhat-1.jar,
 xnio-api-3.0.7.GA-redhat-1.jar,
 xnio-nio-3.0.7.GA-redhat-1.jar


How reproducible:
Occasionally, if with random management actions. Every time when performed with attached eclipse project. 

Steps to Reproduce:
1. Download and import into eclipse the plain java project attached to https://issues.jboss.org/browse/AS7-6779
2. Set project classpath to use jars from as7.2 folder and Launch an AS 7.0.x server outside of eclipse, OR,  set project classpath to use jars from as7.1 folder and launch an EAP 6.1 outside of eclipse. 
3. Run the new project's main class. 
  
Actual results:
The Main class hangs. In this case the client is a simple Main class. However, when similar code is run as an eclipse plugin, it could freeze the workspace. 

Expected results:
The methods complete without error. 


Additional info:
More information is provided at https://issues.jboss.org/browse/AS7-6779

Comment 2 Rob Stryker 2013-03-26 09:57:36 UTC
*** Bug 927320 has been marked as a duplicate of this bug. ***

Comment 3 JBoss JIRA Server 2013-03-26 14:43:13 UTC
Emanuel Muckenhuber <emuckenh> made a comment on jira AS7-6779

I assume you are also seeing something like this in the client?

{noformat}
"management-client-thread 1-2" prio=10 tid=0x00007f21a4016000 nid=0x226c in Object.wait() [0x00007f21ffefd000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000007d7386690> (a org.jboss.remoting3.remote.OutboundMessage)
	at java.lang.Object.wait(Object.java:503)
	at org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:91)
	- locked <0x00000007d7386690> (a org.jboss.remoting3.remote.OutboundMessage)
	at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:125)
	at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:113)
	at org.xnio.streams.BufferPipeOutputStream.getBuffer(BufferPipeOutputStream.java:77)
	at org.xnio.streams.BufferPipeOutputStream.write(BufferPipeOutputStream.java:95)
	- locked <0x00000007d73866c8> (a org.xnio.streams.BufferPipeOutputStream)
	at org.jboss.remoting3.remote.OutboundMessage.write(OutboundMessage.java:176)
	at java.io.DataOutputStream.write(DataOutputStream.java:107)
	- locked <0x00000007d7388760> (a java.io.DataOutputStream)
	at java.io.FilterOutputStream.write(FilterOutputStream.java:97)
	at org.jboss.as.protocol.mgmt.FlushableDataOutputImpl.write(FlushableDataOutputImpl.java:118)
	at org.jboss.as.controller.client.impl.AbstractModelControllerClient$ReadAttachmentInputStreamRequestHandler$1.execute(AbstractModelControllerClient.java:208)
	at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:287)
	at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:483)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)
	at org.jboss.threads.JBossThread.run(JBossThread.java:122)
{noformat}

Comment 4 JBoss JIRA Server 2013-03-27 17:47:58 UTC
Rob Stryker <rob.stryker> made a comment on jira AS7-6779

Attaching a jstack of the process.  I am not seeing what you are expecting. 

This stack is what I see when using 7.1 jars against eap6.1.

Comment 5 Jimmy Wilson 2013-04-01 15:01:56 UTC
Related PR:

https://github.com/jbossas/jboss-eap/pull/85

Comment 7 Jason T. Greene 2013-04-01 16:24:56 UTC
Need acks to merge the fix

Comment 10 Mike Harvey 2013-04-02 20:01:57 UTC
Acking on behalf of Pavel Slavicek.

Comment 11 JBoss JIRA Server 2013-04-08 19:34:21 UTC
Emanuel Muckenhuber <emuckenh> updated the status of jira AS7-6779 to Resolved

Comment 12 JBoss JIRA Server 2013-04-08 19:34:21 UTC
Emanuel Muckenhuber <emuckenh> made a comment on jira AS7-6779

using jboss-remoting-3.2.16.GA will resolve the issue.

Comment 13 JBoss JIRA Server 2013-04-08 21:22:57 UTC
Rob Stryker <rob.stryker> made a comment on jira AS7-6779

Where would I download specific versions of jboss-remoting? The last version on the remoting page is 3.1.0.Beta2 which was added in 2010.  http://www.jboss.org/jbossremoting/downloads

Comment 14 JBoss JIRA Server 2013-04-08 21:26:46 UTC
Emanuel Muckenhuber <emuckenh> made a comment on jira AS7-6779

Aha, well i'd just take the artifact from maven then: https://repository.jboss.org/nexus/content/groups/public/org/jboss/remoting3/jboss-remoting/3.2.16.GA/

Comment 15 JBoss JIRA Server 2013-04-09 10:40:11 UTC
Max Rydahl Andersen <max.andersen> made a comment on jira AS7-6779

Emanuel, what does the fix entail ? 

Which servers can we expect to continue to use this remoting client with ?

All AS 7.1.x/7.2.x + EAP 6.0.x/6.1.x and upwards ? 

If yes we will just use the old ones for AS 7.0 and use these new ones for future updates.

Comment 16 Ladislav Thon 2013-04-29 13:28:43 UTC
Verified with EAP 6.1.0.ER5.