> In SessionFactoryImpl, the catch clause which throws a
> MappingException with the message "Could not instantiate
> persister class:..." (line 180 in v1.1.4b) discards the
> more detailed exception it receives (e).
..
> I found that the exception that was discarded read "Could not
> find a setter
A few more details on the exception:
The session is still open when I try to access the lazily initialized
collection. The code is as simple as this:
Gene gene = (Gene)session.load(DbGene.class, "PA6222");
Set refSeqs = gene.getReferenceSequences();
Iterator it = refSeqs.iterato
In SessionFactoryImpl, the catch clause which throws a MappingException with
the message "Could not instantiate persister class:..." (line 180 in
v1.1.4b) discards the more detailed exception it receives (e).
In my case, I did something dumb - adding a new key column to a table
without adding the
Mark Woon wrote:
Here's the mapping I'm using for the set:
And if I change it to lazy="false," I get:
java.lang.NullPointerException
at cirrus.hibernate.LockMode.greaterThan(LockMode.java:30)
at cirrus.hibernate.impl.SessionImpl.lock(SessionImpl.java:1121)
Ace! Thanks Jon ... looking forward :)
- Original Message -
From: "Jon Lipsky" <[EMAIL PROTECTED]>
To: "Gavin King" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, October 12, 2002 2:04 AM
Subject: Re: [Hibernate] Looking for Volunteers
> Hi Gavin,
>
> I spent a few hours tod
Hi All!
I'd like to implement a new feature in Hibernate, but I dont know how to
start best. I would like to be able to map classes that dont really
exist as javaclass, but use a dynabean instead
http://www.apache.org/~jvanzyl/jakarta-commons/beanutils/apidocs/org/apache/commons/beanutils/DynaB
I think I've fixed this problem now. (But I did it without first reproducing
the bug.)
Mark, would you do me a favor, please:
(1) check the fix works
(2) add a regression test to FooBarTest that
Thanks
Gavin
- Original Message -
From: "Mark Woon" <[EMAIL PROTECTED]>
Cc: "Hibernate M