Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 11895 invoked from network); 14 Jun 2006 16:21:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2006 16:21:44 -0000 Received: (qmail 49642 invoked by uid 500); 14 Jun 2006 16:21:43 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 49555 invoked by uid 500); 14 Jun 2006 16:21:43 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 49540 invoked by uid 99); 14 Jun 2006 16:21:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 09:21:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.72.192.243] (HELO fmmailgate05.web.de) (217.72.192.243) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 09:21:40 -0700 Reveived: from web.de by fmmailgate05.web.de (Postfix) with SMTP id 3D586D232 for ; Wed, 14 Jun 2006 18:21:19 +0200 (CEST) Received: from [62.206.40.35] by freemailng0501.web.de with HTTP; Wed, 14 Jun 2006 18:21:18 +0200 Date: Wed, 14 Jun 2006 18:21:18 +0200 Message-Id: <612226538@web.de> MIME-Version: 1.0 From: Lothar Krenzien To: cayenne-user@incubator.apache.org Subject: IllegalStateException in DataRowStore (thrown by LRUMap) Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 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 Hi, I'm not sure where to post it, but because I get this error by cayenne I try it first here. A few days ago I reported a NPE within the class apache.commons.map.LRUMap wich is used by the class "DataRowStore". After synchronizing all access to the corresponding field the NPE went away but now I have another exception: 2006-06-14 00:26:22,359 [ERROR] BaseDataLoggerGate.com.sunreader.sr2.gate.BaseDataLoggerGate.doPost: > java.lang.IllegalStateException: Entry.next=null, data[removeIndex]==org.objectstyle.cayenne.DataRow@1f1d2ce[values={description=inserted, status=ins}, version=-9223372036854491432, replaces=-9223372036854775808] previous==org.objectstyle.cayenne.DataRow@4bac35[values={tempValue=31.35, efficiencyValue=1.0761, effBlockDataId=24455598, energyValue=8.16, efficiencyBlockId=767, status=ins, irradiationValue=673.98, earnings=4.4064, importEffBlockDataId=1042169, dataDate=Mon Jun 12 11:30:00 CEST 2006, co2Saving=6.12}, version=-9223372036854494908, replaces=-9223372036854495032] key= value=org.objectstyle.cayenne.DataRow@1a87890[values={plantId=923, newSerialNumber=null, commChannelType=analog, loggerProductId=1, loggerId=923, serialNumber=DL-NE101-01331, commChannelManufacturer=Conergy}, version=-9223372036854491407, replaces=-9223372036854775808] size=10000 maxSize=10000 Please check that your keys are immutable, and that you have used synchronization properly. If so, then please report this to commons-dev@jakarta.apache.org as a bug. at org.apache.commons.collections.map.LRUMap.reuseMapping(LRUMap.java:300) at org.apache.commons.collections.map.LRUMap.addMapping(LRUMap.java:266) at org.apache.commons.collections.map.AbstractHashedMap.put(AbstractHashedMap.java:283) at org.objectstyle.cayenne.access.DataRowStore.processUpdatedSnapshots(DataRowStore.java:621) at org.objectstyle.cayenne.access.DataRowStore.processSnapshotChanges(DataRowStore.java:575) at org.objectstyle.cayenne.access.DataRowStore.snapshotsUpdatedForObjects(DataRowStore.java:314) at org.objectstyle.cayenne.access.ObjectResolver.objectsFromDataRows(ObjectResolver.java:159) at org.objectstyle.cayenne.access.ObjectResolver.synchronizedObjectsFromDataRows(ObjectResolver.java:134) at org.objectstyle.cayenne.access.DataDomainQueryAction.interceptObjectConversion(DataDomainQueryAction.java:375) at org.objectstyle.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:151) at org.objectstyle.cayenne.access.DataDomain.onQuery(DataDomain.java:765) at org.objectstyle.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:253) at org.objectstyle.cayenne.access.DataContextQueryAction.execute(DataContextQueryAction.java:90) at org.objectstyle.cayenne.access.DataContext.onQuery(DataContext.java:1422) at org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1411) at com.conergy.sunreader.sr2.back.dao.ProductDAO.isLoggerAlreadyAvailable(Unknown Source) I't would be glad to get an answer as far as possible. Thanks, Lothar ______________________________________________________________________ XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club! Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130