#6 Cartographer problems

open
nobody
None
5
2002-05-10
2002-05-10
Calvin Loh
No

1) Generated source file only contains
class attribute declarations. There
are no setters and getters, etc.

2) While the generated xml file is
placed in the correct directory
(e.g. if I specify the output dir
to be "d:\mydir", and the package is
"test", then the xml file goes into
"d:\mydir\test"), the generated java
file is placed in the wrong directory
(following from the previous example,
the java file goes into "d:\mydir"
rather than "d:\mydir\test").

3) I get the following error from the
compile step:

0 [main] DEBUG com.objectwave.cartographer.DBModel -
Start db load thread
10 [main] DEBUG com.objectwave.cartographer.DBModel -
Started db load thread
10 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Schemas not
found. Adding empty schema.
70 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Adding table
person
150 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Adding column
person:Id
170 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Adding column
person:Name
170 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Adding column
person:Created
170 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Adding column
person:databaseIdentifier
210 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Adding primary
key Id to person
220 [Thread-0] DEBUG
com.objectwave.cartographer.DBModel - Call back=null
1072 [main] DEBUG com.objectwave.cartographer.Main -
Adding table to domain: person
1182 [main] DEBUG com.objectwave.cartographer.Main -
Generating source for Person
2604 [main] DEBUG
com.objectwave.cartographer.DomainObjectXMLBuilder -
Saved xml file: d:\test\Person.xml
2614 [main] DEBUG com.objectwave.cartographer.Main -
Compiling class for test
2654 [main] DEBUG Default - arg [0] = -d
2654 [main] DEBUG Default - arg [1] = d:\ 2654 [main] DEBUG Default - arg [2] = -classpath
2654 [main] DEBUG Default - arg [3] =
d:\;D:\eclipse\workspace\Cartographer\bin;D:\eclipse\wo
rkspace\JGrinder\bin;D:\lib\816classes12.jar;D:\lib\cri
mson.jar;D:\lib\j2ee1.2.1.jar;D:\lib\jaxp.jar;D:\lib\ju
nit.jar;D:\lib\log4j.jar;D:\lib\log4j-
core.jar;D:\lib\xjr-
1.2.2.jar;D:\lib\xerces.jar;D:\jdk1.3.1
\lib\tools.jar;D:\lib\mm.mysql-2.0.13-
bin.jar;D:\lib\xalan.jar
2654 [main] DEBUG Default - arg [4] = d:\Person.java
d:\Person.java:3: illegal line end in character literal
'
^
d:\Person.java:10: cannot resolve symbol
symbol : class DomainObject
location: class test.Person
*/
^
2 errors
java.io.FileNotFoundException: d:\test\Person.class
(The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown
Source)
at
com.objectwave.cartographer.DomainObjectModel.copyToWor
kDirectory(DomainObjectModel.java:546)
at
com.objectwave.cartographer.DomainObjectCompiler.compil
eAll(DomainObjectCompiler.java:93)
at
com.objectwave.cartographer.Main.compileSource
(Main.java:294)
at com.objectwave.cartographer.Main.init
(Main.java:195)
at com.objectwave.cartographer.Main.main
(Main.java:49)

Discussion