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

Key: COR-1173
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Patrick Roemer
Reporter: Patrick Roemer
Votes: 0
Watchers: 0
Operations

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

OSGi class loading configuration fails when global configuration is used

Created: 19/Feb/08 07:42 PM   Updated: 19/Feb/08 08:54 PM
Component/s: None
Affects Version/s: 7.1.30
Fix Version/s: 7.1.31

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

Iteration: 31
Resolution Date: 19/Feb/08 08:54 PM
Labels:
Participants: Patrick Roemer
Number of Attachments: 0
Number of Comments: 0


 Description  « Hide
When using the global config API factory methods, OSGi class loading configuration fails:

db = service.openFile(fileName);
=>
java.lang.ClassCastException: com.db4o.reflect.generic.GenericObject

Workaround until fixed: Pass an explicit config argument (recommended, anyway).

Configuration config = Db4o.newConfiguration();
// ...
service.openFile(config, fileName);

Reported in forums: http://developer.db4o.com/forums/thread/46690.aspx

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.