Tapestry 5
  1. Tapestry 5
  2. TAP5-1699

JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3
    • Component/s: tapestry-jpa
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Igor Drobiazko added a comment -

        Thanks.

        Show
        Igor Drobiazko added a comment - Thanks.
        Hide
        Hudson added a comment -

        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
        Show
        Hudson added a comment - 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

          People

          • Assignee:
            Igor Drobiazko
            Reporter:
            Dimitris Zenios
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development