Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 38103 invoked from network); 8 Sep 2010 11:07:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 11:07:49 -0000 Received: (qmail 2209 invoked by uid 500); 8 Sep 2010 11:07:48 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 1998 invoked by uid 500); 8 Sep 2010 11:07:45 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 1960 invoked by uid 99); 8 Sep 2010 11:07:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 11:07:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tobias.schoessler@gmail.com designates 209.85.215.43 as permitted sender) Received: from [209.85.215.43] (HELO mail-ew0-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 11:07:38 +0000 Received: by ewy1 with SMTP id 1so3356887ewy.16 for ; Wed, 08 Sep 2010 04:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=yGsCe7k0EYoDZPd89pgM4/VXWnt1dyPAsdYLAtV6RlI=; b=V8tMJv7H3JpED/Yu2eyW3N+46/dnagTzqz+J9fp+BkkqVZNIZBF/tywPBxvL1ymU47 QYAHoWTpxJb7xo7q2oyGgKj5hJYbz0CC98PRu8njol0y639hL71bvpscNlyZCahvdSEz BfRUpGF0THe6veZTgkG5PS8W/U9CLc8/pl15k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=L5di/X146pKPntOfmgDBmn8DDmCegQ2vTU/HKCWG1rznFS3shyQ/ySP7mhaQSxRsUk b1dC2xXsuhp+Vi5LZJecQsF1T/4BYiSM2EUBYjkctqeuF8tNv5PdI5k30GeQlLCRnZUn BKW16Lec8HvHeWMCMYdaygHsiiWuLvgbmuFWc= MIME-Version: 1.0 Received: by 10.213.17.82 with SMTP id r18mr655557eba.18.1283944037124; Wed, 08 Sep 2010 04:07:17 -0700 (PDT) Received: by 10.213.36.13 with HTTP; Wed, 8 Sep 2010 04:07:17 -0700 (PDT) Date: Wed, 8 Sep 2010 13:07:17 +0200 Message-ID: Subject: NPE in BaseClassDescriptor From: Tobias Schoessler To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=000e0cd1e77c3e8bb0048fbd847c --000e0cd1e77c3e8bb0048fbd847c Content-Type: text/plain; charset=ISO-8859-1 I am running cayenne 1.2.4 I wonder if there is an easy explanation for this NPE. I am deploying as a webapp with cayenne.jar and the mapping DataObjects and mapping files packaged in a separate jar. This setup usually works. On some context on production I see this NPE . Caused by: java.lang.NullPointerException at org.objectstyle.cayenne.property.BaseClassDescriptor.getDeclaredProperty(BaseClassDescriptor.java:173) at org.objectstyle.cayenne.property.BaseClassDescriptor.getProperty(BaseClassDescriptor.java:163) at org.objectstyle.cayenne.util.ObjectContextQueryAction.interceptRelationshipQuery(ObjectContextQueryAction.java:214) at org.objectstyle.cayenne.access.DataContextQueryAction.execute(DataContextQueryAction.java:88) at org.objectstyle.cayenne.access.DataContext.onQuery(DataContext.java:1423) at org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1412) at org.objectstyle.cayenne.access.DataContextFaults$ToOneFault.doResolveFault(DataContextFaults.java:144) at org.objectstyle.cayenne.access.DataContextFaults$ToOneFault.resolveFault(DataContextFaults.java:117) at org.objectstyle.cayenne.CayenneDataObject.readProperty(CayenneDataObject.java:245) at org.unodc.applications.cms.cayenne.auto._WebPage.getToWebPageState(_WebPage.java:457) any idea? Is cayenne not finding its cayenne.xml inside the jar? thanks a million. Tobias --000e0cd1e77c3e8bb0048fbd847c--