Closed Pierre-de-la-Verre closed 4 years ago
please post the stack trace (use --trace). "Fall 9" requires --repos folder
and srcfiles.txt can only contain relative paths (no absolute ones) to the repos folder.
So, here are my commands and my results - relative and absolute, (un)quoted ..
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos "d:\Program Files\ilivalidator\xx"
java.lang.NullPointerException
org.interlis2.validator.CreateIliDataTool.visitAllFiles(CreateIliDataTool.java:297)
org.interlis2.validator.CreateIliDataTool.createIliData(CreateIliDataTool.java:61)
org.interlis2.validator.CreateIliDataTool.start(CreateIliDataTool.java:48)
org.interlis2.validator.Main.main(Main.java:183)
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos "d:\Program Files\ilivalidator\xx\"
java.lang.NullPointerException
org.interlis2.validator.CreateIliDataTool.visitAllFiles(CreateIliDataTool.java:294)
org.interlis2.validator.CreateIliDataTool.createIliData(CreateIliDataTool.java:61)
org.interlis2.validator.CreateIliDataTool.start(CreateIliDataTool.java:48)
org.interlis2.validator.Main.main(Main.java:183)
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos d:\Program Files\ilivalidator\xx\
ilivalidator: wrong number of arguments
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos "xx\"
java.lang.NullPointerException
org.interlis2.validator.CreateIliDataTool.visitAllFiles(CreateIliDataTool.java:294)
org.interlis2.validator.CreateIliDataTool.createIliData(CreateIliDataTool.java:61)
org.interlis2.validator.CreateIliDataTool.start(CreateIliDataTool.java:48)
org.interlis2.validator.Main.main(Main.java:183)
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos "xx"
java.lang.NullPointerException
org.interlis2.validator.CreateIliDataTool.visitAllFiles(CreateIliDataTool.java:297)
org.interlis2.validator.CreateIliDataTool.createIliData(CreateIliDataTool.java:61)
org.interlis2.validator.CreateIliDataTool.start(CreateIliDataTool.java:48)
org.interlis2.validator.Main.main(Main.java:183)
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos "..\xx"
java.lang.NullPointerException
org.interlis2.validator.CreateIliDataTool.visitAllFiles(CreateIliDataTool.java:294)
org.interlis2.validator.CreateIliDataTool.createIliData(CreateIliDataTool.java:61)
org.interlis2.validator.CreateIliDataTool.start(CreateIliDataTool.java:48)
org.interlis2.validator.Main.main(Main.java:183)
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos "..\xx\"
java.lang.NullPointerException
org.interlis2.validator.CreateIliDataTool.visitAllFiles(CreateIliDataTool.java:294)
org.interlis2.validator.CreateIliDataTool.createIliData(CreateIliDataTool.java:61)
org.interlis2.validator.CreateIliDataTool.start(CreateIliDataTool.java:48)
org.interlis2.validator.Main.main(Main.java:183)
D:\Program Files\ilivalidator>java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --trace --createIliData --ilidata ilidata.xml --repos "..\xx\"
java.lang.NullPointerException
org.interlis2.validator.CreateIliDataTool.visitAllFiles(CreateIliDataTool.java:294)
org.interlis2.validator.CreateIliDataTool.createIliData(CreateIliDataTool.java:61)
org.interlis2.validator.CreateIliDataTool.start(CreateIliDataTool.java:48)
org.interlis2.validator.Main.main(Main.java:183)
The NPE is because the folder xx doesn't exist.
?? But it exists on my local drive as defined and contains XTF-files, e.g. d:\Program Files\ilivalidator\xx\a.xtf
I have the ilivalidator in folder d:\Program Files\ilivalidator\ and some XTF-files in d:\Program Files\ilivalidator\xx
I tried some examples from the manual, like "java -jar ilivalidator.jar --createIliData --ilidata newIlidata.xml --repos folder" and "java -jar "d:\Program Files\ilivalidator\ilivalidator.jar" --createIliData --ilidata newIlidata.xml --srcfiles files.txt"
with a lot of relative and absulote paths and with quotes and without - and always I get a "java.lang.NullPointerException"
A new newIlidata.xml is sometimes created, it looks like this:
Can you help me to find the right batch line?