223 words

Exception upon index definition change

#1
2017-10-27 13:08

Hello,

I have the following types:

@Embeddable
public class ChangeSetRef
{
    private long   index;
    private String role;
}
@Index (members = {"refs.role", "refs.index"})
@Entity
public class ChangeSet
{
    @ElementCollection
    private Collection<ChangeSetRef> refs         = new LinkedHashSet<>();
}

If I now start up my application I get the following stacktrace:

Exception in thread "ODB-IndexActivation" java.lang.NullPointerException
at com.objectdb.o.CMV.p(CMV.java:121)
at com.objectdb.o.SCU.p(SCU.java:78)
at com.objectdb.o.VLV.m(VLV.java:165)
at com.objectdb.o.EVC.k(EVC.java:90)
at com.objectdb.o.IXS.n(IXS.java:201)
at com.objectdb.o.VIX.m(VIX.java:189)
at com.objectdb.o.VIX.g(VIX.java:157)
at com.objectdb.o.IIX.g(IIX.java:69)
at com.objectdb.o.EIX.g(EIX.java:187)
at com.objectdb.o.IIX.g(IIX.java:69)
at com.objectdb.o.IIX.f(IIX.java:58)
at com.objectdb.o.IXS.i(IXS.java:96)
at com.objectdb.o.IIS.p(IIS.java:55)
at com.objectdb.o.IXM.VA(IXM.java:454)
at com.objectdb.o.PBI.C(PBI.java:146)
at com.objectdb.o.PBI.q(PBI.java:115)
at com.objectdb.o.MBI.VD(MBI.java:83)
at com.objectdb.o.MST.U9(MST.java:783)
at com.objectdb.o.IXM.E(IXM.java:379)
at com.objectdb.o.IXM.run(IXM.java:351)
at java.lang.Thread.run(Thread.java:748)

I think this is related to my ticket http://www.objectdb.com/database/support/636. I think index changes should never cause the application to stop. Even the Doctor does not run anymore using this index definition. We use the latest ObjectDB version 2.7.2_02.

This is very urgent for us.

Best regards
Markus

doppelrittberger
doppelrittberger's picture
Joined on 2016-01-13
User Post #32
#2
2017-10-29 10:37

> I think this is related to my ticket http://www.objectdb.com/database/support/636.

That issue was solved so this seems to be a different issue.

> I think index changes should never cause the application to stop

Of course. Agreed.

However, unfortunately the stack trace doesn't provide much information in this case.

If you can share a test case that throws the exception it would help.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,868
#3
2017-10-30 18:50

Please try build 2.7.2_03.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,873
#4
2017-10-30 21:38

Hello,

thanks for your fast response. The new version works as expected.

Best regards
Markus

doppelrittberger
doppelrittberger's picture
Joined on 2016-01-13
User Post #35
#5
2017-11-03 13:20

Unfortunately we had to revert the changes in build of 2.7.2_03 in build 2.7.2_04 as they may cause duplication of index values on other types of index schema upgrades. Hopefully a better fix will be provided soon.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,877
#6
2017-11-06 11:30

Please try build 2.7.2_05, which should fix the issue again.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,883

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