Per Nyfelt | 1 Nov 15:25 2003
Picon

Re: List

Hi Oki,

I think you are confusing the matter a bit. There is no object "here" and 
"there" in Ozone, there is only "there" i.e. on the server. You should put 
proxies in your ArrayList, not actual ozoneObject instances. If you think 
about it this way then there is not need to "put an object back in the 
database"
 Every person you put in your PersonList needs to be created on the server 
first using createObject (or the factory generated by OPP available in the 
HEAD version). If you do this then every deleteObject will work fine.

Regards,
Per

On Friday 31 October 2003 03.53, Oki DZ wrote:
> Hi,
>
> I have a class like the following:
> public class PersonListImpl extends OzoneObject implements PersonList,
>     Serializable {
>
>     final static long serialVersionUID = 1L;
>     private ArrayList personList;
>
>     public PersonListImpl() {
>         personList = new ArrayList();
>     }
> //...
> }
>
(Continue reading)

Glenn Tramm | 2 Nov 20:08 2003
Picon

Access rights

Hallo gurus,

 

I am busy in implementing a very beautiful program that uses ozone as its’ storage engine, but I am having problems when I log in with another account, then Ozone throws some errors stating that I do not have permission for reading the object. Note that initialization of the database goes fine until we ask for an object. Beside this issue when I insert an object into the database I use the OzoneInterface.Public access bit to see if this will solve the problem, but unfortunately it doesn’t. Can anyone know what to do, so everybody who logged in on a certain computer can just access the Objects that are in the database without problem?

 

Thx in advance,

Glenn Tramm

------------------------- BEGIN CODE BLOCK --------------------

/** <at> version : 3.1

* <at> author : Glenn Tramm

*/

GB/ED/IT/E d - (++) s++ : ++ a? C+++ UL+++>$ P+ L+++++ E W- N* o-- K? w - ( -- ) ( --- ) O-- M -- V - PS+ <at> PE++ Y -- PGP- t --- 5 -- X - R* tv- b ++ DI --- D - G - -- e ( ++ ) h* r+++ y ++ (+++++ )

------------------------- END CODE BLOCK -----------------------

These common thougts are expressed in a shared public langauge, consisting of shared signs....a sign has a "sense" that fixes the reference and is "grasped by everybody" who knows the language.....
 
---Noam Chomsky---
Language and Thought

 

Oki DZ | 4 Nov 05:32 2003

Collections

Hi,

I just tried to compile the collections module, but I had the following 
errors:
compile.collections:
    [javac] Compiling 48 source files to 
/var/backups/ozone/modules/collections/build/classes
    [javac]

/var/backups/ozone/modules/collections/src/org/ozoneDB/collections/BaseTreeMapImpl.java:442: 
cannot resolve symbol
    [javac] symbol  : variable SIGNATURE_DELIMITER 
    [javac] location: class org.ozoneDB.tools.OPP.OPP
    [javac]                 BaseTreeMap.class.getName() + 
OPP.SIGNATURE_DELIMITER + Object.class.getName() + 
OPP.SIGNATURE_DELIMITER + Object.class.getName(),
    [javac] 

Was it simply due to unreferenced .jar files? (If so, I'll try to find 
one.)

Thanks in advance,
Oki

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Leo Mekenkamp | 4 Nov 08:46 2003
Picon
Picon

Re: Collections

Hi Oki,

Joakim has recently checked in a refactored OPP. It seems he has removed
SIGNATURE_DELIMITER or moved it to a different location. Short-term fix:
replace 'OPP.SIGNATURE_DELIMITER' with '|'. For the long-term fix we
have to ask Joakim.

Cheers,
Leo

On Tue, 2003-11-04 at 05:32, Oki DZ wrote:
> Hi,
> 
> I just tried to compile the collections module, but I had the following 
> errors:
> compile.collections:
>     [javac] Compiling 48 source files to 
> /var/backups/ozone/modules/collections/build/classes
>     [javac] 
>
/var/backups/ozone/modules/collections/src/org/ozoneDB/collections/BaseTreeMapImpl.java:442: 
> cannot resolve symbol
>     [javac] symbol  : variable SIGNATURE_DELIMITER 
>     [javac] location: class org.ozoneDB.tools.OPP.OPP
>     [javac]                 BaseTreeMap.class.getName() + 
> OPP.SIGNATURE_DELIMITER + Object.class.getName() + 
> OPP.SIGNATURE_DELIMITER + Object.class.getName(),
>     [javac] 
> 
> Was it simply due to unreferenced .jar files? (If so, I'll try to find 
> one.)
> 
> Thanks in advance,
> Oki
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Ozone-users mailing list
> Ozone-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ozone-users
> 

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Per Nyfelt | 4 Nov 10:25 2003
Picon

Re: Collections

It is in ReflectionHelper but I'm not sure this is a good move. It breaks a 
lot of existing apps and does not improve the code IMO. If Joakim explains 
why it needed to be moved I'm OK with it otherwise i suggest it should be put 
back to OPP. For now I've checked in an OPP with the constant referring to 
ReflectionHelper to preserve backward compatibility.

Your options are to either update from HEAD, use 
ReflectionHelper.SIGNATURE_DELIMITER or use "|" 

Regards,
Per

On Tuesday 04 November 2003 08.46, Leo Mekenkamp wrote:
> Hi Oki,
>
> Joakim has recently checked in a refactored OPP. It seems he has removed
> SIGNATURE_DELIMITER or moved it to a different location. Short-term fix:
> replace 'OPP.SIGNATURE_DELIMITER' with '|'. For the long-term fix we
> have to ask Joakim.
>
> Cheers,
> Leo
>
> On Tue, 2003-11-04 at 05:32, Oki DZ wrote:
> > Hi,
> >
> > I just tried to compile the collections module, but I had the following
> > errors:
> > compile.collections:
> >     [javac] Compiling 48 source files to
> > /var/backups/ozone/modules/collections/build/classes
> >     [javac]
> > /var/backups/ozone/modules/collections/src/org/ozoneDB/collections/BaseTr
> >eeMapImpl.java:442: cannot resolve symbol
> >     [javac] symbol  : variable SIGNATURE_DELIMITER
> >     [javac] location: class org.ozoneDB.tools.OPP.OPP
> >     [javac]                 BaseTreeMap.class.getName() +
> > OPP.SIGNATURE_DELIMITER + Object.class.getName() +
> > OPP.SIGNATURE_DELIMITER + Object.class.getName(),
> >     [javac]
> >
> > Was it simply due to unreferenced .jar files? (If so, I'll try to find
> > one.)
> >
> > Thanks in advance,
> > Oki
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive?  Does it
> > help you create better code?   SHARE THE LOVE, and help us help
> > YOU!  Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Ozone-users mailing list
> > Ozone-users <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ozone-users
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Ozone-users mailing list
> Ozone-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ozone-users

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Joakim Ohlrogge | 5 Nov 09:02 2003

RE: Collections (Oki DZ)

Hi! I'm the guilty one here!

During the refactoring of the OPP that particular constant was moved to
org.ozoneDB.core.helpers.ReflectionHelper I realized the problem and
added it again as "deprecated" but I made a mistake and added it to
OPPHelper instead.

The reason that it was moved was that we do not want the ozone code to
have dependencies to the OPP or any of it's sub packages.

Sorry about that. I will fix it tonight if noon beats me to the task!

/J

----------------------------------------------------------------------
Message: 1
Date: Tue, 4 Nov 2003 11:32:27 +0700
To: ozone-users <at> lists.sourceforge.net
Organization: PT. Pindad. Jl. Gatot Subroto 517, Bandung.
From: Oki DZ <okidz <at> pindad.com>
Subject: [Ozone-users] Collections

Hi,

I just tried to compile the collections module, but I had the following
errors:
compile.collections:
    [javac] Compiling 48 source files to
/var/backups/ozone/modules/collections/build/classes
    [javac]
/var/backups/ozone/modules/collections/src/org/ozoneDB/collections/BaseT
reeMapImpl.java:442:
cannot resolve symbol
    [javac] symbol  : variable SIGNATURE_DELIMITER
    [javac] location: class org.ozoneDB.tools.OPP.OPP
    [javac]                 BaseTreeMap.class.getName() +
OPP.SIGNATURE_DELIMITER + Object.class.getName() +
OPP.SIGNATURE_DELIMITER + Object.class.getName(),
    [javac]

Was it simply due to unreferenced .jar files? (If so, I'll try to find
one.)

Thanks in advance,
Oki

--__--__--

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/

-------------------------------------------------
This message contains information that may be privileged or 
confidential and is the property of Cybercom Group and may be exempt 
from disclosure under applicable law. It is intended only for the 
person to whom it is addressed. If you are not the intended recipient, 
you are not authorised to read, print, retain, copy, disseminate, 
distribute, or use this message or any part thereof. If you receive 
this message in error, please notify the sender immediately and delete 
all copies of this message. This agreement shall be governed by the 
law where the sender has its place of business. Any attachment(s) to 
this e-mail has been checked for viruses, but please rely on your own 
virus-scanner and procedures.
-------------------------------------------------

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Oki DZ | 5 Nov 07:54 2003

Re: Collections

On Tue, Nov 04, 2003 at 10:25:43AM +0100, Per Nyfelt wrote:
> Your options are to either update from HEAD, use 

I did, and I had the following:
compile.collections:
    [javac] Compiling 48 source files to 
/var/backups/ozone/modules/collections/build/classes
     [java] java.lang.NullPointerException
     [java] 	at 
org.ozoneDB.tools.OPP.srcgen.direct.ReflectionClassDirector.build(ReflectionClassDirector.java:65)
     [java] 	at 
org.ozoneDB.tools.OPP.OPP.makeProxiesAndFactories(OPP.java:273)
     [java] 	at org.ozoneDB.tools.OPP.OPP.generate(OPP.java:193)
     [java] 	at org.ozoneDB.tools.OPP.OPP.main(OPP.java:161)

BUILD FAILED
file:/var/backups/ozone/modules/collections/build.xml:124: Java 
returned: 1

Pointers please.

Thanks in advance,
Oki

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Per Nyfelt | 5 Nov 20:42 2003
Picon

Re: Collections

This is strange though Java doc for Class.getSuperclass(); says

    /**
     * Returns the <code>Class</code> representing the superclass of the 
entity
     * (class, interface, primitive type or void) represented by this
     * <code>Class</code>.  If this <code>Class</code> represents either the
     * <code>Object</code> class, an interface, a primitive type, or void, 
then
     * null is returned.  If this object represents an array class then the
     * <code>Class</code> object representing the <code>Object</code> class is
     * returned.
     *
     *  <at> return the superclass of the class represented by this object.
     */

So i would expect null if only implementing OzoneCompatible but when i test 
this i get java.lang.Object back from my 1.4.2 Sun jdk. certanly not what i 
expected. Maybe there's a difference between JVM versions?

Anyhow, I've just checked in a null check for ReflectionClassDirector that may 
or may not work. Please try it out and let me know if it fixes your problem.

Best regards,
Per

On Wednesday 05 November 2003 20.06, Per Nyfelt wrote:
> I can build and run the simple sample just fine so my guess is that you
> have some error in your implementation class and OPP is not telling you
> exactly what the issue is.
>
> Judging from the stack trace the following line in ReflectionClassDirector.
> fails:
>             String superClassName = sourceClass.getSuperclass().getName();
>
> getSuperClass() returns null if you are not extending anything which is
> probably a bug since you could be implementing OzoneCompatible and still
> have a valid ozone object. ie it could look like the following
>
> interface Foo extends OzoneRemote{
> }
>
> class FooImpl implements Foo, OzoneCompatible {
> 	// some implementation methods needed here...
> }
>
> My guess is that you have not done this but simply forgot to extend
> OzoneObject which is the most common way to create the implementation
> class.
>
> If you find out what is wrong with your code please let us now so that one
> of us can add a more descriptive error message. If you cant find the issue
> then send me your code and i will take a look.
>
> Best regards,
> Per
>
> On Wednesday 05 November 2003 07.54, Oki DZ wrote:
> > On Tue, Nov 04, 2003 at 10:25:43AM +0100, Per Nyfelt wrote:
> > > Your options are to either update from HEAD, use
> >
> > I did, and I had the following:
> > compile.collections:
> >     [javac] Compiling 48 source files to
> > /var/backups/ozone/modules/collections/build/classes
> >      [java] java.lang.NullPointerException
> >      [java] 	at
> > org.ozoneDB.tools.OPP.srcgen.direct.ReflectionClassDirector.build(Reflect
> >io nClassDirector.java:65) [java] 	at
> > org.ozoneDB.tools.OPP.OPP.makeProxiesAndFactories(OPP.java:273)
> >      [java] 	at org.ozoneDB.tools.OPP.OPP.generate(OPP.java:193)
> >      [java] 	at org.ozoneDB.tools.OPP.OPP.main(OPP.java:161)
> >
> > BUILD FAILED
> > file:/var/backups/ozone/modules/collections/build.xml:124: Java
> > returned: 1
> >
> > Pointers please.
> >
> > Thanks in advance,
> > Oki
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive?  Does it
> > help you create better code?   SHARE THE LOVE, and help us help
> > YOU!  Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Ozone-users mailing list
> > Ozone-users <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ozone-users

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Per Nyfelt | 5 Nov 20:06 2003
Picon

Re: Collections

I can build and run the simple sample just fine so my guess is that you have 
some error in your implementation class and OPP is not telling you exactly 
what the issue is. 

Judging from the stack trace the following line in ReflectionClassDirector. 
fails:
            String superClassName = sourceClass.getSuperclass().getName();

getSuperClass() returns null if you are not extending anything which is 
probably a bug since you could be implementing OzoneCompatible and still have 
a valid ozone object. ie it could look like the following

interface Foo extends OzoneRemote{
}

class FooImpl implements Foo, OzoneCompatible {
	// some implementation methods needed here...
}

My guess is that you have not done this but simply forgot to extend 
OzoneObject which is the most common way to create the implementation class.

If you find out what is wrong with your code please let us now so that one of 
us can add a more descriptive error message. If you cant find the issue then 
send me your code and i will take a look.

Best regards,
Per

On Wednesday 05 November 2003 07.54, Oki DZ wrote:
> On Tue, Nov 04, 2003 at 10:25:43AM +0100, Per Nyfelt wrote:
> > Your options are to either update from HEAD, use
>
> I did, and I had the following:
> compile.collections:
>     [javac] Compiling 48 source files to
> /var/backups/ozone/modules/collections/build/classes
>      [java] java.lang.NullPointerException
>      [java] 	at
> org.ozoneDB.tools.OPP.srcgen.direct.ReflectionClassDirector.build(Reflectio
>nClassDirector.java:65) [java] 	at
> org.ozoneDB.tools.OPP.OPP.makeProxiesAndFactories(OPP.java:273)
>      [java] 	at org.ozoneDB.tools.OPP.OPP.generate(OPP.java:193)
>      [java] 	at org.ozoneDB.tools.OPP.OPP.main(OPP.java:161)
>
> BUILD FAILED
> file:/var/backups/ozone/modules/collections/build.xml:124: Java
> returned: 1
>
> Pointers please.
>
> Thanks in advance,
> Oki
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Ozone-users mailing list
> Ozone-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ozone-users

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Oki DZ | 6 Nov 02:50 2003

Re: Collections

On Wed, Nov 05, 2003 at 08:06:00PM +0100, Per Nyfelt wrote:
> I can build and run the simple sample just fine so my guess is that you have 
> some error in your implementation class and OPP is not telling you exactly 
> what the issue is. 

No, I didn't implement anything; I just retrieved the source and 
compiled.

An our ago I retrieved it again from the cvs (head), and I then had 
this following:
compile.collections:
     [java] org.ozoneDB.tools.OPP.srcgen.BuilderException: 
java.lang.ClassNotFoundException: org.ozoneDB.collections.OzoneMap.Node
     [java] 	at 
org.ozoneDB.tools.OPP.srcgen.build.ProxyBuilder.beginClass(ProxyBuilder.java:399)
     [java] 	at 
org.ozoneDB.tools.OPP.srcgen.build.CompositeBuilder.beginClass(CompositeBuilder.java:32)
     [java] 	at 
org.ozoneDB.tools.OPP.srcgen.direct.ReflectionClassDirector.build(ReflectionClassDirector.java:81)
     [java] 	at 
org.ozoneDB.tools.OPP.OPP.makeProxiesAndFactories(OPP.java:273)
     [java] 	at org.ozoneDB.tools.OPP.OPP.generate(OPP.java:193)
     [java] 	at org.ozoneDB.tools.OPP.OPP.main(OPP.java:161)
     [java] Caused by: java.lang.ClassNotFoundException: 
org.ozoneDB.collections.OzoneMap.Node

First I compiled the server, installed it, and then compiled the 
Collections module.

BTW, does the JVM make any difference?
okidz <at> okidz:/var/backups/ozone/modules/collections$ java -version
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

What version of JVM do you use?

Thanks in advance,
Oki

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

Gmane