sirius-ms / sirius

SIRIUS is a software for discovering a landscape of de-novo identification of metabolites using tandem mass spectrometry. This repository contains the code of the SIRIUS Software (GUI and CLI)
GNU Affero General Public License v3.0
78 stars 17 forks source link

unexpected error when starting gui #39

Closed xxing9703 closed 2 years ago

xxing9703 commented 3 years ago

I got unexpected errors below when starting "sirius-gui.exe" in my laptop (fine on a different PC). Tried to update JAVA but problem remains. Any ideas on how to fix this? Thanks!

Unexpected error! java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPath.parse(Unknown Source) at java.base/sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at java.base/java.nio.file.Path.of(Unknown Source) at java.base/java.nio.file.Paths.get(Unknown Source) at de.unijena.bioinf.chemdb.SearchableDatabases.getDatabaseDirectory(SearchableDatabases.java:61) at de.unijena.bioinf.chemdb.SearchableDatabases.getCustomDatabaseDirectory(SearchableDatabases.java:52) at de.unijena.bioinf.chemdb.SearchableDatabases.loadCustomDatabases(SearchableDatabases.java:148) at de.unijena.bioinf.chemdb.SearchableDatabases.getCustomDatabases(SearchableDatabases.java:130) at de.unijena.bioinf.chemdb.SearchableDatabases.getCustomDatabases(SearchableDatabases.java:125) at de.unijena.bioinf.chemdb.SearchableDatabases.getAvailableDatabases(SearchableDatabases.java:141) at de.unijena.bioinf.ms.frontend.subtools.gui.GuiAppOptions$Flow$2.compute(GuiAppOptions.java:140) at de.unijena.bioinf.ms.frontend.subtools.gui.GuiAppOptions$Flow$2.compute(GuiAppOptions.java:128) at de.unijena.bioinf.jjobs.BasicJJob.call(BasicJJob.java:120) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)

marcus-ludwig commented 2 years ago

Hi, is this error still occurring with SIRIUS version 4.9.5? Updating JAVA won't help, since JAVA is directly bundled and shipped with SIRIUS 4.

xxing9703 commented 2 years ago

Hi, the error is gone for the new version. Thanks!

From: marcus-ludwig @.> Sent: Friday, October 8, 2021 7:45 AM To: boecker-lab/sirius @.> Cc: Xi Xing @.>; Author @.> Subject: Re: [boecker-lab/sirius] unexpected error when starting gui (#39)

Hi, is this error still occurring with SIRIUS version 4.9.5? Updating JAVA won't help, since JAVA is directly bundled and shipped with SIRIUS 4.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/boecker-lab/sirius/issues/39#issuecomment-938575888, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD43KP7MNIRFUBP7FQHDOETUF3KSDANCNFSM45FPL3EA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

marcus-ludwig commented 2 years ago

Great!