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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 23h 22m 1 Igor Drobiazko 19/Oct/11 13:07
        Resolved Resolved Closed Closed
        5s 1 Igor Drobiazko 19/Oct/11 13:07
        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
        Igor Drobiazko made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Igor Drobiazko made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.3 [ 12316024 ]
        Resolution Fixed [ 1 ]
        Hide
        Igor Drobiazko added a comment -

        Thanks.

        Show
        Igor Drobiazko added a comment - Thanks.
        Igor Drobiazko made changes -
        Summary JPA valueEncoder JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods
        Igor Drobiazko made changes -
        Field Original Value New Value
        Assignee Igor Drobiazko [ igor.drobiazko ]
        Dimitris Zenios created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development