Re: need help about ODMG, urgent
Per Nyfelt <[email protected]> Fri, 1 Jul 2005 14:00:37 +0200
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | Resourcing Networks |
| Message-ID | <[email protected]> |
It is entierly possible that the ODMG code generated by the refactored OPP is
not correct. This is so because there were no working samples or tests of the
ODMG stuff at the time of the restructure.
I have the ODMG spec. and could dive into this but there are at least 10 other
things that have higher priority for me first. Anyway, one area which is not
supported is the query language (OQL). I know this has been discussed a
couple of years ago so do a search in the mail archive.
link(), setLink() etc are methods that should occur in the generated proxy.
Sounds like these methods are indeed not needed in the Object...
I hope that someone else chimes in that are more familiar with the ODMG
stuff...
Regards,
Per
Friday 01 July 2005 02.52 skrev budi hartono:
> i want ask some question about ODMG sample.
> 1. i have an ODMG samples from package 1.2 bin and src (might be the same)
> i have compiled it and the error like below. would you like to help me.
> in my opinion the opp generate wrong code that write double catch in _proxy
> it caused by overloading constractor, that in the ODMG sample can accept
> string parameter what can i do to solve this problem
> 2. in ODMG sample i read about remark statement
> i don't understand where Ozone doesn't fully support the ODMG compliant?
> would you like to show me?
> i must get this information to complete my final test in my university.
> please help me.
> 3. i have to implement a simple sample about the ODMG to explain the ozone
> fiture i confused with some method and properties in your odmg samples that
> never been called like link(), setLink(Auto auto), toString() method; and
> link properties. what method and properties used for???
> why in toString() method there must be use link to get remoteID?
> 4. if i just open with odmg enhancedatabase,
> create transaction with odmg transaction,
> create object with db.createPersistent,
> locate object with db.lookup,
> use db.bind to associate the object,
> and delete the object with delete persistent
> but i create a class like usual class (i mean class like handle sample
> class) what problem that might be i get in the future?
> would ypu like to explain to me, all my question
> cause it's very important to me. please..
> i'm sure you will help me. thanks a lot
>
> //**************************
> [java] Error running compiler: null
> build\src\odmg\AutoImpl_Proxy.java:42: exception java.lang.Exception has
> already been caught catch (Exception e) { ^ 1 error
> [java] compiling source build\src to build\src
> [java] output: null
> [java] args: [javac, -classpath,
> C:\ozone\lib\ant-optional.jar;C:\ozone\lib
> \ant.jar;C:\ozone\lib\castor.jar;C:\ozone\lib\cos.jar;C:\ozone\lib\infozone
>-lexu
> s.jar;C:\ozone\lib\infozone-tools.jar;C:\ozone\lib\javaclass.jar;C:\ozone\l
>ib\ja
> xen-core.jar;C:\ozone\lib\jndi.jar;C:\ozone\lib\jta-spec1_0_1.jar;C:\ozone\
>lib\j
> unit.jar;C:\ozone\lib\log4j-1.2.jar;C:\ozone\lib\mockobjects-alt-jdk1.4-0.0
>9.jar
> ;C:\ozone\lib\mockobjects-core-0.09.jar;C:\ozone\lib\mockobjects-jdk1.4-0.0
>9.jar
> ;C:\ozone\lib\msv.jar;C:\ozone\lib\omquery.jar;C:\ozone\lib\ozoneAdminGui-0
>.1.ja
> r;C:\ozone\lib\ozoneBLOB-0.1.jar;C:\ozone\lib\ozoneCollections-0.2.jar;C:\o
>zone\
> lib\ozoneODMG-0.1.jar;C:\ozone\lib\ozoneServer-1.2.jar;C:\ozone\lib\ozoneSe
>rverT
> ests-1.2.jar;C:\ozone\lib\ozoneXML-dom-0.2.jar;C:\ozone\lib\ozoneXML-dom4j-
>0.1.j
> ar;C:\ozone\lib\ozoneXML-dom4jTest-0.1.jar;C:\ozone\lib\ozoneXML-domTest-0.
>2.jar
> ;C:\ozone\lib\PostgreSql.jar;C:\ozone\lib\PullParser2.jar;C:\ozone\lib\saxp
>ath.j
> ar;C:\ozone\lib\tyrex-1.0.1.jar;C:\ozone\lib\xercesImpl.jar;C:\ozone\lib\xm
>lPars
> erAPIs.jar;C:\ozone\lib\xtdash.jar;C:\ozone\samples\odmg\build\classes;C:\o
>zone\ build\classes;F:\jdk\lib\tools.jar, -g, -deprecation, -sourcepath,
> build\src, -d , build\src, build\src\odmg\AutoImpl_Proxy.java]
> [java] End Compile proxies
> [java] org.ozoneDB.tools.OPP.compiler.CompilerException: Failed to
> compile generated resolver
> [java] at
> org.ozoneDB.tools.OPP.compiler.ExternalJavaCompiler.compile(U nknown
> Source)
> [java] at org.ozoneDB.tools.OPP.OPP.compileSource(Unknown Source)
> [java] at org.ozoneDB.tools.OPP.OPP.generate(Unknown Source)
> [java] at org.ozoneDB.tools.OPP.OPP.main(Unknown Source)
> BUILD FAILED
> file:C:/ozone/samples/odmg/build.xml:83: Java returned: 1
> Total time: 10 seconds
> //*****************************
>
>
> ---------------------------------
> Yahoo! Sports
> Rekindle the Rivalries. Sign up for Fantasy Football
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click