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
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
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?
$>
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
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
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
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
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
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: