lf gaussianArchive2Cml.lf fails

Pablo Echenique avatarPablo Echenique created an issue

brand new lensfield installed, jumbo compiling smoothly and succeeding at tests, gaussianArchive2Cml.lf changed to read

; Build file taking all files **/*.gau, and transforming all to **/*.cml
; Illustrates use of Lensfield2 'unaware' routines

(repository https://maven.ch.cam.ac.uk/m2repo)

(source
    files       **/*.gau)

(build
    cml      org.xmlcml.cml.converters.compchem.gaussian.archive.GaussianArchive2CMLConverter/convert
    :input      files
    :output     **/*.cml
    :depends    cml:jumbo-converters-compchem:0.3-SNAPSHOT)

I issue

lf gaussianArchive2Cml.lf

and I get the error

Lensfield2 (0.1.1)
----------------------------------------
[INFO]  Checking build steps
[INFO]  Resolving build order
[DEBUG]  - files
[DEBUG]  - cml
[INFO]  Resolving dependencies
[DEBUG] Resolving global dependencies
[DEBUG] Resolving dependencies for: cml
[INFO]  Initialising workspace
[INFO]  Previous build log not found
[INFO]  Starting build log
[INFO]  Processing source: files
[DEBUG] (files) adding a/a.gau
[DEBUG] (files) adding a/a1/C2H5.gau
[DEBUG] (files) adding b/nh2.gau
[INFO]  Processing build step: cml
LOADING CLASS: org.xmlcml.cml.converters.compchem.gaussian.archive.GaussianArchive2CMLConverter
----------
[DEBUG] (cml) reading a/a.gau
----------------------------------------
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.lensfield.process.ProcessRunner.runArgsTask(ProcessRunner.java:294)
	at org.lensfield.process.ProcessRunner.runProcess(ProcessRunner.java:166)
	at org.lensfield.Lensfield.run(Lensfield.java:655)
	at org.lensfield.Lensfield.runKtoLStep(Lensfield.java:459)
	at org.lensfield.Lensfield.processBuildStep(Lensfield.java:419)
	at org.lensfield.Lensfield.build(Lensfield.java:357)
	at org.lensfield.Lensfield.processBuildSteps(Lensfield.java:712)
	at org.lensfield.Lensfield.build(Lensfield.java:128)
	at org.lensfield.cli.LensfieldCli.run(LensfieldCli.java:87)
	at org.lensfield.cli.LensfieldCli.main(LensfieldCli.java:69)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.lensfield.launcher.load.Loader.run(Loader.java:65)
	at org.lensfield.launcher.load.Loader.main(Loader.java:94)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.lensfield.launcher.boot.Bootstrap.main(Bootstrap.java:52)
Caused by: java.lang.RuntimeException: Cannot parse/read/find templateList null
	at org.xmlcml.cml.converters.LegacyProcessor.readTemplates(LegacyProcessor.java:74)
	at org.xmlcml.cml.converters.LegacyProcessor.<init>(LegacyProcessor.java:51)
	at org.xmlcml.cml.converters.compchem.gaussian.archive.GaussianArchiveOrigProcessor.<init>(GaussianArchiveOrigProcessor.java:73)
	at org.xmlcml.cml.converters.compchem.gaussian.archive.GaussianArchive2CMLConverter.convertToXML(GaussianArchive2CMLConverter.java:41)
	at org.xmlcml.cml.converters.AbstractConverter.convert(AbstractConverter.java:377)
	... 25 more
Caused by: java.lang.NullPointerException
	at org.xmlcml.euclid.Util.getInputStreamFromResource(Util.java:225)
	at org.xmlcml.cml.converters.LegacyProcessor.readTemplates(LegacyProcessor.java:66)
	... 29 more

BUILD FAILED

Comments (2)

  1. gigadot

    This is not part of Lensfield Jumbo. The name Lensfield Jumbo may cause confusion since it current only handle downloading and uploading files from a REST file server.

    This issue should be moved to Lensfield project.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.