Hi Oleg, Hi Jakob, Hi Matthew,
My fault again! I'm using JDK 1.4. In Jdk1.4 java.lang.reflect.Field is
serializable. In Jdk 1.3 and lower it's not!
After setting the attribute PersistentFieldDefaultImpl.field to
transient everything should be fine under JDK 1.3 too now.
Oleg: I also applied your patch.
thanks !
Thomas
Oleg Nitz wrote:
> Thomas, it still fails with the same error.
> I propose the following patch, which solves the problem:
>
> Index: RepositoryPersistor.java
> ===================================================================
> RCS file:
> /cvsroot/objectbridge/ojb-1-0/src/java/ojb/broker/metadata/RepositoryPersistor.java,v
> retrieving revision 1.5
> diff -c -r1.5 RepositoryPersistor.java
> *** RepositoryPersistor.java 2 May 2002 05:06:05 -0000 1.5
> --- RepositoryPersistor.java 2 May 2002 10:34:46 -0000
> ***************
> *** 102,108 ****
> else
> {
> DescriptorRepository result = buildRepository(filename);
> ! serialize(result, serFile);
> return result;
> }
> }
> --- 102,111 ----
> else
> {
> DescriptorRepository result = buildRepository(filename);
> ! if (useSerializedFile)
> ! {
> ! serialize(result, serFile);
> ! }
> return result;
> }
> }
>
> May I commit it?
>
> Oleg
>
> On Thursday 02 May 2002 08:08, you wrote:
>
>>Hi Oleg,
>>
>>SOrry, that was my fault. I checked in some hacked stuff.
>>I fixed it over the last two days. So if you get the latest stuff from
>>CVS everything should run smooth now.
>>
>
>
>
|