Re: M:N && Proxy

2003-06-17 Thread Thomas Mahler
Hi Edson, Edson Carlos Ericksson Richter wrote: Hi! I've discovered a bug in M:N relationships and proxys. To give some light about the problem, if I have two classes class A { private Integer id; private String description; public Integer getId( ) { return id; } public void setId(

Re: OJB/JBoss "depends on me" startup problem - but redeployment works fine!

2003-06-17 Thread Armin Waibel
Hi Alex, I can confirm this. With JBoss 3.0.6 all works fine, changing to JBoss 3.2.1 get the described problems when deploying the beans. Redepolying the beans, all get deployed without problems. I can't figure out what's going wrong. > So, it appears that this EJB jar has some dependencies whic

Re: Collection of objects cached or something

2003-06-17 Thread Thomas Mahler
please post the code snippet that provokes this problem. I have no idea what could be wrong here. All things you describe are covered by testcases... cheers, Thomas Alen Ribic wrote: Hi all I seem to have a bit of an issue with my objects getting cached that are retrieved from persistence storage

Re: FYI: Winzip 8.0 Did Not Open Latest Archive Files

2003-06-17 Thread Thomas Mahler
It's a known mime type problem. If you make sure that the extension is .tgz or tar.gz everything is fine with winzip too... cheers, Thomas Shane Mingins wrote: Hi I just download rc3 and found that Winzip 8.0 would not open them. "Error reading heading after processing 0 entries" WinRAR (which

OJB/JBoss "depends on me" startup problem - but redeployment works fine!

2003-06-17 Thread Swordsman 2000
Hello, When I try to bring up the j2ee build of OJB in JBoss, I get lots of stack traces, and finally see the message shown below. The root problem appears to be the "invoker is null" error (jboss:service=invoker,type=jrmp) Has anyone else encountered these errors/exceptoins? Am I missing so

FYI: Winzip 8.0 Did Not Open Latest Archive Files

2003-06-17 Thread Shane Mingins
Hi I just download rc3 and found that Winzip 8.0 would not open them. "Error reading heading after processing 0 entries" WinRAR (which I just downloaded) worked without a problem. Shane Mingins Analyst Programmer Assure NZ Ltd Ph 644 494 2522 -

Collection of objects cached or something

2003-06-17 Thread Alen Ribic
Hi all I seem to have a bit of an issue with my objects getting cached that are retrieved from persistence storage using OJB. I have a Category & Product tables. Category bean contains getter method that retrieves a Vector of products that belong to that Category. Product class contains categoryI

M:N && Proxy

2003-06-17 Thread Edson Carlos Ericksson Richter
Hi! I've discovered a bug in M:N relationships and proxys. To give some light about the problem, if I have two classes class A { private Integer id; private String description; public Integer getId( ) { return id; } public void setId( Integer newId ) { this.id = newId; } public St

Problem with ObjectCacheDefaultImpl

2003-06-17 Thread Todd Lindner
The class org.apache.ojb.broker.cache.ObjectCacheDefaultImpl has a flaw that can (and has in my case) cause an OutOfMemoryError. It is a basic object cache. Objects stored in a hashtable keyed by strings constructed from Identity objects. It is even smart and uses SoftReferences so the cache

Re: LONG RAW Problem on Oracle needs to be addressed, I think

2003-06-17 Thread Jason McKerr
That sounds fine. VARBINARY maps to BLOB. J On Tue, 2003-06-17 at 13:25, Thomas Mahler wrote: > hi again, > > > > > Maybe it's easier to simply change LONGVARBINARY to VARBINARY in our > > torque scripts... > > checked into CVS! > > > cheers, > > Thomas > > > >> > >> The real issue is tha

Re: LONG RAW Problem on Oracle needs to be addressed, I think

2003-06-17 Thread Thomas Mahler
hi again, Maybe it's easier to simply change LONGVARBINARY to VARBINARY in our torque scripts... checked into CVS! cheers, Thomas The real issue is that RAW only supports 2000 length, and LONG raw is 2 Gigs. Jason - To unsubs

Re: LONG RAW Problem on Oracle needs to be addressed, I think

2003-06-17 Thread Thomas Mahler
Hi Jason, Jason McKerr wrote: Hey guys, a lot of people are running into the problem of two LONG RAW columns in Oracle. In the OJB_DMAP_ENTRIES two LONGVARBINARY are created. In oracle, this translates to two LONG RAW columns which is illegal in oracle 9i or 8i. So basically, I need to know if it

Re: confused by behavior of 1:n relationship

2003-06-17 Thread Jakob Braeuchi
hi bonnie, it is a bug :( see http://scarab.werken.com/scarab/issues/id/OJB181 jakob Jakob Braeuchi wrote: hi bonnie, Bonnie MacKellar wrote: Sure, I understand that the customer returned in my first set of code is a proxy. But I thought that when I traverse the link, the entire object is re

Re: R: Problem with repository.xml when upgrading from RC2 to RC3. FIXED!!!

2003-06-17 Thread gfaerman
We had not replaced the repository.dtd with the new one. Having it replaced, now it works! Thank you very much Gustavo. -- Thanks for your answer. Sorry our ignorance. We did not find any differences we should take care off. Could you point us

Re: R: Problem with repository.xml when upgrading from RC2 to RC3

2003-06-17 Thread gfaerman
Thanks for your answer. Sorry our ignorance. We did not find any differences we should take care off. Could you point us any key attributes in those configuration files we should take care off? By the way, if we go back to RC2 everything is fine. Thanks, Gustavo. Farnea Massimiliano <[EMA

LONG RAW Problem on Oracle needs to be addressed, I think

2003-06-17 Thread Jason McKerr
Hey guys, a lot of people are running into the problem of two LONG RAW columns in Oracle. In the OJB_DMAP_ENTRIES two LONGVARBINARY are created. In oracle, this translates to two LONG RAW columns which is illegal in oracle 9i or 8i. So basically, I need to know if it's OK to use RAW columns for

Re: Any Oracle OJB Users in Production? -- Thomas or someone,Comments on Datatype?

2003-06-17 Thread Jason McKerr
Can someone who knows more about the core tables read and comment as well? OK, First, you need to check your connection properties in OJB.properties. There you can control the number of open connections, pooling, all of that good stuff. The next thing is that on one of the tables (OJB_DMAP_ENTR

AW: OJB XDoclet module

2003-06-17 Thread Thomas Dudziak
Yes it will (as Thomas Mahler pointed out, the source is already available in the Xdoclet JIRA) but the integration process (with which I have nothing to do) seems to be somewhat slow, especially since there have been some problems lately with the 1.2b3 release (of which the ojb module is not (yet)

Re: Any Oracle OJB Users in Production?

2003-06-17 Thread PWorth
Thanks for the info Jason - I am getting errors when running junit. I have played around with different usernames in Oracle, different strategies for including jar files, searching the mailing list for hints on Oracle installs, etc but to no avail at this point. I have followed the on line d

Re: Any Oracle OJB Users in Production?

2003-06-17 Thread Jason McKerr
I am running OJB succesfully in production on both Oracle 8i (8.1.7.4.0) and Oracle 9i (9.2.0.2.0). I haven't had any problems except that in Oracle you can't have multiple long (is that the right one?) columns in a single table. I just changed the data types. I'll have to look up what I changed

R: Problem with repository.xml when upgrading from RC2 to RC3

2003-06-17 Thread Farnea Massimiliano
We haver an app running ok under Tomcat 3.3 JVM 1.3.1, OJB RC2 When we upgrade to OJB RC3, we could not initialize the OJB broker. The error is U should upgrade configuration files too: OJB.properties, repository.dtd and repository.xml. Check the differences with the files released with

Re: junit test fails

2003-06-17 Thread Mete Kural
Thanks for the explanation of errors vs. failures. Now I see.. I looked in tests-broker.txt and found the below error report. It's a "[SQL0122] Column ID or expression specified in SELECT list not valid" error. The stack trace shows the trace until StatementsForClassImpl.getPreparedStmt(Statemen

Problem with repository.xml when upgrading from RC2 to RC3

2003-06-17 Thread gfaerman
We haver an app running ok under Tomcat 3.3 JVM 1.3.1, OJB RC2 When we upgrade to OJB RC3, we could not initialize the OJB broker. The error is * Root cause: org.apache.ojb.broker.OJBRuntimeException: Try to set unkown field 'access' value: null rethrown as org.apache.ojb.bro

RE: DMapImpl

2003-06-17 Thread Mahler Thomas
Hi again, > -Original Message- > From: Leeuw van der, Tim [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 3:44 PM > To: 'OJB Users List' > Subject: RE: DMapImpl > > > Hi, > > Is this something that the ODMG API prescribes? ODMG just states that any persistence capable object

RE: addLessThan or addBetween with Dates in mySQL

2003-06-17 Thread Marcelo Magno
Thank you, I did not know that repository.xml must contain the p6soy driver... Now it's workin fine, Thakiu a lot Thimo... Abracos MMAGNO -Original Message- From: Thimo König [mailto:[EMAIL PROTECTED] Sent: terça-feira, 17 de junho de 2003 11:24 To

RE : Lock bug ??

2003-06-17 Thread Emmanuel Dupont
Armin, Here my code modified as you told me. I have exactly the same error : [org.apache.ojb.odmg.TransactionImpl] INFO: Abort transaction was called on tx [EMAIL PROTECTED], associated PB was [EMAIL PROTECTED] [JwtBOjects] Can not lock oid : 0 for WRITE org.odmg.TransactionNotInProgressExcep

RE: addLessThan or addBetween with Dates in mySQL

2003-06-17 Thread Thimo König
> How is the correct way to have p6spy to display all the sql's? in repository.xml => driver="com.p6spy.engine.spy.P6SpyDriver" in spy.properties => realdriver=xxx.your.Driver > appender=com.p6spy.engine.logging.appender.StdoutLogger. But > it still do not send the Sql's to the stdout...

RE: addLessThan or addBetween with Dates in mySQL

2003-06-17 Thread Marcelo Magno
How is the correct way to have p6spy to display all the sql's? I have configured the correct driver in the file spy.properties and have redirect the the property apender to appender=com.p6spy.engine.logging.appender.StdoutLogger. But it still do not send the Sql's to the stdout.

Re: Lock bug ??

2003-06-17 Thread Armin Waibel
Hi, > What is it wrong in this ?? TransactionImpl does internally use the PB instance you call with PersistenceBroker broker = ((HasBroker) tx).getBroker() on tx.commit() TransactionImpl lookup the PB instance (broker) and start a PB-tx, does all work and commit the PB-tx. ODMG-api internally do

RE: Questions re. mapping of associations...

2003-06-17 Thread Mahler Thomas
hi again, > ... I was thinking along these lines myself. But I was afraid > that I would > also have to change my field-declarations to 'DList' instead > of 'List'. Glad > that I don't have to :-) > Still have to find a way make the proper factory-object > available in all > places where it n

RE: RC3 Test Failures with MySQL

2003-06-17 Thread salgado . pc
Thanks... that worked just fine. The MySQL database is just fine but the errors that the ant prepare-test is giving should be given the proper handling (?)... The build.sh just needed a ../ ... that i could solve by myself. (shouldnt anyone fix this? i can volunteer :) ) Thanks again, Pedro Sal

RE: DMapImpl

2003-06-17 Thread Leeuw van der, Tim
Hi, Is this something that the ODMG API prescribes? Or is it a feature / limitation of the current implementation? I have assumed that I can simply use a string as the map-key. This is rather a :-( for me, as I'm converting from a situation where my keys are plain strings. Thanks, --Tim -Or

RE: Questions re. mapping of associations...

2003-06-17 Thread Leeuw van der, Tim
-Original Message- From: Mahler Thomas [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 juni 2003 15:22 To: 'OJB Users List' Subject: RE: Questions re. mapping of associations... [...] The most elegant way would be to have a simple factory method that is used to create Jav.util.List instances

RE: RC3 Test Failures with MySQL

2003-06-17 Thread Eric Northam
Pedro, Sorry for taking so long but I finally got around to testing the rc3 with MySQL again. I started with the source distribution and followed the directions on http://db.apache.org/ojb/platforms.html and updated build.properties and mysql.profile appropriately. I then ran 'build.bat prepare-te

RE : Lock bug ??

2003-06-17 Thread Emmanuel Dupont
Hi Thomas, Armin In fact the " jwtImpl.newJwtTransaction();" Do : TransactionImpl tx = new TransactionImpl (getCurrentDatabase()); It instantiate a new transaction Maybe I'm wrong, but I thought that I was obliged to use the Broker like that in with theODMG/PB API both used. // Create a new O

RE: Questions re. mapping of associations...

2003-06-17 Thread Mahler Thomas
hi agaian, > [...] > > > As I said, I have to move away from the JDO-managed situation > (until there > is a sufficiently high-quality open-source JDO > implementation). I'll have to > go to the ODMG-managed situation. Only I don't like that I > have to change my > code in several places now

RE: DMapImpl

2003-06-17 Thread Mahler Thomas
DMapImpl keys must be real entities! that is there must be a table to store them and a class-descriptor provided. > -Original Message- > From: Leeuw van der, Tim [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 3:15 PM > To: '[EMAIL PROTECTED]' > Cc: 'OJB Users List' > Subject: RE:

RE: DMapImpl

2003-06-17 Thread Leeuw van der, Tim
Hi Cedric, Did you ever get an answer to this question? Can the key for a DMapImpl indeed not be a plain java.lang.String instance?? Or is it something in the repository.xml that would need to be specified? Regards, --Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

RE : Lock bug ??

2003-06-17 Thread Emmanuel Dupont
Hi Armin, I oblige to have a broker instance because I use the getObjectByQuery(query) treatment broker.getObjectByQuery(query); -Message d'origine- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoyé : mardi 17 juin 2003 14:46 À : OJB Users List Objet : Re: Lock bug ?? Hi Emmanuel,

RE: Questions re. mapping of associations...

2003-06-17 Thread Charles Anthony
Hi, [snip] >As I said, I have to move away from the JDO-managed situation >(until there is a sufficiently high-quality open-source JDO >implementation). I'll have to >go to the ODMG-managed situation. Only I don't like that I >have to change my code in several places now to explicitly use DLis

RE: Lock bug ??

2003-06-17 Thread Mahler Thomas
Hi Emmanuel, don't call broker.commitTransaction(); what does jwtImpl.newJwtTransaction(); do? does it really instantiate a *new* transaction? I have the impression that you work on the same transaction instance and try to re-use the already closed broker transaction... cheers, thomas > -O

RE: Questions re. mapping of associations...

2003-06-17 Thread Leeuw van der, Tim
Hi, thanks again for your clarifications. [...] > > > I looked at the order-by attribute of the reference > > descriptor, but I can't > > use that. There is no attribute in my element-classes that I > > can sort on; > > it's the order that I put them in the list that is relevant. > > Mhh, In a

Re: Lock bug ??

2003-06-17 Thread Armin Waibel
Hi Emmanuel, did you have tried without broker.begin... broker.commit... statements? regards, Armin - Original Message - From: "Emmanuel Dupont" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Tuesday, June 17, 2003 12:53 PM Subject: Lock bug ?? Hi all, Can someon

RE: Questions re. mapping of associations...

2003-06-17 Thread Mahler Thomas
Hi again, > Hi Thomas, > > Thanks for your explanations. A couple of follow-up questions... > > > > > -Original Message- > > From: Thomas Mahler [mailto:[EMAIL PROTECTED] > > Sent: maandag 16 juni 2003 21:46 > > To: OJB Users List > > Subject: Re: Questions re. mapping of associations..

Any Oracle OJB Users in Production?

2003-06-17 Thread PWorth
I am currently evaluating the use of OJB for a new web application server framework for my company and would very much like to use OJB or some other object - relational framework. I have had many problems and issues getting the OJB unit test scripts to work against my database however, so I do

Lock bug ??

2003-06-17 Thread Emmanuel Dupont
Hi all, Can someone tell me what is wrong with this piece of code ?? I'm using OJB, rc1. When I call this method twice it failed on the second call on the lock line. I have only one column in my table. IT is an OID table generator. Whith : [org.apache.ojb.odmg.TransactionImpl] INFO:

RE: Questions re. mapping of associations...

2003-06-17 Thread Leeuw van der, Tim
Hi Thomas, Thanks for your explanations. A couple of follow-up questions... > > -Original Message- > From: Thomas Mahler [mailto:[EMAIL PROTECTED] > Sent: maandag 16 juni 2003 21:46 > To: OJB Users List > Subject: Re: Questions re. mapping of associations... > > > Hi Tim. > > Leeuw va

RE: how to update a collection reference

2003-06-17 Thread oliver . matz
Hej Shane, > -Original Message- > From: Shane Mingins [mailto:[EMAIL PROTECTED] > I am using the ODMG API. [..] > It would be nice to be able to add and remove the objects from the > collection, persist the object holding the collection (the '1' in the > 1->n)and have the state of each

RE: OJB XDoclet module

2003-06-17 Thread Mahler Thomas
Hi Dougall, sorry for the previous "preempted" post, I'm a bit trigger happy today... The source is already made available at http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=X DT-514. But I have no idea how long it will take to have it integrated in the offical CVS. Bu

RE: OJB XDoclet module

2003-06-17 Thread Mahler Thomas
> -Original Message- > From: Dougall Squair [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 10:34 AM > To: 'OJB Users List' > Subject: OJB XDoclet module > > > > Hi, > > Will the sourece code for the XDoclet OJB module be included > within standard > > XDoclet distribution

OJB XDoclet module

2003-06-17 Thread Dougall Squair
Hi, Will the sourece code for the XDoclet OJB module be included within standard XDoclet distribution? Dougall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to update a collection reference

2003-06-17 Thread Shane Mingins
Hi Olli I am using the ODMG API. When I wish to "edit" an object that contains a collection (representing my 1->n relationship); if I add or remove any objects from the collection I must call either makePersistent or deletePersistent for each of those objects. It would be nice to be able to a

Re: OJB is updating read-only columns

2003-06-17 Thread David Warnock
Jakob, do you still have problems with updated readonly fields ? We have not had chance to upgrade OJB and re-test yet. I am away al week so am not sure yet when I will be able to test this. Dave -- David Warnock, Sundayta Ltd. http://www.sundayta.com iDocSys for Document Management. VisibleResu

Re: Problem with Criteria and Alias

2003-06-17 Thread Michael Schulze
On Tue, 2003-06-17 at 08:25, Michael Hart wrote: > This problem has been fixed in the latest CVS sources as far as I can tell. > > There have been a number of messages about this problem and their > various workarounds in the past month, so just have a hunt around the > mail archives. It works