Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Bernd Laengerich
Thomas Dudziak wrote: I think the error comes from the XDoclet module, not from Torque. The problem is that you should not redefine the field in the subclass I haven't redefined it in the java code, so you think it should not appear in the repository xml for the subclass? The usual

Re: OJB configuration problem on jboss

2005-10-26 Thread Armin Waibel
Hi Neil, this is a really strange error, seems that Oracle detect an objectionable number of bound variables in a prepared statement. You said that this error message doesn't arise in Resin+Oracle, thus it can't be a problem of OJB's sql generator. Does always the same error occur (same sql

RE: OJB configuration problem on jboss

2005-10-26 Thread Neil Jianguo Zhou
Hi Armin, It always occurs on same sql, and be reproduceable. It seems a code error, even I doubt the prepared sql statement. However, it works fine in Resin+Oracle. Is some neccessary configurations missing? Before occurs the ORA-01008 error, there're some doubtful info in JBosss+Oracle. But

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Bernd Laengerich [EMAIL PROTECTED] wrote: Thomas Dudziak wrote: I think the error comes from the XDoclet module, not from Torque. The problem is that you should not redefine the field in the subclass I haven't redefined it in the java code, so you think it should not appear

Re: proxy question

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Warner Onstine [EMAIL PROTECTED] wrote: Ok, I'm working on implementing the custom proxy class and am having some issues. When I try and use my custom Proxy class I get the following: Unable to create proxy using class:org.kuali.module.chart.bo.AccountProxy AccountProxy

Informix + SequenceManagerHighLowImpl

2005-10-26 Thread Thomas Franke
Hello there, we use in one case Informix and the org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl as the sequence manager. First it seemed good but then we must realize that we can't create a new record, if we didn't create a record in the rdbms before using OJB. So if we want to

Re: OJB configuration problem on jboss

2005-10-26 Thread Armin Waibel
Neil Jianguo Zhou wrote: Hi Armin, It always occurs on same sql, and be reproduceable. It seems a code error, even I doubt the prepared sql statement. However, it works fine in Resin+Oracle. Is the statement generated by OJB or by a user query (if so please post it)? Does batch-mode=false

Re: Informix + SequenceManagerHighLowImpl

2005-10-26 Thread Armin Waibel
Hi Thomas, Thomas Franke wrote: Hello there, we use in one case Informix and the org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl as the sequence manager. First it seemed good but then we must realize that we can't create a new record, if we didn't create a record in the rdbms

Re: Informix + SequenceManagerHighLowImpl

2005-10-26 Thread Thomas Franke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Armin, Have a look in method SequenceManagerHighLowImpl#lookupStoreSequence(PersistenceBroker broker, FieldDescriptor field, String seqName) this method is called to store/lookup a HighLowSequence instance. OJB first lookup a

Using OJB with Oracle Packages and Procedures - simple Question

2005-10-26 Thread Fernando Bernardino
Hello people! I'm creating a app for a mobile phone/PDA's/Palms. This app connect to a servlet server and uses request/response to send/get the information. The client is an AWT frame. In the server, I'm using Struts to control my servlets and I'm thinking about to use OJB to control my DAO's.

RE: java.lang.Integer not found in OJB Repository

2005-10-26 Thread Lemke, Wesley
No one knows what could be causing this error? -Original Message- From: Lemke, Wesley [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 25, 2005 12:53 PM To: OJB Users List Subject: java.lang.Integer not found in OJB Repository I am receiving the following error: Error deleting object

Re: java.lang.Integer not found in OJB Repository

2005-10-26 Thread Armin Waibel
Hi Wes, seems OJB get the PK object instead the persistent object to delete. Could you compile the ojb.jar with debug 'on' (call ant jar-debug in OJB's base directory) so that we get line numbers in stack trace. regards, Armin Lemke, Wesley wrote: No one knows what could be causing this

RE: java.lang.Integer not found in OJB Repository

2005-10-26 Thread Lemke, Wesley
Here is the entire stack trace with line numbers (this is OJB 1.0.2): [10/26/05 10:18:21:951 CDT] 29592959 SystemErr R com.lmig.pm.affinity.exception.SystemException occurred. Reason: Error deleting object class com.lmig.pm.affinity.service.StateDiscountUpdater (caused by:

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Bernd Laengerich [EMAIL PROTECTED] wrote: As for the error message, for now you can turn off the XDoclet check using the checks attribute as described here:# It's not XDoclet complaining, but Torque, so is this a Torque issue? The error message and stack trace (with -debug)

RE: java.lang.Integer not found in OJB Repository

2005-10-26 Thread Lemke, Wesley
Sorry, I didn't get the debug jar in the right directory. Here is the correct stack trace, and it really has the line number this time! [10/26/05 10:55:53:579 CDT] 2650265 BaseRuntimeEx W com.lmig.pm.affinity.exception.BaseRuntimeException com.lmig.pm.affinity.exception.SystemException

Re: java.lang.Integer not found in OJB Repository

2005-10-26 Thread Armin Waibel
Lemke, Wesley wrote: Sorry, I didn't get the debug jar in the right directory. Here is the correct stack trace, and it really has the line number this time! The most important part of the stack trace seems to be org.apache.ojb.broker.core.PersistenceBrokerImpl.deleteCollections(Persi

Re: proxy question

2005-10-26 Thread Warner Onstine
Well, I was hoping that that would do the trick but no dice. I'm still getting the error that it cannot create a proxy using my proxy class. org.springframework.orm.ojb.OjbOperationException: OJB operation failed; nested exception is org.apache.ojb.broker.PersistenceBrokerException: Unable to

Re: proxy question

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Warner Onstine [EMAIL PROTECTED] wrote: Well, I was hoping that that would do the trick but no dice. I'm still getting the error that it cannot create a proxy using my proxy class. snip Caused by: java.lang.NoSuchMethodException:

Foreign key not set

2005-10-26 Thread Jean-Yves Sironneau
Hello, I'am having trouble trying to find out what i am doing wrong, i have a class user and a class role and a user has a collection of roles, this kind of schema is working for other classes with the same kind of relationship but not for this one. OJB is trying to insert a null value in

Re: Foreign key not set

2005-10-26 Thread Armin Waibel
Hi Jean-Yves, in User the 1:n reference the auto-update setting is undefined and by default OJB use 'link' for 1:n relations, thus I would expect that the FK in Admin will be set. Could you post the generated repository.xml for User, Admin, Role? regards Armin Jean-Yves Sironneau wrote:

Re: proxy question

2005-10-26 Thread Warner Onstine
Not really sure, I just wiped out the classes directory and rebuilt completely. Then I opened the class file generated and found the appropriate method in the class file, so I know it's there (and it's the only class named AccountProxy). Just to satisfy my curiosity I set it up through a debugger

Re: Foreign key not set

2005-10-26 Thread Jean-Yves Sironneau
here is the extract of the repository file : Oups i think i forgot to explain that Role is an abstract class, and that Viewer inherits from Role, Author from Viewer and Admin from Author here are the classes too : public class Viewer extends Role { public Viewer(DocumentBase base) {

Re: Foreign key not set

2005-10-26 Thread Armin Waibel
Could you try to set auto-update=link in 1:n reference of User and run your test again: collection-descriptor name=roles element-class-ref=org.jys.clepsydra.data.users.Role auto-update=link auto-delete=true inverse-foreignkey field-ref=userId/

Re: Foreign key not set

2005-10-26 Thread Jean-Yves Sironneau
i'am getting the same error. i'am going to try to do it with a non abstract class maybe it can be that. Armin Waibel wrote: Could you try to set auto-update=link in 1:n reference of User and run your test again: collection-descriptor name=roles

Re: proxy question

2005-10-26 Thread Warner Onstine
Alright so it does appear to have been caused by some weird classpath issue. But now I'm running into another problem. org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.PersistenceBrokerException: Error invoking method toString at

M:N storage removes duplicate elements

2005-10-26 Thread Jason A. Lunn
I have an indirection table foo_bar that happily implements an m:n relationship between foo and bar. the columns of foo_bar include foo_id, bar_id, and a unique id for the association itself (mysql backend, the id column is inserted automatically). This is because it is relevant to my

Re: proxy question

2005-10-26 Thread Thomas Dudziak
On 10/27/05, Warner Onstine [EMAIL PROTECTED] wrote: Alright so it does appear to have been caused by some weird classpath issue. But now I'm running into another problem. org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.PersistenceBrokerException: Error invoking

Re: M:N storage removes duplicate elements

2005-10-26 Thread Thomas Dudziak
On 10/27/05, Jason A. Lunn [EMAIL PROTECTED] wrote: I have an indirection table foo_bar that happily implements an m:n relationship between foo and bar. the columns of foo_bar include foo_id, bar_id, and a unique id for the association itself (mysql backend, the id column is inserted

Re: Foreign key not set

2005-10-26 Thread Armin Waibel
Jean-Yves Sironneau wrote: i'am getting the same error. i'am going to try to do it with a non abstract class maybe it can be that. I setup a similar test Implementation odmg = OJB.getInstance(); Database db = odmg.newDatabase(); db.open(null, Database.OPEN_READ_WRITE); BookShelf bookShelf

Re: Foreign key not set

2005-10-26 Thread Jean-Yves Sironneau
So i still don't get it, the workaround is to not use anonymous foreign key and to set the userId myself... As i don' t know in OJB where the anonymous key is supposed to be set i can't really try to find the bug for now, but i'll try to take a look. Thanks for your help. Jean-Yves

Re: Foreign key not set

2005-10-26 Thread Armin Waibel
Hi again, a correction of my previous post (I don't realized that you use the odmg-api). In the new upcoming version you have to set auto-update=none and auto-delete=none or object when using the odmg-api. collection-descriptor name=roles

Re: Foreign key not set

2005-10-26 Thread Jean-Yves Sironneau
I can not keep trying right now, but i will tomorrow, the visible difference i see is that of storing the user i use the way : Transaction tx = getImplementation().newTransaction(); tx.begin(); db.makePersistent(o); tx.commit(); But the collections of roles is

Re: M:N storage removes duplicate elements

2005-10-26 Thread Jason A. Lunn
On Oct 26, 2005, at 19:00, Thomas Dudziak wrote: On 10/27/05, Jason A. Lunn [EMAIL PROTECTED] wrote: I have an indirection table foo_bar that happily implements an m:n relationship between foo and bar. the columns of foo_bar include foo_id, bar_id, and a unique id for the association

Re: OJB configuration problem on jboss

2005-10-26 Thread Zhou Neil Jianguo
Hi Armin, 2005/10/26, Armin Waibel [EMAIL PROTECTED]: Neil Jianguo Zhou wrote: Hi Armin, It always occurs on same sql, and be reproduceable. It seems a code error, even I doubt the prepared sql statement. However, it works fine in Resin+Oracle. Is the statement generated by OJB or

RE: Using OJB with Oracle Packages and Procedures - simple Question

2005-10-26 Thread Ron Gallagher
Fernando -- OJB can be configured to use Oracle packages/procedures for all CRUD operations. See http://db.apache.org/ojb/docu/howtos/howto-work-with-stored-procedures.html for details on how. As far as using packages/procedures for queries, I don't think support for that is present, or even