null pointer exception
Jim
We are trying to valid a memory.
During a test I got a null pointer exception. I am not sure
why.
The memory could be corrupt.
here is the stack trace:
Caused by: java.lang.NullPointerException
at com.saffrontech.resource.BaseCategoryValue.equals(BaseCategoryValue.java:150)
at java.util.HashMap.put(HashMap.java:376)
at java.util.HashSet.add(HashSet.java:200)
at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
at java.util.HashSet.<init>(HashSet.java:100)
at com.saffrontech.saffronone.atom.DefaultAtomizer.getAttributes(DefaultAtomizer.java:120)
at com.saffrontech.processor.query.BaseQuery.execute(BaseQuery.java:333)
at com.saffrontech.processor.BaseQueryProcessor.execute(BaseQueryProcessor.java:57)
at com.saffrontech.itinerary.Whiteboard.execute(Whiteboard.java:692)
at com.saffrontech.webservices.WhiteboardRestlet.process(WhiteboardRestlet.java:35)
at com.saffrontech.webservices.SaffronRestlet.handle(SaffronRestlet.java:21)
I can provide more info - if needed - John
253-657-5589
Support Staff 2 Posted by Jim Fleming on 07 Jun, 2010 09:51 PM
John, Chances are if this is coming from the corrupt memory on nash, then there is an atom that don't exist. I will put in code to protect against this error.
/Jim
3 Posted by Harry Stovall on 07 Jun, 2010 10:05 PM
Yea, I saw the stack trace and suggested that John send a tender. I thought that BaseCategoryValue.equals() may not be following the full Java equals contract: http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(.... Of course, a little more info on how our memory may be messed up may be useful.
Thx
Harry
Support Staff 4 Posted by Jim Fleming on 08 Jun, 2010 01:16 PM
Maybe at the 10:00 meeting I can get more background on this issue.
Thanks,
Jim