this is most likely a problem during the parsing of the repository.
please set the debug level for XmlRepositoryHandler to DEBUG to see
where the repository problems are.
cheers,
Thomas
Mykola Ostapchuk wrote:
Hello,
I have a problem with migrating from OJB 0.9.7 to OJB 1.0.rc3.
What I did:
- re
Hi ow,
ow wrote:
--- Thomas Mahler <[EMAIL PROTECTED]> wrote:
before 1.0 we'll
- fix some more bugs
- polish the documentation
- do some cosmetic refactorings
cheers,
Thomas
Hi,
I browsed through the bug database but did not see any targets setup for OJB.
we simply do not work in this way.
i am working on a mysql-database and ojb rc3. i have an 1:m-relation with
the following setting in the collection-desriptor of the parent object:
auto-retrieve="true"
when i try to retrieve an parent-object i get the error-message as follows:
(setting auto-retrieve to false there is no error). wh
Hi
I am using OJB rc3 and I seem to have a problem with a 1:n associations.
I have two classes; "Event" and "AdditionalEventInfo" with Event being
the parent of the 1:n. I have created a collection property on Event
called "additionalEventInfo" but when I try to query on the JDBC driver
(MySql)
Hello,
I have a problem with migrating from OJB 0.9.7 to OJB 1.0.rc3.
What I did:
- replaced db-ojb-0.9.7.jar with db-ojb-1.0.rc3.jar.
- built new OJB internal DB tables.
- replaced old OJB.properties with a new one.
- replaced repository.dtd with a new one.
- modified repository.xml for a new v
Yes, thanks, Armin.
I've made a research, and even docs direct us to use the Query as parameter,
with null for second parameter when no criteria (get all).
Thanks.
- Original Message -
From: "Armin Waibel" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 0
Hi,
current JDO implementation is a prototype
and not ready for production environment
(full JDO implementation is scheduled for 2.0).
please see (PB/ODMG/JDO comparison)
http://db.apache.org/ojb/faq.html
or search user list for more info.
regards,
Armin
- Original Message -
From: <[E
Hi,
- Original Message -
From: "Xu Jie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 9:53 PM
Subject: Question on Tutorial1
>
> All,
>
> I am new to this ObJectRelationalBridge (OJB) project. So I used
Tutorial1
> to teach myself something about OJB. It works f
- Original Message -
From: "Edson Carlos Ericksson Richter"
<[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 10:15 PM
Subject: Typo in PersistenceBroker?
> I'm mostly using getCollectionByQuery( Query ) that returns a
collection.
> Now, I'm tryin
Hi Joerg,
- Original Message -
From: "Joerg Lensing" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 3:46 PM
Subject: mixed: PB and ODMG
> hello,
> in an earlier thread, there was a hint to use PB for "simple"
> activities, which need not
> odmg-t
--- Thomas Mahler <[EMAIL PROTECTED]> wrote:
> before 1.0 we'll
> - fix some more bugs
> - polish the documentation
> - do some cosmetic refactorings
>
> cheers,
> Thomas
Hi,
I browsed through the bug database but did not see any targets setup for OJB.
Hence, it's not easy to tell what bugs are
Hi Reggie,
I think someone has modified (fixed?) the anonymous
field stuff. Please try latest CVS. If this doesn't work
please post again or make an issue on
http://scarab.werken.com/scarab/issues/
regards,
Armin
- Original Message -
From: "Reggie Hayes" <[EMAIL PROTECTED]>
To: <[EMAIL P
Hi Rob,
I think this is an known issue, please try
latest CVS.
regards,
Armin
- Original Message -
From: "Rob Kischuk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 3:31 PM
Subject: RE: Partial collection problem
> This is a big problem - we have a collection
Hello,
Can anybody tell me how to map DateTime MySql field in OJB?
My realisation is the next:
userDateInserted - of type java.util.Date.
After setting the Date, OJB inserts right date. But time is 1 hour minus
of actual time (minutes and seconds are right).
Any suggestions?
Regards,
Mykol
This did the trick. Thank you! Now I just have to
understand WHY it did the trick :-)
Bonnie MacKellar
software engineer
Mobius Management Systems, Inc.
[EMAIL PROTECTED]
> -Original Message-
> From: Weaver, Scott [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2003 5:23 PM
> To: 'OJ
Yes, I agree. You should try newer release...
I'm working in a muli-threaded app using swing, and no problem at all about
threads (I'm using cvs HEAD).
Edson Richter
- Original Message -
From: "Bonnie MacKellar" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, J
I absolutely think you are right. However, I am not
much of a Weblogic expert either, nor am I much
of an OJB expert :-(.
Trying to understand the interaction is very difficult.
I am really just hoping someone else has had (and
fixed) this problem. It must be pretty common, I would
think.
thanks,
1) yes, they are in WEB-INF/classes
2) yes, it is in WEB-INF/lib
3) I will try this...
thanks,
Bonnie MacKellar
software engineer
Mobius Management Systems, Inc.
[EMAIL PROTECTED]
> -Original Message-
> From: Weaver, Scott [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2003 5:21 PM
>
Actually, it should look like thisL
ClassLoader cl = Thread.currentThread().getContextClassLoader();
AccountUpdater myNewThread = new AccountUpdater();
myNewThread.setContextClassLoader(cl);
myNewThreadStart.start();
*===*
* Scott T Weaver *
* Ja
Hi,
I'm not an expert in web-environments, but this
seems like a ClassLoader problem.
The thread's ClassLoader try to initialize
OJB again.
Maybe you have to associate the new created
thread with the 'right' ClassLoader using
thread.setContextClassLoader(...)???
Maybe I'm completely wrong ;-)
reg
Some simple questions:
1. Where do you have the OJB resources (OJB.properties, repository.xml, etc.)? To
make things easy, they should be in the default package of your webapp's
WEB-INF/classes directory.
2. Where is your OJB jar? For the most predictable results, it should be in your
weba
You are right in your analysis, but in fact, the code I just gave you is
newer code that
I put together to try to see if defaultPersistenceBroker might be the
problem. My original code (which generated the exception) looks exactly
like your code below!!
The problem is more fundamental than this. I
I'm being analizing your code... Well, I get my broker using
PersistenceBrokerFactory.defaultPersistenceBroker()
Have you tried to work with defaultPersistenceBroker()? I know that in some
release (I don't know what) things was changed in the way OJB is getting the
.xml based on this config... Th
Well, that is precisely why I was trying this - to ensure that I have
no brokers spanning threads.
My code looks like this :
public class AccountUpdater extends Thread
{
private PersistenceBroker broker = null;
public void run()
{
try
{
PersistenceBroke
Hello,
Can anybody tell me how to map DateTime MySql field in OJB?
My realisation is the next:
userDateInserted - of type java.util.Date.
After setting the Date, OJB (?) inserts right date. But time is 1 hour minus
of actual time (minutes and seconds are right).
Any suggestions?
Regards,
M
I don't know about you, but I had all kind of strange errors working with
long time broker lives...
Now, I'm working as in mnemonic code:
public void xyzStore( XYZObject o ) {
broker = getBroker();
try {
broker.store( o );
} catch() {
}finally {
broker.close(); // this guarante
More, should not ManageableCollection extends Collection???
Actually (cvs HEAD) this extends only Serializable (?!?!).
My2c,
Edson Richter
- Original Message -
From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Monday, July 07,
I posted a question on Thursday about a mysterious error I am getting when I
try to obtain a broker in a thread spawned within my application. It was not
answered, perhaps because of the holiday, or perhaps because no one else is
doing what we are doing.
We are running a servlet based application
I'm mostly using getCollectionByQuery( Query ) that returns a collection.
Now, I'm trying to use getCollectionByQuery( Class collectionClass, Query
query ), but this one returns a ManageableCollection. Should not this
returns a Collection?
Thanks,
Edson Richter
---
Outgoing mail is certified V
Hi All,
I am in the process of setting OJB up. Have the tutorials working.
Wondering what the reasons are for using ODMG vs. JDO
Will be running on Tomcat with struts/jsp front.
Approx 5000 lines in the largest table.
Moderate complexity in table relationships.
Regards
Ross Rotherham
All,
I am new to this ObJectRelationalBridge (OJB) project. So I used Tutorial1
to teach myself something about OJB. It works fine according to the online
doc in my DOS console. Next I did is to move only needed files (jar, xml
...) to my development environment. After some work, the Tutorial sta
I have a class "Event", a class "Band" and a class "Performance".
Event and Band have an m:n relationship, with a "Performance"
represeting an association of an Event and a Band (it stores the amount
paid to the band for that event, and the number of attendees for that band).
In a web applicati
I notice that code for a factory to be called for
object creation (rather than via the default
constructor) is "stubbed into" the XML configuration,
but not yet coded in the actual source. Is anyone
working on this? If so, is there an ETA? If not, I
plan to add it myself...
I would anticipate n
I've downloaded CVS Head again, and appear that it's working fine now (if I
have any other issue, I'll let you know).
Thanks!
Edson Richter
- Original Message -
From: "Jakob Braeuchi" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Saturday, July 05, 2003 6:28 AM
Subj
hello,
in an earlier thread, there was a hint to use PB for "simple"
activities, which need not
odmg-transactions (and therefore better performance) and to use ODMG for
the more complex things. How should be the handling? (How do i get the
PersistenceBroker? Can there be more than one Transaction
This is a big problem - we have a collection of 200 items that we are
retrieving, and the first query only retrieves a single item, with each
subsequent query retrieving one more item (e.g. - the fifth query result has
5 items).
This seems to be either a very nasty error on my part, or a major bug
I sent a message out a couple of days ago describing an error when
mappig a 1:n association using the anonymous attribute. Any work
arounds? Will this error be fixed in future releases? I am currently
using 1.0rc3.
Thanks
---
Hi Brain,
- Original Message -
From: "Brian Chaplin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 2:44 PM
Subject: Re: How do I customize insert for Sybase identity columns?
> Armin,
> Using SequenceManagerInMemoryImpl didn't work. It looks like the
commands
>
Try to change repository descriptor by setting batch-mode property to
false. Batch mode is not supported by some version of Sybase(ASA 7 for
example)
"Brian Chaplin" <[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTECTED]>
07.07.2003 16:44
Please respond to "OJB Users List"
To: [E
Armin,
Using SequenceManagerInMemoryImpl didn't work. It looks like the commands
issued in the afterInsert callback are on another connection regardless of
the memory manager being used.
Should I modify the source code somewhere in this stack trace?
at
org.apache.ojb.broker.util.batch.BatchConne
hi nicolas,
yep, Oracle doesn't store millis in TIMESTAMP
personally I just use a NUMBER field and store the millis time generated by Java
(System.currentTimeMillis() or date.getTime() where date is an instance of
java.util.Date).
doing this you will not be able to read the timestamp directly fo
Hi,
I'm scared to death since i discovered that the timestamp i stored have
lost their millisecond informations...
I've found the following page, describing an ugly workaround which uses
code specific to Oracle:
http://weblogs.flamefew.net/bayard/archives/000114.html
Could someone help me to dea
42 matches
Mail list logo