Hello I have a simple object with some fields that I'm trying to persist with JPA and it works perfectly fine when I use the transient keyword on the fields that I don't want persisted. Although when I remove the transient keyword and place the @Transient annotation on those fields, it results into the following exception. I cannot use the transient keyword because then gwt-rpc will also ignore the data in these fields which I'm setting manually after I retrieve the result from data-store.
Also given below is the dependency tree on my maven project. Please let me know if I can provide any additional information and I'll try appreciate the help. Regards. Caused by: java.lang.NullPointerException at com.google.appengine.datanucleus.query.DatastoreQuery.getMappingForFieldWithName(DatastoreQuery.java:1393) at com.google.appengine.datanucleus.query.DatastoreQuery.addLeftPrimaryExpression(DatastoreQuery.java:1194) at com.google.appengine.datanucleus.query.DatastoreQuery.addExpression(DatastoreQuery.java:929) at com.google.appengine.datanucleus.query.DatastoreQuery.addExpression(DatastoreQuery.java:912) at com.google.appengine.datanucleus.query.DatastoreQuery.addFilters(DatastoreQuery.java:888) at com.google.appengine.datanucleus.query.DatastoreQuery.performExecute(DatastoreQuery.java:245) at com.google.appengine.datanucleus.query.JPQLQuery.performExecute(JPQLQuery.java:164) at org.datanucleus.store.query.Query.executeQuery(Query.java:1791) at org.datanucleus.store.query.Query.executeWithMap(Query.java:1694) at org.datanucleus.api.jpa.JPAQuery.getResultList(JPAQuery.java:185) Dependency Tree: [INFO] +- junit:junit:jar:4.10:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:test [INFO] +- log4j:log4j:jar:1.2.16:compile [INFO] +- org.slf4j:slf4j-api:jar:1.6.4:compile [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.6.4:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.4:compile [INFO] +- org.aspectj:aspectjrt:jar:1.6.12:compile [INFO] +- org.aspectj:aspectjweaver:jar:1.6.12:compile [INFO] +- javax.servlet:servlet-api:jar:2.5:provided (scope not updated to compile) [INFO] +- net.sf.flexjson:flexjson:jar:2.1:compile [INFO] +- org.apache.commons:commons-lang3:jar:3.1:compile [INFO] +- org.springframework:spring-core:jar:3.1.0.RELEASE:compile [INFO] | \- org.springframework:spring-asm:jar:3.1.0.RELEASE:compile [INFO] +- org.springframework:spring-test:jar:3.1.0.RELEASE:test (scope not updated to compile) [INFO] +- org.springframework:spring-context:jar:3.1.0.RELEASE:compile [INFO] | +- org.springframework:spring-beans:jar:3.1.0.RELEASE:compile [INFO] | \- org.springframework:spring-expression:jar:3.1.0.RELEASE:compile [INFO] +- org.springframework:spring-aop:jar:3.1.0.RELEASE:compile [INFO] | \- aopalliance:aopalliance:jar:1.0:compile [INFO] +- org.springframework:spring-aspects:jar:3.1.0.RELEASE:compile [INFO] | \- org.springframework:spring-context-support:jar:3.1.0.RELEASE:compile [INFO] +- mysql:mysql-connector-java:jar:5.1.18:compile [INFO] +- org.hibernate:hibernate-core:jar:3.6.9.Final:compile [INFO] | +- antlr:antlr:jar:2.7.6:compile [INFO] | +- commons-collections:commons-collections:jar:3.1:compile [INFO] | +- dom4j:dom4j:jar:1.6.1:compile [INFO] | \- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile [INFO] +- org.hibernate:hibernate-entitymanager:jar:3.6.9.Final:compile [INFO] | \- javassist:javassist:jar:3.12.0.GA:compile [INFO] +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile [INFO] +- org.hibernate:hibernate-validator:jar:4.2.0.Final:compile [INFO] | \- javax.validation:validation-api:jar:1.0.0.GA:compile [INFO] +- cglib:cglib-nodep:jar:2.2.2:compile [INFO] +- javax.transaction:jta:jar:1.1:compile [INFO] +- org.springframework:spring-jdbc:jar:3.1.0.RELEASE:compile [INFO] | \- org.springframework:spring-tx:jar:3.1.0.RELEASE:compile [INFO] +- org.springframework:spring-orm:jar:3.1.0.RELEASE:compile [INFO] +- commons-pool:commons-pool:jar:1.5.6:compile [INFO] +- commons-dbcp:commons-dbcp:jar:1.3:compile [INFO] +- org.springframework:spring-webmvc:jar:3.1.0.RELEASE:compile [INFO] | \- org.springframework:spring-web:jar:3.1.0.RELEASE:compile [INFO] +- org.springframework.webflow:spring-js-resources:jar:2.2.1.RELEASE:compile [INFO] +- commons-digester:commons-digester:jar:2.1:compile [INFO] | \- commons-beanutils:commons-beanutils:jar:1.8.3:compile [INFO] +- commons-fileupload:commons-fileupload:jar:1.2.2:compile [INFO] +- javax.servlet.jsp.jstl:jstl-api:jar:1.2:compile [INFO] +- org.glassfish.web:jstl-impl:jar:1.2:compile [INFO] +- javax.el:el-api:jar:1.0:provided [INFO] +- joda-time:joda-time:jar:1.6:compile [INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:provided (scope not updated to compile) [INFO] +- commons-codec:commons-codec:jar:1.5:compile [INFO] +- com.google.gwt:gwt-servlet:jar:2.4.0:compile [INFO] +- com.google.gwt:gwt-user:jar:2.4.0:provided [INFO] +- com.google.gwt.google-apis:gwt-visualization:jar:1.0.2:provided [INFO] +- com.google.gwt.inject:gin:jar:1.5.0:compile [INFO] | \- com.google.inject.extensions:guice-assistedinject:jar:3.0-rc2:compile [INFO] +- com.google.inject:guice:jar:3.0:provided (scope not updated to compile) [INFO] | \- javax.inject:javax.inject:jar:1:provided [INFO] +- org.mockito:mockito-core:jar:1.8.5:test [INFO] | \- org.objenesis:objenesis:jar:1.0:test [INFO] +- org.json:json:jar:20090211:compile [INFO] +- javax.validation:validation-api:jar:sources:1.0.0.GA:compile [INFO] +- xalan:xalan:jar:2.7.1:compile [INFO] | \- xalan:serializer:jar:2.7.1:compile [INFO] | \- xml-apis:xml-apis:jar:1.3.04:compile [INFO] +- com.google.appengine.orm:datanucleus-appengine:jar:2.0.0-final:compile [INFO] | \- org.datanucleus:datanucleus-enhancer:jar:3.1.0-m1:compile [INFO] | \- org.ow2.asm:asm:jar:4.0:compile [INFO] +- com.google.appengine:appengine-api-1.0-sdk:jar:1.6.5:compile [INFO] +- com.google.appengine:appengine-testing:jar:1.6.5:test [INFO] +- com.google.appengine:appengine-api-stubs:jar:1.6.5:test [INFO] +- com.google.appengine:appengine-api-labs:jar:1.6.5:test [INFO] +- org.apache.geronimo.specs:geronimo-jpa_2.0_spec:jar:1.0:compile [INFO] +- org.datanucleus:datanucleus-core:jar:3.0.6:compile [INFO] +- javax.jdo:jdo-api:jar:3.0:compile [INFO] | \- javax.transaction:transaction-api:jar:1.1:compile [INFO] +- org.datanucleus:datanucleus-api-jpa:jar:3.0.6:compile [INFO] \- org.datanucleus:datanucleus-rdbms:jar:3.0.9:compile -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Vr2IKtHGMHUJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
