Return-Path: X-Original-To: apmail-incubator-isis-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-isis-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DDC4DF9D for ; Sat, 20 Oct 2012 11:26:09 +0000 (UTC) Received: (qmail 17614 invoked by uid 500); 20 Oct 2012 11:26:09 -0000 Delivered-To: apmail-incubator-isis-users-archive@incubator.apache.org Received: (qmail 17551 invoked by uid 500); 20 Oct 2012 11:26:08 -0000 Mailing-List: contact isis-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: isis-users@incubator.apache.org Delivered-To: mailing list isis-users@incubator.apache.org Received: (qmail 17523 invoked by uid 99); 20 Oct 2012 11:26:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 11:26:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alain.zhang@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 11:26:00 +0000 Received: by mail-pb0-f47.google.com with SMTP id ro12so889790pbb.6 for ; Sat, 20 Oct 2012 04:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; bh=CpJPBIwyJZzyl2LC4nhLxOD1RMZes+PvaiIUCGq54eU=; b=M+KhmjzYf4+BUdHJPZVd/mJEOj6V3jnMdVovpI82wkUs9HCHNSPfE6Y1I4woMD18PV FLAR6W3M5aOSqoQf1TXYaZnw1ywxG8JyLdvaPXa7uimPKDxNBY30ZcZOg1Xq+5MWaAaC N6TN57PIOAFiz/puI8nbzc3mgXOL2f8jJq30rQG9++X5HZJZwgn5tRsFh9eOwMtjM/sY m3mS2cYR+QRWS57UesuXnYExrwKtLtii12EOGgdE7qa+3WvTCNBSV0dXDm2ieOiRDrUs t35DERxm2nwySZx98SOgAzFf1H244ZsZvjcDGGo15aEBHyr+cNCmKe4LdNaQKv/Dc72l FC9Q== Received: by 10.68.137.228 with SMTP id ql4mr14633389pbb.125.1350732340111; Sat, 20 Oct 2012 04:25:40 -0700 (PDT) Received: from alainpc ([222.67.135.181]) by mx.google.com with ESMTPS id hu5sm2715864pbc.72.2012.10.20.04.25.35 (version=SSLv3 cipher=OTHER); Sat, 20 Oct 2012 04:25:39 -0700 (PDT) From: =?gb2312?B?1cW35bL9?= To: References: <000b01cdaea2$52d8fe60$f88afb20$@gmail.com> In-Reply-To: Subject: =?gb2312?B?tPC4tDogcXVpY2tzdGFydCBqZG8gZXhjZXB0aW9u?= Date: Sat, 20 Oct 2012 19:25:35 +0800 Message-ID: <001201cdaeb5$a23a8470$e6af8d50$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQMsvrbM0q5WtkX/wzOtq5rtam5CqQIHWuv6lPOxPiA= Content-Language: zh-cn X-Virus-Checked: Checked by ClamAV on apache.org Hi Dan Thanks a lot. Now the jdo project works. The newest JDO enhancer plugin in Eclipse requires asm 4.0,while isis provides 3.3.1. To fix the problem I have remove asm exclusion in = pom.xml of project quickstart-objstore-dom. org.ow2.asm asm i =D5=C5=B7=E5=B2=FD =B5=E7=BB=B0=A3=BA18930623939 =D3=FB=D6=AA=D6=EE=B7=A8=CA=B5=CF=E0=A3=AC=B5=B1=CF=B0=B0=E3=C8=F4=B2=A8=C2= =DE=C3=DB -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: Dan Haywood [mailto:dan@haywood-associates.co.uk]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2012=C4=EA10=D4=C220=C8=D5 17:14 =CA=D5=BC=FE=C8=CB: isis-users@incubator.apache.org =D6=F7=CC=E2: Re: quickstart jdo exception Hi Alain, JDO requires that the pojos are "enhanced", that is, they go through a post-compile process which injects additional bytecode into them. = There's some good detail about this for JDO in general [1] and for DataNucleus = (the JDO implementation that we are using) in particular [2]. If you just build the code using Maven, then the code should be enhanced using the maven plugin we have configured. But if you are running from Eclipse (or any other IDE), then you need to add in the appropriate JDO enhancer plugin to your IDE... see [3], [4], [5] HTH Dan [1] http://db.apache.org/jdo/enhancement.html [2] http://www.datanucleus.org/products/datanucleus/enhancer.html [3] http://www.datanucleus.org/products/datanucleus/guides/eclipse/index.html= [4] = http://www.datanucleus.org/products/datanucleus/guides/idea/index.html [5] http://www.datanucleus.org/products/datanucleus/guides/netbeans/index.htm= l On 20 October 2012 10:07, =D5=C5=B7=E5=B2=FD = wrote: > Hi > > I have exported the quickstart project yestoday. And I want to find=20 > how the jdo works. There is exception when I run the=20 > quickstart-viewer-wicket project to add a new ToDoItem. The exception = is: > > > > 17:00:20,595 [DataNucleusSimplePersistAlgorithm > 1432094680@qtp-1076825585-0 > INFO ] persist > PojoAdapter@188edd79 > [T~~:!TODO:bdf1c0fe-8ddf-44d1-9dc4-50347ecf05f2,specific > = ation=3DToDoItem,version=3Dnull,pojo-toString=3Ddom.todo.ToDoItem@1cf15b8= 4 > ,pojo-ha > sh=3D#1cf15b84] > > 17:00:20,626 [DataNucleusObjectStore 1432094680@qtp-1076825585-0 WARN = > ] Failure during execution > > org.datanucleus.api.jdo.exceptions.ClassNotPersistenceCapableException > : The class "dom.todo.ToDoItem" is not persistable. This means that it = > either hasnt been enhanced, or that the enhanced version of the file=20 > is not in the CLASSPATH (or is hidden by an unenhanced version), or=20 > the Meta-Data/annotations for the class are not found. > > at > > org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusExce > ption( > NucleusJDOHelper.java:350) > > at > > org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPer > sisten > ceManager.java:736) > > at > > org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersis > tenceM > anager.java:756) > > at > > org.apache.isis.runtimes.dflt.objectstores.jdo.datanucleus.persistence > .comma > > nds.DataNucleusCreateObjectCommand.execute(DataNucleusCreateObjectComm > and.ja > va:35) > > at > > org.apache.isis.runtimes.dflt.objectstores.jdo.datanucleus.DataNucleus > Object > Store.executeCommands(DataNucleusObjectStore.java:333) > > at > > org.apache.isis.runtimes.dflt.objectstores.jdo.datanucleus.DataNucleus > Object > Store.execute(DataNucleusObjectStore.java:327) > > at > > org.apache.isis.runtimes.dflt.runtime.system.transaction.IsisTransacti > on.doF > lush(IsisTransaction.java:346) > > at > > org.apache.isis.runtimes.dflt.runtime.system.transaction.IsisTransacti > on.flu > sh(IsisTransaction.java:310) > > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel$Result > Type$1 > .addResultsAccordingToSingleResultsMode(ActionPanel.java:193) > > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel$Result > Type$1 > .addResults(ActionPanel.java:164) > > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.execut > eActio > nAndProcessResults(ActionPanel.java:132) > > at > > org.apache.isis.viewer.wicket.ui.actions.params.ActionParametersFormPa > nel$Ac > tionParameterForm$1.onSubmit(ActionParametersFormPanel.java:117) > > at > org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1237) > > at org.apache.wicket.markup.html.form.Form.process(Form.java:923) > > at > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:769) > > at > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:702) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at > > org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListe > nerInt > erface.java:258) > > at > > org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInter > face.j > ava:216) > > at > > org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler > .invok > eListener(ListenerInterfaceRequestHandler.java:240) > > at > > org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler > .respo > nd(ListenerInterfaceRequestHandler.java:226) > > at > > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(R > equest > Cycle.java:814) > > at > > org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerSt > ack.ja > va:64) > > at > org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java > :253) > > at > > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCyc > le.jav > a:210) > > at > > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(R > equest > Cycle.java:281) > > at > > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilt > er.jav > a:188) > > at > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.jav > a:245) > > at > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH > andler > .java:1212) > > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39 > 9) > > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java > :216) > > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18 > 2) > > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76 > 6) > > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15 > 2) > > at org.mortbay.jetty.Server.handle(Server.java:326) > > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542 > ) > > at > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.ja= va: > 945) > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > > at=20 > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > > at=20 > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > > at > org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector. > java:228) > > at > > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja > va:582 > ) > > NestedThrowablesStackTrace: > > > > =D5=C5=B7=E5=B2=FD > > =B5=E7=BB=B0=A3=BA18930623939 > > = =D3=FB=D6=AA=D6=EE=B7=A8=CA=B5=CF=E0=A3=AC=B5=B1=CF=B0=B0=E3=C8=F4=B2=A8=C2= =DE=C3=DB > > > >