Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 74982 invoked from network); 26 Sep 2006 16:17:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 16:17:10 -0000 Received: (qmail 28395 invoked by uid 500); 26 Sep 2006 16:17:10 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 28388 invoked by uid 500); 26 Sep 2006 16:17:10 -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 28379 invoked by uid 99); 26 Sep 2006 16:17:09 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 09:17:09 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=lkrenzien@web.de; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain web.de from 217.72.192.248 cause and error) Received: from [217.72.192.248] ([217.72.192.248:48918] helo=fmmailgate07.web.de) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id CB/B0-13661-18259154 for ; Tue, 26 Sep 2006 09:17:07 -0700 Reveived: from web.de by fmmailgate07.web.de (Postfix) with SMTP id 2AB14414 for ; Tue, 26 Sep 2006 18:17:02 +0200 (CEST) Received: from [62.206.40.35] by freemailng6201.web.de with HTTP; Tue, 26 Sep 2006 18:17:01 +0200 Date: Tue, 26 Sep 2006 18:17:01 +0200 Message-Id: <134328266@web.de> MIME-Version: 1.0 From: Lothar Krenzien To: cayenne-user@incubator.apache.org Subject: Re: AW: NullPointerException when using shared cache Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Cool ;) We had the same problem with syncronization in the past. After we turned i= t off the problems went away. So because we couldn't reproduce it and the = error occured "only" 2-3 time per week we decided to live without syncroni= zation.=20 Now I'm very interested in the testing results of the other users. Lothar > -----Urspr=FCngliche Nachricht----- > Von: cayenne-user@incubator.apache.org > Gesendet: 26.09.06 17:34:38 > An: cayenne-user@incubator.apache.org > Betreff: Re: AW: NullPointerException when using shared cache > Cool. I'll check it to trunk and eventually - 2.0 branch. >=20 > Thanks > Andrus >=20 >=20 > On Sep 26, 2006, at 11:23 AM, Ayhan Kondoz wrote: > > Hello Andrus, > > > > the new patch seems to be working. It has been 24 hours now that =20 > > the new patched jar file is beeing used in my productive system and =20 > > no NullPointerException. I think the bug can be marked resolved and =20 > > closed. > > > > Thanx > > Ayhan Kondoz > > > >> -----Urspr=FCngliche Nachricht----- > >> Von: Ayhan Kondoz [mailto:Ayhan.Kondoz@freenet-ag.de] > >> Gesendet: Montag, 25. September 2006 17:13 > >> An: cayenne-user@incubator.apache.org > >> Betreff: AW: NullPointerException when using shared cache > >> > >> Hello Andrus, > >> > >> i installed the new jar in out production system and everything =20 > >> seems to > >> work fine so far. It's online for 6 hours and the error didn't =20 > >> happen. > >> Before the patch it took up to 5-6 hours until the error occurred the= > >> first time. > >> > >> I will report again tomorrow. > >> > >> Thanx so far > >> > >> Ayhan Kondoz > >> > >>> -----Urspr=FCngliche Nachricht----- > >>> Von: Andrus Adamchik [mailto:andrus@objectstyle.org] > >>> Gesendet: Montag, 25. September 2006 02:32 > >>> An: cayenne-user@incubator.apache.org > >>> Betreff: Re: NullPointerException when using shared cache > >>> > >>> Ayhan, Wolfgang and others who have this synchronization issue - I > >>> posted a patched version of 1.2.1 Cayenne: > >>> > >>> http://dev.objectstyle.org/~andrus/cayenne-1.2.1-CAY-565-=20 > >>> patched.tar.gz > >>> > >>> I would appreciate very much if you could test it in your =20 > >>> environment > >>> and let me know whether it fixes the problem. I posted more comments= > >>> and the exact patches that were applies on Jira: > >>> > >>> http://issues.apache.org/cayenne/browse/CAY-565 > >>> > >>> Thanks > >>> Andrus > >>> > >>> > >>> On Sep 12, 2006, at 9:35 AM, Andrus Adamchik wrote: > >>> > >>>> CAY-565 was closed as "Can not reproduce", so there was no fix. I > >>>> reopened this issue, bumping the priority to "Critical". I will add= > >>>> synchronization, even though I can't test it. > >>>> > >>>> Andrus > >>>> > >>>> > >>>> On Sep 12, 2006, at 5:51 AM, Ayhan Kondoz wrote: > >>>>> Hello, > >>>>> > >>>>> > >>>>> > >>>>> I am getting NullPointerExceptions when I am trying to use the > >>>>> shared caching feature of cayenne. > >>>>> > >>>>> > >>>>> > >>>>> I have 3 servers. Each server has it's own tomcat / axis > >>>>> webservice and I have an avarage access of about 4 - 5 connections= > >>>>> per second. Each connection results in about 3 - 4 select queries > >>>>> and about 20% of the connections result in an additional 2 - 3 > >>>>> insert / update queries. So the servers are working at pretty > >>>>> heavy load. > >>>>> > >>>>> > >>>>> > >>>>> Yesterday I implemented the usage of cayenne's (remote) shared > >>>>> caching feature using JavaGroups and at first everything seemed to= > >>>>> work just fine. But after about 1 hour, one of the servers started= > >>>>> to produce NullPointerExceptions on every connection. i found this= > >>>>> bug ( http://issues.apache.org/cayenne/browse/CAY-565 ) which > >>>>> seems to address my problem but the status is resolved=3F! > >>>>> > >>>>> > >>>>> > >>>>> i tried cayenne 1.2 and 1.2B1 and in both cases got this > >>>>> exceptions but only if shared caching is activated. When I > >>>>> deactivate caching everything seems to work fine again. > >>>>> > >>>>> It seems that there is a problem with the syncronization. This > >>>>> error occursed when under heavy load and a lot of threads are > >>>>> active at the same time. But if it is really a syncronization > >>>>> problem the same error could occure on every system (even if much > >>>>> more unlikely) even if not under heavy load. > >>>>> > >>>>> > >>>>> > >>>>> Cheers > >>>>> > >>>>> Ayhan Kondoz > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> The exception when using common-collections 3.2 > >>>>> > >>>>> > >>>>> > >>>>> [11.09.06 21:30:32] (ERROR): Entry.next=3Dnull, data[removeIndex] > >>>>> =3D >>>>> id=3D534080>=3Dorg.objectstyle.cayenne.DataRow@fda158[values=3D > >>>>> {suspended=3Dfalse, login=3Dchristian.hantke1, rec=5Fcreate=3DTue May 02 > >>>>> 00:00:00 CEST 2006, rec=5Fchange=3DTue May 02 20:18:34 CEST 2006, > >>>>> last=5Fupdated=3DMon Sep 11 21:28:26 CEST 2006, cid=3D709779451, > >>>>> id=3D534080, mandant=5Fid=3D3}, version=3D-9223372036854422785, > >>>>> replaces=3D-9223372036854775808] previous=3D >>>>> d=3D534080>=3Dorg.objectstyle.cayenne.DataRow@fda158[values=3D > >>>>> {suspended=3Dfalse, login=3Dchristian.hantke1, rec=5Fcreate=3DTue May 02 > >>>>> 00:00:00 CEST 2006, rec=5Fchange=3DTue May 02 20:18:34 CEST 2006, > >>>>> last=5Fupdated=3DMon Sep 11 21:28:26 CEST 2006, cid=3D709779451, > >>>>> id=3D534080, mandant=5Fid=3D3}, version=3D-9223372036854422785, > >>>>> replaces=3D-9223372036854775808] key=3D >>>>> > >>>>> jectId:Customer, id=3D364956> > >>>>> value=3Dorg.objectstyle.cayenne.DataRow@426844[values=3D > >>>>> {suspended=3Dfalse, login=3Dnadda89, rec=5Fcreate=3DThu Mar 30 00:00:00 > >>>>> CEST 2006, rec=5Fchange=3DThu Mar 30 22:19:00 CEST 2006, > >>>>> last=5Fupdated=3DFri Aug 04 16:09:35 CEST 2006, cid=3D705229711, > >>>>> id=3D364956, mandant=5Fid=3D3}, version=3D-9223372036854407476, > >>>>> replaces=3D-9223372036854775808] size=3D10000 maxSize=3D10000 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. > >>>>> > >>>>> java.lang.IllegalStateException: Entry.next=3Dnull, data=20 > >>>>> [removeIndex] > >>>>> =3D >>>>> id=3D534080>=3Dorg.objectstyle.cayenne.DataRow@fda158[values=3D > >>>>> {suspended=3Dfalse, login=3Dchristian.hantke1, rec=5Fcreate=3DTue May 02 > >>>>> 00:00:00 CEST 2006, rec=5Fchange=3DTue May 02 20:18:34 CEST 2006, > >>>>> last=5Fupdated=3DMon Sep 11 21:28:26 CEST 2006, cid=3D709779451, > >>>>> id=3D534080, mandant=5Fid=3D3}, version=3D-9223372036854422785, > >>>>> replaces=3D-9223372036854775808] previous=3D >>>>> id=3D534080>=3Dorg.objectstyle.cayenne.DataRow@fda158[values=3D > >>>>> {suspended=3Dfalse, login=3Dchristian.hantke1, rec=5Fcreate=3DTue May 02 > >>>>> 00:00:00 CEST 20 06, rec=5Fchange=3DTue May 02 20:18:34 CEST 2006, > >>>>> last=5Fupdated=3DMon Sep 11 21:28:26 CEST 2006, cid=3D709779451, > >>>>> id=3D534080, mandant=5Fid=3D3}, version=3D-9223372036854422785, > >>>>> replaces=3D-9223372036854775808] key=3D > >>>>> value=3Dorg.objectstyle.cayenne.DataRow@426844[values=3D > >>>>> {suspended=3Dfalse, login=3Dnadda89, rec=5Fcreate=3DThu Mar 30 00:00:00 > >>>>> CEST 2006, rec=5Fchange=3DThu Mar 30 22:19:00 CEST 2006, > >>>>> last=5Fupdated=3DFri Aug 04 16:09:35 CEST 2006, cid=3D705229711, > >>>>> id=3D364956, mandant=5Fid=3D3}, version=3D-9223372036854407476, > >>>>> replaces=3D-9223372036854775808] size=3D10000 maxSize=3D10000 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 =20 > >>>>> org.apache.commons.collections.map.AbstractHashedMap.put > >>>>> (AbstractHashedMap.java:283) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataRowStore.processUpdatedSnapshot= =20 > >>>>> s > >>>>> (DataRowStore.java:537) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataRowStore.processSnapshotChanges= > >>>>> (DataRowStore.java:496) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.ObjectStore.snapshotsUpdatedForObje= =20 > >>>>> cts > >>>>> (ObjectStore.java:559) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.ObjectResolver.objectsFromDataRows > >>>>> (ObjectResolver.java:162) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.ObjectResolver.synchronizedObjectsF= =20 > >>>>> rom > >>>>> DataRows(ObjectResolver.java:137) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataDomainQueryAction.interceptObje= =20 > >>>>> ctC > >>>>> onversion(DataDomainQueryAction.java:363) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataDomainQueryAction.execute > >>>>> (DataDomainQueryAction.java:151) > >>>>> > >>>>> at org.objectstyle.cayenne.access.DataDomain.onQuery > >>>>> (DataDomain.java:715) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.util.ObjectContextQueryAction.runQuery > >>>>> (ObjectContextQueryAction.java:249) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataContextQueryAction.execute > >>>>> (DataContextQueryAction.java:90) > >>>>> > >>>>> at org.objectstyle.cayenne.access.DataContext.onQuery > >>>>> (DataContext.java:1320) > >>>>> > >>>>> at org.objectstyle.cayenne.access.DataContext.performQuery= > >>>>> (DataContext.java:1309) > >>>>> > >>>>> > >>>>> > >>>>> The exception when using common-collections 3.1 > >>>>> > >>>>> > >>>>> > >>>>> [11.09.06 15:29:13] (ERROR): > >>>>> > >>>>> java.lang.NullPointerException > >>>>> > >>>>> at org.apache.commons.collections.map.LRUMap.reuseMapping > >>>>> (LRUMap.java:272) > >>>>> > >>>>> at org.apache.commons.collections.map.LRUMap.addMapping > >>>>> (LRUMap.java:243) > >>>>> > >>>>> at =20 > >>>>> org.apache.commons.collections.map.AbstractHashedMap.put > >>>>> (AbstractHashedMap.java:282) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataRowStore.processUpdatedSnapshot= =20 > >>>>> s > >>>>> (DataRowStore.java:612) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataRowStore.processSnapshotChanges= > >>>>> (DataRowStore.java:571) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataRowStore.snapshotsUpdatedForObj= =20 > >>>>> ect > >>>>> s(DataRowStore.java:313) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.ObjectResolver.objectsFromDataRows > >>>>> (ObjectResolver.java:159) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.ObjectResolver.synchronizedObjectsF= =20 > >>>>> rom > >>>>> DataRows(ObjectResolver.java:134) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataDomainQueryAction.interceptObje= =20 > >>>>> ctC > >>>>> onversion(DataDomainQueryAction.java:373) > >>>>> > >>>>> at > >>>>> org.objectstyle.cayenne.access.DataDomainQueryAction.execute > >>>>> (DataDomainQueryAction.java:151) > >>>>> > >>>>> at org.objectstyle.cayenne.access.DataDomain.onQuery > >>>>> (DataDomain.java:766) > >>>>> > >>>>> 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) > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> Ayhan Kondoz > >>>>> > >>>>> > >>>>> > >>>>> Software-Entwicklung > >>>>> > >>>>> > >>>>> > >>>>> ------------------------------------------------------------------= =20 > >>>>> --- > >>>>> ------------- > >>>>> > >>>>> Telefon: +49 (0) 40 513 06 616 > >>>>> > >>>>> Telefax: +49 (0) 40 513 06 998 616 > >>>>> > >>>>> E-Mail: ayhan.kondoz@freenet-ag.de > >>>>> > >>>>> > >>>>> Website: http://www.freenet.de ; http://= > >>>>> www.freenet-ag.de > >>>>> > >>>>> ------------------------------------------------------------------= =20 > >>>>> --- > >>>>> ------------- > >>>>> > >>>>> freenet.de AG > >>>>> > >>>>> Deelb=F6genkamp 4c > >>>>> > >>>>> 22297 Hamburg > >>>>> > >>>>> ------------------------------------------------------------------= =20 > >>>>> --- > >>>>> ------------- > >>>>> > >>>>> Vorsitzender des Aufsichtsrates: Prof. Dr. Helmut Thoma > >>>>> > >>>>> Vorstand: Eckhard Spoerr (Vors.), > >>>>> Axel Krieger, Stephan Esch, Eric Berger > >>>>> > >>>>> Amtsgericht Hamburg HRB 74048 > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> Diese Information ist ausschlie=DFlich f=FCr die adressierte Person > >>>>> oder Organisation bestimmt und k=F6nnte vertrauliches und/oder > >>>>> privilegiertes Material enthalten. Personen oder Organisationen, > >>>>> f=FCr die diese Information nicht bestimmt ist, ist es nicht > >>>>> gestattet, diese zu lesen, erneut zu =FCbertragen, zu verbreiten, > >>>>> anderweitig zu verwenden oder sich durch sie veranlasst zu sehen, > >>>>> Ma=DFnahmen irgendeiner Art zu ergreifen. Sollten Sie diese > >>>>> Nachricht irrt=FCmlich erhalten haben, bitten wir Sie, sich mit dem > >>>>> Absender in Verbindung zu setzen und das Material von Ihrem > >>>>> Computer zu l=F6schen. > >>>>> > >>>>> > >>>>> > >>>>> The information transmitted is intended only for the person or > >>>>> entity to which it is addressed and may contain confidential and/ > >>>>> or privileged material. Any review, retransmission, dissemination > >>>>> or other use of, or taking of any action in reliance upon, this > >>>>> information by persons or entities other than the intended > >>>>> recipient is prohibited. If you received this in error, please > >>>>> contact the sender and delete the material from any computer. > >>>>> > >>>>> > >>>>> > >>>> > >>>> > > > > >=20