some trouble in DODS in Enhydra5.1 beta8

Ryuji Hattori<[email protected]>
Newsgroups gmane.comp.java.enhydra.general
Message-ID <[email protected]>
hello.

I am trying to upgrade from enhydra5.0 to enhydra5.1. 
It works and I almost can compile my existing project well. 
but I found some problems using DODS.

1) in doml file using notUsingOid attribute with table tag
cause an compile error as following message.

compile:
Compiling 4 source files to D:\home\hattori\src\java\test\sample51\classes
D:\home\hattori\src\java\test\sample51\src\hamlet\test\sample51\data\SummaryVolP1DO.java:668: 
Symbol not found
Symbol: method loadData ()
place    : hamlet.test.sample51.data.SummaryVolP1DO 
            loadData();
            ^
D:\home\hattori\src\java\test\sample51\src\hamlet\test\sample51\data\SummaryVolP1Query.java:446: hamlet.test.sample51.data.SummaryVolP1DO  createExisting(java.sql.ResultSet)  (java.lang.String) 
			DO = SummaryVolP1DO.createExisting(shell.handle);
                                           ^
: D:\home\hattori\src\java\test\sample51\src\hamlet\test\sample51\data\SummaryVolP1Query.java  API 
: -deprecation 
Error 2 

2) I tried DODS GUI frontend program to generate java source code from doml file.
but following error message arise. I tried it in cygwin bash shell in Windows 2000
machine.

Enhydra$ dods
java.io.IOException: CreateProcess: d:/usr/opt/enhydra5.1/dods\bin\dods.bat -a dods:build_
all -t standard -b database_not_set -h d:\home\hattori\src\java\test\sample51\src\doml\Doc
umentList51.doml D:\home\hattori\src\test\dods error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:63)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at java.lang.Runtime.exec(Runtime.java:491)
        at java.lang.Runtime.exec(Runtime.java:457)
        at org.enhydra.dods.generator.DODSGenerator.generateAll(Unknown Source)
        at org.enhydra.dods.generator.DODSGenerator.generateAll(Unknown Source)
        at org.enhydra.dods.wizard.ExecThread.run(Unknown Source)
org.enhydra.dods.generator.DODSGenerateException:  d:/usr/opt/enhydra5.1/dods\bin\dods.bat
 -a dods:build_all -t standard -b database_not_set -h d:\home\hattori\src\java\test\sample
51\src\doml\DocumentList51.doml D:\home\hattori\src\test\dods error=2
        at org.enhydra.dods.generator.DODSGenerator.generateAll(Unknown Source)
        at org.enhydra.dods.generator.DODSGenerator.generateAll(Unknown Source)
        at org.enhydra.dods.wizard.ExecThread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess: d:/usr/opt/enhydra5.1/dods\bin\dods.bat -a
dods:build_all -t standard -b database_not_set -h d:\home\hattori\src\java\test\sample51\s
rc\doml\DocumentList51.doml D:\home\hattori\src\test\dods error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:63)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at java.lang.Runtime.exec(Runtime.java:491)
        at java.lang.Runtime.exec(Runtime.java:457)
        ... 3 more 
     
3) some DODS classes use non default JVM System Properties such as
"JAVA_HOME", "LOCAL_CLASSPATH", "DODS_HOME", "ENHYDRA_DIR", "enhydra.home".
I think these properties are implicit not accurate and it can be refactored 
more simply. for instance "ENHYDRA_DIR" seems to be same "enhydra.home".
I use ant not only for enhydra projects but also other purposes, so I use
original jakarta ant script but not one existing in enhydra bin directory.
So first my build time. I was troubled with messages such as "JVM can not 
find neither DODS HOME nor ENHYDRA HOME!" or Un excepted Exception cause of
NullPointerException which cause by getting undefined property.

Thanks for your help!      

***********************************************
Ryuji Hattori
in Hitz Techical Lab ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.