I have an album class (for a picture website) with a name, year, month and day. I want to quickly fetch all the albums for a given year/month so I created an index on year/month. This queries fine without the index, but when I add the index I get a NPE:
-------------------------------------------------------------------------------
Test set: com.example.neodatis_test.AlbumDaoTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.282 sec <<< FAILURE!
testGetAllForYearMonth(com.example.neodatis_test.AlbumDaoTest) Time elapsed: 0.259 sec <<< ERROR!
java.lang.NullPointerException
at org.neodatis.btree.impl.AbstractBTreeNode.getPositionOfKey(AbstractBTreeNode.java:180)
at org.neodatis.btree.impl.multiplevalue.BTreeNodeMultipleValuesPerKey.insertKeyAndValue(BTreeNodeMultipleValuesPerKey.java:49)
at org.neodatis.btree.impl.AbstractBTree.insertNonFull(AbstractBTree.java:384)
at org.neodatis.btree.impl.AbstractBTree.insert(AbstractBTree.java:375)
at org.neodatis.odb.impl.core.query.list.objects.AbstractBTreeCollection.addWithKey(AbstractBTreeCollection.java:95)
at org.neodatis.odb.impl.core.query.criteria.CollectionQueryResultAction.objectMatch(CollectionQueryResultAction.java:66)
at org.neodatis.odb.core.query.execution.GenericQueryExecutor.executeUsingIndex(GenericQueryExecutor.java:433)
at org.neodatis.odb.core.query.execution.GenericQueryExecutor.execute(GenericQueryExecutor.java:183)
at org.neodatis.odb.impl.core.layers.layer3.engine.ObjectReader.getObjects(ObjectReader.java:2118)
at org.neodatis.odb.core.layers.layer3.engine.AbstractStorageEngineReader.getObjects(AbstractStorageEngineReader.java:75)
at org.neodatis.odb.impl.main.ODBAdapter.getObjects(ODBAdapter.java:179)
at com.example.neodatis_test.AlbumDao.getAllForYearMonth(AlbumDao.java:36)
at com.example.neodatis_test.AlbumDaoTest.testGetAllForYearMonth(AlbumDaoTest.java:18)
I am attaching a test project that duplicates this error.
Extract the project and do a 'mvn test' to reproduce.
Test project showing above error.
I agree with many of your points in this article. I appreciate your well-written content. Youve made this article more interesting that others Ive read.
<a href="http://www.zootoo.com/profile/storybow97/blog/entry/weddingideasthatassureathreate" title="Promise">Promise</a>
Heya im for the first time here. I came across this board and I find It really useful it helped me out much. I hope to give something back and help others like you helped me.
<a href="http://www.zootoo.com/profile/climb0event/blog/entry/dressnetworkyourcurrentshopfor" title="Dressnetwork your">Dressnetwork your</a>
When I started reading your article, I figured this would be the same old boring content I had been reading. I was completely wrong. Your article made this topic more clear in an interesting way.
<a href="http://line8seed.autisable.com/769927483/command-the-events-together-with-spectacular-nighttime-dresses/" title="Night">Night</a>
It takes a real thinker to put together such great article content such as this. I agree with many of your views here. You make many strong points on the subject. This content is awesome.
<a href="http://reinkarnationkarawang.com/blogs/viewstory/8730" title="A Black dress Practical Yet Elegant">A Black dress Practical Yet Elegant</a>
Hey there! Someone in my Facebook group shared this website with us so I came to check it out. Im definitely loving the information. Im bookmarking and will be tweeting this to my followers! Exceptional blog and outstanding design and style.
<a href="http://welovepmclub.com/jcow/blogs/viewstory/14091" title="Discount bridesmaid dresses Is The Bridal Lehenga">Discount bridesmaid dresses Is The Bridal Lehenga</a>
Hello! Have a nice day!
Hello! Do you know about thease?
Stupid comment. What has this got to do?
payday advance in augusta ga payday joes
Hello, these post must have comments :-)
Hello,
Good Story Bro, +1!
Hello! Here you will find reviews, comparisons and tips of services dealing with payday loans!
payday check cashing inc payday database
Hello! Thank you for post! I think need more comments here :-)
Good news! Thanks for your site! I think here must been more coments! 5+
payday loan tampa payday loans vacaville ca
payday advance raleigh
Good work! I think these must be more comments!
Good work! I think these must be more comments!
Don't get me wrong, I thought the first book was really good, and I respect the author for that.
Don't get me wrong, I thought the first book was really good, and I respect the author for that.
Hello! You See Video About meteorite in russia?
The only individuals who would take a look good being dressed in these fugly things could be Ferrari gap crew whilst in the pits. sneakers isabel marant soldes http://isabellemarantsneakers.weebly.com/isabel-marant-blog.html
That's amazing, I never pondered Nostradamus within the OR [url=http://www.burberrycanadaoutlet.org/burberry-iphone5-case-c-39.html]burberry bags[/url]
Hello All! Now Start Spring!!! Every body good luck!!!!