I haven't tried it in a host with network configuration problems but you can
try to modify default.ini (<SFHOME>/bin/default.ini)
and enable this line:
# org.smartfrog.sfcore.processcompound.sfRootLocatorBindAddress=localhost
Then replace "localhost" with whatever your ip is or check that your /etc/hosts
file has an entry for "localhost 127.0.0.1"
Let know if this works for you.
Julio
From: Robinson, Gary [mailto:[EMAIL PROTECTED]
Sent: 19 February 2008 16:58
To: Guijarro, Julio; [email protected]
Subject: RE: sfDaemon problem with SUSE Base system
Hi Julio,
Thanks for your help.
Is there any way I can avoid this problem by explicitly setting the IP address
for the daemon to run on? If so what is the syntax for this?
Thanks,
Gary
From: Guijarro, Julio [mailto:[EMAIL PROTECTED]
Sent: 19 February 2008 16:46
To: Robinson, Gary; [email protected]
Subject: RE: sfDaemon problem with SUSE Base system
Hi Gary,
The problem you are experiencing is because Java (and therefore SmartFrog) is
failing to resolve the IP address of your machine. This clearly points to a
network configuration problem.
The first WARNING is notifying you about the problem.
The subsequent exception is caused by the same problem. SF tries to store the
IP address of the host machine in the daemon context and but it fails because
the InetAddress object returned by Java is null.
I will protect this method so that it does report the exception with a better
message and it does not terminate the daemon. This will only help when running
a daemon in standalone mode (sfRun) because this problem reports that the
daemon is not remotely reachable.
You can get a diagnostics report by running sfDaemon -d. This will check
various things in your configuration.
Julio
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robinson, Gary
Sent: 19 February 2008 16:07
To: [email protected]
Subject: [Smartfrog-users] sfDaemon problem with SUSE Base system
Hi all,
I get the following problem when I try to start my SmartFrog daemon. The
sfDaemon is trying to run within a chrooted base system (also tried via pxe
boot and get the same problem). Ifconfig returns that I have an ip address of
192.168.1.100. Any help is much appreciated. Thanks :)
linux:/opt/smartfrog/dist/bin # ./sfDaemon
SFHOME undefined, using /opt/smartfrog/dist as base directory
SmartFrog 3.12.022 (2008-02-14 16:55:15 GMT)
(C) Copyright 1998-2008 Hewlett-Packard Development Company, LP
2008/02/19 23:36:21:277 UTC [WARN ][main] SFCORE_LOG - SmartFrog security is
NOT active
2008/02/19 23:36:21:343 UTC [WARN ][main] SFCORE_LOG - Network test localhost:
[ Failed], Failed to resolve localhost ip, 1203464181343ms,
SmartFrogException:: F ailed to get Inet address of the localhost, cause:
java.net.UnknownHostException : linux: linux, SmartFrog 3.12.022 (2008-02-14
16:55:15 GMT)
2008/02/19 23:36:22:889 UTC [ERROR][main] SFCORE_LOG -
SmartFrogContextException:: 'value' is null during sfReplaceAttribute,
SmartFrog 3.12.022 (2008-02-14 16:55:15 GMT), primContext: included,
primContext: included <SmartFrogContextException:: 'value' is null during
sfReplaceAttribute
SmartFrog 3.12.022 (2008-02-14 16:55:15 GMT)
primContext: included
primContext: included>
SmartFrogContextException:: 'value' is null during sfReplaceAttribute,
SmartFrog 3.12.022 (2008-02-14 16:55:15 GMT), primContext: included,
primContext: included
at
org.smartfrog.sfcore.common.ContextImpl.sfReplaceAttribute(ContextImpl.java:254)
at
org.smartfrog.sfcore.prim.PrimImpl.sfReplaceAttribute(PrimImpl.java:487)
at org.smartfrog.sfcore.prim.PrimImpl.sfDeployWith(PrimImpl.java:725)
at
org.smartfrog.sfcore.compound.CompoundImpl.sfDeployWith(CompoundImpl.java:470)
at
org.smartfrog.sfcore.processcompound.ProcessCompoundImpl.sfDeployWith(ProcessCompoundImpl.java:270)
at
org.smartfrog.sfcore.prim.PrimDeployerImpl.deploy(PrimDeployerImpl.java:108)
at
org.smartfrog.sfcore.prim.PrimDeployerImpl.deploy(PrimDeployerImpl.java:246)
at org.smartfrog.sfcore.deployer.SFDeployer.deploy(SFDeployer.java:94)
at
org.smartfrog.sfcore.processcompound.SFProcess.deployComponent(SFProcess.java:200)
at
org.smartfrog.sfcore.processcompound.SFProcess.deployProcessCompound(SFProcess.java:337)
at org.smartfrog.SFSystem.createRootProcess(SFSystem.java:619)
at org.smartfrog.SFSystem.runSmartFrog(SFSystem.java:613)
at org.smartfrog.SFSystem.runSmartFrog(SFSystem.java:583)
at org.smartfrog.SFSystem.execute(SFSystem.java:431)
at org.smartfrog.SFSystem.main(SFSystem.java:392)
SmartFrogDeploymentException: unnamed component. SmartFrogContextException::
'value' is null during sfReplaceAttribute, SmartFrog 3.12.022 (2008-02-14
16:55:15 GMT), primContext: included, primContext: included, cause:
SmartFrogContextException:: 'value' is null during sfReplaceAttribute,
SmartFrog 3.12.022 (2008-02-14 16:55:15 GMT), primContext: included,
primContext: included
Kind Regards,
Gary
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users