cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Lamb (dev)" <>
Subject Null pointer in Cayenne 2.0.3 code
Date Fri, 31 Aug 2007 14:20:18 GMT
Hello list,

We are experimenting a Cayenne crash and wondering how to get around it.

Here is the place of the crash:

	at org.apache.cayenne.query.BaseQueryMetadata.resolve 
	at org.apache.cayenne.query.SelectQuery.getMetaData( 
	at org.apache.cayenne.util.ObjectContextQueryAction.<init> 
	at org.apache.cayenne.access.DataContextQueryAction.<init> 
	at org.apache.cayenne.access.DataContext.onQuery(
	at org.apache.cayenne.access.DataContext.performQuery 
	at ch.rodano.msbase.model.Patient.patientWithPKInContext 

I am not certain how to check the line were it crashed (looking at  
the code repository on-line does not probably garantee the line  
number is the same).

We are simply trying to get a list of objects:

     SelectQuery allPatients = new SelectQuery(Patient.class);
     List patients = dataContext.performQuery(allPatients);

Probably something is wrong with our model, but what? How to find out?
The only different thing we did (which we did already previously) is  
that the primary key for Patient is a varchar (String) and is not  
hidden in the Java Class.

Thanks for any hints (we regenerated everyting, etc... always the  
same crash)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message