java.lang.NullPointerException during access a field, only if the classes enhanced

Type: BugPriority: NormalStatus: FixedReplies: 4
#1

We get the following exception during access a field (Set of entities)

The error occurs only if the entities are enhanced.

 

Caused by: com.objectdb.o.InternalException: Unexpected internal exception
        at com.objectdb.o.JPE.h(JPE.java:168)
        at com.objectdb.o.ERR.f(ERR.java:66)
        at com.objectdb.o.IVP.m(IVP.java:155)
        at com.objectdb.o.IVP.l(IVP.java:137)
        at com.objectdb.o.ISP.size(ISP.java:174)
        at java.util.HashSet.<init>(Unknown Source)
        at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScopes(MergedScopeMigrationHelperImpl.java:48)
        at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScope(MergedScopeMigrationHelperImpl.java:76)
        at com.btc.ep.profilemigration.migrators.architecture.simulink.SimulinkMergedArchitectureMigratorImpl.migrateRootScopes(SimulinkMergedArchitectureMigratorImpl.java:66)
        at com.btc.ep.profilemigration.migrators.architecture.simulink.SimulinkMergedArchitectureMigratorImpl.migrateRootScopes(SimulinkMergedArchitectureMigratorImpl.java:1)
        at com.btc.ep.profilemigration.migrators.architecture.MergedArchitectureMigratorImpl.migrate(MergedArchitectureMigratorImpl.java:103)
        at com.btc.ep.profilemigration.application.internal.services.ProfileMigrationImpl.callMigrators(ProfileMigrationImpl.java:235)
        at com.btc.ep.profilemigration.application.internal.services.ProfileMigrationImpl.do_migrateProfile(ProfileMigrationImpl.java:212)
        ... 15 more
Caused by: java.lang.NullPointerException
        at com.objectdb.o.ISP.size(ISP.java:175)
        at com.objectdb.o.CLT.visitRefs(CLT.java:157)
        at com.objectdb.o.TVS.j(TVS.java:169)
        at com.objectdb.o.TVS.cascade(TVS.java:156)
        at com.objectdb.o.STA.Q(STA.java:476)
        at com.objectdb.o.STM.E(STM.java:408)
        at com.objectdb.o.OBM.bP(OBM.java:934)
        at com.objectdb.jdo.PMImpl.bP(PMImpl.java:2284)
        at com.objectdb.o.OBM.bO(OBM.java:845)
        at com.objectdb.o.OBM.bN(OBM.java:790)
        at com.objectdb.o.QRR.f(QRR.java:139)
        at com.objectdb.o.QRR.a(QRR.java:618)
        at com.objectdb.o.InvMemberQuery.e(InvMemberQuery.java:139)
        at com.objectdb.o.UMR.v(UMR.java:511)
        at com.objectdb.o.ENT.loadInverse(ENT.java:1527)
        at com.objectdb.o.IVP.m(IVP.java:149)
        ... 25 more
#2

Hello,

one special of the set of entites, the annotation have a 'mapped by' configuration.

we found a 'workaround': we first access this Set of entites, before we do some other stuff.

(Changed Priority from high -> Normal)
 

#3

Please try build 2.7.0_04.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#4

Hello,

unfortunately the issue is not solved with 2.7.0_04.

Caused by: com.objectdb.o.InternalException: Unexpected internal exception
at com.objectdb.o.JPE.h(JPE.java:168)
at com.objectdb.o.ERR.f(ERR.java:66)
at com.objectdb.o.IVP.m(IVP.java:155)
at com.objectdb.o.IVP.l(IVP.java:137)
at com.objectdb.o.ISP.size(ISP.java:174)
at java.util.HashSet.<init>(Unknown Source)
at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScopes(MergedScopeMigrationHelperImpl.java:48)
at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScope(MergedScopeMigrationHelperImpl.java:77)
at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScopes(MergedScopeMigrationHelperImpl.java:51)
at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScope(MergedScopeMigrationHelperImpl.java:77)
at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScopes(MergedScopeMigrationHelperImpl.java:51)
at com.btc.ep.profilemigration.migrators.architecture.MergedScopeMigrationHelperImpl.migrateScope(MergedScopeMigrationHelperImpl.java:77)
at com.btc.ep.profilemigration.migrators.architecture.sdf.SdfMergedArchitectureMigratorImpl.migrateRootScopes(SdfMergedArchitectureMigratorImpl.java:63)
at com.btc.ep.profilemigration.migrators.architecture.sdf.SdfMergedArchitectureMigratorImpl.migrateRootScopes(SdfMergedArchitectureMigratorImpl.java:1)
at com.btc.ep.profilemigration.migrators.architecture.MergedArchitectureMigratorImpl.migrate(MergedArchitectureMigratorImpl.java:103)
at com.btc.ep.profilemigration.application.internal.services.ProfileMigrationImpl.callMigrators(ProfileMigrationImpl.java:235)
at com.btc.ep.profilemigration.application.internal.services.ProfileMigrationImpl.do_migrateProfile(ProfileMigrationImpl.java:212)
... 16 more
Caused by: java.lang.NullPointerException
at com.objectdb.o.ISP.size(ISP.java:175)
at com.objectdb.o.CLT.visitRefs(CLT.java:160)
at com.objectdb.o.TVS.j(TVS.java:169)
at com.objectdb.o.TVS.cascade(TVS.java:156)
at com.objectdb.o.STA.Q(STA.java:476)
at com.objectdb.o.STM.E(STM.java:408)
at com.objectdb.o.OBM.bQ(OBM.java:934)
at com.objectdb.jdo.PMImpl.bQ(PMImpl.java:2284)
at com.objectdb.o.OBM.bP(OBM.java:845)
at com.objectdb.o.OBM.bO(OBM.java:790)
at com.objectdb.o.QRR.f(QRR.java:139)
at com.objectdb.o.QRR.a(QRR.java:618)
at com.objectdb.o.InvMemberQuery.e(InvMemberQuery.java:139)
at com.objectdb.o.UMR.v(UMR.java:511)
at com.objectdb.o.ENT.loadInverse(ENT.java:1527)
at com.objectdb.o.IVP.m(IVP.java:149)

So we stay with our workaround (from post#2).

#5

You can try version 2.7.1 that hopefully will solve this exception.

The new version fixes a critical bug that in some cases (rare but possible) may cause database corruption, so it is highly recommended to use the new build.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login