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

Key: COR-750
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Unassigned
Reporter: Tboudreau Tboudreau@sun.com
Votes: 0
Watchers: 0
Operations

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

NPE in Platform4.hasWeakReferences

Created: 03/Aug/07 02:11 PM   Updated: 14/Aug/07 11:01 AM
Component/s: Queries
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Original Estimate: 8h
Original Estimate - 8h
Remaining Estimate: 8h
Remaining Estimate - 8h
Time Spent: Not Specified
Remaining Estimate - 8h

Environment: Mac OS intel JDK 1.5.0_07

Resolution Date: 14/Aug/07 11:01 AM
First Response Date: 04/Aug/07 05:29 PM
Labels:
Participants: Norberto Goussies and Tboudreau Tboudreau@sun.com
Number of Attachments: 0
Number of Comments: 2


 Description  « Hide
I have a daemon thread that is pulling email messages out of the database to retry sending if sending failed. I am running into the following exception that gets thrown repeatedly.

Note it is possible that this is a threading issue - it is possible that one thread is removing these objects from the database while another one is also manipulating them in the database. No idea if that has anything to do with it.

Any suggestions for a workaround appreciated.

java.lang.NullPointerException
        at com.db4o.internal.Platform4.hasWeakReferences(Unknown Source)
        at com.db4o.internal.ObjectReference.getObject(Unknown Source)
        at com.db4o.internal.PartialObjectContainer.objectForIDFromCache(Unknown Source)
        at com.db4o.internal.PartialObjectContainer.getActivatedObjectFromCache(Unknown Source)
        at com.db4o.internal.query.result.AbstractQueryResult.activatedObject(Unknown Source)
        at com.db4o.internal.query.result.IdListQueryResult.get(Unknown Source)
        at com.db4o.internal.query.result.StatefulQueryResult.get(Unknown Source)
        at com.db4o.internal.query.ObjectSetFacade.get(Unknown Source)
        at java.util.AbstractList$Itr.next(AbstractList.java:422)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:176)
        at java.util.ArrayList.<init>(ArrayList.java:136)
        at org.netbeans.webapps.topicauction.mail.MailQueue$3.run(MailQueue.java:324)
  

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Norberto Goussies - 04/Aug/07 05:29 PM
Hi tboudreau,
In order to help you to resolve this issue, we need a little more of information... could you please add a test case code?

Thanks!

Norberto Goussies - 14/Aug/07 11:01 AM
Unable to reproduce