Re: sfDaemon problem with SUSE Base system

"Guijarro, Julio" <[email protected]> Tue, 19 Feb 2008 16:46:01 +0000
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <C5494CF4D11D3E409910DBEEB7A9C48F158E4AEC89@G5W0277.americas.hpqcorp.net>
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: smartfrog-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Robinson, Gary
Sent: 19 February 2008 16:07
To: smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
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
Smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-users