
|
If you were logged in you would be able to see more operations.
|
|
|
db4o Core
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
|
|
|
Remaining Estimate:
|
8h
|
|
|
Time Spent:
|
Not Specified
|
|
|
|
|
Environment:
|
Mac OS intel JDK 1.5.0_07
|
|
|
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)
|
|
Description
|
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)
|
Show » |
|
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!