Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 82650 invoked from network); 9 Aug 2005 23:16:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2005 23:16:51 -0000 Received: (qmail 20464 invoked by uid 500); 9 Aug 2005 23:16:41 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 20406 invoked by uid 500); 9 Aug 2005 23:16:41 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 20363 invoked by uid 99); 9 Aug 2005 23:16:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2005 16:16:41 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.73.178.197] (HELO web60614.mail.yahoo.com) (209.73.178.197) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 09 Aug 2005 16:17:01 -0700 Received: (qmail 95233 invoked by uid 60001); 9 Aug 2005 23:16:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=oy/3oVDMFn1Z79/S5CeXVN0fVTaWfXaDWaLibcoGhgu0vON8irkLOizQpibxKn9VYOKELjmqIQ5lvgQMN3LlOQXeDRfL7OtQBaoPUj7G1sNd1mDKDTdmQW5awUbOCIJ4Wd/VYhcRKQcnnpKvPWrH2IaZJ3G5Y4bnixodNVkwzNg= ; Message-ID: <20050809231637.95231.qmail@web60614.mail.yahoo.com> Received: from [216.80.124.72] by web60614.mail.yahoo.com via HTTP; Tue, 09 Aug 2005 16:16:37 PDT Date: Tue, 9 Aug 2005 16:16:37 -0700 (PDT) From: footh Subject: Re: Strange error with try-catch in finally clause. To: users@cocoon.apache.org In-Reply-To: <42F92F60.5050602@dslextreme.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Yea, I believe that would bomb. I'm using javaflow, which is a Java class with methods that are called from the sitemap. It wouldn't even compile if I tried that. I believe the framework has a problem with a java flow having a try-catch within a finally clause. --- Ralph Goers wrote: > How can that work? It isn't valid Java. > > Ralph > > Nick Goupinets wrote: > > > Hi footh, > > > > You need to use JavaScript style of exception > handling in the flow, > > unless you are using Java interpreter > > > > Try this: > > > > if (conn != null) > > try { conn.close(); } catch (e) { print(e) } > > > > footh wrote: > > > >> In a javaflow, I open a db connection. Then in a > >> finally clause, I have this code: > >> > >> if (conn != null) > >> try { conn.close(); } catch (Exception e) { } > >> > >> This causes this error when I try to access any > page: > >> > >> Instruction ' 223: ret[169](2) 8' is part of more > than > >> one subroutine (or of the top level and a > subroutine). > >> > >> I tested to see if it was only a problem with the > conn > >> object by putting this line in the clause: > >> > >> try { System.out.println("Hi!"); } catch > (Exception > >> e) { } > >> > >> Sure enough, I get the same error. The function > in > >> question is never called either, so I assume it > has to > >> do with the javaflow interpreter. I guess there > is no > >> way to put a try-catch within a finally clause? > >> > >> > >> > __________________________________________________ > >> Do You Yahoo!? > >> Tired of spam? Yahoo! Mail has the best spam > protection around > >> http://mail.yahoo.com > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: > users-unsubscribe@cocoon.apache.org > >> For additional commands, e-mail: > users-help@cocoon.apache.org > >> > >> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > users-unsubscribe@cocoon.apache.org > > For additional commands, e-mail: > users-help@cocoon.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: > users-help@cocoon.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org