From batik-users-return-8262-apmail-xmlgraphics-batik-users-archive=xmlgraphics.apache.org@xmlgraphics.apache.org Wed Aug 10 18:57:00 2005 Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 7966 invoked from network); 10 Aug 2005 18:57:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2005 18:57:00 -0000 Received: (qmail 85772 invoked by uid 500); 10 Aug 2005 18:56:59 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 85747 invoked by uid 500); 10 Aug 2005 18:56:58 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 85731 invoked by uid 99); 10 Aug 2005 18:56:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 11:56:58 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Ted.Clement@apcc.com designates 159.215.21.91 as permitted sender) Received: from [159.215.21.91] (HELO nammta.apcc.com) (159.215.21.91) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 11:57:19 -0700 Received: from ns-monkfish.ams.apc.com ([159.215.21.14]) by nammta.apcc.com (Lotus Domino Release 6.0.3) with ESMTP id 2005081014565516-207623 ; Wed, 10 Aug 2005 14:56:55 -0400 Subject: RMI: getElementByID returns null To: X-Mailer: Lotus Notes Release 6.5.2 June 01, 2004 Message-ID: From: Ted.Clement@apcc.com Date: Wed, 10 Aug 2005 14:56:53 -0400 MIME-Version: 1.0 X-MIMETrack: Serialize by Router on Monkfish/NAM/APCC(Release 6.0.3|September 26, 2003) at 08/10/2005 02:56:55 PM, Itemize by SMTP Server on NAMMTA/APCMTA(Release 6.0.3|September 26, 2003) at 08/10/2005 02:56:55 PM, Serialize by Router on NAMMTA/APCMTA(Release 6.0.3|September 26, 2003) at 08/10/2005 02:56:56 PM, Serialize complete at 08/10/2005 02:56:56 PM Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N We recently migrated from Batik 1.5 to v1.6 and noticed that the SVGDocument.getElementById() method was broken. We are using RMI to stream the SVGDocument from a server to one (or more) clients. A little research showed that the elementsByID list is marked "transient" in the AbstractDocument: protected transient Map elementsById thus preventing RMI from serializing it. The client's copy of the SVGDocument has a "null" elementsById list and therefore all calls to getElementByID return "null". I was wondering what the reason was for marking this component "transient" and if, perhaps there should be a "reset() or rebuild()" method to rebuild non-serialized components (by walking the tree and rebuilding it). (I assume that this list is for convenience / optimization, and therefore wouldn't need to be kept in sync with the "backend" version.) Thanks, Ted --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org