Re: Object is not (yet) associated to a database container
Sunil Goyal <[email protected]>
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | Salzburg Research |
| Message-ID | <[email protected]> |
Hello Leo,
I was getting the error because I was constructing
ozone objects just using a constructor.
public class FooImpl extends OzoneObject implements OzoneRemote {
private Object o;
public FooImpl() {
o = new Object();
}
}
This doesn't gave me error.
Even when I try to create an object
new FooImpl() , this is ok .
But now after storing this object in the database , if I later try to
access
the object from the database, I used to get "Object is not (yet)
associated to a database container."
But as mentioned in FAQ , by doing
OzoneInterface ob = this.database();
foo = (Foo)ob.createObject(FooImpl.class.getName());
I didn't get that error anymore.
But unfortunately some other errors (java.io.NonSerializable..)as
mentioned in the previous mail..
Regards
Sunil
On 02 Mar 2004 13:51:25 +0100, Leo Mekenkamp <[email protected]>
wrote:
> On Tue, 2004-03-02 at 12:54, "Gonçalo E.D. Luiz" wrote:
>> The same happens to me, if I try to create any kind of object (either it
>> is Ozone or not).
>
> Do you mean to say that you get this exception ("Object is not (yet)
> associated to a database container.") is thrown when you create _any_
> object from an ozone object's constructor?
>
> So even:
>
> public class FooImpl extends OzoneObject implements OzoneRemote {
>
> private Object o;
>
> public FooImpl() {
> o = new Object();
> }
> }
>
> generates these errors?
>
>>
>> Regards,
>> Gonçalo.
>>
>> Leo Mekenkamp wrote:
>>
>> >On Tue, 2004-03-02 at 12:33, Sunil Goyal wrote:
>> >
>> >
>> >>Hello,
>> >>
>> >>I am trying to use Ozone in one of my applications. I am getting this
>> error
>> >>"Object is not (yet) associated to a database container.".
>> >>It will be great if someone can provide help in this regard.
>> >>
>> >>
>> >
>> >It's in the FAQ; you're probably trying to create an ozone object from
>> >the constructor of another ozone object.
>> >
>> >Cheers,
>> >Leo
>> >
>> >
>> >
>> >-------------------------------------------------------
>> >SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>> >Build and deploy apps & Web services for Linux with
>> >a free DVD software kit from IBM. Click Now!
>> >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
>> >_______________________________________________
>> >Ozone-users mailing list
>> >[email protected]
>> >https://lists.sourceforge.net/lists/listinfo/ozone-users
>> >
>> >
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>> Build and deploy apps & Web services for Linux with
>> a free DVD software kit from IBM. Click Now!
>> http://ads.osdn.com/?ad_id56&alloc_id438&opÃk
>> _______________________________________________
>> Ozone-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ozone-users
>>
>>
>
--
=====================================================================
Sunil Goyal
New Media Lab
Salzburg Research Forschungsgesellschft m.b.H.
Jakob Haringer-Strasse 5/III | A-5020 Salzburg
T: +43.662.2288-414 | F: +43.662.2288-222
[email protected]
http://www.salzburgresearch.at
======================================================================
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click