When exporting from the command line, some formats work, others do not. The offending tag is "File".
Here is a minimum bib file:
@Article{ostgaard2002,
Title = {Energy},
File = {ostgaard2002.pdf:ostgaard2002.pdf:PDF}
}
If I do
jabref -o /home/lbnc/bib.html,bibtexml -n true /home/lbnc/win7/work/lit/citations/test.bib
the export is good. If I do
jabref -o /home/lbnc/bib.html -n true /home/lbnc/win7/work/lit/citations/test.bib
I get
Opening: /home/lbnc/win7/work/lit/citations/test.bib
Saving: /home/lbnc/bib.html
java.lang.NullPointerException
at net.sf.jabref.BibtexEntry.getFieldDisplayName(BibtexEntry.java:108)
at net.sf.jabref.BibtexEntry.writeField(BibtexEntry.java:477)
at net.sf.jabref.BibtexEntry.write(BibtexEntry.java:412)
at net.sf.jabref.export.FileActions.saveDatabase(FileActions.java:241)
at net.sf.jabref.JabRef.processArguments(JabRef.java:472)
at net.sf.jabref.JabRef.<init>(JabRef.java:201)
at net.sf.jabref.JabRef.main(JabRef.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.sf.jabref.JabRefMain.main(Unknown Source)
Could not save file '/home/lbnc/bib.html': null</init>
For
jabref -o /home/lbnc/bib.html,endnote -n true /home/lbnc/win7/work/lit/citations/test.bib
I get
Opening: /home/lbnc/win7/work/lit/citations/test.bib
Exporting: /home/lbnc/bib.html
[]
Could not export file '/home/lbnc/bib.html': null
If I remove the File tag, all exports work.
jabref -v
log4j:WARN No appenders could be found for logger (org.java.plugin.ObjectFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Found 2 plugin(s):
2.10b2 (build 0)
I should maybe also mention that the export from the GUI works fine.