339 words

Issue #162 - Doctor bug?

BugVersion: 2.4.1Priority: NormalStatus: FixedReplies: 2
#1
2012-07-18 16:35

Please see the attached .odb file. It was freshly created by my web application, and just very few entries have been posted to the database yet. But still the doctor reports a whole bunch of errors. My application seems to function properly though. I guess this is a bug in the doctor? Using version 2.4.1.

I get 

bjjl@ps2:~$ java -cp /opt/gf/glassfish/domains/domain1/applications/athene/WEB-INF/lib/objectdb-2.4.1.jar com.objectdb.Doctor /var/db/athene/athene.odb ObjectDB Doctor [version 2.4.1]
Copyright (c) 2012, ObjectDB Software. All rights reserved.
 
Scanning the database file...
... 16MB (total)
 
Analyzing database structure...
10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
 
BTree Value Errors
------------------
[1] net.pocketservices.athene.objects.persistent.HotTag
  - Unexpected object count: 1 (actual 0)
[2] net.pocketservices.athene.objects.persistent.HotUser
  - Unexpected object count: 1 (actual 0)
[3] net.pocketservices.athene.objects.persistent.Person
  - Unexpected object count: 2 (actual 0)
[4] net.pocketservices.athene.objects.persistent.ReadPointer
  - Unexpected object count: 1 (actual 0)
[5] net.pocketservices.athene.objects.persistent.Tag
  - Unexpected object count: 2 (actual 0)
 
Page Content Errors
-------------------
[1] Unexpected exception in page #3 entry #0: null
[2] Unexpected exception in page #3 entry #1: null
[3] Unexpected exception in page #4 entry #0: null
[4] Unexpected exception in page #4 entry #1: null
[5] Unexpected exception in page #9 entry #0: null
[6] Unexpected exception in page #10 entry #0: null
[7] Unexpected exception in page #21 entry #0: null
 
Missing Objects (Broken References)
-----------------------------------
[1] net.pocketservices.athene.objects.persistent.Person(3):'bjjl'
Referenced by:
  - net.pocketservices.athene.objects.persistent.Message(7):7
  - net.pocketservices.athene.objects.persistent.Message(7):10
  - net.pocketservices.athene.objects.persistent.Statistics(12):1342569600
[2] net.pocketservices.athene.objects.persistent.Tag(2):'test'
Referenced by:
  - net.pocketservices.athene.objects.persistent.Conversation(4):6

This happens after my recent changes to the object hierarchy, where I inherit from a common superclass, which I annotated as you suggested (in another recent issue):

package net.pocketservices.athene.objects.persistent;
 
import javax.persistence.MappedSuperclass;
 
/**
*
* @author bjjl
*/
@MappedSuperclass
public abstract class HotObject extends BaseObject {

Maybe it has to do with these changes? Please advise. 

Thank you very much! Kind regards, Benjamin Lorenz

 

lorenz2304
lorenz2304's picture
Joined on 2011-04-17
User Post #22
#2
2012-07-20 07:33

I tried to browse through the attached database with the Explorer now, and also here everything looks nice and consistent. So really hope this is only a bug in the Doctor? Please advise.

lorenz2304
lorenz2304's picture
Joined on 2011-04-17
User Post #23
#3
2012-07-20 18:54

The database seems to be healthy and the reported errors are indeed false alarm.

There was a problem in handling a mapped super class with no primary key, and that caused the Doctor errors.

This is now fixed in build 2.4.1_07. Thank you for this report.

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

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