Well, the app is actually a Tapestry 5 app... so maybe there is an
issue with serialization. I will check. However, a few lines before,
I fetched another entity without any trouble.
Now, the DataContext is an attribute of a class I instantiate from a
Tapestry page. The DataContext is simply c
I see Andrus already replied a bit ...
One thing I'd suggest doing when you go back and re-work it is to
not do:
Expression q = Expression.fromString("patientPk = '" + pk + "'");
This could cause you problems if your string value ever has single
quotes in it or other special characters. I
I see Andrus already replied a bit ...
One thing I'd suggest doing when you go back and re-work it is to not do:
Expression q = Expression.fromString("patientPk = '" + pk + "'");
This could cause you problems if your string value ever has single
quotes in it or other special characters. It is f
The line numbers from 2.0 branch should match:
https://svn.apache.org/repos/asf/cayenne/main/branches/STABLE-2.0/
Looking at the code, it seems to come down to DataContext having a
null EntityResolver. A random thought - is there a serialization/
deserialization cycle somewhere in your app
Initially, it was a static method to fetch a Patient from the primary
key (give the DataContext, the String, returns the Patient or null).
Since whatever I was doing would crash Cayenne, I simply tried to do
fetch all patients:
Here is the function (will all my experiments commented out :-)
Hi Alex,
I'm curious as to why:
at ch.rodano.msbase.model.Patient.patientWithPKInContext(Patient.java:30)
is in your stack trace? What does that method do?
Thanks,
/dev/mrg
On 8/31/07, Alexander Lamb (dev) <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> We are experimenting a Cayenne crash and
Hello list,
We are experimenting a Cayenne crash and wondering how to get around it.
Here is the place of the crash:
java.lang.NullPointerException
at org.apache.cayenne.query.BaseQueryMetadata.resolve
(BaseQueryMetadata.java:97)
at org.apache.cayenne.query.SelectQuery.getMetaData(SelectQuer
Hi,
yes - with Java 5 the build succeeds. Maybe there should be a warning on
Building Cayenne page about Java 6 incompatibility.
Thanks,
Borut
2007/8/30, Andrus Adamchik <[EMAIL PROTECTED]>:
> Hi Borut,
>
> That's a Java 6 symptom. Try building with Java 5.
>
> Cheers,
> Andrus
>
> On Aug 30, 20