Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-22 Thread Marc Logemann
Just looking around in OpenJPA code i wonder why my enhanced Distribution.class is calling the ProxySetupStateManager.providedIntField() Method (which always throws Exceptions) instead of calling StateManagerImpl.class method. I am really wondering if nobody is using OpenJPA in the JPA console

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-22 Thread Marc Logemann
Compiled from "Distribution.java" public class de.netversys.domain.Distribution extends de.netversys.domain.AbstractEntity implements org.apache.openjpa.enhance.PersistenceCapable { So. Yes. it is enhanced. Same goes for other classes i checked. Must be something different. 2016-09-22 10:15

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-22 Thread Mark Struberg
oh another thing which makes me curious. IIRC then we only use the ProxySetupStateManager.java:230in case of subclassing if the entities did not get properly enhanced at all. This means you are not using build-time enhancement and also no javaagent. Can you please check the classfile? $>

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-22 Thread Mark Struberg
Yes, it contains the number of the field it has problems with as int. Counting of fields start with the uppermost entity class. The fild numbers get generated during enhancement. LieGrue, Strub > Am 21.09.2016 um 23:25 schrieb Marc Logemann : > > And when u look at

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-21 Thread Marc Logemann
And when u look at the stacktrace on this line: at de.netversys.domain.Distribution.pcProvideField(Distribution.java) you see a method which wouldnt be there if the class is not enhanced right? 2016-09-21 22:00 GMT+02:00 Mark Struberg : > MappedSuperclasses should

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-21 Thread Marc Logemann
Hi, no. All classes are enhanced of course. Tripple-checked that before i posted IMO there would be a different ErrorMessage when a class is not enhanced anyway. marc 2016-09-21 22:00 GMT+02:00 Mark Struberg : > MappedSuperclasses should not be any problem. At

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-21 Thread Marc Logemann
Hi, yeah. Every entity extends AbstractEntity which is a MappedSuperclass. 2016-09-21 20:15 GMT+02:00 Mark Struberg : > Hi Marc! > > Is the entity Distribution part of a supertype/subtype constellation aka > inheritance? > Does this class 'extends' something? And

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-21 Thread Mark Struberg
Hi Marc! Is the entity Distribution part of a supertype/subtype constellation aka inheritance? Does this class 'extends' something? And where do these classes reside? LieGrue, strub > On Wednesday, 21 September 2016, 18:27, Marc Logemann > wrote: > > can

trying to run JPA Console inside Intellij IDEA results in this....

2016-09-21 Thread Marc Logemann
can somebody hint me where i need to look out for? Quite weird message [2016-09-21 18:24:13] org.apache.openjpa.persistence.ArgumentException: Errors encountered while resolving metadata. See nested exceptions for details. [2016-09-21 18:24:13] java.lang.RuntimeException: