<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE>font-face {
        FONT-FAMILY: Tahoma
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=437030219-14082006><FONT face=Arial
color=#0000ff size=2>There is a clustering test case (HAJndiTestCase) that
fails in HEAD for this same reason -- an earlier test deploys and undeploys the
same ejb jar HAJndiTestCase uses. I've looked at the test log and there is
no indication of a problem with the earlier test. In Jaroslaw's first post
before, the log of the undeploy is also clean.</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>Brian Stansberry<BR>Lead, AS Clustering<BR>JBoss, a division of
Red Hat<BR>Ph: 510-396-3864<BR>skype: bstansberry </FONT></P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
jboss-development-bounces@lists.jboss.org
[mailto:jboss-development-bounces@lists.jboss.org] <B>On Behalf Of
</B>Jaroslaw Kijanowski<BR><B>Sent:</B> Monday, August 14, 2006 1:56
PM<BR><B>To:</B> JBoss.org development list<BR><B>Subject:</B> RE: [JBoss-dev]
InstanceAlreadyExistsException afterundeployandrepeated deploy in JBoss AS
5.0.0 Beta<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText12131 dir=ltr>
<DIV dir=ltr><FONT face=Arial><FONT color=#000000 size=2>I run the tests in
one-test mode, so no time outs in previous tests are the reason for IAEE. The
first time I run test "X" everything is fine, deploying jar, binding home
interfaces and finally unbinding home interfaces (what's not true because
there are still visible in the JMXConsole). When I run the test again I get
the IAEE. The whole package org.jboss.test.cmp2.* (over 250 tests) would run
without any errors (now over 230 errors), when unbinding would work
correct.</FONT></FONT></DIV>
<DIV dir=ltr><FONT face=Arial><FONT color=#000000 size=2>For example, many
tests have to bind EJBTestRunner to jndi, but only the first test can do it
successfully, the others can't because EJBTestRunner isn't properly unbound
and a repeated bind cause the IAEE.</FONT></FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I doesn't happen with
JBoss4.</FONT></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B>
jboss-development-bounces@lists.jboss.org on behalf of Ryan
Campbell<BR><B>Sent:</B> Mon 2006-08-14 13:42<BR><B>To:</B> JBoss.org
development list<BR><B>Subject:</B> RE: [JBoss-dev]
InstanceAlreadyExistsException afterundeployandrepeated deploy in JBoss AS
5.0.0 Beta<BR></FONT><BR></DIV></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Jaroslaw, look for
any test timeouts. As Adrian mentioned, it is some test failing to
teardown and tests timing out are likely suspects. Debug them
first. If you see no test timeouts, then the problem becomes harder.
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">In that case, would
it be realistic for JBossTestCase to assert that the number of deployments
remain constant between each deploy and undeploy()? Could be a simple
mechanism to flag bad tests.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
jboss-development-bounces@lists.jboss.org
[mailto:jboss-development-bounces@lists.jboss.org] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Jaroslaw
Kijanowski<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Saturday,
August 12, 2006 10:58 AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B>
jboss-development@lists.jboss.org<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [JBoss-dev]
InstanceAlreadyExistsException afterundeploy andrepeated deploy in JBoss AS
5.0.0 Beta</SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<DIV>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Hello,<BR> I've
got the following issue with JBoss AS 5.0.0 Beta:<BR>After I run a test (in
"one-test" mode, so no previous test caused an time out etc.), I see on
the server console that the corresponding jar is undeploying and the home
interfaces are unbinding. But when I run the test again, I get
InstanceAlreadyExistsException:</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"><BR>11:43:12,406
INFO [Server] JBoss (MX MicroKernel) [5.0.0.Beta (build: CVSTag=HE<BR>AD
date=200608071122)] Started in 1m:3s:563ms<BR>11:43:53,046 INFO
[EjbModule] Deploying Customer<BR>11:43:53,234 INFO [EjbModule]
Deploying Account<BR>11:43:53,250 INFO [EjbModule] Deploying
Teller<BR>11:43:53,281 INFO [EjbModule] Deploying Bank<BR>11:43:54,687
INFO [ProxyFactory] Bound EJB Home 'Customer' to jndi
'bank/Custom<BR>er'<BR>11:43:54,703 INFO [ProxyFactory] Bound EJB Home
'Account' to jndi 'bank/Account<BR>'<BR>11:43:54,718 INFO [ProxyFactory]
Bound EJB Home 'Teller' to jndi 'bank/Teller'<BR>11:43:54,734 INFO
[ProxyFactory] Bound EJB Home 'Bank' to jndi 'bank/Bank'<BR>11:43:54,734
INFO [EJBDeployer] Deployed:
file:/D:/jboss-svn4/jboss-head/testsu<BR>ite/output/lib/bank.jar<BR>11:44:02,093
INFO [EJBDeployer] Undeploying:
file:/D:/jboss-svn4/jboss-head/tes<BR>tsuite/output/lib/bank.jar<BR>11:44:02,125
INFO [ProxyFactory] Unbind EJB Home 'Bank' from jndi
'bank/Bank'<BR>11:44:02,125 INFO [EjbModule] Undeployed
Bank<BR>11:44:02,125 INFO [ProxyFactory] Unbind EJB Home 'Teller' from
jndi 'bank/Telle<BR>r'<BR>11:44:02,125 INFO [EjbModule] Undeployed
Teller<BR>11:44:02,125 INFO [ProxyFactory] Unbind EJB Home 'Account'
from jndi 'bank/Acco<BR>unt'<BR>11:44:02,140 INFO [EjbModule] Undeployed
Account<BR>11:44:02,140 INFO [ProxyFactory] Unbind EJB Home 'Customer'
from jndi 'bank/Cus<BR>tomer'<BR>11:44:02,140 INFO [EjbModule]
Undeployed Customer</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">*************<BR>An
now I run the test again:<BR>*************</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">11:44:17,390
INFO [EjbModule] Deploying Customer<BR>11:44:17,421 INFO
[EjbModule] Deploying Account<BR>11:44:17,421 INFO [EjbModule] Deploying
Teller<BR>11:44:17,437 INFO [EjbModule] Deploying Bank<BR>11:44:17,453
INFO [EntityContainer] Registration is not done ->
stop<BR>11:44:17,453 ERROR [AbstractKernelController] Error installing to
Create: name=j<BR>boss.j2ee:module=bank.jar,service=EjbModule,uid=29596937
state=Configured mode=M<BR>anual
requiredState=Create<BR>javax.management.InstanceAlreadyExistsException:
jboss.j2ee:jndiName=bank/Custom<BR>er,service=EJB already
registered.<BR> at
org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistr<BR>y.java:765)<BR>
at
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB<BR>eanRegistry.java:234)<BR>.<BR>.<BR>.<BR>11:44:17,531
INFO [EJBDeployer] Deployed:
file:/D:/jboss-svn4/jboss-head/testsu<BR>ite/output/lib/bank.jar<BR>11:44:17,968
INFO [EJBDeployer] Undeploying:
file:/D:/jboss-svn4/jboss-head/tes<BR>tsuite/output/lib/bank.jar<BR>******************<BR>I
saw similar issues for previous versions of the AS (all resolved) but I think
this is the first for the Beta 5.0 version.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></DIV></DIV></BLOCKQUOTE></BODY></HTML>