Re: "Port already in use" exception when starting SmartFrog

<depstein-6g8wRflRTwWrN/MWgto1swC/[email protected]> Tue, 9 Aug 2011 17:41:48 +0400
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <29F36C7C98AB09499B1A209D48EAA615B758F68535@mail2a.alliedtesting.com>
--===============4751095644419290301==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_29F36C7C98AB09499B1A209D48EAA615B758F68535mail2aalliedt_"

--_000_29F36C7C98AB09499B1A209D48EAA615B758F68535mail2aalliedt_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Further development Re: "java.net.BindException: Address already in use" ex=
ception 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 ou=
r corporate network.

Is there some workaround for this?

Quote from our sysadmin: apparently [SmartFrog] wasn't designed with corpor=
ate 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: smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
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:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
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 i=
s 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: =3DD:\tmp\Externals\Java\smartfrog\private\sf.no.security.policy
2010/11/18 12:13:14:878 EET [WARN ][main] SFCORE_LOG - Possible problem wit=
h 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 localho=
st: h
ostname 'BY0013D4B30637.alliedtesting.com', ip '192.168.198.99',  [Successf=
ul],
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: j=
ava.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:: SmartFro=
g 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,    SmartF=
rog 3
.18.002 (2010-09-20 04:13:24 EDT)
2010/11/18 12:13:16:263 EET [DEBUG][main] SFCORE_LOG - SmartFrog System.Exi=
t cod
e: 1, v3.18.002

D:\tmp\Externals\Java\smartfrog\bin>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D

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 t=
hat no SmartFrog daemon instances are running in the background. The most r=
emarkable 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 rea=
son: we are not aware of any changes to the system that could have occasion=
ed 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 privileg=
es.

Any help would be appreciated.

Dmitry


--_000_29F36C7C98AB09499B1A209D48EAA615B758F68535mail2aalliedt_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:56.7pt 42.5pt 56.7pt 85.05pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'c=
olor:#1F497D'>Further development Re: &#8220;java.net.BindException: Addres=
s already in use&#8221; exception when trying to launch SmartFrog on some W=
indows Server and Windows 7 machines. &nbsp;The culprit turned out to be th=
e firewall. The daemon can only run when firewall is disabled. We have Micr=
osoft ISA Server firewall on our corporate network.<o:p></o:p></span></p><p=
 class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></=
p><p class=3DMsoNormal><span style=3D'color:#1F497D'>Is there some workarou=
nd for this?<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'color=
:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'f=
ont-size:9.0pt;color:#1F497D'>Quote from our sysadmin: apparently [SmartFro=
g] wasn&#8217;t designed with corporate environment in mind&#8230;<o:p></o:=
p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;=
</o:p></span></p><div><div style=3D'mso-element:para-border-div;border:none=
;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in'><p class=
=3DMsoNormal style=3D'text-autospace:none;border:none;padding:0in'><b><span=
 style=3D'font-size:10.0pt;color:#262626'>Dmitry Epstein | </span></b><b><s=
pan style=3D'font-size:10.0pt;color:#0033CC'>Developer</span></b><b><span s=
tyle=3D'font-size:10.0pt;color:red'><o:p></o:p></span></b></p></div><p clas=
s=3DMsoNormal style=3D'vertical-align:top'><b><span style=3D'font-size:10.0=
pt;color:#262626'> <o:p></o:p></span></b></p><p class=3DMsoNormal style=3D'=
text-autospace:none'><b><span style=3D'font-size:10.0pt;color:#1F497D'>Alli=
ed Testing<o:p></o:p></span></b></p><p class=3DMsoNormal style=3D'text-auto=
space:none'><span style=3D'font-size:10.0pt;color:#262626'><o:p>&nbsp;</o:p=
></span></p><p class=3DMsoNormal style=3D'text-autospace:none'><span style=
=3D'font-size:10.0pt;color:#262626'><a href=3D"http://www.alliedtesting.com=
/">www.alliedtesting.com</a></span><b><span style=3D'font-size:10.0pt;color=
:#1F497D'><o:p></o:p></span></b></p><p class=3DMsoNormal style=3D'text-auto=
space:none'><b><span lang=3DRU style=3D'font-size:10.0pt;color:#0033CC'>We =
Deliver Quality.<o:p></o:p></span></b></p></div><p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style=3D'border:no=
ne;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style=
=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><=
p class=3DMsoNormal><b><span style=3D'font-size:10.0pt;font-family:"Tahoma"=
,"sans-serif"'>From:</span></b><span style=3D'font-size:10.0pt;font-family:=
"Tahoma","sans-serif"'> Dmitry Epstein <br><b>Sent:</b> Thursday, November =
18, 2010 1:45 PM<br><b>To:</b> smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<br><b>=
Cc:</b> Fiodar Kupchyk (by); Peter Gagarinov<br><b>Subject:</b> &quot;Port =
already in use&quot; exception when starting SmartFrog<o:p></o:p></span></p=
></div></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal=
><span style=3D'color:#1F497D'>Hi,<o:p></o:p></span></p><p class=3DMsoNorma=
l><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoN=
ormal><span style=3D'color:#1F497D'>We are having a problem starting SmartF=
rog under some accounts. Here is the output that we get when running &nbsp;=
sfDaemon from Windows command line:<o:p></o:p></span></p><p class=3DMsoNorm=
al><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMso=
Normal>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<o:p></o:p></p><p class=3DMsoNormal>D:\tmp\Ex=
ternals\Java\smartfrog\bin&gt;sfDaemon<o:p></o:p></p><p class=3DMsoNormal><=
o:p>&nbsp;</o:p></p><p class=3DMsoNormal>SmartFrog 3.18.002 (2010-09-20 04:=
13:24 EDT)<o:p></o:p></p><p class=3DMsoNormal>(C) Copyright 1998-2010 Hewle=
tt-Packard Development Company, LP<o:p></o:p></p><p class=3DMsoNormal><o:p>=
&nbsp;</o:p></p><p class=3DMsoNormal>2010/11/18 12:13:14:859 EET [WARN ][ma=
in] SFCORE_LOG - SmartFrog security is NOT<o:p></o:p></p><p class=3DMsoNorm=
al>active<o:p></o:p></p><p class=3DMsoNormal>2010/11/18 12:13:14:866 EET [D=
EBUG][main] SFCORE_LOG - Security Manager is java.<o:p></o:p></p><p class=
=3DMsoNormal><a href=3D"mailto:lang.SecurityManager@1a73d3c">lang.SecurityM=
anager@1a73d3c</a><o:p></o:p></p><p class=3DMsoNormal>2010/11/18 12:13:14:8=
68 EET [DEBUG][main] SFCORE_LOG - Using java security polic<o:p></o:p></p><=
p class=3DMsoNormal>y: =3DD:\tmp\Externals\Java\smartfrog\private\sf.no.sec=
urity.policy<o:p></o:p></p><p class=3DMsoNormal>2010/11/18 12:13:14:878 EET=
 [WARN ][main] SFCORE_LOG - Possible problem with cla<o:p></o:p></p><p clas=
s=3DMsoNormal>sspath:<o:p></o:p></p><p class=3DMsoNormal>&nbsp; 3 occurrenc=
es for smartfrog-<o:p></o:p></p><p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; D:\=
tmp\Externals\Java\smartfrog\lib\smartfrog-src-3.18.002.jar<o:p></o:p></p><=
p class=3DMsoNormal>&nbsp;&nbsp;&nbsp; D:\tmp\Externals\Java\smartfrog\lib\=
smartfrog-jdocs-3.18.002.jar<o:p></o:p></p><p class=3DMsoNormal>&nbsp;&nbsp=
;&nbsp; D:\tmp\Externals\Java\smartfrog\lib\smartfrog-3.18.002.jar<o:p></o:=
p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>2010/1=
1/18 12:13:14:895 EET [DEBUG][main] SFCORE_LOG - Network test localhost: h<=
o:p></o:p></p><p class=3DMsoNormal>ostname 'BY0013D4B30637.alliedtesting.co=
m', ip '192.168.198.99',&nbsp; [Successful],<o:p></o:p></p><p class=3DMsoNo=
rmal>1ms<o:p></o:p></p><p class=3DMsoNormal>2010/11/18 12:13:14:902 EET [DE=
BUG][main] SFCORE_LOG - Command Line args: []<o:p></o:p></p><p class=3DMsoN=
ormal>SmartFrogDeploymentException: unnamed component. SmartFrogRuntimeExce=
ption:: Sma<o:p></o:p></p><p class=3DMsoNormal>rtFrog daemon could not star=
t because another instance is running, cause: java.r<o:p></o:p></p><p class=
=3DMsoNormal>mi.server.ExportException: Port already in use: 3800; nested e=
xception is:<o:p></o:p></p><p class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; java.net.BindException: Address already in use: JVM_Bind, S=
martFrog 3.18<o:p></o:p></p><p class=3DMsoNormal>.002 (2010-09-20 04:13:24 =
EDT), cause: SmartFrogRuntimeException:: SmartFrog dae<o:p></o:p></p><p cla=
ss=3DMsoNormal>mon could not start because another instance is running,&nbs=
p;&nbsp;&nbsp; cause: java.rmi.serv<o:p></o:p></p><p class=3DMsoNormal>er.E=
xportException: Port already in use: 3800; nested exception is:<o:p></o:p><=
/p><p class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java.net=
.BindException: Address already in use: JVM_Bind,&nbsp;&nbsp;&nbsp; SmartFr=
og 3<o:p></o:p></p><p class=3DMsoNormal>.18.002 (2010-09-20 04:13:24 EDT)<o=
:p></o:p></p><p class=3DMsoNormal>2010/11/18 12:13:16:263 EET [DEBUG][main]=
 SFCORE_LOG - SmartFrog System.Exit cod<o:p></o:p></p><p class=3DMsoNormal>=
e: 1, v3.18.002<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>D:\tmp\Externals\Java\smartfrog\bin&gt;<o:p></o:p></p><p =
class=3DMsoNormal>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<o:p></o:p></p><p class=3DMsoNormal>=
<span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNor=
mal><span style=3D'color:#1F497D'>We get the same exception when launching =
SmartFrog using the test harness. We have checked the port and found that i=
t is not in use at any point and that no SmartFrog daemon instances are run=
ning in the background. The most remarkable thing is that in multi-user env=
ironments 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&#8217;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 change=
s to the system that could have occasioned this error.<o:p></o:p></span></p=
><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span=
></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>This happens with S=
martFrog v. 3.18.002 running on at least three different machines under Win=
dows 7 and Windows Server 2008 R2 Standard with Java SE v. 1.6 runtime envi=
ronment. The problem account has administrative privileges.<o:p></o:p></spa=
n></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p><=
/span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>Any help would=
 be appreciated.<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'c=
olor:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=
=3D'color:#1F497D'>Dmitry<o:p></o:p></span></p><p class=3DMsoNormal><span s=
tyle=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p></div></div></body></htm=
l>=

--_000_29F36C7C98AB09499B1A209D48EAA615B758F68535mail2aalliedt_--


--===============4751095644419290301==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev

--===============4751095644419290301==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Smartfrog-users mailing list
Smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-users

--===============4751095644419290301==--