Found a solution: set the port number to something large, e.g. 38000 instead of
the default 3800. It seems that the firewall blocks ports with low values for
some reason (the exact value doesn't matter), but large values are OK.
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, August 09, 2011 5:42 PM
To: [email protected]
Cc: Peter Gagarinov; Fiodar Kupchyk (by)
Subject: Re: [Smartfrog-users] "Port already in use" exception when starting
SmartFrog
Further development Re: "java.net.BindException: Address already in use"
exception when trying to launch SmartFrog on some Windows Server and Windows 7
machines. The culprit turned out to be the firewall. The daemon can only run
when firewall is disabled. We have Microsoft ISA Server firewall on our
corporate network.
Is there some workaround for this?
Quote from our sysadmin: apparently [SmartFrog] wasn't designed with corporate
environment in mind...
Dmitry Epstein | Developer
Allied Testing
www.alliedtesting.com<http://www.alliedtesting.com/>
We Deliver Quality.
From: Dmitry Epstein
Sent: Thursday, November 18, 2010 1:45 PM
To: [email protected]
Cc: Fiodar Kupchyk (by); Peter Gagarinov
Subject: "Port already in use" exception when starting SmartFrog
Hi,
We are having a problem starting SmartFrog under some accounts. Here is the
output that we get when running sfDaemon from Windows command line:
==================================================================================
D:\tmp\Externals\Java\smartfrog\bin>sfDaemon
SmartFrog 3.18.002 (2010-09-20 04:13:24 EDT)
(C) Copyright 1998-2010 Hewlett-Packard Development Company, LP
2010/11/18 12:13:14:859 EET [WARN ][main] SFCORE_LOG - SmartFrog security is NOT
active
2010/11/18 12:13:14:866 EET [DEBUG][main] SFCORE_LOG - Security Manager is java.
lang.SecurityManager@1a73d3c<mailto:lang.SecurityManager@1a73d3c>
2010/11/18 12:13:14:868 EET [DEBUG][main] SFCORE_LOG - Using java security polic
y: =D:\tmp\Externals\Java\smartfrog\private\sf.no.security.policy
2010/11/18 12:13:14:878 EET [WARN ][main] SFCORE_LOG - Possible problem with cla
sspath:
3 occurrences for smartfrog-
D:\tmp\Externals\Java\smartfrog\lib\smartfrog-src-3.18.002.jar
D:\tmp\Externals\Java\smartfrog\lib\smartfrog-jdocs-3.18.002.jar
D:\tmp\Externals\Java\smartfrog\lib\smartfrog-3.18.002.jar
2010/11/18 12:13:14:895 EET [DEBUG][main] SFCORE_LOG - Network test localhost: h
ostname 'BY0013D4B30637.alliedtesting.com', ip '192.168.198.99', [Successful],
1ms
2010/11/18 12:13:14:902 EET [DEBUG][main] SFCORE_LOG - Command Line args: []
SmartFrogDeploymentException: unnamed component. SmartFrogRuntimeException:: Sma
rtFrog daemon could not start because another instance is running, cause: java.r
mi.server.ExportException: Port already in use: 3800; nested exception is:
java.net.BindException: Address already in use: JVM_Bind, SmartFrog 3.18
.002 (2010-09-20 04:13:24 EDT), cause: SmartFrogRuntimeException:: SmartFrog dae
mon could not start because another instance is running, cause: java.rmi.serv
er.ExportException: Port already in use: 3800; nested exception is:
java.net.BindException: Address already in use: JVM_Bind, SmartFrog 3
.18.002 (2010-09-20 04:13:24 EDT)
2010/11/18 12:13:16:263 EET [DEBUG][main] SFCORE_LOG - SmartFrog System.Exit cod
e: 1, v3.18.002
D:\tmp\Externals\Java\smartfrog\bin>
==================================================================================
We get the same exception when launching SmartFrog using the test harness. We
have checked the port and found that it is not in use at any point and that no
SmartFrog daemon instances are running in the background. The most remarkable
thing is that in multi-user environments the problem occurs only with certain
accounts. When SmartFrog is launched on the same machine from the same location
by a different user, we don't see this exception. What is also puzzling is that
the problem emerged suddenly and for no apparent reason: we are not aware of
any changes to the system that could have occasioned this error.
This happens with SmartFrog v. 3.18.002 running on at least three different
machines under Windows 7 and Windows Server 2008 R2 Standard with Java SE v.
1.6 runtime environment. The problem account has administrative privileges.
Any help would be appreciated.
Dmitry
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users