Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JabRef-4.2 CLI does not work #4038

Closed
1 task done
auge opened this issue May 18, 2018 · 4 comments
Closed
1 task done

JabRef-4.2 CLI does not work #4038

auge opened this issue May 18, 2018 · 4 comments
Assignees
Labels

Comments

@auge
Copy link

auge commented May 18, 2018

I use JabRef to sanitize my bibfile automatically. (using Jenkins ...)

the newer release 4.2 however does not work from CLI

JabRef version 4.2 on Windows 10

Steps to reproduce:

using 4.1: - working

$ java -jar JabRef-4.1.jar -n --help
usage: jabref [OPTIONS] [BIBTEX_FILE]

[...]

using 4.2: - Exception + no return to shell (same with master "4.3-dev")

$ java -jar JabRef-4.2.jar -n --help
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at org.jabref.cli.JabRefCLI.printUsage(JabRefCLI.java:262)
      at org.jabref.cli.ArgumentProcessor.processArguments(ArgumentProcessor.java:180)
      at org.jabref.cli.ArgumentProcessor.<init>(ArgumentProcessor.java:71)
      at org.jabref.JabRefMain.start(JabRefMain.java:112)
      at org.jabref.JabRefMain.lambda$start$1(JabRefMain.java:188)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

@Siedlerchr
Copy link
Member

@johannes-manner As you recently worked on that CLI stuff, do you have any idea?

@johannes-manner
Copy link
Collaborator

I will try to reproduce and investigate the bug. Initially, I have no idea, why the CLI is not working in this case in the latest release 4.2.

tobiasdiez pushed a commit that referenced this issue May 24, 2018
* A first solution for the cli problem

ExportFactory is not initialized at this execution point...

* Changing the order of execution in the main method
@tobiasdiez
Copy link
Member

This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks!

@auge
Copy link
Author

auge commented May 24, 2018

works for me - thanks!

Siedlerchr added a commit that referenced this issue May 27, 2018
…leType

* upstream/master: (33 commits)
  Import inspection uses now same font size setttings as maintable (#4062)
  Add date checker (#4007)
  Enable tests
  macOs push to application fix
  Fix #4041 to make Push to Application work again on OSX. (#4057)
  Add NormalizeEnDashesFormatter (#4045)
  Package private for tests
  Shutdown duplicate code
  Move migrations to PreferencesMigrations
  Structure startup
  Extract migrations
  A first solution for the cli problem #4038 (#4047)
  New translations JabRef_en.properties (French) (#4052)
  Update CHANGELOG.md
  Fix checkstyle
  Make test more informative in the failing case
  New translations JabRef_en.properties (French) (#4051)
  New translations JabRef_en.properties (Vietnamese) (#4050)
  Make Formatter an abstract class (and remove AbstractFormatter)
  New Crowdin translations (#4048)
  ...

# Conflicts:
#	CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants