[castor-dev] blob access - end of tns channel reached

2002-02-18 Thread lars.gersmann
hi, im using the latest castor from cvs, oracle 8.1.7 and oracle thin driver. the castor mapping maps a blob field to stream (like recommended :-). Writing a stream to the blob fails when more then 2kb data should be written. an ioexception with message "end of tns channel reached" will be thr

Re: [castor-dev] fix for bug 838

2002-02-18 Thread Keith Visco
Hi Ozgur, Ozgur Balsoy wrote: > > Keith, > > No problem. It's a huge package, and I don't know of a lot of things in the > architecture. Yes...I can imagine the architecture probably takes a while to learn. I appreciate your initiative in trying to learn it, we can always use more people wh

Re: [castor-dev] fix for bug 838

2002-02-18 Thread Ozgur Balsoy
Keith, No problem. It's a huge package, and I don't know of a lot of things in the architecture. My patch solved my problems, but, of course, as the community we would appreciate more generalized solutions. Also, I'll use 'diff -u' next time. Ozgur -Original Message- From: [EMAIL PROTE

Re: [castor-dev] fix for bug 838

2002-02-18 Thread Keith Visco
Hi Ozgur, I believe your patch is incorrect. It appears to fix the problem for this specific example, but in reality it doesn't fix the problem and actually causes other problems. The descriptors are already being checked in the proper order. The XMLFieldDescriptor takes higher priority over th

Re: [castor-dev] fix for bug 838

2002-02-18 Thread Keith Visco
Thanks Ozgur, I'll try out your patch here and get it committed. --Keith Ozgur Balsoy wrote: > > I have checked this bug with the today's (2/18/02) CVS copy, and it is > still there. (http://bugzilla.exolab.org/show_bug.cgi?id=838) > > I think the problem is the following: > > In this secti

Re: [castor-dev] How can I make an object bo become transient aft er Iretrieved with an OQL query

2002-02-18 Thread Adrian Nistor
Thanks Margaret It does the job I wanted. Adrian >From: "Martin, Margaret" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: [castor-dev] How can I make an object bo become transient aft >er I retrieved with an OQL query > >Adrian, >Have you trieddoi

[castor-dev] fix for bug 838

2002-02-18 Thread Ozgur Balsoy
I have checked this bug with the today's (2/18/02) CVS copy, and it is still there. (http://bugzilla.exolab.org/show_bug.cgi?id=838) I think the problem is the following: In this section (lines 951-956) of Marshaller, there are two descriptors: descriptor and classDesc. The former belongs to th

Re: [castor-dev] Problems getting oriented...

2002-02-18 Thread Brad Cox
At 8:39 PM -0500 2/18/02, Brad Cox wrote: >PS: Might I suggest adding a readme with the instructions you sent me? Never mind. grep -rli found a mysql.xml with the necessary magic in the tests directory. [bcox@linux:/castor]$ ./example.sh jdo [test] Loading mapping descriptors from file:/usr/lo

Re: [castor-dev] Problems getting oriented...

2002-02-18 Thread Brad Cox
Thanks. Getting closer but not quite there. Exactly did you put in your src/examples/jdo/database.xml to get it to work? I guessed it wanted the jdbc driver class but that's apparently not it. PS: Might I suggest adding a readme with the instructions you sent me? http://castor.exolab.org/jdo-co

Re: [castor-dev] defining superclass, and interfaces in xml schema file.

2002-02-18 Thread Keith Visco
Hi Patrick, Patrick Moore wrote: > > Hi Keith --- > > Is this information going to be able to be read from the schema file? If the > answer is no then I will work on a patch that lets the information to be in > the schema file. The current answer is no. Many Schema files come from 3rd parti

Re: [castor-dev] Problems getting oriented...

2002-02-18 Thread Bruce Snyder
This one time, at band camp, Brad Cox said: BC>No, belay that. Tests work but examples still don't. BC> BC>I've tried BC> sh build.sh all BC> sh build.sh tests BC> sh build.sh examples BC> BC> sh text.sh xml # this works BC> sh examples.sh # this doesn't; xml/Test not found BC

Re: [castor-dev] How can I make an object bo become transient after I retrieved with an OQL query

2002-02-18 Thread Martin, Margaret
Adrian, Have you trieddoing a read-only query? results = oql.execute(Database.ReadOnly); Hope this helps- Margaret -Original Message- From: Adrian Nistor [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 6:26 PM To: [EMAIL PROTECTED] Subject: [castor-dev] How can I make an obj

[castor-dev] How can I make an object bo become transient after I retrieved with an OQL query

2002-02-18 Thread Adrian Nistor
I have next sequence of code: ... AccountData account; InitialContext ic = new InitialContext(); DataObjects jdo = (DataObjects) ic.lookup(JDO_JNDI); Database db = jdo.getDatabase(); oql = db.getOQLQuery("SELECT a FROM AccountData a WHERE UserName=$1”); oql.bind(“user”); r

Re: [castor-dev] Problems getting oriented...

2002-02-18 Thread Brad Cox
At 6:55 PM -0500 2/18/02, Brad Cox wrote: >At 6:30 PM -0500 2/18/02, Brad Cox wrote: >>At 3:30 PM -0700 2/18/02, Bruce Snyder wrote: >>>There are examples for Castor JDO in src/examples/jdo. In Test.java >>>at the bottom of the file is an example of marshalling Java objects >>>into XML. Note that

Re: [castor-dev] defining superclass, and interfaces in xml schema file.

2002-02-18 Thread Patrick Moore
Hi Keith --- Is this information going to be able to be read from the schema file? If the answer is no then I will work on a patch that lets the information to be in the schema file. The reason is that I would like to have all the information in the schema file so that the data definition is self

Re: [castor-dev] Problems getting oriented...

2002-02-18 Thread Brad Cox
At 6:30 PM -0500 2/18/02, Brad Cox wrote: >At 3:30 PM -0700 2/18/02, Bruce Snyder wrote: >>There are examples for Castor JDO in src/examples/jdo. In Test.java >>at the bottom of the file is an example of marshalling Java objects >>into XML. Note that these examples will not run properly until bein

Re: [castor-dev] Problems getting oriented...

2002-02-18 Thread Brad Cox
At 3:30 PM -0700 2/18/02, Bruce Snyder wrote: >There are examples for Castor JDO in src/examples/jdo. In Test.java >at the bottom of the file is an example of marshalling Java objects >into XML. Note that these examples will not run properly until being >compiled like so: > > build.sh examples