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

Key: COR-673
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

Reflector for the Gigaspaces Adapter returning null values

Created: 08/Jun/07 06:23 AM   Updated: 18/Jul/08 02:57 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

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

File Attachments: 1. Zip Archive test.zip (4.54 Mb)

Environment: db4o 6.1 , jdk5. and gigaspaces 5.2 EE

Resolution Date: 04/Jul/07 03:12 PM
First Response Date: 15/Jun/07 06:49 AM
Labels:
Participants: Dheeraj Guntupalli, Rodrigo B. de Oliveira and Vidyadhar Nirantar
Number of Attachments: 1
Number of Comments: 3


 Description  « Hide
When running the Retrieve class it works fine. But if we comment out createClassTable() and insert(). and call just getEntry() on the database, it returns null values for some fields.

Even for the PEReflectField. get() are not called as expected

Ex: when createClassTable() and insert() are not commented
Output is TestClass , T1, 8, field2

When commented Out put is TestClass , null , 8, null


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Vidyadhar Nirantar - 15/Jun/07 06:49 AM

Rodrigo, any insight into this?
Is the problem with db4o or with Reflector code?


-vdhar


Rodrigo B. de Oliveira - 18/Jun/07 06:45 PM
I'm still working on this.

What I'm doing right now is writing a complete test suite for db4o's reflector api based on a hypothetical PersistenceProvider interface which is roughly based on GigaSpaces persistence adapter interfaces.

The test suite will serve two purposes: documenting how to properly write a custom reflector and making sure db4o doesn't break custom reflectors.

It should be available later this week.

Rodrigo B. de Oliveira - 04/Jul/07 03:12 PM
We are now providing a complete test case which serves as an example on how to write custom reflector implementations.

The test case can be found under the db4oj.tests project (src/com/db4o/db4ounit/common/reflect/custom/) in our repository.

Further problems or questions will be more productively answered if provided with a patch to the test case.