Further to my previous post, I've altered one line of code in
org.apache.openjpa.kernel.AttachStrategy (line 210):
if ((frmc == null || frmc.isEmpty()) && !nullLoaded) //changed from: if
(frmc == null && !nullLoaded)

...and this seems to fix my problem, but I just tested standalone, not via
my web app.

When I re-built my web app, and ran it, I got this exception on startup, and
I have no idea how to fix it:

SEVERE: StandardWrapper.Throwable
java.lang.Error: Unresolved compilation problems: 
        JPQLTreeConstants cannot be resolved to a type
        JJTFROMITEM cannot be resolved
        JJTSUBSELECT cannot be resolved
        JJTFROM cannot be resolved
        JJTABSTRACTSCHEMANAME cannot be resolved
        JJTSUBSELECT cannot be resolved
        JJTINNERJOIN cannot be resolved
        JJTPATH cannot be resolved
        JPQL cannot be resolved to a type
        JPQL cannot be resolved to a type
        JJTSELECT cannot be resolved
        JJTSELECT cannot be resolved
        JJTSUBSELECT cannot be resolved
        JJTDELETE cannot be resolved
        JJTUPDATE cannot be resolved
        JJTGROUPBY cannot be resolved
        JJTHAVING cannot be resolved
        JJTORDERBY cannot be resolved
        JJTASCENDING cannot be resolved
        JJTSELECTCLAUSE cannot be resolved
        JJTDISTINCT cannot be resolved
        JJTCONSTRUCTOR cannot be resolved
        JJTSELECTEXPRESSIONS cannot be resolved
        JJTOUTERFETCHJOIN cannot be resolved
        JJTINNERFETCHJOIN cannot be resolved
        JJTUPDATEITEM cannot be resolved
        JJTWHERE cannot be resolved
        JJTFROM cannot be resolved
        JJTFROMITEM cannot be resolved
        JJTOUTERJOIN cannot be resolved
        JJTINNERJOIN cannot be resolved
        JJTINNERFETCHJOIN cannot be resolved
        JJTOUTERFETCHJOIN cannot be resolved
        JJTABSTRACTSCHEMANAME cannot be resolved
        JJTWHERE cannot be resolved
        JJTBOOLEANLITERAL cannot be resolved
        JJTINTEGERLITERAL cannot be resolved
        JJTDECIMALLITERAL cannot be resolved
        JJTSTRINGLITERAL cannot be resolved
        JJTTRIMCHARACTER cannot be resolved
        JJTESCAPECHARACTER cannot be resolved
        JJTPATTERNVALUE cannot be resolved
        JJTNAMEDINPUTPARAMETER cannot be resolved
        JJTPOSITIONALINPUTPARAMETER cannot be resolved
        JJTOR cannot be resolved
        JJTAND cannot be resolved
        JJTEQUALS cannot be resolved
        JJTNOTEQUALS cannot be resolved
        JJTLESSTHAN cannot be resolved
        JJTLESSOREQUAL cannot be resolved
        JJTGREATERTHAN cannot be resolved
        JJTGREATEROREQUAL cannot be resolved
        JJTADD cannot be resolved
        JJTSUBTRACT cannot be resolved
        JJTMULTIPLY cannot be resolved
        JJTDIVIDE cannot be resolved
        JJTBETWEEN cannot be resolved
        JJTIN cannot be resolved
        JJTISNULL cannot be resolved
        JJTPATH cannot be resolved
        JJTIDENTIFIER cannot be resolved
        JJTIDENTIFICATIONVARIABLE cannot be resolved
        JJTNOT cannot be resolved
        JJTLIKE cannot be resolved
        JJTESCAPECHARACTER cannot be resolved
        JJTISEMPTY cannot be resolved
        JJTSIZE cannot be resolved
        JJTUPPER cannot be resolved
        JJTLOWER cannot be resolved
        JJTLENGTH cannot be resolved
        JJTABS cannot be resolved
        JJTSQRT cannot be resolved
        JJTMOD cannot be resolved
        JJTTRIM cannot be resolved
        JJTTRIMLEADING cannot be resolved
        JJTTRIMTRAILING cannot be resolved
        JJTTRIMLEADING cannot be resolved
        JJTTRIMTRAILING cannot be resolved
        JJTTRIMBOTH cannot be resolved
        JJTCONCAT cannot be resolved
        JJTSUBSTRING cannot be resolved
        JJTLOCATE cannot be resolved
        JJTAGGREGATE cannot be resolved
        JJTCOUNT cannot be resolved
        JJTMAX cannot be resolved
        JJTMIN cannot be resolved
        JJTSUM cannot be resolved
        JPQL cannot be resolved to a type
        JJTNEGATIVE cannot be resolved
        Node cannot be resolved to a type
        JPQL cannot be resolved to a type
        JPQL cannot be resolved to a type
        Node cannot be resolved to a type
        Node cannot be resolved to a type
        Node cannot be resolved to a type
        Node cannot be resolved to a type
        The method jjtGetChild(int) from the type JPQLExpressionBuilder.JPQLNode
refers to the missing type Node
        Token cannot be resolved to a type
        JPQLTreeConstants cannot be resolved
        JPQL cannot be resolved to a type

        at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.<init>(JPQLExpressionBuilder.java:71)
        at org.apache.openjpa.kernel.jpql.JPQLParser.parse(JPQLParser.java:48)
        at
org.apache.openjpa.kernel.ExpressionStoreQuery.newCompilation(ExpressionStoreQuery.java:149)
        at 
org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:657)
        at
org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:639)
        at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:605)
        at
org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:667)
        at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:574)
        at
org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:901)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.orm.jpa.JpaTemplate$CloseSuppressingInvocationHandler.invoke(JpaTemplate.java:400)
        at $Proxy72.createNamedQuery(Unknown Source)
        at za.co.metcapri.dao.jpa.BaseJPADAO$2.doInJpa(BaseJPADAO.java:201)
        at org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:191)
        at
org.springframework.orm.jpa.JpaTemplate.executeFind(JpaTemplate.java:158)
        at 
za.co.metcapri.dao.jpa.BaseJPADAO.findRecordsByName(BaseJPADAO.java:199)
        at
za.co.metcapri.dao.jpa.codedes.TblCdedesJPADAO.findTblCdedessByCdetypTxt(TblCdedesJPADAO.java:28)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:299)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
        at
org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:54)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at
org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:54)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy35.findTblCdedessByCdetypTxt(Unknown Source)
        at
za.co.metcapri.status.business.DataLookupManagerBean.getLookupData(DataLookupManagerBean.java:95)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:299)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
        at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at
org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:54)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy48.getLookupData(Unknown Source)
        at
za.co.metcapri.status.server.services.AppInitServiceBean.init(AppInitServiceBean.java:65)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
-- 
View this message in context: 
http://n2.nabble.com/Non-dirty-entity-version-field-update-SUPER-URGENT%21%21%21-tp1120307p1131754.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to