Strange error message

Camille Troillard <[email protected]>
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Hello,

I used to have unique primary keys, generated at the adaptor level.
The problem is that, when stored in a string PKs are very large, that's  
why I decided to use Integer primary keys.

Since I have made the corresponding modification I keep having strange  
error messages or behaviors.
For example, when I ask to fetch an object of entity "A" I have a  
ClassCastException telling me that the object of class "B" has been  
casted to object of class "A".
Note that in my model, those classes are not related with inheritance.

I also get a NPE somewhere in a private API of EOF (see provided  
stack-trace at the end of the mail).
I cannot tell what's going on, so please EOF gurus help me find the key  
to this problem ...


Camille



---------------------------------------------------
A stack-trace of an unknown exception.



[2002-10-08 17:24:23 CEST] <WorkerThread13>  
java.lang.NullPointerException
	at  
com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelati 
onshipEditingContext(EODatabaseContext.java:2373)
	at  
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceOb 
ject(EODatabaseContext.java:2421)
	at  
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDefer 
redFault(EOAccessDeferredFaultHandler.java:38)
	at  
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObj 
ect.java:892)
	at  
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyG 
enericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:533)
	at  
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject 
.java:1174)
	at odaiko.db._ODCooptation.coopted(_ODCooptation.java:84)
	at odaiko.app.OTSession.participant(OTSession.java:40)
	at odaiko.app.OTSession.setUser(OTSession.java:75)
	at  
odaiko.interactive.OXIdentificator.prepareSessionWithRequest(OXIdentific 
ator.java:23)
	at  
odaiko.app.SLDAIdentificator.prepareSessionWithRequest(SLDA.java:128)
	at odaiko.app.SLDA.prepareWithRequest(SLDA.java:44)
	at  
odaiko.interactive.OXStaticAction.triggerAction(OXStaticAction.java:73)
	at java.lang.reflect.Method.invoke(Native Method)
	at  
com.webobjects.appserver.WODirectAction.performActionNamed(WODirectActio 
n.java:151)
	at  
com.webobjects.appserver._private.WODirectActionRequestHandler._handleRe 
quest(WODirectActionRequestHandler.java:174)
	at  
com.webobjects.appserver._private.WODirectActionRequestHandler.handleReq 
uest(WODirectActionRequestHandler.java:307)
	at  
er.extensions.ERXDirectActionRequestHandler.handleRequest(ERXDirectActio 
nRequestHandler.java:29)
	at  
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav 
a:1133)
	at  
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread. 
java:158)
	at  
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java 
:231)
	at java.lang.Thread.run(Thread.java:491)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.