Topics

Project files in OT 3.5

Nicholas Mucks
 

Hi,
We're exploring project files. They seem to work fine in DITA-OT 3.4 but throw this error in DITA-OT 3.5:

java.lang.NullPointerException

at org.dita.dost.invoker.Main.lambda$handleProject$3(Main.java:397)

at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)

at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)

at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)

at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)

at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)

at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)

at org.dita.dost.invoker.Main.handleProject(Main.java:443)

at org.dita.dost.invoker.Main.processArgs(Main.java:342)

at org.dita.dost.invoker.Main.startAnt(Main.java:160)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)


We're testing with the project files that come with OT itself. It looks something like this:

dita-ot/3.4/dev/bin/dita --project=/dita-ot/3.4/dev/docsrc/samples/project-files/pdf.xml > succeeds
dita-ot/3.5/dev/bin/dita --project=/dita-ot/3.5/dev/docsrc/samples/project-files/pdf.xml > fails

Any thoughts?

Thanks,
Nick


Radu Coravu
 

Hi Nick,

I found the same problem about 2 days ago:

https://github.com/dita-ot/dita-ot/issues/3526

You should specify in the command line also a base output folder like:

--output=.

This should remove the NPE.

Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 6/5/20 12:58 AM, Nicholas Mucks via groups.io wrote:

Hi,
We're exploring project files. They seem to work fine in DITA-OT 3.4 but throw this error in DITA-OT 3.5:

java.lang.NullPointerException

at org.dita.dost.invoker.Main.lambda$handleProject$3(Main.java:397)

at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)

at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)

at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)

at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)

at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)

at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)

at org.dita.dost.invoker.Main.handleProject(Main.java:443)

at org.dita.dost.invoker.Main.processArgs(Main.java:342)

at org.dita.dost.invoker.Main.startAnt(Main.java:160)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)


We're testing with the project files that come with OT itself. It looks something like this:

dita-ot/3.4/dev/bin/dita --project=/dita-ot/3.4/dev/docsrc/samples/project-files/pdf.xml > succeeds
dita-ot/3.5/dev/bin/dita --project=/dita-ot/3.5/dev/docsrc/samples/project-files/pdf.xml > fails

Any thoughts?

Thanks,
Nick




  

Nicholas Mucks
 

that did it. thanks, Radu!

On Thursday, June 4, 2020, 08:10:19 PM PDT, Radu Coravu <radu_coravu@...> wrote:


Hi Nick,

I found the same problem about 2 days ago:

https://github.com/dita-ot/dita-ot/issues/3526

You should specify in the command line also a base output folder like:

--output=.

This should remove the NPE.

Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 6/5/20 12:58 AM, Nicholas Mucks via groups.io wrote:
Hi,
We're exploring project files. They seem to work fine in DITA-OT 3.4 but throw this error in DITA-OT 3.5:

java.lang.NullPointerException

at org.dita.dost.invoker.Main.lambda$handleProject$3(Main.java:397)

at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)

at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)

at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)

at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)

at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)

at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)

at org.dita.dost.invoker.Main.handleProject(Main.java:443)

at org.dita.dost.invoker.Main.processArgs(Main.java:342)

at org.dita.dost.invoker.Main.startAnt(Main.java:160)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)


We're testing with the project files that come with OT itself. It looks something like this:

dita-ot/3.4/dev/bin/dita --project=/dita-ot/3.4/dev/docsrc/samples/project-files/pdf.xml > succeeds
dita-ot/3.5/dev/bin/dita --project=/dita-ot/3.5/dev/docsrc/samples/project-files/pdf.xml > fails

Any thoughts?

Thanks,
Nick