Re: java.lang.StackOverflowError within ODMG

2003-06-26 Thread Thomas Mahler
you should use the validationQuery attribute on the jdbc-connection descriptor. the validation query will be executed to check if a connection is still alive before using a connection. cheers, Thomas Peter Gaus wrote: Hi all, we are using ODMG and have a strange problem: When we start our

Re: Dynamic proxies and references Help

2003-06-26 Thread Thomas Mahler
Hi Marcus, Marcus Breese wrote: It seems that I'm having problems posting to the list. At any rate... It seems you are not subscribed to the list. for post of nun-subscribed user a manual affirmation by the list maintainer is required. As I was travelling yesterday, there was some delay for

ojb-servlet WebApp on Tomcat

2003-06-26 Thread Gerhard Kreutzer
Hello, I will use OJB in a web application running on Tomcat 4.1.24 using JDK 1.4.1 on a Win2K box. After installing OJB 1.0.rc3, the check bin\build junit runs properly. The tutorial1 works fine also. Now, i create the ojb-servlet webapp and deploy it to tomcat webapps. Tomcat greater 4.1.10

Re: web app in jboss -- where to put files?

2003-06-26 Thread Armin Waibel
Hi, Caused by: org.apache.ojb.broker.metadata.MetadataException: Could not read repository class descriptor data, using repository: repository.xml: Error creating PersistentField: de.arvatosystems.monitoring.business.vo.CoreVO, entryID seems the repository file was found, but maybe it's

Re: ToDo list very empty

2003-06-26 Thread Alen Ribic
thx Thomas --Alen - Original Message - From: Thomas Mahler [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 7:57 AM Subject: Re: ToDo list very empty Hi ALen, here is a list that is not that empty: http://scarab.werken.com/scarab/issues/

Re: abort transaction causes TransactionNotInProgressException

2003-06-26 Thread Joerg Lensing
Joerg Lensing schrieb: hi armin, i think my problem is, that LocalTxManager.getCurrentTransaction() doesn't succed, because the transaction is registred to different thread (tx_table.get(Thread.currentThread())---) . I'm using struts and the transaction is saved to the session. when the

Re: abort transaction causes TransactionNotInProgressException

2003-06-26 Thread Armin Waibel
yep I think so. (We don't have a test case for 'join()'. Please let me know if you detect side effects) regards, Armin - Original Message - From: Joerg Lensing [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 8:54 AM Subject: Re: abort transaction

AW: web app in jboss -- where to put files?

2003-06-26 Thread Julia . Winkler
Hello Jim, but it seems to use the write file because otherwise it wouldn't have found the declaration of the CoreVO class. Or does this indicate that can not find the class CoreVFo? But I would then expect a NoClassDefFoundError. Other suggestions? Julia -Ursprüngliche Nachricht- Von:

Re: [jBoss] multiuser problems

2003-06-26 Thread Armin Waibel
Hi Phil, - exhausted DataSource pool (db-connection pool, jboss)? I use default settings for the OracleDS, should this be changed in oracle-service.xml? I'm not a database guy, but on second thoughts I think this can't be the problem (missing exhausted/timeout exception). On the dev

Re: A Very Serious problem -- The cursor SQLCUR7 is not in a prepared state

2003-06-26 Thread anuradha devi
Hi Armin, Thanks for your reply. It is basically like this. I have two users who logged on to my application and working on that parallely that means two different PB instances and contexts. It happened that both of them hit the same query at the same time and we got this problem. Is there any

Re: web app in jboss -- where to put files?

2003-06-26 Thread Armin Waibel
Hi again, The file is not corrupted. I validated it against the dtd with XML Spy and that works fine! ok, but Caused by: org.apache.ojb.broker.metadata.MetadataException: Error creating PersistentField: de.arvatosystems.monitoring.business.vo.CoreVO, entryID at

AW: web app in jboss -- where to put files?

2003-06-26 Thread Julia . Winkler
Hi Armin, sure I can post it. The Declaration is right at the beginning of the repository_user.xml: class-descriptor class=de.arvatosystems.monitoring.business.vo.CoreVO table=COREVO extent-class class-ref=de.arvatosystems.monitoring.business.vo.CoreRpcVO/ extent-class

Re: web app in jboss -- where to put files?

2003-06-26 Thread Armin Waibel
Hi, really strange! I agree, your declaration is ok. When using OJB standalone, do you get the same exception when calling 'Implementation odmg = factory.getInstance()' ? regards, Armin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 9:38

AW: web app in jboss -- where to put files?

2003-06-26 Thread Julia . Winkler
Hello Armin, I'm getting behind the problems!! But still I think it is strange! I wasn't strict enough with my naming conventions. Some class attributes started with a capital letter. Also it matched my speeling min the repository file, OJB wasn't able the create the persistent filed. This seems

Re: java.lang.StackOverflowError within ODMG

2003-06-26 Thread Peter Gaus
Hi Thomas, Thanks for your fast response and your advice. Our problem is solved. I have only two further questions: 1) Why does OJB a connection loss with the throw of an StackOverflowError (even if we you the validationQuery), couldn't there be another exception? 2) Does an addtitional

Need Direction or Instruction

2003-06-26 Thread [EMAIL PROTECTED]
Can anyone show me how to deploy db-ojb-1.0.rc3.tgz on windows tomcat4.1.4? I was using the previous version and didn't notice this latest version. Thanks in advance. Wai Kit. mail2web - Check your email from the web at

RE: mapping

2003-06-26 Thread oliver . matz
Hello, -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 10:12 AM To: OJB Users List Subject: mapping hello, i have to map several fields which can have a limited number of values. e.g. day of week = mon,tue, wed. Because of

Re: mapping

2003-06-26 Thread Joerg Lensing
[EMAIL PROTECTED] schrieb: or maybe BYTE? yes, this would be ok took, we have the same situation. We use the type-safe enum pattern in our application, i.e., a class DayOfWeek with a private constructor and seven static fields of type DayOfWeek, namely MONDAY, TUESDAY and so on. Then we

Am I missing something for the update

2003-06-26 Thread cmarcourt
Hi, update works perfectly well in my application for small modification, says only one setter. Now I've got a big big form (it's an eight step form). I stored its values in a session during all the time. I trace the value for a specific field, this value is right to the end. But when I call

RE: mapping

2003-06-26 Thread oliver . matz
Hello, -Original Message- From: Joerg Lensing [mailto:[EMAIL PROTECTED] We use the type-safe enum pattern in our application, Then we implement a class DayOfWeekToIntConversion implements org.apache.ojb.broker.accesslayer.conversions.FieldConversion i thought about this

Re: Am I missing something for the update

2003-06-26 Thread cmarcourt
I found my mistake. I forgot to set the Id to force an update of the object. Christophe Message du 26/06/03 10:49 De : cmarcourt [EMAIL PROTECTED] A : [EMAIL PROTECTED] Copie à : Objet : Am I missing something for the update Hi, update works perfectly well in my application for small

RE: attribute element in field-desciptor

2003-06-26 Thread Mahler Thomas
hi Joerg, http://db.apache.org/ojb/repository.html#attribute for reference. You can use this tag for user defined attrbites that you want to add to your field-, reference, collection and class-decsriptors. This allows you to keep special information within the DescriptorRepository. For instance

Re: attribute element in field-desciptor

2003-06-26 Thread Ron Gallagher
Joerg -- The attribute element allows you to add any sort of attribute without having to first modify the dtd. They allow users to implement enhancements that shouldn't be part of the core ojb api. I use them extensively on my current project to allow me to use Oracle packages to handle all

unable to get transaction in JBoss

2003-06-26 Thread Julia . Winkler
Hello, I'm using JBoss 3.0.6 and I have a web application running that uses OJB rc3. I'm trying to insert an object but I'm not able to get the current transaction: Transaction tx = odmg.currentTransaction(); /* here I get the crash */ tx.lock(object, Transaction.WRITE); tx.commit(); The ODMG

Latest CVS (rc4?), collection-class no longer work as defined in DTD

2003-06-26 Thread Edson Carlos Ericksson Richter
Hi! In my M:N testing work, I've discovered that class-descriptor now works ONLY for ManageableCollections now. This problem is caused by private ManageableCollection getCollectionByQuery(Class collectionClass, Class itemClass, Query query) ... result =

RE: Getting the correct class instantiated

2003-06-26 Thread David . Corbin
Well, not really. Your code looks like it's examining the database to find the right ClassDescriptor, which I don't really need to do. I'm looking for a way to override readObjectFromRow, so that I can simply return an object of the correct class. All the different classes come from the same

Re: unable to get transaction in JBoss

2003-06-26 Thread Armin Waibel
Hi, in your configuration OJB needs a JTA transaction to synchronize with this a internal tx. Try to use UserTransaction UserTransaction utx = lookup.. utx.begin() Transaction tx = odmg.currentTransaction(); /* here I get the crash */ tx.lock(object, Transaction.WRITE); utx.commit(); or

ODMG update bug moving from rc3 to rc4 (CVS HEAD)

2003-06-26 Thread Weaver, Scott
In ODMG, I have a 1:1 relationship between object A and object B. I retrieve object A using PB. I proceed to make a change to object B that was materialized along with object A. I then pass object A to a method that contains the code below, update(A). In rc3 object B's changes were made

RE: mapping

2003-06-26 Thread Lance Eason
Check out the FieldConversion interface. You can define your own FieldConversion that takes the Java representation (a String) and turns it into the database representation (a number) when rows are saved and does the reverse when they're read in. You then just register that FieldConversion

Re: mapping

2003-06-26 Thread Joerg Lensing
hello lance and oliver, you convinced me :-) joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
(this is a real long mail, but I've made a long research. The first part is the reason I started to research, the second is explain why this occur. The third is a suggestion of how can we correct). FIRST PART: Ok. To avoid the problem related to OJB always using RemovalAwareCollection, I put my

Re: web app in jboss -- where to put files?

2003-06-26 Thread kraemer
On Thu, Jun 26, 2003 at 10:05:04AM +0200, [EMAIL PROTECTED] wrote: Hello Armin, I'm getting behind the problems!! But still I think it is strange! I wasn't strict enough with my naming conventions. Some class attributes started with a capital letter. Also it matched my speeling min the

RE: Getting the correct class instantiated

2003-06-26 Thread Jim Shingler
How about this, Take a look at the method protected ClassDescriptor selectClassDescriptor(Map row) throws PersistenceBrokerException The row is basically a resultset that you of the table. Just pull your column that represents the correct class type and used that to indicate which object

RE: Getting the correct class instantiated

2003-06-26 Thread David . Corbin
AH... That was the context I was missing for your example to make sense to me... |-+--- | | Jim Shingler | | | [EMAIL PROTECTED]| | | et | | | | | |

Re: Sap DB

2003-06-26 Thread Jakob Braeuchi
hi, and now i should guess which one ? jakob Kwok Peng Tuck wrote: I get a sql exception when trying to run bin\build junit. I'm using version 7.3 of sapdb. Did you ask the driver to us oracle mode ? Jakob Braeuchi wrote: hi, i use sapdb to run the testcases. btw what's the problem ?

RE: Getting the correct class instantiated

2003-06-26 Thread sclark
David, Here is the RowReader that I use for this. It's an abstract class; a subclass to handle a specific table would have code like this: protected String getDiscriminatorColumn() { return KeyColumn; } protected Map getClassMappings() { if (sClassMap == null) {

optimistic locking and decomposed M:N relationships

2003-06-26 Thread Bonnie MacKellar
I am adding optimistic locking to my database, using integer version fields in each table. I notice that it does not seem to work with tables implementing M:N relationships (I am using the decomposed style). I get this error : com.jnetdirect.jsql.w: Cannot insert the value NULL into column

Re: ojb-servlet WebApp on Tomcat

2003-06-26 Thread Gerhard Kreutzer
Gerhard Kreutzer wrote: Hello, I will use OJB in a web application running on Tomcat 4.1.24 using JDK 1.4.1 on a Win2K box. Here are some additional information. After booting Tomcat and calling the ojb TestServlet the first time, ithe following Exception will be thrown:

Re: ojb-servlet WebApp on Tomcat

2003-06-26 Thread Cesar
Are y using the package commons-lang-1.0-mod.jar from jakarta commons? [ ]´s - Original Message - From: Gerhard Kreutzer [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 3:43 PM Subject: Re: ojb-servlet WebApp on Tomcat Gerhard Kreutzer wrote:

Sorted list

2003-06-26 Thread Saman Ghodsian
Hi everyone, I've been trying to find a way to have a sorted list where I can do a get method on the key, right now I'm using to lists, one that I have implemented based on the java SortedMap list and a vector, then when OJB uses the setList method I go and add all the elements to the sorted map,

Re: Sorted list

2003-06-26 Thread Thomas Mahler
Hi, Saman Ghodsian wrote: Hi everyone, I've been trying to find a way to have a sorted list where I can do a get method on the key, right now I'm using to lists, one that I have implemented based on the java SortedMap list and a vector, then when OJB uses the setList method I go and add all the

RE: Sorted list

2003-06-26 Thread Saman Ghodsian
Saman Ghodsian CTO Middle Earth Technologies Ltd. www.metca.com Cell (604)-839-7791 Vancouver, BC Canada -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 12:34 PM To: OJB Users List Subject: Re: Sorted list Hi, Saman

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
I don't think so. First of all, OJB is always using RemovalAwareCollection if I don't specify collection-class (I don't know why). Since RemovalAwareCollection has a call to afterStore, the object is always removed. I'm working a months with this problem, and trying to fix it. But only with

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=trueor auto-delete=false

2003-06-26 Thread Jakob Braeuchi
hi edson, i changed the testcases. now we have auto-delete ON RemovalAware (ok) auto-delete ON not RemovalAware (fail) auto-delete OFF RemovalAware (fail) auto-delete OFF not RemovalAware (ok) i could not find col.afterStore() when you check cascadeDelete ? jakob Edson Carlos Ericksson

Re: Latest CVS (rc4?), collection-class no longer work as definedin DTD

2003-06-26 Thread Thomas Mahler
Hi Edson, the private Method you refer to is expected to return a ManageableCollection. thus it's required to do this cast. I don't see how this could be avoided. The method private ManageableCollection getCollectionByQuery(Class collectionClass, Class itemClass, Query query) is called by

Re: addSql on Query

2003-06-26 Thread Jakob Braeuchi
hi michael, try using addSql: Query query; Criteria crit; crit = new Criteria(); crit.addEqualTo(boss, new Boolean(true)); crit.addSql(upper( name) like '%ER'); query = new QueryByCriteria(Person.class, crit);

Re: addSql on Query

2003-06-26 Thread Jakob Braeuchi
hi michael, sorry, adding free form sql to a query is not supported. please ignore my previous post . jakob Michael Schulze wrote: Hello, I use OJB with the PB API and DB2. I want to add FETCH x ROWS ONLY to a query to limit the number of rows returned (I know i could do this with

Re: New Oracle 9i Feature

2003-06-26 Thread David . Corbin
And how are these two things configured? |-+--- | | Matthew Baird | | | [EMAIL PROTECTED]| | | otiva.com | | | | | | 06/26/2003 03:07| | |

RE: New Oracle 9i Feature

2003-06-26 Thread Matthew Baird
That's a good question :) right now, batch enablement is the same as with the current JDBC connector descriptor way of doing thing: jdbc-connection-descriptor jcd-alias=default default-connection=true platform=Oracle9i

ODMG API thread safety

2003-06-26 Thread Yang, Wenchao
I am using ojb-0.9.7 ODMG API exclusively in my multi-threaded application. In my data model I have a very straight forward 1:M association between class A(1) and class B(M). The application runs fine under single thread configuration, but occasionally the application fails to behave properly when

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=trueor auto-delete=false

2003-06-26 Thread Thomas Mahler
Hi Jakob, Jakob Braeuchi wrote: hi thomas, so my testcases are wrong as well :( (it's probably too hot here :-) to clarify this issue: - when the collection IS removal aware the n side is ALWAYS deleted when removed from the collection (not matter of the auto-xxx settings). - when the

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
Yes, Jakob gets the point. As far as I understood, if I don't specify the collection-class, OJB will use RemovalAwareCollection. Being as is, when I remove an object from the intermediary collection, the N object should be deleted from the N table when we store the M object only when auto-delete

RE: New Oracle 9i Feature

2003-06-26 Thread Matthew Baird
well that's the beauty of the Platform design. They just work! No need to do anything other than set your platform to Oracle9i I promise I will get around to documenting at some point. m -Original Message- From: Thomas Mahler [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 2:08

Refresh attribute question

2003-06-26 Thread Mykola Ostapchuk
Hello, I'm new to OJB. Can anybody explain to me the purpose of refresh attribute for reference-descriptor? All I found is: The refresh attribute can be set to true to force OJB to refresh object references on instance loading. ... The second - I don't understand why this attribute by default is

DB2 Error - Can Anybody Help?

2003-06-26 Thread Shane Mingins
Hi This is one of those not sure how to describe the problem problem *grin* I have a set of tests in a TestCase that were displaying unusual behaviour. One that failed when the entire case was run did not fail when executed solely on its own. So I changed the order and have found the following

RE: DB2 Error - Can Anybody Help?

2003-06-26 Thread Matthew Baird
That's the something happened that's so severe that you should call db2 service error. it appears to be happening during the execution of a batch. You could try turning off batch, although I think you may have to do that in code and recompile. m -Original Message- From: Shane Mingins

RE: DB2 Error - Can Anybody Help?

2003-06-26 Thread Shane Mingins
Yes I have seen comments about it being a call IBM message :-) When referring to batch do you mean the batch-mode property in my JDBC connection descriptor for OJB? Thanks Shane -Original Message- From: Matthew Baird [mailto:[EMAIL PROTECTED] Sent: Friday, 27 June 2003 10:33 a.m. To:

Re: DB2 Error - Can Anybody Help?

2003-06-26 Thread Armin Waibel
- Original Message - From: Matthew Baird [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:32 AM Subject: RE: DB2 Error - Can Anybody Help? That's the something happened that's so severe that you should call db2 service error. it appears to be

RE: DB2 Error - Can Anybody Help?

2003-06-26 Thread Shane Mingins
Matthew Armin Thanks, I changed the code, and it all goes :-) Cheers Shane -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, 27 June 2003 10:43 a.m. To: OJB Users List Subject: Re: DB2 Error - Can Anybody Help? - Original Message - From: Matthew

Re: log4j with jBoss, bis

2003-06-26 Thread Phil Warrick
Hi, It's OK now. I wasn't keeping all my OJB.properties files well synchronized. My LoggerClass setting was LoggerClass=org.apache.ojb.broker.util.logging.PoorMansLoggerImpl rather than LoggerClass=org.apache.ojb.broker.util.logging.Log4jLoggerImpl I have different OJB.properties file for

Re: ojb-servlet WebApp on Tomcat

2003-06-26 Thread Gerhard Kreutzer
Cesar wrote: Are y using the package commons-lang-1.0-mod.jar from jakarta commons? No -- KreutzerSoft Bärenbühlgraben 76, 90475 Nürnberg Tel: +49-911-8324-57 Fax: +49-911-8324-61 mailto:[EMAIL PROTECTED] http://www.KreutzerSoft.de