Return-Path: X-Original-To: apmail-tapestry-commits-archive@minotaur.apache.org Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 497B3909B for ; Wed, 19 Oct 2011 12:34:34 +0000 (UTC) Received: (qmail 78478 invoked by uid 500); 19 Oct 2011 12:34:34 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 78447 invoked by uid 500); 19 Oct 2011 12:34:34 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 78440 invoked by uid 99); 19 Oct 2011 12:34:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 12:34:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 12:34:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A22B6311E50 for ; Wed, 19 Oct 2011 12:34:10 +0000 (UTC) Date: Wed, 19 Oct 2011 12:34:10 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: commits@tapestry.apache.org Message-ID: <1999799714.10222.1319027650665.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2033003218.176.1318855630772.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (TAP5-1699) JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAP5-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130541#comment-13130541 ] Hudson commented on TAP5-1699: ------------------------------ Integrated in tapestry-trunk-freestyle #589 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/589/]) TAP5-1699: JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods drobiazko : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1186134 Files : * /tapestry/tapestry5/trunk/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/JpaValueEncoder.java * /tapestry/tapestry5/trunk/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/PersistenceParser.java * /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app1/entities/User.java > JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods > --------------------------------------------------------------------------------- > > Key: TAP5-1699 > URL: https://issues.apache.org/jira/browse/TAP5-1699 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-jpa > Affects Versions: 5.3 > Reporter: Dimitris Zenios > Assignee: Igor Drobiazko > Priority: Blocker > Fix For: 5.3 > > > There seems to be a problem with Tapestry-jpa value encoder.The problem is that propertyAdapter of JpaValueEncoder is null.In order to fix it, i had to change idPropertyName = idAttribute.getJavaMember().getName() to idPropertyName = idAttribute.getName();. I dont know if it matters but in my entities annotations are added on the methods and not on the properties. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira