java HelloWorld3 -bootstrapHostname localhost -bootstrapPort 3999
I can't make HelloWorld3 to connect to the localhost (127.0.0.1). It
ignores "-bootstrapHostname" and tries to connect to my
default DSL IP address 169.254.0.0 and fails (error shown below).
thanks,
Joe
========================================================
[14-Sep-2003 17:05:04 INFO CorbaConnection] Created 'IOR' protocol plugin
to co
nnect to xmlBlaster server
JacORB V 1.4.50, www.jacorb.org
(C) Gerald Brose, FU Berlin/XTRADYNE Technologies, (CVS)
[14-Sep-2003 17:05:04 INFO CorbaConnection] Accessing xmlBlaster AuthServer
IOR
using builtin http connection to xmlBlaster://127.0.0.1:3999
[ Retrying to connect to 169.254.0.0:3645 ]
[ ERROR: Abnormal connection termination. Lost 1 outstanding replie(s)! ]
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Unknown Source)
at
org.xmlBlaster.client.ClientErrorHandler.handleError(ClientErrorHandl
er.java:58)
at
org.xmlBlaster.util.dispatch.DeliveryManager.givingUpDelivery(Deliver
yManager.java:254)
at
org.xmlBlaster.util.dispatch.DeliveryManager.toDead(DeliveryManager.j
ava:247)
at
org.xmlBlaster.util.dispatch.DeliveryConnectionsHandler.updateState(D
eliveryConnectionsHandler.java:272)
at
org.xmlBlaster.util.dispatch.DeliveryConnectionsHandler.toDead(Delive
ryConnectionsHandler.java:239)
at
org.xmlBlaster.util.dispatch.DeliveryConnection.initialize(DeliveryCo
nnection.java:124)
at
org.xmlBlaster.util.dispatch.DeliveryConnectionsHandler.initialize(De
liveryConnectionsHandler.java:143)
at
org.xmlBlaster.util.dispatch.DeliveryManager.<init>(DeliveryManager.j
ava:115)
at
org.xmlBlaster.client.XmlBlasterAccess.connect(XmlBlasterAccess.java:
221)
at HelloWorld3.<init>(HelloWorld3.java:66)
at HelloWorld3.main(HelloWorld3.java:153)
========================================================
----- Original Message -----
From: "Marcel Ruff" <mr at marcelruff.info>
To: <xmlblaster at server.xmlblaster.org>
Sent: Sunday, September 14, 2003 4:50 PM
Subject: Re: [xmlblaster] newbie- problem running the demos
Joseph Kim wrote:
Hi,
I am having a problem running the HelloWorld demos. The xmlBlaster
server
runs fine on my localhost.
When trying to run the demo "java -cp lib\xmlBlaster.jar HelloWorld", I
get
the following error message. I've tried
adding options such as "-bootstrapHostname 127.0.0.1", "-bootstrapPort"
on
various opened ports from
windows "netstat -a" option.
There seem to be a number of ports open. Which one should it connect
to?
I've struggled to run this HelloWorld
demos but no avail. (I can run the python demo without any problem.)
Your
help greatly appreciated.
Hi Joe,
when xmlBlaster starts it tells you where it listens, look for the
following
line:
...
... Published AuthServer IOR on xmlBlaster://192.168.1.4:3412
...
The client needs to use the same IP (the port is automatically
3412):
java HelloWorld3 -bootstrapHostname 192.168.1.4
(This example is for CORBA)
Usually a client on the same host automatically chooses
the same IP as the server does and you can usually ommit
the -bootstrapHostname option.
hope it helps,
Marcel
PS: Here an example where you force everything to something else
as the default:
java org.xmlBlaster.Main -bootstrapHostname localhost -bootstrapPort
3999
java HelloWorld3 -bootstrapHostname localhost -bootstrapPort 3999
many thanks,
Joe
===============================================================
[14-Sep-2003 15:47:43 INFO CorbaConnection] Accessing xmlBlaster
AuthServer
IOR
using builtin http connection to xmlBlaster://127.0.0.1:3412
[ Retrying to connect to 169.254.0.0:3289 ]
[ ERROR: Abnormal connection termination. Lost 1 outstanding
replie(s)! ]
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Unknown Source)
at
org.xmlBlaster.client.ClientErrorHandler.handleError(ClientErrorHandl
er.java:58)
at
org.xmlBlaster.util.dispatch.DeliveryManager.givingUpDelivery(Deliver
yManager.java:254)
at
org.xmlBlaster.util.dispatch.DeliveryManager.toDead(DeliveryManager.j
ava:247)
at
org.xmlBlaster.util.dispatch.DeliveryConnectionsHandler.updateState(D
eliveryConnectionsHandler.java:272)
at
org.xmlBlaster.util.dispatch.DeliveryConnectionsHandler.toDead(Delive
ryConnectionsHandler.java:239)
at
org.xmlBlaster.util.dispatch.DeliveryConnection.initialize(DeliveryCo
nnection.java:124)
at
org.xmlBlaster.util.dispatch.DeliveryConnectionsHandler.initialize(De
liveryConnectionsHandler.java:143)
at
org.xmlBlaster.util.dispatch.DeliveryManager.<init>(DeliveryManager.j
ava:115)
at
org.xmlBlaster.client.XmlBlasterAccess.connect(XmlBlasterAccess.java:
221)
at HelloWorld.<init>(HelloWorld.java:24)
at HelloWorld.main(HelloWorld.java:39)
[14-Sep-2003 15:48:05 INFO DeliveryManager-connection:client/Joe]
Switched
to s
ynchronous message delivery
[14-Sep-2003 15:48:05 INFO DeliveryManager-connection:client/Joe]
Switched
to a
synchronous message delivery
HelloWorld: We have a problem: errorCode=user.configuration
message=Can't
find a
n xmlBlaster server. Try to provide the server host/port as described in
http://
www.xmlblaster.org/xmlBlaster/doc/requirements/client.configuration.html
or
prov
ide a public session ID to support polling for xmlBlaster without an
initial
con
nection. See
'http://www.xmlBlaster.org/xmlBlaster/doc/requirements/client.fails
afe.html' for more details.
file sync interval: 59055
file sync: 0
--
http://www.xmlBlaster.org