Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 95028 invoked from network); 9 Nov 2004 11:08:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Nov 2004 11:08:55 -0000 Received: (qmail 814 invoked by uid 500); 9 Nov 2004 11:08:40 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 404 invoked by uid 500); 9 Nov 2004 11:08:35 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 383 invoked by uid 99); 9 Nov 2004 11:08:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [193.201.200.196] (HELO grover.luminas.co.uk) (193.201.200.196) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 09 Nov 2004 03:08:33 -0800 Received: from localhost (grover.luminas.co.uk [127.0.0.1]) by grover.luminas.co.uk (Postfix) with ESMTP id E7FD79560F for ; Tue, 9 Nov 2004 11:08:30 +0000 (GMT) Received: from grover.luminas.co.uk ([127.0.0.1]) by localhost (grover [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09777-08 for ; Tue, 9 Nov 2004 11:08:30 +0000 (GMT) Received: from [192.168.0.5] (media.demon.co.uk [80.177.14.141]) by grover.luminas.co.uk (Postfix) with ESMTP id 619619560C for ; Tue, 9 Nov 2004 11:08:30 +0000 (GMT) Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: dev@cocoon.apache.org From: Jeremy Quinn Subject: Rhino Usage Warning Date: Tue, 9 Nov 2004 11:08:29 +0000 X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at luminas.co.uk X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi All, I am getting this message appearing in my console for Cocoon 2.2.0-dev : "file:/Users/jerm/Development/Checkouts/Apache/Cocoon/trunk/build/ webapp/samples/blocks/querybean/flow/QueryHistory.js", line 25: RHINO USAGE WARNING: Missed Context.javaToJS() conversion: Rhino runtime detected object [org.apache.cocoon.bean.query.SimpleLuceneQueryBean@bd9c37] of class java.util.ArrayList where it expected String, Number, Boolean or Scriptable instance. Please check your code for missig Context.javaToJS() call. The code in question is this: 21: // QueryHistory Object Constructor 22: function QueryHistory(attribute_name) { 23: try { 24: this._history = cocoon.session.getAttribute(attribute_name); 25: if (this._history == null) { 26: this._history = new ArrayList(); 27: cocoon.session.setAttribute(attribute_name, this._history); 28: } 29: } catch (error) { 30: cocoon.log.error(error); 31: } 32: } The history list is an ArrayList of SimpleLuceneQueryBean(s). Am I doing something wrong, or is this an issue with the new Rhino FlowScript? Thanks regards Jeremy -------------------------------------------------------- If email from this address is not signed IT IS NOT FROM ME Always check the label, folks !!!!! --------------------------------------------------------