[Remoting] - Can not get connection to server - port out of range -1
by tsaulpau
I'm trying to get a simple demo running on a single machine using socket transport. When I run the client and server on the same machine, I get this exception when the client attempts to invoke the server and pass a String. It gets
java.lang.IllegalArgumentException: port out of range:-1
I have tried different port numbers and still get the same exception.
socket://toms-d2003x64/10.1.3.100:1600
socket://toms-d2003x64/10.1.3.100:5400
The client connect works but when I attempt to invoke server I get the following:
Here's the stack trace:
INFO | jvm 1 | main | 2009/05/21 16:21:13 | EXCEPTION: org.jboss.remoting.CannotConnectException: Can not get connection to
server. Problem establishing socket connection for InvokerLocator [socket://toms-d2003x64/10.1.3.100:1600]
INFO | jvm 1 | main | 2009/05/21 16:21:13 | org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem
establishing socket connection for InvokerLocator [socket://toms-d2003x64/10.1.3.100:1600]
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroS
ocketClientInvoker.java:525)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.j
ava:125)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:630)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:622)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:607)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.i365.archive.contentservice.ContentServiceImpl.invoke(ContentServiceImpl.
java:436)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.metalincs.analysis.framework.Main.startAllServices(Main.java:403)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.metalincs.analysis.framework.Main.start(Main.java:169)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:3011)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | Caused by: java.lang.IllegalArgumentException: port out of range:-1
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at java.net.InetSocketAddress.(Unknown Source)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketCl
ientInvoker.java:178)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(Mi
croSocketClientInvoker.java:796)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroS
ocketClientInvoker.java:521)
INFO | jvm 1 | main | 2009/05/21 16:21:13 | ... 8 more
INFO | jvm 1 | main | 2009/05/21 16:21:13 |
INFO | jvm 1 | main | 2009/05/21 16:21:13 |
INFO | jvm 1 | main | 2009/05/21 16:21:13 |
Has anyone else seen this problem?
Thanks,
Tom
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232765#4232765
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232765
16 years, 11 months
Re: Is it possible to add another hot deployment directory?
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=72055 Posted on behalf of a User
I have tried this approach by adding my local directory "/home/fred/work/jboss/deploy/" (see below) to the server/default/conf/bootstrap/profile.xml file
and restarting the AS. Placing the file helloworld.war in this directory does not deploy it though. Any ideas?
<bean name="VFSDeploymentScanner" class="org.jboss.system.server.profileservice.VFSDeploymentScannerImpl">
<property name="profileService"><inject bean="ProfileService"/></property>
<property name="filterInstance"><inject bean="DeploymentFilter"/></property>
<property name="URIList">
<list elementClass="java.net.URI">
<!-- Standard hot deployment directory -->
<value>${jboss.server.home.url}deploy/</value>
<!-- Added for testing -->
<value>file:/home/fred/work/jboss/deploy/</value>
</list>
</property>
</bean>
In Response To:
Hello all,
I just downloaded JbossAS 5 and get it running. Can I add another directory in addition to deploy so that Jboss deployers would scan it for hot deployment?
Thanks for the help,
Gina
16 years, 11 months