History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COR-1214
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Dheeraj Guntupalli
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
db4o Core

Db server closed when upgraded from 5.5 version to 6.4.14.8331 with btree based freespace management system

Created: 24/Mar/08 12:57 PM   Updated: 17/Jul/08 04:06 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.44

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0h
Time Spent - 23h
Time Spent: 23h
Time Spent - 23h

File Attachments: 1. Zip Archive attach.zip (2 kb)

Environment: db4o 6.4, 7.1 and 7.2

Peers: Carl Rosenberger
Order: 2
Iteration: 44
Original IDS Estimate: 2
Resolution Date: 22/May/08 01:17 PM
First Response Date: 31/Mar/08 02:48 PM
Labels:
Participants: Dheeraj Guntupalli, Norberto Goussies, Richard Liang and Rodrigo B. de Oliveira
Number of Attachments: 1
Number of Comments: 5


 Description  « Hide
Reported by the client on salesforce.

First opened a server using db4o 5.5. Saved data into the db. Now upgraded the server to 6.4 version with
 Db4o.configure().freespace().useBTreeSystem(); Perform some update and delete operations.

Now i restart the server, we get the following exception.

Exception in thread "main" java.lang.NullPointerException
at com.db4o.internal.PersistentIntegerArray.readThis(PersistentIntegerArray.java:31)
at com.db4o.internal.PersistentBase.read(PersistentBase.java:92)
at com.db4o.internal.freespace.BTreeFreespaceManager.initializeExisting(BTreeFreespaceManager.java:152)
at com.db4o.internal.freespace.BTreeFreespaceManager.start(BTreeFreespaceManager.java:205)
at com.db4o.internal.LocalObjectContainer.readThis(LocalObjectContainer.java:494)
at com.db4o.internal.IoAdaptedObjectContainer.openImpl(IoAdaptedObjectContainer.java:62)
at com.db4o.internal.PartialObjectContainer.open(PartialObjectContainer.java:120)
at com.db4o.internal.IoAdaptedObjectContainer.<init>(IoAdaptedObjectContainer.java:35)
at com.db4o.internal.ObjectContainerFactory.openObjectContainer(ObjectContainerFactory.java:20)
at com.db4o.Db4o.openFile(Db4o.java:246)
at com.db4o.Db4o.openServer(Db4o.java:373)
at com.db4o.Db4o.openServer(Db4o.java:337)
at com.db4o.Db4o.openServer(Db4o.java:302)
at com.test.c1363.ServDb.startServer(ServDb.java:57)
at com.test.c1363.ServDb.main(ServDb.java:36)

Please let me know if you need further details.




 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dheeraj Guntupalli - 24/Mar/08 01:35 PM
Hope this is useful. The class definition we tried to store and update is below.

public class StClass {

private int id;

private Vector<Object> vector;
 
       // getter setter methods
}

Richard Liang - 31/Mar/08 02:48 PM
Hello Dheeraj,

Sorry, I cannot reproduce the failure according to your comments above. Would you please provide a small test case or describe the steps that you updated the database from 5.5 to 6.4? Thanks a lot.

Best regards,
Richard.

Dheeraj Guntupalli - 04/Apr/08 10:39 AM
Sorry for the late response. Actually the above mentioned behavior i observed in both client server and local mode. The client gets the error in local mode. I have attached the test case.

Steps to reproduce.

Built a database using db4o 5.5. Added some records here.
Now upgraded the database to 6.4 version, with the configure().freespace().useBTreeSystem() configuration.
It will fail after you close and reopen the database, updating and deleting the records each time.



Rodrigo B. de Oliveira - 30/Apr/08 02:56 PM
First make sure that it's possible to upgrade from 5.5 to trunk after defragmenting the database.