449 words

Issue #295 - java.lang.NullPointerException during access a field, only if the classes enhanced

BugVersion: Priority: NormalStatus: FixedReplies: 4
#1
2017-04-03 06:50

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
btc_es
btc_es's picture
Joined on 2014-10-20
User Post #184
#2
2017-04-03 13:33

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)
 

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #185
#3
2017-04-03 15:27

Please try build 2.7.0_04.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,739
#4
2017-04-05 12:09

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).

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #188
#5
2017-04-05 22:59

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)
support
support's picture
Joined on 2010-05-03
User Post #2,744

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel