Thanks Aaron:
I'll download the latest and give it a go.
Andy Dwelly
-----Original Message-----
From: Aaron Mulder <[EMAIL PROTECTED]>
To: jBoss <[EMAIL PROTECTED]>
Date: Thursday, September 07, 2000 5:51 AM
Subject: Re: [jBoss-User] Enity beans works in PR3 but fails in PR4!
> Well, here's what I found. The problem was a
>ClassNotFoundException. When you serialize stuff to the DB, we read it
>back in using an ObjectInputStream (no surprise). Apparently,
>ObjectInputStream calculates the ClassLoader to use by examining all the
>ClassLoaders for all the code in the stack. Of course, all the code in
>the stack of the JAWS implementation is jBoss code, loaded by the system
>ClassLoader, so the ObjectInputStream tries to find your EJB helper
>classes using the system ClassLoader, which of course fails (every EJB JAR
>has its own ClassLoader).
> So, I put in a "WorkaroundInputStream" that overrides
>"resolveClass" from ObjectInputStream to check the ContextClassLoader of
>the current thread first, and voila! It works again. The code is checked
>into CVS - give it a spin.
> Rickard and others, is there a better way to load EJB classes, or
>an existing ObjectInputStream impl with the proper overrides? I couldn't
>find one, but then I didn't look too hard either.
>
>Aaron
>
>On Wed, 6 Sep 2000, Andy Dwelly wrote:
>> Nil's solution for Hypersonic works as far as we can tell, but only in
the
>> context of PR3, its impossible to say with PR4 from the installer as that
is
>> having trouble during a create. The last CVS I downloaded (as of 2am GMT,
>> Sept 5) fixes this problem but has a different issue with dependent
objects
>> that at first sight seems to involve mixing up the class types on table
>> columns during a get.
>>
>> I've created a test case showing this and Aaron Mulder is looking at it -
>> we've agreed that I will submit it formally to bugzilla if he can't get
>> anywhere (assuming that I haven't screwed up anywhere). Aaron, care to
>> comment ?
>>
>> Andy Dwelly
>>
>> -----Original Message-----
>> From: howardp <[EMAIL PROTECTED]>
>> To: jBoss <[EMAIL PROTECTED]>
>> Date: Wednesday, September 06, 2000 10:01 AM
>> Subject: Re: [jBoss-User] Enity beans works in PR3 but fails in PR4!
>>
>>
>> >That same Hypersonic SQLException (..."not supported: 2000"...) has been
>> >showing up here. (ref to past threads --"[JAWS] Java Objects in
>> >HypersonicSQL" & "[jBoss-User] Are dependent objects supported" )
>> >Did Nils Hartman's patched hsql.jar and JAWS mappings make it into CVS?
>> >Any pointers where to grab em?
>> >
>> >Also... does anybody have serialized objects CMP'ing properly with the
>> >current codebase? (i.e., serializing and mapping the transitive closure
>> >from a Vector public instance into a single field in a record) A
>> >working code sample would be most appreciated :))) TIA -- howard
>> >
>> >
>> >----- Original Message -----
>> >From: "Andy Dwelly" <[EMAIL PROTECTED]>
>> >To: "jBoss" <[EMAIL PROTECTED]>
>> >Sent: Wednesday, September 06, 2000 6:42 PM
>> >Subject: Re: [jBoss-User] Enity beans works in PR3 but fails in PR4!
>> >
>> >
>> >> Its one of two serialized objects each of which has a different class.
>> >> Hypersonic barfs with an unhelpful message, InstantDB seems to be
>> >trying to
>> >> desrialize the object into the wrong (i.e. the other) dependent class
>> >type.
>> >> I'll get the test case done this morning I hope.
>> >>
>> >> Andy
>> >>
>> >> -----Original Message-----
>> >> From: Aaron Mulder <[EMAIL PROTECTED]>
>> >> To: jBoss <[EMAIL PROTECTED]>
>> >> Date: Tuesday, September 05, 2000 6:41 PM
>> >> Subject: Re: [jBoss-User] Enity beans works in PR3 but fails in PR4!
>> >>
>> >>
>> >> > Is this a dependent EJB with its own tables in the DB or a
>> >> >serialized Java Object? I just changed the reading behavior, so I
>> >may
>> >> >have introduced a problem... I'd be interested in a test case, and
>> >please
>> >> >CC me on any bug ([EMAIL PROTECTED]).
>> >> >
>> >> >Thanks,
>> >> > Aaron
>> >> >
>> >> >On Wed, 6 Sep 2000, Andy Dwelly wrote:
>> >> >> Hmm. Well it looks as if this problem _is_ specific to the pr4
>> >installer
>> >> >> version. I downloaded the CVS sources, compiled them and this
>> >particular
>> >> >> problem went away.
>> >> >>
>> >> >> Unfortunately the latest CVS sources seem to have redeveloped a
>> >problem
>> >> with
>> >> >> dependent objects - both hypersonic and instant db are refusing to
>> >read
>> >> back
>> >> >> a dependent object from the database; one that they quite happily
>> >> commited
>> >> >> immediately prior.
>> >> >>
>> >> >> Its getting rather late (well early actually) for me to investigate
>> >this
>> >> >> fully, but I will try and put a test case on this issue tommorow
>> >and
>> >> submit
>> >> >> it to bugzilla if I can't see what's going on.
>> >> >>
>> >> >> Andy
>> >> >>
>> >> >> -----Original Message-----
>> >> >> From: howardp <[EMAIL PROTECTED]>
>> >> >> To: jBoss <[EMAIL PROTECTED]>
>> >> >> Date: Tuesday, September 05, 2000 11:39 AM
>> >> >> Subject: Re: [jBoss-User] Enity beans works in PR3 but fails in
>> >PR4!
>> >> >>
>> >> >>
>> >> >> >Hi Andy,
>> >> >> >
>> >> >> >How did you upgrade? If you used the zip binary or installer,
>> >rather
>> >> >> >than a CVS-based build, you might be experiencing something I'm
>> >seeing
>> >> >> >here -- the PR4 distro reflects the CVS state as of aug18. Please
>> >check
>> >> >> >out the post "August 18 4:25PM timestamps on all files in
>> >> >> >jBoss-2.0_pr4.zip" from earlier today, and let's know if you are
>> >seeing
>> >> >> >the same.
>> >> >> >
>> >> >> >- howard
>> >> >> >
>> >> >> >
>> >> >> >> On Tue, 5 Sep 2000, Andy Dwelly wrote:
>> >> >> >> > We upgraded a little earlier today, and now a set of entity
>> >beans
>> >> >> >that
>> >> >> >> > behave perfectly well in PR3 seem to be causing null pointer
>> >> >> >exceptions in
>> >> >> >> > PR4.
>> >> >> >> >
>> >> >> >> > I'm getting:
>> >> >> >> >
>> >> >> >> > java.lang.NullPointerException
>> >> >> >> > at
>> >> >> >> >
>> >> >>
>> >>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRe
>> >m
>> >> >> >oteC
>> >> >> >> > all.java:245)
>> >> >> >> > at
>> >> >> >> >
>> >> >>
>> >>sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:22
>> >0
>> >> >> >)
>> >> >> >> > at
>> >sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
>> >> >> >> > at
>> >> >> >> >
>> >> >>
>> >>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(
>> >U
>> >> >> >nkno
>> >> >> >> > wn Source)
>> >> >> >> > at
>> >> >> >> >
>> >> >>
>> >>org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:2
>> >2
>> >> >> >1)
>> >> >> >> > at $Proxy0.create(Unknown Source)
>> >> >> >> > at
>> >com.stamplets.test.ISPClient.<init>(ISPClient.java:63)
>> >> >> >> > at
>> >com.stamplets.test.ISPClient.main(ISPClient.java:142)
>> >> >> >> >
>> >> >> >> > ...on my first attempt to create an EntityBean called ISP, and
>> >it
>> >> >> >seems to
>> >> >> >> > be happening after my ejbPostCreate(...) method is called.
>> >> >> >Revealingly, the
>> >> >> >> > main console output halts with the lines:
>> >> >> >> >
>> >> >> >> > [JAWS] Rows affected = 1
>> >> >> >> > [ISP] post create called (this is a System.out.println in my
>> >> >> >> > ejbPostCreateMethod)
>> >> >> >> > [ISP]null
>> >> >> >> >
>> >> >> >> > Does anyone have any idea what could be going on ?
>> >> >> >> >
>> >> >> >> > Andy Dwelly
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Cedilla Software Services Ltd. - Java for the Internet and
>> >Finance
>> >> >> >> > Industries.
>> >> >> >> > Web: www.cedillasoft.com Email: [EMAIL PROTECTED] Tel: +44
>> >> >> >1481-242785
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > --------------------------------------------------------------
>> >> >> >> > To subscribe: [EMAIL PROTECTED]
>> >> >> >> > To unsubscribe: [EMAIL PROTECTED]
>> >> >> >> > Problems?: [EMAIL PROTECTED]
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> --------------------------------------------------------------
>> >> >> >> To subscribe: [EMAIL PROTECTED]
>> >> >> >> To unsubscribe: [EMAIL PROTECTED]
>> >> >> >> Problems?: [EMAIL PROTECTED]
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >--------------------------------------------------------------
>> >> >> >To subscribe: [EMAIL PROTECTED]
>> >> >> >To unsubscribe: [EMAIL PROTECTED]
>> >> >> >Problems?: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> --------------------------------------------------------------
>> >> >> To subscribe: [EMAIL PROTECTED]
>> >> >> To unsubscribe: [EMAIL PROTECTED]
>> >> >> Problems?: [EMAIL PROTECTED]
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >--
>> >> >--------------------------------------------------------------
>> >> >To subscribe: [EMAIL PROTECTED]
>> >> >To unsubscribe: [EMAIL PROTECTED]
>> >> >Problems?: [EMAIL PROTECTED]
>> >>
>> >>
>> >>
>> >> --
>> >> --------------------------------------------------------------
>> >> To subscribe: [EMAIL PROTECTED]
>> >> To unsubscribe: [EMAIL PROTECTED]
>> >> Problems?: [EMAIL PROTECTED]
>> >
>> >
>> >
>> >--
>> >--------------------------------------------------------------
>> >To subscribe: [EMAIL PROTECTED]
>> >To unsubscribe: [EMAIL PROTECTED]
>> >Problems?: [EMAIL PROTECTED]
>>
>>
>>
>> --
>> --------------------------------------------------------------
>> To subscribe: [EMAIL PROTECTED]
>> To unsubscribe: [EMAIL PROTECTED]
>> Problems?: [EMAIL PROTECTED]
>>
>
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]