Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 47875 invoked from network); 10 Apr 2006 09:07:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Apr 2006 09:07:54 -0000 Received: (qmail 90253 invoked by uid 500); 10 Apr 2006 09:07:53 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 90233 invoked by uid 500); 10 Apr 2006 09:07:53 -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 90224 invoked by uid 99); 10 Apr 2006 09:07:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 02:07:53 -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 [64.124.179.114] (HELO mensk.objectstyle.org) (64.124.179.114) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Apr 2006 02:07:52 -0700 Received: (qmail 23942 invoked from network); 10 Apr 2006 09:07:31 -0000 Received: from localhost (HELO ??@@IPv6:::1?) (127.0.0.1) by mensk.objectstyle.org with SMTP; 10 Apr 2006 09:07:31 -0000 In-Reply-To: <12572.59.167.133.88.1144521008.squirrel@webmail.synect.com> References: <44322D43.7090007@synect.com> <9ED4E94C-D911-4F47-9613-D594DA26455D@objectstyle.org> <8f985b960604040647v14974a8di72a5558a9259d254@mail.gmail.com> <44373251.6010604@synect.com> <6717DEB0-8B7C-470A-A503-16EB519D2984@objectstyle.org> <12572.59.167.133.88.1144521008.squirrel@webmail.synect.com> Mime-Version: 1.0 (Apple Message framework v746.3) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Andrus Adamchik Subject: Re: Seeking to automate generation the cayenne schema Date: Mon, 10 Apr 2006 13:07:29 +0400 To: cayenne-user@incubator.apache.org X-Mailer: Apple Mail (2.746.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Apr 8, 2006, at 10:30 PM, craig@synect.com wrote: > Exception in thread "main" java.lang.NullPointerException > at > org.objectstyle.cayenne.conf.ConfigSaver.storeDomains > (ConfigSaver.java:94) It fails because it expects a ConfigSaveDelegate. Default delegate implementor, RuntimeSaveDelegate, in turn expects a Configuration instance that holds domains. In other words ConfigSaver can do all saving work for you if you give it a fully assembled access stack: Configuration -> DataDomain -> DataNode. Andrus