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

Opening of File or Url by clicking on icon don't work in last snapshot #972

Closed
burrbull opened this issue Mar 15, 2016 · 7 comments
Closed
Assignees
Labels
bug Confirmed bugs or reports that are very likely to be bugs os: linux
Milestone

Comments

@burrbull
Copy link
Contributor

  • JabRef version (available in the About box): JabRef-3.3dev--snapshot--2016-03-15--master--ee1c5d7
  • Operating system and version: Ubuntu 15.10
  • Steps to reproduce:
    1. Add File path or Url to entry.
    2. Try to open by clicking on icon in main table.

Status: Unable to open link.
In JabRef-3.3dev--snapshot--2016-03-14--master--63d5555 it works fine.

@matthiasgeiger
Copy link
Member

Thanks for your report!
We have made some restructuring in the OS handling - apparently not everything works as it supposed to be...

Can you please post the content of the error console?

Thanks!

@burrbull
Copy link
Contributor Author

12:54:39.325 [JabRef CachedThreadPool] ERROR net.sf.jabref.gui.desktop.JabRefDesktop - Error opening file 'http://ea.donntu.org/handle/123456789/13966'
java.io.IOException: Cannot run program "": error=2, Нет такого файла или каталога
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[?:1.8.0_74]
at java.lang.Runtime.exec(Runtime.java:620) ~[?:1.8.0_74]
at java.lang.Runtime.exec(Runtime.java:485) ~[?:1.8.0_74]
at net.sf.jabref.gui.desktop.os.Linux.openFile(Linux.java:19) ~[JabRef-3.3dev--snapshot--2016-03-15--master--ee1c5d7.jar:?]
at net.sf.jabref.gui.desktop.JabRefDesktop.openExternalFilePlatformIndependent(JabRefDesktop.java:158) ~[JabRef-3.3dev--snapshot--2016-03-15--master--ee1c5d7.jar:?]
at net.sf.jabref.gui.desktop.JabRefDesktop.openBrowser(JabRefDesktop.java:256) ~[JabRef-3.3dev--snapshot--2016-03-15--master--ee1c5d7.jar:?]
at net.sf.jabref.gui.desktop.JabRefDesktop.openExternalViewer(JabRefDesktop.java:93) [JabRef-3.3dev--snapshot--2016-03-15--master--ee1c5d7.jar:?]
at net.sf.jabref.gui.maintable.MainTableSelectionListener$1.run(MainTableSelectionListener.java:327) [JabRef-3.3dev--snapshot--2016-03-15--master--ee1c5d7.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_74]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_74]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]
Caused by: java.io.IOException: error=2, Нет такого файла или каталога
at java.lang.UNIXProcess.forkAndExec(Native Method) ~[?:1.8.0_74]
at java.lang.UNIXProcess.(UNIXProcess.java:248) ~[?:1.8.0_74]
at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[?:1.8.0_74]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[?:1.8.0_74]
... 10 more

@matthiasgeiger
Copy link
Member

Thanks!

@matthiasgeiger matthiasgeiger added bug Confirmed bugs or reports that are very likely to be bugs os: linux labels Mar 16, 2016
@matthiasgeiger matthiasgeiger added this to the v3.3 milestone Mar 16, 2016
@stefan-kolb stefan-kolb self-assigned this Mar 19, 2016
@stefan-kolb
Copy link
Member

Please try the newest build at http://builds.jabref.org/master/.

@burrbull
Copy link
Contributor Author

Still not works!

Now other exception:

Exception in thread "JabRef CachedThreadPool" java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at net.sf.jabref.gui.desktop.JabRefDesktop.openExternalFilePlatformIndependent(JabRefDesktop.java:161)
at net.sf.jabref.gui.desktop.JabRefDesktop.openExternalFileAnyFormat(JabRefDesktop.java:147)
at net.sf.jabref.external.ExternalFileMenuItem.openLink(ExternalFileMenuItem.java:104)
at net.sf.jabref.gui.maintable.MainTableSelectionListener.lambda$mouseClicked$3(MainTableSelectionListener.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

stefan-kolb added a commit that referenced this issue Mar 19, 2016
@stefan-kolb
Copy link
Member

Ouch, sorry I had a typo in the code, please try again in a few minutes 😄

@burrbull
Copy link
Contributor Author

Same exception.

@stefan-kolb stefan-kolb reopened this Mar 19, 2016
Siedlerchr added a commit to Siedlerchr/jabref that referenced this issue Mar 20, 2016
* upstream/master:
  Fix JabRef#972 Typo 😄
  Fix JabRef#972 Unavailable application String makes file opening fail
Siedlerchr added a commit to Siedlerchr/jabref that referenced this issue Mar 20, 2016
* upstream/master:
  Disabled NPE test
  Fix JabRef#972 Correct boolean logic
  Fixed JabRef#1001
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 os: linux
Projects
None yet
Development

No branches or pull requests

3 participants