431 words

Issue #271 - Sometimes the ObjectDB throws an internal expeption if a persist() was executed

BugVersion: 1.04Priority: LowStatus: ClosedReplies: 7
#1
2016-03-08 12:31

[ObjectDB 2.6.6_08] Unexpected exception (Error 990)
Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_51 (on Windows 7 6.1).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.NullPointerException: null
java.lang.NullPointerException
at com.objectdb.o.OBM.bE(OBM.java:395)
at com.objectdb.o.OBM.bE(OBM.java:269)
at com.objectdb.jpa.EMImpl.persist(EMImpl.java:442)

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #106
#2
2016-03-08 15:29

Is it new in build 2.6.6_08?

What can you tell about the persisted object? The exception indicates that the type is not an ordinary entity class. Is it a known entity class with existing instances in the database?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,460
#3
2016-03-09 14:34

Build 2.6.7_04 reverts a change in 2.6.6_08 that may be related to your exception.

Could you please check if you still get the exception with 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,462
#4
2016-03-10 07:16

It is an error which is sporadically (not reproducible) occurred in our test suite. Therefore, we could not describe the problem in detail. We will now use the new version. Should the error occur again we will report back.

 

Edit: The new version is not yet available on the download page.

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #108
#5
2016-03-10 09:32

Sorry, 2.6.7_04 is available now.

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

Maybe the fist reported Problem is solved, but now we get sometimes in another Test the following exception:

 

[ObjectDB 2.6.7_04] Unexpected exception (Error 990)
Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_51 (on Windows 7 6.1).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.NullPointerException: null
java.lang.NullPointerException
at com.objectdb.o.ENT.J(ENT.java:607)
at com.objectdb.o.OBM.bF(OBM.java:394)
at com.objectdb.o.OBM.bF(OBM.java:269)
at com.objectdb.jpa.EMImpl.persist(EMImpl.java:442)
at com.btc.ep.base.dal.internal.services.PersistenceUtilityServiceImpl.dbPersist(PersistenceUtilityServiceImpl.java:46)

Edit: Correction it is the same test, means the fist reported problem is not solved.

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #112
#7
2016-03-11 11:41

We have found the cause.
The test was mistakenly executed on a test machine without ObjectDB lizense.

At the beginning of the test (and our application), we add for all entities an instance in the database and rollback the transaction.
(As we do that in a separate thread, we have not seen the license error)

And the reported errors are reproducable on the test machine without ObjectDB lizense.


Can you still improve the license error messages for this case?

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #113
#8
2017-03-17 15:36

Hello,

the BUG status is active since one year. But its not an ObjectDB issue.

The problem is just that we started our application without OEM enhancement on a machine without an ObjectDB license (no matching activation-code).
 

The problem is now that we don't see the exception, because at the beginning of our application we add for all entity classes an instance in the database and rollback the transaction. This step is just to increase the performance, because the first 'persist' of an entity class can take a moment. If something failed, we ignore it, because its a not really important task.

 

We found out that we got the licensing exception just a few times, and then we got the reported exception.

For us, it would be helpful if we get always the license exception.

If its not possible to implement this, you can close this issue.

Update: I changed the status to 'Closed'

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #175

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