Re: java.util.ConcurrentModificationException on app.addRepository

"Axel Zuzek" <[email protected]> Thu, 17 Jul 2008 14:39:22 +0200
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
--===============1995650588==
Content-Type: multipart/alternative; 
	boundary="----=_Part_53903_17063959.1216298362066"

------=_Part_53903_17063959.1216298362066
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

hi hannes,

your patch changed something, but didn't solve the problem (the error
occours now (reproduceable) at a later repository dir, see logmessages belo=
w

...
[2008/07/17 14:36:13] [INFO] START INFO load widgets [Application
twoday_w1_s2]
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\0_rss\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\delicious\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\feeds\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\flickr\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\linkList\code
[2008/07/17 14:36:13] [ERROR] null:
java.util.ConcurrentModificationException
java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
        at java.util.HashMap$ValueIterator.next(HashMap.java:821)
        at
java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
        at
helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:348)
        at
helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)
        at
helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)
        at java.lang.Thread.run(Thread.java:619)
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\meebo\code
[2008/07/17 14:36:13] [INFO] ---- adding repository
C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\plazes\code
...

2008/7/17 Hannes Wallnoefer <[email protected]>:

> I just committed more synchronization into the TypeManager class:
>
> http://dev.helma.org/trac/helma/changeset/9157
>
> this is quite experimental as I have only done minimal testing, but if
> it works, your problem should be fixed. Please tell me if it helps.
>
> hannes
>
> 2008/7/17 Axel Zuzek <[email protected]>:
> >
> >>
> >> > the error is reproduceable on some machines (windows, linux) under
> >> > helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it seems =
to
> >> > be a
> >> > racing condition?
> >>
> >> Just to make sure: it happens each time or just sometimes?
> >> and always when the application starts up, or at different points in
> time?
> >>
> >> hannes
> >
> > It happens each time on the same machines (on other machines with same
> code,
> > helma and java setup (other hardware) it never happens)
> > we trigger modWidgetsLoadWidgets at onStart()
> >
> > lg axel
> >
> >
> > _______________________________________________
> > Helma-user mailing list
> > [email protected]
> > http://helma.org/mailman/listinfo/helma-user
> >
> >
> _______________________________________________
> Helma-user mailing list
> [email protected]
> http://helma.org/mailman/listinfo/helma-user
>



--=20
mit besten Gr=FC=DFen
Dipl.-Ing. Axel Zuzek
Technischer Leiter
--------------------------------------
knallgrau new media solutions gmbh
pezzlgasse 7|1, A-1170 wien
mobile: +43 - 650 - 678 11 11
phone: +43 - 1 - 522 76 37 - 15
fax: +43 - 1 - 522 76 38
http://www.knallgrau.at

weitere News im Knallgrau Weblog: http://www.knallgrau.at/company/weblog

------=_Part_53903_17063959.1216298362066
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div dir=3D"ltr">hi hannes,<br><br>your patch changed something, but didn&#=
39;t solve the problem (the error occours now (reproduceable) at a later re=
pository dir, see logmessages below<br><br>...<br>[2008/07/17 14:36:13] [IN=
FO] START INFO load widgets [Application twoday_w1_s2]<br>
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\two=
day_w1_1_1\core\widgets\0_rss\code<br>[2008/07/17 14:36:13] [INFO] ---- add=
ing repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code<b=
r>
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\two=
day_w1_1_1\core\widgets\archive\code<br>[2008/07/17 14:36:13] [INFO] ---- a=
dding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\cod=
e<br>
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\two=
day_w1_1_1\core\widgets\delicious\code<br>[2008/07/17 14:36:13] [INFO] ----=
 adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\feeds\cod=
e<br>
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\two=
day_w1_1_1\core\widgets\flickr\code<br>[2008/07/17 14:36:13] [INFO] ---- ad=
ding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\linkList\cod=
e<br>
[2008/07/17 14:36:13] [ERROR] null: java.util.ConcurrentModificationExcepti=
on<br>java.util.ConcurrentModificationException<br>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java=
:793)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.util.HashMap$Va=
lueIterator.next(HashMap.java:821)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.util.Collections$Unmodif=
iableCollection$1.next(Collections.java:1010)<br>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; at helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoC=
ore.java:348)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at helma.script=
ing.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at helma.framework.core.RequestE=
valuator.run(RequestEvaluator.java:172)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; at java.lang.Thread.run(Thread.java:619)<br>[2008/07/17 14:36:13=
] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widg=
ets\meebo\code<br>
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\two=
day_w1_1_1\core\widgets\plazes\code<br>...<br><br><div class=3D"gmail_quote=
">2008/7/17 Hannes Wallnoefer &lt;<a href=3D"mailto:[email protected]">hannes=
@helma.at</a>&gt;:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I just committed =
more synchronization into the TypeManager class:<br>
<br>
<a href=3D"http://dev.helma.org/trac/helma/changeset/9157" target=3D"_blank=
">http://dev.helma.org/trac/helma/changeset/9157</a><br>
<br>
this is quite experimental as I have only done minimal testing, but if<br>
it works, your problem should be fixed. Please tell me if it helps.<br>
<font color=3D"#888888"><br>
hannes<br>
</font><div class=3D"Ih2E3d"><br>
2008/7/17 Axel Zuzek &lt;<a href=3D"mailto:[email protected]">axel.zu=
[email protected]</a>&gt;:<br>
&gt;<br>
&gt;&gt;<br>
</div><div><div></div><div class=3D"Wj3C7c">&gt;&gt; &gt; the error is repr=
oduceable on some machines (windows, linux) under<br>
&gt;&gt; &gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it=
 seems to<br>
&gt;&gt; &gt; be a<br>
&gt;&gt; &gt; racing condition?<br>
&gt;&gt;<br>
&gt;&gt; Just to make sure: it happens each time or just sometimes?<br>
&gt;&gt; and always when the application starts up, or at different points =
in time?<br>
&gt;&gt;<br>
&gt;&gt; hannes<br>
&gt;<br>
&gt; It happens each time on the same machines (on other machines with same=
 code,<br>
&gt; helma and java setup (other hardware) it never happens)<br>
&gt; we trigger modWidgetsLoadWidgets at onStart()<br>
&gt;<br>
&gt; lg axel<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class=3D"Wj3C7c">&gt; ____________________=
___________________________<br>
&gt; Helma-user mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]</a><br>
&gt; <a href=3D"http://helma.org/mailman/listinfo/helma-user" target=3D"_bl=
ank">http://helma.org/mailman/listinfo/helma-user</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Helma-user mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://helma.org/mailman/listinfo/helma-user" target=3D"_blank">=
http://helma.org/mailman/listinfo/helma-user</a><br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>mit besten =
Gr=FC=DFen<br>Dipl.-Ing. Axel Zuzek<br>Technischer Leiter<br>--------------=
------------------------<br>knallgrau new media solutions gmbh<br>pezzlgass=
e 7|1, A-1170 wien<br>
mobile: +43 - 650 - 678 11 11<br>phone: +43 - 1 - 522 76 37 - 15<br>fax: +4=
3 - 1 - 522 76 38<br><a href=3D"http://www.knallgrau.at">http://www.knallgr=
au.at</a><br><br>weitere News im Knallgrau Weblog: <a href=3D"http://www.kn=
allgrau.at/company/weblog">http://www.knallgrau.at/company/weblog</a>
</div>

------=_Part_53903_17063959.1216298362066--

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

_______________________________________________
Helma-user mailing list
[email protected]
http://helma.org/mailman/listinfo/helma-user

--===============1995650588==--