Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 3500 invoked from network); 13 Mar 2006 15:18:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Mar 2006 15:18:10 -0000 Received: (qmail 28055 invoked by uid 500); 13 Mar 2006 15:18:07 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 27970 invoked by uid 500); 13 Mar 2006 15:18:07 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 27959 invoked by uid 99); 13 Mar 2006 15:18:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 07:18:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 07:18:06 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 710F96ACAE for ; Mon, 13 Mar 2006 15:17:45 +0000 (GMT) Message-ID: <1137818247.1142263065460.JavaMail.jira@ajax> Date: Mon, 13 Mar 2006 15:17:45 +0000 (GMT) From: "Simone Gianni (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Commented: (COCOON-1790) VerifyException "Attempt to split long or double on the stack" in javaflow In-Reply-To: <817548483.1141396962267.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1790?page=comments#action_12370191 ] Simone Gianni commented on COCOON-1790: --------------------------------------- Trying to understand what happens here (read: studying BCEL and BRAKES) i noticed that all "new" instructions are removed (in the rewrite method). I suppose they are moved somewhere somehow, and maybe that's the point where a check on the argument size is probabily missing, but i can't find where this happens. > VerifyException "Attempt to split long or double on the stack" in javaflow > -------------------------------------------------------------------------- > > Key: COCOON-1790 > URL: http://issues.apache.org/jira/browse/COCOON-1790 > Project: Cocoon > Type: Bug > Components: Blocks: Java Flow > Versions: 2.1.9-dev (current SVN) > Reporter: Simone Gianni > > When writing code like this : > long time = System.currentTimeMillis(); > Date date = new Date(time); > the given exception is thrown. It's a validation exception. This happens when a long (maybe also a double?) is used in a constructor (not in a function call). The following code is a workaround : > Date date = new Date(); > date.setTime(time); > but can be used only when the object we are instantiating have a getter as an alternative to the constructor parameter. > I'm having this problem with a fresh (yesterday) checkout of cocoon 2.1.X branch. Don't know yet if this apply to other versions of cocoon. I'm using Blackdown-1.4.2-02 on a 2.6.12-gentoo-r6 linux machine. > Googling around it seems that this exception is raised when the data type in a pop2 JVM instruction is not correct. I think this is one of the side-effects of the javaflow BCEL manipulations, but I'm not skilled enought on BCEL and similar stuff to even think of a possible solution. > The exception is raised loading the javaflow class, so it will prevent the entire flow (and not only the affected method) to be used. Also, the exception will just tell you that the class is invalid, and not point you to the place in code where this long is used in a constructor, so you'll have to spot it by hand. > I can produce a test case to try to narrow it down, but the given 3 lines of code are enought to produce the error in my javaflows. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira