Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B2432A0F for ; Tue, 3 May 2011 21:52:27 +0000 (UTC) Received: (qmail 66620 invoked by uid 500); 3 May 2011 21:52:26 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 66377 invoked by uid 500); 3 May 2011 21:52:25 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 66369 invoked by uid 99); 3 May 2011 21:52:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 21:52:25 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.17.10] (HELO moutng.kundenserver.de) (212.227.17.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 21:52:18 +0000 Received: from ip-109-84-48-213.web.vodafone.de (ip-109-84-48-213.web.vodafone.de [109.84.48.213]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0Lby3Y-1PsBd12IpI-00jlKX; Tue, 03 May 2011 23:51:56 +0200 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: [Jelly] XML ForEach tag hangs From: Paul Libbrecht In-Reply-To: Date: Tue, 3 May 2011 23:51:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7889DEB2-677D-41C6-AC4A-ABE1978BC287@hoplahup.net> References: To: Commons Users List X-Mailer: Apple Mail (2.1078) X-Provags-ID: V02:K0:gCXRFx3LPoWJjNylsXoCs4n+ciFaQlzC9MQGU2WwWEu CyTZwpC0mc2yf0ie0oo5h2DQVsftESvx0JaWuytCB5NSn5xMiW IYF3qP9N8tXWAadcpVh88wo7bgabq0wqRE135zTCSJr6X53HMu oOMCQsMaDZ840oBThSDsMvB2pjNT3KpfMP+nQqgvyLlKSNEAjN iDe8pyEWSi1D40zvWLtnT8nn14uhsYxVZAnu0mNIRY= Martin, your x namespace prefix is not properly bound. Somewhere up in your script, you should have=20 xmlns:x=3D"jelly:xml" hope it helps. paul Le 3 mai 2011 =E0 22:59, Martin Gainty a =E9crit : >=20 > org.apache.commons.jelly.JellyException: = file:/C:/maven-plugin/jelly/commons-jel > ly-1.0-src/test-classes/org/apache/commons/jelly/suite.jelly:29:43: = > This tag does not understand the 'select' attribute > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:232) > at = org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) > at = org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59 > ) > at org.apache.commons.jelly.TestJelly.main(TestJelly.java:32) >=20 > my ForEach tag doesnt support 'select' attribute > any idea where i can obtain the ForEach Tag with select attribute = would be appreciated! >=20 > regarding parsers: > $JELLY_HOME>grep -S -l ".xerces" *.java > ----------- > $JELLY_HOME>grep -S -l ".dom4j" *.java > = .\commons-jelly-1.0-src\src\java\org\apache\commons\jelly\XMLOutput.java > = .\commons-jelly-1.0-src\src\java\org\apache\commons\jelly\expression\xpath= \XPath > Expression.java > = .\commons-jelly-1.0-src\src\java\org\apache\commons\jelly\tags\core\FileTa= g.java > = .\commons-jelly-1.0-src\src\java\org\apache\commons\jelly\xpath\XPathCompa= rator.java > = .\commons-jelly-1.0-src\src\test\org\apache\commons\jelly\core\TestFileTag= .java > = .\commons-jelly-1.0-src\src\test\org\apache\commons\jelly\test\xml\TestCDa= ta.java >=20 > looking good for dom4j (working)=20 > Martin Gainty=20 > ______________________________________________=20 > Jogi =E9s Bizalmass=E1gi kinyilatkoztat=E1s/Verzicht und = Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit=E9 > Ez az > =FCzenet bizalmas. Ha nem =F6n az akinek sz=E1nva volt, akkor k=E9rj=FC= k, hogy > jelentse azt nek=FCnk vissza. Semmif=E9le tov=E1bb=EDt=E1sa vagy = m=E1solat=E1nak > k=E9sz=EDt=E9se nem megengedett. Ez az =FCzenet csak ismeret cser=E9t = szolg=E1l =E9s > semmif=E9le jogi alkalmazhat=F3s=E1ga sincs. Mivel az electronikus = =FCzenetek > k=F6nnyen megv=E1ltoztathat=F3ak, ez=E9rt minket semmi felel=F6s=E9g = nem terhelhet > ezen =FCzenet tartalma miatt. >=20 > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene = Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede = unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. = Diese Nachricht dient lediglich dem Austausch von Informationen und = entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten = Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt = uebernehmen. > Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous = n'=EAtes pas le destinataire pr=E9vu, nous te demandons avec bont=E9 que = pour satisfaire informez l'exp=E9diteur. N'importe quelle diffusion non = autoris=E9e ou la copie de ceci est interdite. Ce message sert =E0 = l'information seulement et n'aura pas n'importe quel effet l=E9galement = obligatoire. =C9tant donn=E9 que les email peuvent facilement =EAtre = sujets =E0 la manipulation, nous ne pouvons accepter aucune = responsabilit=E9 pour le contenu fourni. >=20 >=20 >=20 >=20 >> From: mgainty@hotmail.com >> To: user@commons.apache.org >> Subject: RE: [Jelly] XML ForEach tag hangs >> Date: Fri, 29 Apr 2011 21:06:27 -0400 >>=20 >>=20 >> Czaba >>=20 >> which xml-parser are you implementing? >> what is the version of which xml-parser you are implementing? >>=20 >> Martin=20 >> ______________________________________________=20 >> Jogi =E9s Bizalmass=E1gi kinyilatkoztat=E1s/Verzicht und = Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit=E9 >> Ez az >> =FCzenet bizalmas. Ha nem =F6n az akinek sz=E1nva volt, akkor = k=E9rj=FCk, hogy >> jelentse azt nek=FCnk vissza. Semmif=E9le tov=E1bb=EDt=E1sa vagy = m=E1solat=E1nak >> k=E9sz=EDt=E9se nem megengedett. Ez az =FCzenet csak ismeret cser=E9t = szolg=E1l =E9s >> semmif=E9le jogi alkalmazhat=F3s=E1ga sincs. Mivel az electronikus = =FCzenetek >> k=F6nnyen megv=E1ltoztathat=F3ak, ez=E9rt minket semmi felel=F6s=E9g = nem terhelhet >> ezen =FCzenet tartalma miatt. >>=20 >> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene = Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede = unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. = Diese Nachricht dient lediglich dem Austausch von Informationen und = entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten = Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt = uebernehmen. >> Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous = n'=EAtes pas le destinataire pr=E9vu, nous te demandons avec bont=E9 que = pour satisfaire informez l'exp=E9diteur. N'importe quelle diffusion non = autoris=E9e ou la copie de ceci est interdite. Ce message sert =E0 = l'information seulement et n'aura pas n'importe quel effet l=E9galement = obligatoire. =C9tant donn=E9 que les email peuvent facilement =EAtre = sujets =E0 la manipulation, nous ne pouvons accepter aucune = responsabilit=E9 pour le contenu fourni. >>=20 >>=20 >>=20 >>=20 >>> Date: Sat, 30 Apr 2011 03:02:09 +0200 >>> Subject: [Jelly] XML ForEach tag hangs >>> From: csabeee@gmail.com >>> To: user@commons.apache.org >>>=20 >>> Hello there! >>>=20 >>> I'm trying to use the ForEach tag in Jelly's XML tag library. The >>> following script works fine in a standard Java console application: >>>=20 >>> >>> >>> >>> >>> >>> >>> >>>=20 >>> >>> ... >>> >>>=20 >>> However, if using Jelly on an application server, from inside an EJB >>> container (session bean), running the script above hangs, and 100% = CPU >>> utilisation comes. I realized while debugging that NodeComparator >>> class' getDepth method gets into an infinite loop and never returns. >>>=20 >>> If I remove two "b" elements from the xml fragment above (so only = one >>> remains), it works fine. It also works if I change the second part = of >>> the above script to the following: >>>=20 >>> >>> >>> ... >>> >>> >>>=20 >>> Does anyone have any idea why is that happening? Any help is much = appreciated. >>>=20 >>> Thank you: >>> Csaba >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >>> For additional commands, e-mail: user-help@commons.apache.org >>>=20 >> =20 > =20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org