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

Not possible to save a database #2522

Closed
bernhard-kleine opened this issue Feb 6, 2017 · 8 comments · Fixed by #2527
Closed

Not possible to save a database #2522

bernhard-kleine opened this issue Feb 6, 2017 · 8 comments · Fixed by #2527
Labels
bug Confirmed bugs or reports that are very likely to be bugs ui
Milestone

Comments

@bernhard-kleine
Copy link

bernhard-kleine commented Feb 6, 2017

JabRef_windows-x64_4_0_0-dev--snapshot--2017-02-05--multicleanup--ddecdfd3f
Windows 7
java 1.8.0_121

Steps to reproduce:

  1. open a new database
  2. input from medline PMID 27151464
  3. run cleanup
  4. try save or save as

this does not give any reaction; the program when run exit notices there is something to save but the file dialog does not open.

Put the excerpt of the log file here

btw: where to find the log file?

@matthiasgeiger
Copy link
Member

Unfortunately, I cannot reproduce this problem.

Can't you save the database at all? Or does this depend on the clean up? If so, can you provide a screenshot of your cleanup settings?

btw: where to find the log file?

Since 4.0.0dev you can find it using Help -> View event log

@matthiasgeiger matthiasgeiger added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Feb 6, 2017
@bernhard-kleine
Copy link
Author

bernhard-kleine commented Feb 6, 2017


Opening: K:\BuchprojektSpringer\VierteAuflage\Literatur\adiponectin.bib

java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Folder parameter must be a valid folder

runCommand error: null

java.lang.NullPointerException
	at net.sf.jabref.gui.exporter.SaveDatabaseAction.saveAs(SaveDatabaseAction.java:314)
	at net.sf.jabref.gui.BasePanel.runCommand(BasePanel.java:988)
	at net.sf.jabref.gui.JabRefFrame$GeneralAction.actionPerformed(JabRefFrame.java:1097)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.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

This looks like the same problem in #2511

@Siedlerchr
Copy link
Member

Just one question, did you use the installer or did you just used the jar file?

@matthiasgeiger
Copy link
Member

Okay I found the reason:
JabRef stores the least recently used directory to be able to show it again on the next FileDialog. If this "working directory" no longer exists the error shown above occurs.

"Quick" solution would be to fallback to the default "working directory", i.e., the user home if the working dir is no longer existent. However, I'm not sure where to fix this as FileDialog is already deprecated... @JabRef/developers Has someone time to change to DialogService and check whether this service is also affected (I think so)?

@matthiasgeiger
Copy link
Member

matthiasgeiger commented Feb 6, 2017

Ahh... @bernhard-kleine to get it back working before we have published a fix you have to reset your preferences either completely using the UI (Options -> Preferences -> Reset preferences) or if you are using the jar version using the command: java -jar <JarFileName> -d workingDirectory

@matthiasgeiger matthiasgeiger added bug Confirmed bugs or reports that are very likely to be bugs ui and removed status: waiting-for-feedback The submitter or other users need to provide more information about the issue labels Feb 6, 2017
@matthiasgeiger matthiasgeiger added this to the v4.0 milestone Feb 6, 2017
@Siedlerchr
Copy link
Member

Siedlerchr commented Feb 6, 2017 via email

@bernhard-kleine
Copy link
Author

I can wait for a fix since I am working still with txs 3.8.2. I installed the snapshot in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs ui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants