<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-2589</id>
	<title>Nabble - Helma</title>
	<updated>2008-07-17T10:12:29Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Helma-f2589.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Helma-f2589.html" />
	<subtitle type="html">&lt;p&gt;An open source web application framework for fast and efficient scripting and serving of your websites and Internet applications.&lt;br /&gt;
Helma is implemented in Java and employs Javascript for its server-side scripting environment.&lt;br /&gt;
The home of Helma is at &lt;a href=&quot;http://helma.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/&lt;/a&gt;. We are also on IRC at &lt;a href=&quot;irc://irc.freenode.net/helma&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;irc://irc.freenode.net/helma&lt;/a&gt;&lt;/p&gt;</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-18513475</id>
	<title>sql bug 2</title>
	<published>2008-07-17T10:12:29Z</published>
	<updated>2008-07-17T10:12:29Z</updated>
	<author>
		<name>Julian Tree</name>
	</author>
	<content type="html">sqlshell also doesn't add
&lt;br&gt;&lt;br&gt;_db
&lt;br&gt;_table
&lt;br&gt;_id
&lt;br&gt;_idgen
&lt;br&gt;&lt;br&gt;&lt;br&gt;Julian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18513475&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---Dev-f2590.html&quot; embed=&quot;fixTarget[2590]&quot; target=&quot;_top&quot; &gt;Helma - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/sql-bug-2-tp18513475p18513475.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18513448</id>
	<title>sqlshell postgresql bugs</title>
	<published>2008-07-17T10:11:06Z</published>
	<updated>2008-07-17T10:11:06Z</updated>
	<author>
		<name>Julian Tree</name>
	</author>
	<content type="html">When using sqlshell with postgresql
&lt;br&gt;&lt;br&gt;properties.type is not generated correctly.
&lt;br&gt;&lt;br&gt;Database Column is USER_NAME
&lt;br&gt;it will map to
&lt;br&gt;&lt;br&gt;userName = userName
&lt;br&gt;&lt;br&gt;&lt;br&gt;As you can see it is not mapped to the correct database column name.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I don't know how to submit a fix, but basically
&lt;br&gt;in involved changing one line from
&lt;br&gt;&lt;br&gt;file.writeln(req.data[i]);
&lt;br&gt;&lt;br&gt;file.writeln(i);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Julian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18513448&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---Dev-f2590.html&quot; embed=&quot;fixTarget[2590]&quot; target=&quot;_top&quot; &gt;Helma - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/sqlshell-postgresql-bugs-tp18513448p18513448.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18511594</id>
	<title>Re: java.util.ConcurrentModificationException on	app.addRepository</title>
	<published>2008-07-17T08:46:07Z</published>
	<updated>2008-07-17T08:46:07Z</updated>
	<author>
		<name>KLeite</name>
	</author>
	<content type="html">On Sun's web site they had a note for 
&lt;br&gt;java.util.ConcurrentModificationException:
&lt;br&gt;~~~~~~~~~~~
&lt;br&gt;&lt;br&gt;Note that this exception does not always indicate that an object has 
&lt;br&gt;been concurrently modified by a /different/ thread. If a single thread 
&lt;br&gt;issues a sequence of method invocations that violates the contract of an 
&lt;br&gt;object, the object may throw this exception. For example, if a thread 
&lt;br&gt;modifies a collection directly while it is iterating over the collection 
&lt;br&gt;with a fail-fast iterator, the iterator will throw this exception.
&lt;br&gt;~~~~~~~~~~~
&lt;br&gt;&lt;br&gt;The error is pointing to an Interator in a loop. &amp;nbsp;Looking at the looping 
&lt;br&gt;and what is being loaded might be of interest.
&lt;br&gt;&lt;br&gt;my 2cents,
&lt;br&gt;Kris Leite
&lt;br&gt;&lt;br&gt;Axel Zuzek wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2008/7/17 Axel Zuzek &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18511594&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;axel.zuzek@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18511594&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;axel.zuzek@...&lt;/a&gt;&amp;gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; hi hannes,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; your patch changed something, but didn't solve the problem (the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; error occours now (reproduceable) at a later repository dir, see
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; logmessages below
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; update: it seems to be a race condition, because the occurrence of the 
&lt;br&gt;&amp;gt; error varies now between delicious and places widget
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] START INFO load widgets [Application
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; twoday_w1_s2]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\0_rss\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\delicious\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\feeds\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\flickr\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\linkList\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [ERROR] null:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$ValueIterator.next(HashMap.java:821)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:348)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\meebo\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [2008/07/17 14:36:13] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\plazes\code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 2008/7/17 Hannes Wallnoefer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18511594&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hannes@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18511594&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hannes@...&lt;/a&gt;&amp;gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Helma-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18511594&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18511594&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18511594.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18507664</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T05:44:08Z</published>
	<updated>2008-07-17T05:44:08Z</updated>
	<author>
		<name>Axel Zuzek</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2008/7/17 Axel Zuzek &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;axel.zuzek@...&lt;/a&gt;&amp;gt;:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;hi hannes,&lt;br&gt;&lt;br&gt;your patch changed something, but didn&amp;#39;t solve the problem (the error occours now (reproduceable) at a later repository dir, see logmessages below&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;update: it seems to be a race condition, because the occurrence of the error varies now between delicious and places widget &lt;br&gt;
&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;...&lt;br&gt;[2008/07/17 14:36:13] [INFO] START INFO load widgets [Application twoday_w1_s2]&lt;br&gt;

[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\0_rss\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code&lt;br&gt;

[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code&lt;br&gt;

[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\delicious\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\feeds\code&lt;br&gt;

[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\flickr\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\linkList\code&lt;br&gt;

[2008/07/17 14:36:13] [ERROR] null: java.util.ConcurrentModificationException&lt;div class=&quot;Ih2E3d&quot;&gt;&lt;br&gt;java.util.ConcurrentModificationException&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.HashMap$ValueIterator.next(HashMap.java:821)&lt;br&gt;
&lt;/div&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:348)&lt;div class=&quot;Ih2E3d&quot;&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)&lt;br&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:619)&lt;br&gt;&lt;/div&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\meebo\code&lt;br&gt;

[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\plazes\code&lt;br&gt;...&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2008/7/17 Hannes Wallnoefer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507664&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hannes@...&lt;/a&gt;&amp;gt;:&lt;div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507664&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18507664.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18507567</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T05:39:22Z</published>
	<updated>2008-07-17T05:39:22Z</updated>
	<author>
		<name>Axel Zuzek</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;hi hannes,&lt;br&gt;&lt;br&gt;your patch changed something, but didn&amp;#39;t solve the problem (the error occours now (reproduceable) at a later repository dir, see logmessages below&lt;br&gt;&lt;br&gt;...&lt;br&gt;[2008/07/17 14:36:13] [INFO] START INFO load widgets [Application twoday_w1_s2]&lt;br&gt;
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\0_rss\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code&lt;br&gt;
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code&lt;br&gt;
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\delicious\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\feeds\code&lt;br&gt;
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\flickr\code&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\linkList\code&lt;br&gt;
[2008/07/17 14:36:13] [ERROR] null: java.util.ConcurrentModificationException&lt;br&gt;java.util.ConcurrentModificationException&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.HashMap$ValueIterator.next(HashMap.java:821)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:348)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:619)&lt;br&gt;[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\meebo\code&lt;br&gt;
[2008/07/17 14:36:13] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\plazes\code&lt;br&gt;...&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2008/7/17 Hannes Wallnoefer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507567&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hannes@...&lt;/a&gt;&amp;gt;:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;I just committed more synchronization into the TypeManager class:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://dev.helma.org/trac/helma/changeset/9157&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://dev.helma.org/trac/helma/changeset/9157&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
this is quite experimental as I have only done minimal testing, but if&lt;br&gt;
it works, your problem should be fixed. Please tell me if it helps.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
hannes&lt;br&gt;
&lt;/font&gt;&lt;div class=&quot;Ih2E3d&quot;&gt;&lt;br&gt;
2008/7/17 Axel Zuzek &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507567&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;axel.zuzek@...&lt;/a&gt;&amp;gt;:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&amp;gt;&amp;gt; &amp;gt; the error is reproduceable on some machines (windows, linux) under&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it seems to&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; be a&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; racing condition?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Just to make sure: it happens each time or just sometimes?&lt;br&gt;
&amp;gt;&amp;gt; and always when the application starts up, or at different points in time?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; hannes&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It happens each time on the same machines (on other machines with same code,&lt;br&gt;
&amp;gt; helma and java setup (other hardware) it never happens)&lt;br&gt;
&amp;gt; we trigger modWidgetsLoadWidgets at onStart()&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; lg axel&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; Helma-user mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507567&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Helma-user mailing list&lt;br&gt;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507567&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;mit besten Grüßen&lt;br&gt;Dipl.-Ing. Axel Zuzek&lt;br&gt;Technischer Leiter&lt;br&gt;--------------------------------------&lt;br&gt;knallgrau new media solutions gmbh&lt;br&gt;pezzlgasse 7|1, A-1170 wien&lt;br&gt;
mobile: +43 - 650 - 678 11 11&lt;br&gt;phone: +43 - 1 - 522 76 37 - 15&lt;br&gt;fax: +43 - 1 - 522 76 38&lt;br&gt;&lt;a href=&quot;http://www.knallgrau.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.knallgrau.at&lt;/a&gt;&lt;br&gt;&lt;br&gt;weitere News im Knallgrau Weblog: &lt;a href=&quot;http://www.knallgrau.at/company/weblog&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.knallgrau.at/company/weblog&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507567&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18507567.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18507124</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T05:14:14Z</published>
	<updated>2008-07-17T05:14:14Z</updated>
	<author>
		<name>Hannes Wallnoefer-2</name>
	</author>
	<content type="html">I just committed more synchronization into the TypeManager class:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://dev.helma.org/trac/helma/changeset/9157&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.helma.org/trac/helma/changeset/9157&lt;/a&gt;&lt;br&gt;&lt;br&gt;this is quite experimental as I have only done minimal testing, but if
&lt;br&gt;it works, your problem should be fixed. Please tell me if it helps.
&lt;br&gt;&lt;br&gt;hannes
&lt;br&gt;&lt;br&gt;2008/7/17 Axel Zuzek &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507124&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;axel.zuzek@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; the error is reproduceable on some machines (windows, linux) under
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it seems to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; be a
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; racing condition?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Just to make sure: it happens each time or just sometimes?
&lt;br&gt;&amp;gt;&amp;gt; and always when the application starts up, or at different points in time?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; hannes
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It happens each time on the same machines (on other machines with same code,
&lt;br&gt;&amp;gt; helma and java setup (other hardware) it never happens)
&lt;br&gt;&amp;gt; we trigger modWidgetsLoadWidgets at onStart()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; lg axel
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Helma-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507124&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18507124&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18507124.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18506641</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T04:44:53Z</published>
	<updated>2008-07-17T04:44:53Z</updated>
	<author>
		<name>Axel Zuzek</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&lt;br&gt;
&amp;gt; the error is reproduceable on some machines (windows, linux) under&lt;br&gt;
&amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it seems to be a&lt;br&gt;
&amp;gt; racing condition?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;Just to make sure: it happens each time or just sometimes?&lt;br&gt;
and always when the application starts up, or at different points in time?&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
hannes&lt;br&gt;
&lt;/font&gt;&lt;div class=&quot;Ih2E3d&quot;&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;It happens each time on the same machines (on other machines with same code, helma and java setup (other hardware) it never happens)&lt;br&gt;we trigger modWidgetsLoadWidgets at onStart()&lt;br&gt;
&lt;br&gt;lg axel&lt;br&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18506641.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18506574</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T04:40:12Z</published>
	<updated>2008-07-17T04:40:12Z</updated>
	<author>
		<name>Hannes Wallnoefer-2</name>
	</author>
	<content type="html">2008/7/17 Axel Zuzek &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506574&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;axel.zuzek@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; we load our widgets on helma start with app.addRepository and sometimes we
&lt;br&gt;&amp;gt; get the following error code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] START INFO load widgets [Application
&lt;br&gt;&amp;gt; twoday_w1_s2]
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [ERROR] null:
&lt;br&gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$ValueIterator.next(HashMap.java:821)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.framework.core.TypeManager.checkRepositories(TypeManager.java:204)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.framework.core.TypeManager.checkPrototypes(TypeManager.java:124)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:330)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; the error is reproduceable on some machines (windows, linux) under
&lt;br&gt;&amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it seems to be a
&lt;br&gt;&amp;gt; racing condition?
&lt;/div&gt;&lt;br&gt;Just to make sure: it happens each time or just sometimes?
&lt;br&gt;and always when the application starts up, or at different points in time?
&lt;br&gt;&lt;br&gt;hannes
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; any ideas?
&lt;br&gt;&amp;gt; many thx
&lt;br&gt;&amp;gt; axel
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (function used to add repositories:)
&lt;br&gt;&amp;gt; function modWidgetsLoadWidgets() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;var widgetDirs = knallgrau.Base.getRepositorySubDirs(&amp;quot;widgets&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;for (var i in widgetDirs) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var widgets = widgetDirs[i].list();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (var j in widgets) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var dir = new helma.File(widgetDirs[i], widgets[j]);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!dir.isDirectory() || dir.getName() == &amp;quot;CVS&amp;quot; || dir.getName()
&lt;br&gt;&amp;gt; == &amp;quot;.svn&amp;quot;) continue;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;app.log(&amp;quot;---- adding repository &amp;quot; + dir.getAbsolutePath() +
&lt;br&gt;&amp;gt; helma.File.separator + &amp;quot;code&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;app.addRepository(dir.getAbsolutePath() + helma.File.separator +
&lt;br&gt;&amp;gt; &amp;quot;code&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Helma-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506574&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506574&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18506574.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18506552</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T04:39:04Z</published>
	<updated>2008-07-17T04:39:04Z</updated>
	<author>
		<name>Hannes Wallnoefer-2</name>
	</author>
	<content type="html">2008/7/17 Burghard Britzke &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bubi@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Am 17.07.2008 um 13:22 schrieb Hannes Wallnoefer:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2008/7/17 Bernhard Fröhlich &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506552&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;decke@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; we load our widgets on helma start with app.addRepository and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; sometimes we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; get the following error code:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; [2008/07/17 11:19:23] [ERROR] null:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the error is reproduceable on some machines (windows, linux) under
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; seems to be
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; racing condition?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am not familiar with the Helma code but as far as i can tell
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; there seems
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to be a missing synchronisation in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; TypeManager.java:checkRepositories()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; because the Iterator is not protected from getting invalid.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So it seems like an helma bug - would you mind creating an bugreport?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yes, it's definitely a helma bug, so please file a bug report.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm not sure just adding synchronization would help, as it could be
&lt;br&gt;&amp;gt;&amp;gt; the same thread inserting into the prototype map, or synchronization
&lt;br&gt;&amp;gt;&amp;gt; could result in &amp;nbsp;a deadlock. It's probably worth a try, though.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; hannes
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Bernhard Fröhlich
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ConcurrentModificationExceptions can be preventet by adding proper
&lt;br&gt;&amp;gt; synchronization
&lt;/div&gt;&lt;br&gt;not if the collection is modified by the same thread using the iterator.
&lt;br&gt;&lt;br&gt;&amp;gt; deadlocks can be prevented by accessing the resources in the same
&lt;br&gt;&amp;gt; sequence for each thread.
&lt;br&gt;&lt;br&gt;If only that was so simple as it sounded!
&lt;br&gt;&lt;br&gt;hannes
&lt;br&gt;&lt;br&gt;&amp;gt; sincerely,
&lt;br&gt;&amp;gt; burghard.
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Helma-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506552&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506552&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18506552.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18506484</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T04:34:49Z</published>
	<updated>2008-07-17T04:34:49Z</updated>
	<author>
		<name>Burghard Britzke</name>
	</author>
	<content type="html">&lt;br&gt;Am 17.07.2008 um 13:22 schrieb Hannes Wallnoefer:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2008/7/17 Bernhard Fröhlich &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506484&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;decke@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; we load our widgets on helma start with app.addRepository and &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; sometimes we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; get the following error code:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [2008/07/17 11:19:23] [ERROR] null:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the error is reproduceable on some machines (windows, linux) under
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; seems to be
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; racing condition?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am not familiar with the Helma code but as far as i can tell &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; there seems
&lt;br&gt;&amp;gt;&amp;gt; to be a missing synchronisation in &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; TypeManager.java:checkRepositories()
&lt;br&gt;&amp;gt;&amp;gt; because the Iterator is not protected from getting invalid.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So it seems like an helma bug - would you mind creating an bugreport?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, it's definitely a helma bug, so please file a bug report.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not sure just adding synchronization would help, as it could be
&lt;br&gt;&amp;gt; the same thread inserting into the prototype map, or synchronization
&lt;br&gt;&amp;gt; could result in &amp;nbsp;a deadlock. It's probably worth a try, though.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; hannes
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Bernhard Fröhlich
&lt;/div&gt;&lt;br&gt;ConcurrentModificationExceptions can be preventet by adding proper &amp;nbsp;
&lt;br&gt;synchronization
&lt;br&gt;deadlocks can be prevented by accessing the resources in the same &amp;nbsp;
&lt;br&gt;sequence for each thread.
&lt;br&gt;sincerely,
&lt;br&gt;burghard. 
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506484&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18506484.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18506329</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T04:22:57Z</published>
	<updated>2008-07-17T04:22:57Z</updated>
	<author>
		<name>Hannes Wallnoefer-2</name>
	</author>
	<content type="html">2008/7/17 Bernhard Fröhlich &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506329&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;decke@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; we load our widgets on helma start with app.addRepository and sometimes we
&lt;br&gt;&amp;gt;&amp;gt; get the following error code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt; [2008/07/17 11:19:23] [INFO] START INFO load widgets [Application
&lt;br&gt;&amp;gt;&amp;gt; twoday_w1_s2]
&lt;br&gt;&amp;gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code
&lt;br&gt;&amp;gt;&amp;gt; [2008/07/17 11:19:23] [ERROR] null:
&lt;br&gt;&amp;gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$ValueIterator.next(HashMap.java:821)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt;&amp;gt; helma.framework.core.TypeManager.checkRepositories(TypeManager.java:204)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt;&amp;gt; helma.framework.core.TypeManager.checkPrototypes(TypeManager.java:124)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt;&amp;gt; helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:330)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt;&amp;gt; helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt;&amp;gt; helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&amp;gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code
&lt;br&gt;&amp;gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt; the error is reproduceable on some machines (windows, linux) under
&lt;br&gt;&amp;gt;&amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it seems to be
&lt;br&gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt; racing condition?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am not familiar with the Helma code but as far as i can tell there seems
&lt;br&gt;&amp;gt; to be a missing synchronisation in TypeManager.java:checkRepositories()
&lt;br&gt;&amp;gt; because the Iterator is not protected from getting invalid.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So it seems like an helma bug - would you mind creating an bugreport?
&lt;/div&gt;&lt;br&gt;Yes, it's definitely a helma bug, so please file a bug report.
&lt;br&gt;&lt;br&gt;I'm not sure just adding synchronization would help, as it could be
&lt;br&gt;the same thread inserting into the prototype map, or synchronization
&lt;br&gt;could result in &amp;nbsp;a deadlock. It's probably worth a try, though.
&lt;br&gt;&lt;br&gt;hannes
&lt;br&gt;&lt;br&gt;&amp;gt; Bernhard Fröhlich
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Helma-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506329&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506329&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18506329.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18506138</id>
	<title>Re: java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T03:13:56Z</published>
	<updated>2008-07-17T03:13:56Z</updated>
	<author>
		<name>Bernhard Froehlich</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; we load our widgets on helma start with app.addRepository and sometimes we
&lt;br&gt;&amp;gt; get the following error code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] START INFO load widgets [Application
&lt;br&gt;&amp;gt; twoday_w1_s2]
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [ERROR] null:
&lt;br&gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt; java.util.ConcurrentModificationException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.HashMap$ValueIterator.next(HashMap.java:821)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.framework.core.TypeManager.checkRepositories(TypeManager.java:204)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.framework.core.TypeManager.checkPrototypes(TypeManager.java:124)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:330)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code
&lt;br&gt;&amp;gt; [2008/07/17 11:19:23] [INFO] ---- adding repository
&lt;br&gt;&amp;gt; C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; the error is reproduceable on some machines (windows, linux) under
&lt;br&gt;&amp;gt; helma1.6.0 and helma 1.6.2, java1.6.0_01 and java1.6.0_06. it seems to be
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; racing condition?
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I am not familiar with the Helma code but as far as i can tell there seems
&lt;br&gt;to be a missing synchronisation in TypeManager.java:checkRepositories()
&lt;br&gt;because the Iterator is not protected from getting invalid.
&lt;br&gt;&lt;br&gt;So it seems like an helma bug - would you mind creating an bugreport?
&lt;br&gt;&lt;br&gt;Bernhard Fröhlich
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18506138&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18506138.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18505182</id>
	<title>java.util.ConcurrentModificationException on app.addRepository</title>
	<published>2008-07-17T02:59:25Z</published>
	<updated>2008-07-17T02:59:25Z</updated>
	<author>
		<name>Axel Zuzek</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Hello list,&lt;br&gt;&lt;br&gt;we load our widgets on helma start with app.addRepository and sometimes we get the following error code:&lt;br&gt;&lt;br&gt;...&lt;br&gt;[2008/07/17 11:19:23] [INFO] START INFO load widgets [Application twoday_w1_s2]&lt;br&gt;

[2008/07/17 11:19:23] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\amazon\code&lt;br&gt;
[2008/07/17 11:19:23] [ERROR] null: java.util.ConcurrentModificationException&lt;br&gt;
java.util.ConcurrentModificationException&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.HashMap$ValueIterator.next(HashMap.java:821)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.framework.core.TypeManager.checkRepositories(TypeManager.java:204)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.framework.core.TypeManager.checkPrototypes(TypeManager.java:124)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.scripting.rhino.RhinoCore.updatePrototypes(RhinoCore.java:330)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.scripting.rhino.RhinoEngine.enterContext(RhinoEngine.java:174)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:172)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:619)&lt;br&gt;
[2008/07/17 11:19:23] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\archive\code&lt;br&gt;
[2008/07/17 11:19:23] [INFO] ---- adding repository C:\helma-1.6.2\apps\twoday_w1_1_1\core\widgets\credits\code&lt;br&gt;...&lt;br&gt;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?&lt;br&gt;
&lt;br&gt;any ideas?&lt;br&gt;many thx&lt;br&gt;axel&lt;br&gt;&lt;br&gt;(function used to add repositories:)&lt;br&gt;function modWidgetsLoadWidgets() {&lt;br&gt;&amp;nbsp;&amp;nbsp; var widgetDirs = knallgrau.Base.getRepositorySubDirs(&amp;quot;widgets&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp; for (var i in widgetDirs) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var widgets = widgetDirs[i].list();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var j in widgets) {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dir = new helma.File(widgetDirs[i], widgets[j]);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!dir.isDirectory() || dir.getName() == &amp;quot;CVS&amp;quot; || dir.getName() == &amp;quot;.svn&amp;quot;) continue;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.log(&amp;quot;---- adding repository &amp;quot; + dir.getAbsolutePath() + helma.File.separator + &amp;quot;code&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.addRepository(dir.getAbsolutePath() + helma.File.separator + &amp;quot;code&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&amp;nbsp;&amp;nbsp; }&lt;br&gt;}&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18505182&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/java.util.ConcurrentModificationException-on-app.addRepository-tp18505182p18505182.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18251774</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T21:45:26Z</published>
	<updated>2008-07-02T21:45:26Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">*sigh* you're a step ahead again. I just found that, too.
&lt;br&gt;&lt;br&gt;I can add that prototypes that _extend the one you're updating get 
&lt;br&gt;updated, too. And it works (as we would want) even if there's no 
&lt;br&gt;type.properties file at all.
&lt;br&gt;&lt;br&gt;So, wow. Cool evening's worth of playing around. I think we jusr got rid 
&lt;br&gt;of type.properties.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251774&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18251774.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18251657</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T21:31:55Z</published>
	<updated>2008-07-02T21:31:55Z</updated>
	<author>
		<name>Breton Slivka-2</name>
	</author>
	<content type="html">FYI, I played with it for a little while, and it just needs one magic
&lt;br&gt;little &amp;quot;bump&amp;quot;
&lt;br&gt;&lt;br&gt;Once you've written a new type.properties (via the setProperty
&lt;br&gt;function), you need to call the update() function to make helma read it
&lt;br&gt;in. &amp;nbsp;Example:
&lt;br&gt;&lt;br&gt;&amp;nbsp;app.getPrototype(&amp;quot;Artwork&amp;quot;).getDbMapping().update();
&lt;br&gt;&lt;br&gt;And then your dynamica changes will be seen by helma.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt;]
&lt;br&gt;On Behalf Of Breton Slivka
&lt;br&gt;Sent: Thursday, 3 July 2008 1:39 PM
&lt;br&gt;To: Helma User Mailing List
&lt;br&gt;Subject: Re: [Helma-user] accessing type.properties
&lt;br&gt;&lt;br&gt;It's a brand spanking new idea, so nothing is tested yet. Not by me at
&lt;br&gt;least. But it certainly is worth looking more into this. I'll do what I
&lt;br&gt;can. My associate Maks has also taken interest in my invention, so I
&lt;br&gt;imagine he'll be looking into it as well.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt;]
&lt;br&gt;On Behalf Of Joshua Paine
&lt;br&gt;Sent: Thursday, 3 July 2008 1:32 PM
&lt;br&gt;To: Helma User Mailing List
&lt;br&gt;Subject: Re: [Helma-user] accessing type.properties
&lt;br&gt;&lt;br&gt;Breton Slivka wrote:
&lt;br&gt;&amp;gt; You know what else you can do? You can set it programatically.
&lt;br&gt;&lt;br&gt;I saw those methods when I was investigating this, but didn't think to
&lt;br&gt;try anything with them. (Maybe 'cause type.properties never really
&lt;br&gt;bothered me?)
&lt;br&gt;&lt;br&gt;&amp;gt; I immediately set out to write an example of replacing type.properties
&lt;br&gt;&lt;br&gt;&amp;gt; with an Object Literal in javascript.
&lt;br&gt;&lt;br&gt;Is this tested and working? Does it work for all properties, even
&lt;br&gt;_extends? Since helma will see and use changes to types while running
&lt;br&gt;already, I guess this should work. Would love to hear from Hannes that
&lt;br&gt;this won't cause lots of expensive cache invalidations that wouldn't
&lt;br&gt;happen otherwise.
&lt;br&gt;&lt;br&gt;Really cool, though. And now that the possibility of controlling
&lt;br&gt;type.properties from script appears, I begin to think of some things I'd
&lt;br&gt;do with it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I was going to reply with my discovery that you can put arbitrary named
&lt;br&gt;values in type.properties, and if you start with _ and they're not magic
&lt;br&gt;helma ones, they won't affect anything. So it'd be easy to specify the
&lt;br&gt;order there--still a bit of repeating oneself, but all in one place at
&lt;br&gt;least. This is a lot more interesting, though, and suggests ways to
&lt;br&gt;optionally put more metadata into the [script version of] type
&lt;br&gt;properties to get better forms for minimal effort.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Breton Slivka
&lt;br&gt;Assistant Multimedia Systems Developer
&lt;br&gt;&lt;br&gt;National Gallery of Victoria
&lt;br&gt;180 St Kilda Road Melbourne Vic 3004 Australia
&lt;br&gt;Telephone: +61 3 8620 2348
&lt;br&gt;Fax: +61 3 8620 2555
&lt;br&gt;ngv.vic.gov.au
&lt;br&gt;&lt;br&gt;Keep informed of the latest NGV exhibitions, special events and programs
&lt;br&gt;at The Ian Potter Centre: NGV Australia and NGV International by
&lt;br&gt;subscribing to NGV@RT, the NGV's free e-newsletter.
&lt;br&gt;&lt;br&gt;DISCLAIMER: This email and any files transmitted with it are
&lt;br&gt;confidential and intended solely for &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user@...&lt;/a&gt;. If you are
&lt;br&gt;not the named addressee you should not disseminate, copy or alter this
&lt;br&gt;email. WARNING: Although National Gallery of Victoria has taken
&lt;br&gt;reasonable precautions to ensure no viruses are present in this email,
&lt;br&gt;the organisation cannot accept responsibility for any loss or damage
&lt;br&gt;arising from the use of this email or attachment.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251657&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18251657.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18251278</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T20:39:25Z</published>
	<updated>2008-07-02T20:39:25Z</updated>
	<author>
		<name>Breton Slivka-2</name>
	</author>
	<content type="html">It's a brand spanking new idea, so nothing is tested yet. Not by me at
&lt;br&gt;least. But it certainly is worth looking more into this. I'll do what I
&lt;br&gt;can. My associate Maks has also taken interest in my invention, so I
&lt;br&gt;imagine he'll be looking into it as well.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251278&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251278&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt;]
&lt;br&gt;On Behalf Of Joshua Paine
&lt;br&gt;Sent: Thursday, 3 July 2008 1:32 PM
&lt;br&gt;To: Helma User Mailing List
&lt;br&gt;Subject: Re: [Helma-user] accessing type.properties
&lt;br&gt;&lt;br&gt;Breton Slivka wrote:
&lt;br&gt;&amp;gt; You know what else you can do? You can set it programatically.
&lt;br&gt;&lt;br&gt;I saw those methods when I was investigating this, but didn't think to
&lt;br&gt;try anything with them. (Maybe 'cause type.properties never really
&lt;br&gt;bothered me?)
&lt;br&gt;&lt;br&gt;&amp;gt; I immediately set out to write an example of replacing type.properties
&lt;br&gt;&lt;br&gt;&amp;gt; with an Object Literal in javascript.
&lt;br&gt;&lt;br&gt;Is this tested and working? Does it work for all properties, even
&lt;br&gt;_extends? Since helma will see and use changes to types while running
&lt;br&gt;already, I guess this should work. Would love to hear from Hannes that
&lt;br&gt;this won't cause lots of expensive cache invalidations that wouldn't
&lt;br&gt;happen otherwise.
&lt;br&gt;&lt;br&gt;Really cool, though. And now that the possibility of controlling
&lt;br&gt;type.properties from script appears, I begin to think of some things I'd
&lt;br&gt;do with it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I was going to reply with my discovery that you can put arbitrary named
&lt;br&gt;values in type.properties, and if you start with _ and they're not magic
&lt;br&gt;helma ones, they won't affect anything. So it'd be easy to specify the
&lt;br&gt;order there--still a bit of repeating oneself, but all in one place at
&lt;br&gt;least. This is a lot more interesting, though, and suggests ways to
&lt;br&gt;optionally put more metadata into the [script version of] type
&lt;br&gt;properties to get better forms for minimal effort.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251278&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Breton Slivka
&lt;br&gt;Assistant Multimedia Systems Developer
&lt;br&gt;&lt;br&gt;National Gallery of Victoria
&lt;br&gt;180 St Kilda Road Melbourne Vic 3004 Australia
&lt;br&gt;Telephone: +61 3 8620 2348 
&lt;br&gt;Fax: +61 3 8620 2555
&lt;br&gt;ngv.vic.gov.au
&lt;br&gt;&lt;br&gt;Keep informed of the latest NGV exhibitions, special events and programs at The Ian Potter Centre: NGV Australia and NGV International by subscribing to NGV@RT, the NGV's free e-newsletter.
&lt;br&gt;&lt;br&gt;DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251278&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user@...&lt;/a&gt;. If you are not the named addressee you should not disseminate, copy or alter this email. WARNING: Although National Gallery of Victoria has taken reasonable precautions to ensure no viruses are present in this email, the organisation cannot accept responsibility for any loss or damage arising from the use of this email or attachment.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251278&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18251278.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18251212</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T20:32:18Z</published>
	<updated>2008-07-02T20:32:18Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">Breton Slivka wrote:
&lt;br&gt;&amp;gt; You know what else you can do? You can set it programatically.
&lt;br&gt;&lt;br&gt;I saw those methods when I was investigating this, but didn't think to 
&lt;br&gt;try anything with them. (Maybe 'cause type.properties never really 
&lt;br&gt;bothered me?)
&lt;br&gt;&lt;br&gt;&amp;gt; I immediately set out to write an example of replacing
&lt;br&gt;&amp;gt; type.properties with an Object Literal in javascript.
&lt;br&gt;&lt;br&gt;Is this tested and working? Does it work for all properties, even 
&lt;br&gt;_extends? Since helma will see and use changes to types while running 
&lt;br&gt;already, I guess this should work. Would love to hear from Hannes that 
&lt;br&gt;this won't cause lots of expensive cache invalidations that wouldn't 
&lt;br&gt;happen otherwise.
&lt;br&gt;&lt;br&gt;Really cool, though. And now that the possibility of controlling 
&lt;br&gt;type.properties from script appears, I begin to think of some things I'd 
&lt;br&gt;do with it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I was going to reply with my discovery that you can put arbitrary named 
&lt;br&gt;values in type.properties, and if you start with _ and they're not magic 
&lt;br&gt;helma ones, they won't affect anything. So it'd be easy to specify the 
&lt;br&gt;order there--still a bit of repeating oneself, but all in one place at 
&lt;br&gt;least. This is a lot more interesting, though, and suggests ways to 
&lt;br&gt;optionally put more metadata into the [script version of] type 
&lt;br&gt;properties to get better forms for minimal effort.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18251212&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18251212.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18250938</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T20:04:18Z</published>
	<updated>2008-07-02T20:04:18Z</updated>
	<author>
		<name>Breton Slivka-2</name>
	</author>
	<content type="html">Okay, to be more serious. I was actually quite stoked by your initial
&lt;br&gt;email. Why? Because I didn't know you could programatically read
&lt;br&gt;type.properties at all! You know what else you can do? You can set it
&lt;br&gt;programatically. I immediately set out to write an example of replacing
&lt;br&gt;type.properties with an Object Literal in javascript. That's as follows:
&lt;br&gt;&lt;br&gt;&lt;br&gt;ArtworkType.js: 
&lt;br&gt;&lt;br&gt;jsonType(
&lt;br&gt;&amp;quot;Artwork&amp;quot;,
&lt;br&gt;{	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;_id&amp;quot; : &amp;quot;ARTWORK_ID&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;_db&amp;quot; : GlobalDatabase, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// a global variable set
&lt;br&gt;earlier.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;artist&amp;quot;: &amp;quot;ARTIST_ID&amp;quot;, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;year&amp;quot;: &amp;quot;YEAR&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;title&amp;quot;: &amp;quot;TITLE
&lt;br&gt;});
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Global.js:
&lt;br&gt;&lt;br&gt;function jsonType(prototypename, json) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var typeproperties =
&lt;br&gt;app.getPrototype(prototypename).getTypeProperties();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var i;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(i in json) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typeproperties.setProperty(i, json[i]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return jsonType; &amp;nbsp;//This enables some nice chaining.
&lt;br&gt;} 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;From here it's not that much of a leap to make the original &amp;quot;json&amp;quot;
&lt;br&gt;object an array like so:
&lt;br&gt;&lt;br&gt;ArtworkType = [	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;_id&amp;quot; : &amp;quot;ARTWORK_ID&amp;quot;},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;_db&amp;quot; : GlobalDatabase}, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// a global variable set
&lt;br&gt;earlier.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;artist&amp;quot;: &amp;quot;ARTIST_ID&amp;quot;}, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;year&amp;quot;: &amp;quot;YEAR&amp;quot;},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;quot;title&amp;quot;: &amp;quot;TITLE}
&lt;br&gt;]
&lt;br&gt;&lt;br&gt;Then modify the jsonType function accordingly:
&lt;br&gt;&lt;br&gt;jsonType(&amp;quot;Artwork&amp;quot;, ArtworkType)
&lt;br&gt;&lt;br&gt;And bam, you've got type.properties as a literal, throw away the
&lt;br&gt;type.properties file.
&lt;br&gt;And not only that, but you can then go on to query the ArtworkType
&lt;br&gt;object to generate forms, in the order that you want, and everything is
&lt;br&gt;specified in only one place.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250938&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250938&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt;]
&lt;br&gt;On Behalf Of Joshua Paine
&lt;br&gt;Sent: Thursday, 3 July 2008 12:56 PM
&lt;br&gt;To: Helma User Mailing List
&lt;br&gt;Subject: Re: [Helma-user] accessing type.properties
&lt;br&gt;&lt;br&gt;Breton Slivka wrote:
&lt;br&gt;&amp;gt; In the spirit of idea generation, here's a very silly solution:
&lt;br&gt;&lt;br&gt;Maybe I should make it an explicit design goal that someone reading the
&lt;br&gt;code should not have to consult wikipedia. :-)
&lt;br&gt;&lt;br&gt;&amp;gt; Once you convert a factoradic into a machine integer, it's *the* most 
&lt;br&gt;&amp;gt; compact way of specifying the order of anything you'll find.
&lt;br&gt;&lt;br&gt;Except not having to specify it seperately at all, which is what being
&lt;br&gt;able to read the type properties in order would get me.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250938&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Breton Slivka
&lt;br&gt;Assistant Multimedia Systems Developer
&lt;br&gt;&lt;br&gt;National Gallery of Victoria
&lt;br&gt;180 St Kilda Road Melbourne Vic 3004 Australia
&lt;br&gt;Telephone: +61 3 8620 2348 
&lt;br&gt;Fax: +61 3 8620 2555
&lt;br&gt;ngv.vic.gov.au
&lt;br&gt;&lt;br&gt;Keep informed of the latest NGV exhibitions, special events and programs at The Ian Potter Centre: NGV Australia and NGV International by subscribing to NGV@RT, the NGV's free e-newsletter.
&lt;br&gt;&lt;br&gt;DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250938&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user@...&lt;/a&gt;. If you are not the named addressee you should not disseminate, copy or alter this email. WARNING: Although National Gallery of Victoria has taken reasonable precautions to ensure no viruses are present in this email, the organisation cannot accept responsibility for any loss or damage arising from the use of this email or attachment.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250938&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18250938.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18250887</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T19:55:39Z</published>
	<updated>2008-07-02T19:55:39Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">Breton Slivka wrote:
&lt;br&gt;&amp;gt; In the spirit of idea generation, here's a very silly solution:
&lt;br&gt;&lt;br&gt;Maybe I should make it an explicit design goal that someone reading the 
&lt;br&gt;code should not have to consult wikipedia. :-)
&lt;br&gt;&lt;br&gt;&amp;gt; Once you convert a factoradic into a machine integer, it's *the* most
&lt;br&gt;&amp;gt; compact way of specifying the order of anything you'll find.
&lt;br&gt;&lt;br&gt;Except not having to specify it seperately at all, which is what being 
&lt;br&gt;able to read the type properties in order would get me.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250887&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18250887.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18250804</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T19:45:56Z</published>
	<updated>2008-07-02T19:45:56Z</updated>
	<author>
		<name>Breton Slivka-2</name>
	</author>
	<content type="html">In the spirit of idea generation, here's a very silly solution:
&lt;br&gt;&lt;br&gt;Sort all the property names alphabetically (or some known other known
&lt;br&gt;sort ordering function),
&lt;br&gt;And then specify the order of the fields as a permutation of that
&lt;br&gt;original order using a factoradic. 
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Factoradic&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Factoradic&lt;/a&gt;&lt;br&gt;&lt;br&gt;Once you convert a factoradic into a machine integer, it's *the* most
&lt;br&gt;compact way of specifying the order of anything you'll find.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250804&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user-bounces@...&lt;/a&gt;]
&lt;br&gt;On Behalf Of Joshua Paine
&lt;br&gt;Sent: Thursday, 3 July 2008 12:20 PM
&lt;br&gt;To: Helma User Mailing List
&lt;br&gt;Subject: Re: [Helma-user] accessing type.properties
&lt;br&gt;&lt;br&gt;Breton Slivka wrote:
&lt;br&gt;&amp;gt; Out of curiosity, why do you need them in the original order?
&lt;br&gt;&lt;br&gt;I'm trying to cut down my boilerplate code and make basic CRUD as quick
&lt;br&gt;to do as reasonably possible. I dislike code generation--boilerplate is
&lt;br&gt;not less boilerplate because a script wrote it for me. Instead I want
&lt;br&gt;generic routines that just work for the basic case and have enough hooks
&lt;br&gt;in them that they can be customized for most other cases. So I've got
&lt;br&gt;code that handles automatically and cleanly one of the vexed issues of
&lt;br&gt;Helma app organization: how do I let MyType be responsible for its own
&lt;br&gt;creation view and controller code and not ParentOfMyType? (Contrast with
&lt;br&gt;the addressbook tutorial, where create.hac is part of Root, not Person,
&lt;br&gt;and though it shares the skin duplicates almost all the logic code of
&lt;br&gt;Person/edit.) And I've got code that automatically handles
&lt;br&gt;updating/creating an object from POST data--works for a very large
&lt;br&gt;subset of cases and easy to override where it wouldn't. And I've got
&lt;br&gt;code that makes building adequately pretty, smart forms that are aware
&lt;br&gt;of the object they belong to very quick. The goal in all these is to
&lt;br&gt;reduce code size *and* occasion for error. (Contrast a form validation
&lt;br&gt;lib I once wrote that used a very compact DSL--so compact I was always
&lt;br&gt;having to look up what I meant.)
&lt;br&gt;&lt;br&gt;Anyway, to go all the way to automated CRUD, I need some way of saying
&lt;br&gt;what order the fields go in. And I'd like to say it without any
&lt;br&gt;duplication of information--i.e., I don't even want to say the names of
&lt;br&gt;all the properties over again. They're all in type.properties already,
&lt;br&gt;so ideally I could just put them there in the order I want them
&lt;br&gt;presented in. And since I want this automation to happen in real time,
&lt;br&gt;not generated, it seems like reading the file and parsing it over again
&lt;br&gt;would be a bit wasteful. I suppose I could cache the result of the
&lt;br&gt;reading/parsing, but that's still more pain than I'd like for this
&lt;br&gt;purpose.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250804&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Breton Slivka
&lt;br&gt;Assistant Multimedia Systems Developer
&lt;br&gt;&lt;br&gt;National Gallery of Victoria
&lt;br&gt;180 St Kilda Road Melbourne Vic 3004 Australia
&lt;br&gt;Telephone: +61 3 8620 2348 
&lt;br&gt;Fax: +61 3 8620 2555
&lt;br&gt;ngv.vic.gov.au
&lt;br&gt;&lt;br&gt;Keep informed of the latest NGV exhibitions, special events and programs at The Ian Potter Centre: NGV Australia and NGV International by subscribing to NGV@RT, the NGV's free e-newsletter.
&lt;br&gt;&lt;br&gt;DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250804&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;helma-user@...&lt;/a&gt;. If you are not the named addressee you should not disseminate, copy or alter this email. WARNING: Although National Gallery of Victoria has taken reasonable precautions to ensure no viruses are present in this email, the organisation cannot accept responsibility for any loss or damage arising from the use of this email or attachment.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250804&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18250804.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18250572</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T19:19:31Z</published>
	<updated>2008-07-02T19:19:31Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">Breton Slivka wrote:
&lt;br&gt;&amp;gt; Out of curiosity, why do you need them in the original order?
&lt;br&gt;&lt;br&gt;I'm trying to cut down my boilerplate code and make basic CRUD as quick 
&lt;br&gt;to do as reasonably possible. I dislike code generation--boilerplate is 
&lt;br&gt;not less boilerplate because a script wrote it for me. Instead I want 
&lt;br&gt;generic routines that just work for the basic case and have enough hooks 
&lt;br&gt;in them that they can be customized for most other cases. So I've got 
&lt;br&gt;code that handles automatically and cleanly one of the vexed issues of 
&lt;br&gt;Helma app organization: how do I let MyType be responsible for its own 
&lt;br&gt;creation view and controller code and not ParentOfMyType? (Contrast with 
&lt;br&gt;the addressbook tutorial, where create.hac is part of Root, not Person, 
&lt;br&gt;and though it shares the skin duplicates almost all the logic code of 
&lt;br&gt;Person/edit.) And I've got code that automatically handles 
&lt;br&gt;updating/creating an object from POST data--works for a very large 
&lt;br&gt;subset of cases and easy to override where it wouldn't. And I've got 
&lt;br&gt;code that makes building adequately pretty, smart forms that are aware 
&lt;br&gt;of the object they belong to very quick. The goal in all these is to 
&lt;br&gt;reduce code size *and* occasion for error. (Contrast a form validation 
&lt;br&gt;lib I once wrote that used a very compact DSL--so compact I was always 
&lt;br&gt;having to look up what I meant.)
&lt;br&gt;&lt;br&gt;Anyway, to go all the way to automated CRUD, I need some way of saying 
&lt;br&gt;what order the fields go in. And I'd like to say it without any 
&lt;br&gt;duplication of information--i.e., I don't even want to say the names of 
&lt;br&gt;all the properties over again. They're all in type.properties already, 
&lt;br&gt;so ideally I could just put them there in the order I want them 
&lt;br&gt;presented in. And since I want this automation to happen in real time, 
&lt;br&gt;not generated, it seems like reading the file and parsing it over again 
&lt;br&gt;would be a bit wasteful. I suppose I could cache the result of the 
&lt;br&gt;reading/parsing, but that's still more pain than I'd like for this purpose.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250572&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18250572.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18250305</id>
	<title>Re: accessing type.properties</title>
	<published>2008-07-02T18:49:08Z</published>
	<updated>2008-07-02T18:49:08Z</updated>
	<author>
		<name>Breton Slivka</name>
	</author>
	<content type="html">Out of curiosity, why do you need them in the original order?
&lt;br&gt;&lt;br&gt;On Thu, Jul 3, 2008 at 3:17 AM, Joshua Paine &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250305&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joshua@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You can get all your object's type's properties like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function getTypeProperties(){
&lt;br&gt;&amp;gt; &amp;nbsp; var hash = {}, name, names, props;
&lt;br&gt;&amp;gt; &amp;nbsp; props = app.getPrototype(this._prototype.toString())
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; .getTypeProperties();
&lt;br&gt;&amp;gt; &amp;nbsp; names = props.propertyNames();
&lt;br&gt;&amp;gt; &amp;nbsp; while(names.hasNext() &amp;&amp; (name = names.next()))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; hash[name] = props.getProperty(name);
&lt;br&gt;&amp;gt; &amp;nbsp; return hash;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Unfortunately the original getTypeProperties returns a hash-like
&lt;br&gt;&amp;gt; structure, so as far as I can tell there's no way to get them in order.
&lt;br&gt;&amp;gt; Does anyone know if there is a way to get the types properties in their
&lt;br&gt;&amp;gt; original order without reading the file?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Helma-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250305&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18250305&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18250305.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18242590</id>
	<title>accessing type.properties</title>
	<published>2008-07-02T10:17:41Z</published>
	<updated>2008-07-02T10:17:41Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">You can get all your object's type's properties like this:
&lt;br&gt;&lt;br&gt;function getTypeProperties(){
&lt;br&gt;&amp;nbsp; &amp;nbsp;var hash = {}, name, names, props;
&lt;br&gt;&amp;nbsp; &amp;nbsp;props = app.getPrototype(this._prototype.toString())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.getTypeProperties();
&lt;br&gt;&amp;nbsp; &amp;nbsp;names = props.propertyNames();
&lt;br&gt;&amp;nbsp; &amp;nbsp;while(names.hasNext() &amp;&amp; (name = names.next()))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;hash[name] = props.getProperty(name);
&lt;br&gt;&amp;nbsp; &amp;nbsp;return hash;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Unfortunately the original getTypeProperties returns a hash-like 
&lt;br&gt;structure, so as far as I can tell there's no way to get them in order. 
&lt;br&gt;Does anyone know if there is a way to get the types properties in their 
&lt;br&gt;original order without reading the file?
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18242590&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/accessing-type.properties-tp18242590p18242590.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18154531</id>
	<title>Helma at the Linuxwochen Linz!</title>
	<published>2008-06-27T05:48:22Z</published>
	<updated>2008-06-27T05:48:22Z</updated>
	<author>
		<name>Anton Pirker</name>
	</author>
	<content type="html">Hi List!
&lt;br&gt;&lt;br&gt;This weekend are the &amp;quot;Linuxwochen&amp;quot; (Linux weeks) in Linz/Austria!
&lt;br&gt;&lt;br&gt;And i will give a small introduction session to Helma.
&lt;br&gt;The presentation will be on Saturday, 28th of June (tomorrow) at 12:00 
&lt;br&gt;at the Kunstuniversität Linz - Saal 1
&lt;br&gt;&lt;br&gt;More information here: 
&lt;br&gt;&lt;a href=&quot;http://linz.linuxwochen.at/programm/2008/helma-javascript-am-server&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://linz.linuxwochen.at/programm/2008/helma-javascript-am-server&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Would be nice if some of you could come!
&lt;br&gt;(even though i will get nervous if i see a lot of faces of people who 
&lt;br&gt;are better in helma than i am :-)
&lt;br&gt;&lt;br&gt;cheers,
&lt;br&gt;Anton
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18154531&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Helma-at-the-Linuxwochen-Linz%21-tp18154531p18154531.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18085635</id>
	<title>Re: Keeping track of changes of HopObject in	onPersist()</title>
	<published>2008-06-24T00:42:28Z</published>
	<updated>2008-06-24T00:42:28Z</updated>
	<author>
		<name>Julian Tree</name>
	</author>
	<content type="html">Thanks Joshua, for the info. I will play with onInit abit more to see &amp;nbsp;
&lt;br&gt;how it behaves.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Jun 16, 2008, at 7:06 PM, Joshua Paine wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 2008-06-16 at 16:18 -0400, Julian Tree wrote:
&lt;br&gt;&amp;gt;&amp;gt; Is there a way to find out if a key/field has being changed in the
&lt;br&gt;&amp;gt;&amp;gt; HopObject?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not in Helma 1.x. I heard there were more events planned for Helma NG,
&lt;br&gt;&amp;gt; so maybe there's an onChange event planned for HopObject properties, &amp;nbsp;
&lt;br&gt;&amp;gt; but
&lt;br&gt;&amp;gt; I don't know.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; if(this.firstName.getOldValue() == this.firstName){
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This syntax would require deep magic, since method getOldValue would
&lt;br&gt;&amp;gt; normally be obliterated as soon as you assigned something to &amp;nbsp;
&lt;br&gt;&amp;gt; firstName.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If HopObject.onInit works as specified, you could add these methods to
&lt;br&gt;&amp;gt; HopObject:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function onInit(){
&lt;br&gt;&amp;gt; &amp;nbsp;var oldVals = {};
&lt;br&gt;&amp;gt; &amp;nbsp;for(let name in this) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;if(!(this[name] instanceof HopObject ||
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this[name] instanceof Function)) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;oldVals[name] = this[name];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;this.cache.oldVals = oldVals;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function oldValue(name){
&lt;br&gt;&amp;gt; &amp;nbsp;if(!this.cache.oldVals) return;
&lt;br&gt;&amp;gt; &amp;nbsp;return this.cache.oldVals[name];
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then in your onPersist function you can write:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if(this.firstName != this.oldValue('firstname')) doSomething();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My sample code will only work for simple properties (not
&lt;br&gt;&amp;gt; HopObjects/collections). And only if onInit works as advertised. I had
&lt;br&gt;&amp;gt; some trouble with it the only time I tried to use it, but that was my
&lt;br&gt;&amp;gt; first app and using the object db. I haven't revisited it since.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Joshua Paine &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18085635&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joshua@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Helma-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18085635&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;/div&gt;&lt;br&gt;Julian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18085635&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Keeping-track-of-changes-of-HopObject-in-onPersist%28%29-tp17872556p18085635.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18071045</id>
	<title>Re: XML Blaster</title>
	<published>2008-06-23T07:57:03Z</published>
	<updated>2008-06-23T07:57:03Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">Never heard of XML Blaster before, but it sure looks neat. Since Rhino
&lt;br&gt;(and hence Helma) can use any Java lib, it should be pretty easy to just
&lt;br&gt;use the Java client API, though odds are you'll want to wrap it up a
&lt;br&gt;bit. There seems to be an example doing just that (though in a GUI
&lt;br&gt;client) at
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.javascript.rhino.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.javascript.rhino.html&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Actually this is kind of exciting.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Joshua Paine &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18071045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joshua@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18071045&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/XML-Blaster-tp18068533p18071045.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18070861</id>
	<title>helma.Html.prototype.radioButton</title>
	<published>2008-06-23T07:48:21Z</published>
	<updated>2008-06-23T07:48:21Z</updated>
	<author>
		<name>Melanie Reichel</name>
	</author>
	<content type="html">Hi,&lt;br&gt;I had a problem with radio buttons. If there is a selectedValue given, the corresponding radio button will not be checked.&lt;br&gt;The following code snippet in the helma.Html.prototype.radioButton function seems to cause the problem (l. 367ff in Html.js from 2007-12-13):&lt;br&gt;



&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (attr.selectedValue != null) {&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (attr.value == attr.selectedValue)&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;


&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attr.checked = &amp;quot;checked&amp;quot;;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;


&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete attr.checked;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete attr.selectedValue;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;


&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br style=&quot;font-family: arial,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: arial,sans-serif;&quot;&gt;Because it works for checkboxes I think this lines of code should be used instead of in the radioButton function &lt;/span&gt;&lt;/span&gt;t&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: arial,sans-serif;&quot;&gt;o solve the problem:&lt;br&gt;


&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (attr.selectedValue != null) {&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (helma.Html.isSelected(param.value, param.selectedValue))&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;


&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attr.checked = &amp;quot;checked&amp;quot;;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;


&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete attr.checked;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete attr.selectedValue;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;


&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;font-family: arial,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;Maybe it helps one of you, too.&lt;br&gt;Melanie&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18070861&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/helma.Html.prototype.radioButton-tp18070861p18070861.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18068533</id>
	<title>XML Blaster</title>
	<published>2008-06-23T05:42:13Z</published>
	<updated>2008-06-23T05:42:13Z</updated>
	<author>
		<name>Axel Zuzek</name>
	</author>
	<content type="html">Hi,&lt;br&gt;does anybody have some experience using Helma with XMLBlaster? &lt;br&gt;(&lt;a href=&quot;http://www.xmlblaster.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xmlblaster.org/&lt;/a&gt;)&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;thx Axel
&lt;br /&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18068533&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/XML-Blaster-tp18068533p18068533.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17994382</id>
	<title>clustering postgresql</title>
	<published>2008-06-18T16:40:13Z</published>
	<updated>2008-06-18T16:40:13Z</updated>
	<author>
		<name>Julian Tree</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;Is there anyone using postgresql with helma? what is general consensus &amp;nbsp;
&lt;br&gt;on mysql vs postgresql? We will be using HelmaSwarm. &amp;nbsp;Should we take &amp;nbsp;
&lt;br&gt;the primary key sequence generation into consideration? &amp;nbsp; is there &amp;nbsp;
&lt;br&gt;there a way to cluster postgresql through jdbc like show here with &amp;nbsp;
&lt;br&gt;mysql? &amp;nbsp;Thanks
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://adele.helma.org/download/helma/documentation/documentation.html#GuideClusteringHelma&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://adele.helma.org/download/helma/documentation/documentation.html#GuideClusteringHelma&lt;/a&gt;&lt;br&gt;&lt;br&gt;At the db-node-level the clustering depends of course on the database &amp;nbsp;
&lt;br&gt;system in use. If you use MySQL, then you can implement a Master/Slave &amp;nbsp;
&lt;br&gt;setup on the db-side, and have the DB-requests being distributed on &amp;nbsp;
&lt;br&gt;these instances via the ReplicationDriver that is part of MySQL's &amp;nbsp;
&lt;br&gt;Connector/J (version 3.1.11 or higher; see &amp;nbsp;&lt;a href=&quot;http://dev.mysql.com/doc/mysql/en/cj-replication-connection.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/mysql/en/cj-replication-connection.html&lt;/a&gt;) 
&lt;br&gt;.
&lt;br&gt;&lt;br&gt;### db.properties ###
&lt;br&gt;antville.url &amp;nbsp; &amp;nbsp; &amp;nbsp;= jdbc:mysql://master,slave1,slave2,slave3/test
&lt;br&gt;antville.driver &amp;nbsp; = com.mysql.jdbc.ReplicationDriver
&lt;br&gt;antville.user &amp;nbsp; &amp;nbsp; = user
&lt;br&gt;antville.password = pass
&lt;br&gt;antville.autoReconnect = true
&lt;br&gt;antville.roundRobinLoadBalance = true
&lt;br&gt;&lt;br&gt;&lt;br&gt;Julian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17994382&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/clustering-postgresql-tp17994382p17994382.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17875217</id>
	<title>Re: Keeping track of changes of HopObjectin	onPersist()</title>
	<published>2008-06-16T16:24:21Z</published>
	<updated>2008-06-16T16:24:21Z</updated>
	<author>
		<name>Maksim Lin for technical support mailling lists</name>
	</author>
	<content type="html">&amp;gt; 
&lt;br&gt;&amp;gt; On Mon, 2008-06-16 at 16:18 -0400, Julian Tree wrote:
&lt;br&gt;&amp;gt; &amp;gt; Is there a way to find out if a key/field has being changed in the 
&lt;br&gt;&amp;gt; &amp;gt; HopObject?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Not in Helma 1.x. I heard there were more events planned for 
&lt;br&gt;&amp;gt; Helma NG, so maybe there's an onChange event planned for 
&lt;br&gt;&amp;gt; HopObject properties, but I don't know.
&lt;br&gt;&lt;br&gt;In the case of helma-ng and using JSAdapter objects this would be
&lt;br&gt;relatively straight forward, since every property change would be
&lt;br&gt;&amp;quot;trapped&amp;quot; by the JSAdapter object's getter function, which could then
&lt;br&gt;easily trigger a call back. &amp;nbsp;However this isn't implemented in the
&lt;br&gt;current version of minibase in the helma-ng sandbox.
&lt;br&gt;&lt;br&gt;Of course this kind of call back should also be possible to add into
&lt;br&gt;Helma 1.x as all HopObject property access would go through the Java
&lt;br&gt;class helma.scripting.rhino.HopObject get() function for &amp;quot;simple js&amp;quot;
&lt;br&gt;properties or jsFunction_get() in the case of HopObject reference
&lt;br&gt;properties. But as you can see, this does involve changes to core Java
&lt;br&gt;code. 
&lt;br&gt;&lt;br&gt;Maks.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17875217&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-Keeping-track-of-changes-of-HopObjectin%09onPersist%28%29-tp17875217p17875217.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17875034</id>
	<title>Re: Keeping track of changes of HopObject	in	onPersist()</title>
	<published>2008-06-16T16:07:59Z</published>
	<updated>2008-06-16T16:07:59Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">On Mon, 2008-06-16 at 19:06 -0400, Joshua Paine wrote:
&lt;br&gt;&amp;gt; if(this.firstName != this.oldValue('firstname')) doSomething();
&lt;br&gt;&lt;br&gt;Er, this.oldValue('firstName')
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Joshua Paine &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17875034&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joshua@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17875034&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Keeping-track-of-changes-of-HopObject-in-onPersist%28%29-tp17872556p17875034.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17875003</id>
	<title>Re: Keeping track of changes of HopObject in	onPersist()</title>
	<published>2008-06-16T16:05:49Z</published>
	<updated>2008-06-16T16:05:49Z</updated>
	<author>
		<name>Joshua Paine</name>
	</author>
	<content type="html">On Mon, 2008-06-16 at 16:18 -0400, Julian Tree wrote:
&lt;br&gt;&amp;gt; Is there a way to find out if a key/field has being changed in the &amp;nbsp;
&lt;br&gt;&amp;gt; HopObject?
&lt;br&gt;&lt;br&gt;Not in Helma 1.x. I heard there were more events planned for Helma NG,
&lt;br&gt;so maybe there's an onChange event planned for HopObject properties, but
&lt;br&gt;I don't know.
&lt;br&gt;&lt;br&gt;&amp;gt; if(this.firstName.getOldValue() == this.firstName){
&lt;br&gt;&lt;br&gt;This syntax would require deep magic, since method getOldValue would
&lt;br&gt;normally be obliterated as soon as you assigned something to firstName.
&lt;br&gt;&lt;br&gt;If HopObject.onInit works as specified, you could add these methods to
&lt;br&gt;HopObject:
&lt;br&gt;&lt;br&gt;function onInit(){
&lt;br&gt;&amp;nbsp; var oldVals = {};
&lt;br&gt;&amp;nbsp; for(let name in this) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; if(!(this[name] instanceof HopObject ||
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this[name] instanceof Function)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; oldVals[name] = this[name];
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; this.cache.oldVals = oldVals;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;function oldValue(name){
&lt;br&gt;&amp;nbsp; if(!this.cache.oldVals) return;
&lt;br&gt;&amp;nbsp; return this.cache.oldVals[name];
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Then in your onPersist function you can write:
&lt;br&gt;&lt;br&gt;if(this.firstName != this.oldValue('firstname')) doSomething();
&lt;br&gt;&lt;br&gt;My sample code will only work for simple properties (not
&lt;br&gt;HopObjects/collections). And only if onInit works as advertised. I had
&lt;br&gt;some trouble with it the only time I tried to use it, but that was my
&lt;br&gt;first app and using the object db. I haven't revisited it since.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Joshua Paine &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17875003&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joshua@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17875003&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Keeping-track-of-changes-of-HopObject-in-onPersist%28%29-tp17872556p17875003.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17872556</id>
	<title>Keeping track of changes of HopObject in onPersist()</title>
	<published>2008-06-16T13:18:49Z</published>
	<updated>2008-06-16T13:18:49Z</updated>
	<author>
		<name>Julian Tree</name>
	</author>
	<content type="html">I find onPerisist trigger very useful.
&lt;br&gt;&lt;br&gt;Is there a way to find out if a key/field has being changed in the &amp;nbsp;
&lt;br&gt;HopObject? &amp;nbsp;Like new value of the field vs old(stored) valued of the &amp;nbsp;
&lt;br&gt;field, like in a stored procedure in at SQL database.
&lt;br&gt;&lt;br&gt;For example something like below would be userful:
&lt;br&gt;&lt;br&gt;this.firstName = req.postParams.firstName;
&lt;br&gt;&lt;br&gt;&lt;br&gt;this.onPersist = function(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(this.firstName.getOldValue() == this.firstName){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //user has changed the value of the firstName
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // do something big
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Julian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-user mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17872556&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---User-f2591.html&quot; embed=&quot;fixTarget[2591]&quot; target=&quot;_top&quot; &gt;Helma - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Keeping-track-of-changes-of-HopObject-in-onPersist%28%29-tp17872556p17872556.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17853286</id>
	<title>[Bug 617] Macros are handled incorrectly in (special) case of Root as prototype extent</title>
	<published>2008-06-15T11:37:21Z</published>
	<updated>2008-06-15T11:37:21Z</updated>
	<author>
		<name>Bugzilla from bugzilla-daemon@helma.at</name>
	</author>
	<content type="html">&lt;a href=&quot;http://helma.org/bugs/show_bug.cgi?id=617&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/bugs/show_bug.cgi?id=617&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------- Comment #4 from &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17853286&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;interface@...&lt;/a&gt; &amp;nbsp;2008-06-15 20:37 -------
&lt;br&gt;After commenting out lines 1093-1110 of helma/framework/core/Skin.java [1] as
&lt;br&gt;you suggested via Jabber I made the following observations:
&lt;br&gt;&lt;br&gt;&amp;nbsp;* A &amp;quot;story&amp;quot; handler in a comment skin (with a comment being an extent of the
&lt;br&gt;story prototype) results in an &amp;quot;unhandled macro error&amp;quot; even with a story object
&lt;br&gt;in the path
&lt;br&gt;&amp;nbsp;* Defining res.handlers.story with the appropriate comment works now
&lt;br&gt;&amp;nbsp;* However, the &amp;quot;root&amp;quot; handler is not resolved correctly anymore at least when
&lt;br&gt;using virtual hosts; &amp;lt;% root.href %&amp;gt; becomes http://[siteName].antville.org
&lt;br&gt;instead of &lt;a href=&quot;http://www.antville.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.antville.org&lt;/a&gt;&amp;nbsp;(Note: root is inherited from the site
&lt;br&gt;prototype in Antville) -- I don't fully understand what's happening here, yet.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;[1]
&lt;br&gt;&lt;a href=&quot;http://dev.helma.org/trac/helma/browser/helma/helma/trunk/src/helma/framework/core/Skin.java#L1093&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.helma.org/trac/helma/browser/helma/helma/trunk/src/helma/framework/core/Skin.java#L1093&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;http://helma.org/bugs/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/bugs/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug, or are watching the assignee.
&lt;br&gt;_______________________________________________
&lt;br&gt;Helma-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17853286&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Helma-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://helma.org/mailman/listinfo/helma-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://helma.org/mailman/listinfo/helma-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Helma---Dev-f2590.html&quot; embed=&quot;fixTarget[2590]&quot; target=&quot;_top&quot; &gt;Helma - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-Bug-617--New%3A-Macros-are-handled-incorrectly-in-%28special%29-case