Bug 1172419 - EAP6 unable to use ports > 32767
Summary: EAP6 unable to use ports > 32767
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.2.1
Hardware: All
OS: All
unspecified
high
Target Milestone: ER1
: EAP 6.4.0
Assignee: David M. Lloyd
QA Contact: Jan Martiska
URL:
Whiteboard:
Depends On: 1139680 1176638
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-10 02:26 UTC by Qi Yong
Modified: 2019-09-12 08:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1373823 0 None None None Never

Description Qi Yong 2014-12-10 02:26:06 UTC
Description of problem:
there is a bug in JBoss ClusterTopologyMessageHandler class line 110
http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.jboss/jboss-ejb-client/1.0.24.Final/org/jboss/ejb/client/remoting/ClusterTopologyMessageHandler.java
Clustering mechanism in JBoss is sending messages between cluster nodes.

The suspicion is that in this message port is written as unsigned short but then is read as signed short - which results in negative port number:
 
11/28-07:43:54, 203 - INFO  RemotingConnectionClusterNodeManager(  83)  - Could not create a connection for cluster node ClusterNode{clusterName='ejb', nodeName='nykpsr000002249:portfolio_uat6_381_nykpsr000002249', clientMappings=[ClientMapping{sourceNetworkAddress=/0:0:0:0:0:0:0:0, sourceNetworkMaskBits=0, destinationAddress='10.60.77.168', destinationPort=-31869}], resolvedDestination=[Destination address=10.60.77.168, destination port=-31869]} in cluster ejb: java.lang.IllegalArgumentException: port out of range:-31869
                at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
                at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
                at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:132)
                at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:75)
                at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)
                at org.jboss.ejb.client.remoting.RemotingConnectionClusterNodeManager.getEJBReceiver(RemotingConnectionClusterNodeManager.java:77)
                at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:416)
                at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:390)
                at java.util.concurrent.FutureTask.run(FutureTask.java:262)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                at java.lang.Thread.run(Thread.java:744)
 
Due to this bug we are unable to use ports > 32767.

Version-Release number of selected component (if applicable):
6.2.1

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
unable to set prots > 32767

Expected results:
could set ports > 32767

Additional info:

Comment 3 Jan Martiska 2015-01-19 09:19:56 UTC
Verified in EAP 6.4.0.ER1 / jboss-ejb-client 1.0.28.Final


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