I have been editing SwarmMetadata.config and now swarm will not start. This is on MacOS Big Sur.
I must have messed up, but I can't work out where. I tried using the unedited backup of SwarmMetadata.config, but swarm still doesn't start.
Any advice would be welcome.
Here's the output:
2021-02-08 03:41:40 INFO - Swarm version/date: Version: 3.2.0 Built: 2020-09-30T22:28:44Z
2021-02-08 03:41:40 INFO - current directory: /Users/stewart/src/swarm/swarm-3.2.0-mvo
2021-02-08 03:41:40 INFO - user.home: /Users/stewart
2021-02-08 03:41:40 INFO - Using configuration file: Swarm.config
2021-02-08 03:41:40 INFO - Using metadata configuration file: SwarmMetadata.config
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 96
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3734)
at java.base/java.lang.String.substring(String.java:1903)
at gov.usgs.volcanoes.core.configfile.ConfigFile.readConfigFile(ConfigFile.java:510)
at gov.usgs.volcanoes.core.configfile.ConfigFile.readConfigFile(ConfigFile.java:570)
at gov.usgs.volcanoes.core.configfile.ConfigFile.readConfigFile(ConfigFile.java:559)
at gov.usgs.volcanoes.core.configfile.ConfigFile.(ConfigFile.java:100)
at gov.usgs.volcanoes.swarm.SwarmLayout.createSwarmLayout(SwarmLayout.java:52)
at gov.usgs.volcanoes.swarm.SwarmConfig.loadLayouts(SwarmConfig.java:261)
at gov.usgs.volcanoes.swarm.SwarmConfig.createConfig(SwarmConfig.java:220)
at gov.usgs.volcanoes.swarm.Swarm.(Swarm.java:101)
at gov.usgs.volcanoes.swarm.Swarm.main(Swarm.java:1130)
2021-02-08 03:41:40 INFO - java.version: 15
2021-02-08 03:41:40 INFO - maximum heap size: 4096.000 MB
2021-02-08 03:41:41 INFO - loading MapPack: mapdata/mvo_aster/MapPack.txt
2021-02-08 03:41:41 INFO - loading MapPack: mapdata/smu_sentinel/MapPack.txt
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "gov.usgs.volcanoes.swarm.SwarmLayout.process()" because "sl" is null
at gov.usgs.volcanoes.swarm.Swarm.createUi(Swarm.java:372)
at gov.usgs.volcanoes.swarm.Swarm.(Swarm.java:108)
at gov.usgs.volcanoes.swarm.Swarm.main(Swarm.java:1130)
I have been editing SwarmMetadata.config and now swarm will not start. This is on MacOS Big Sur.
I must have messed up, but I can't work out where. I tried using the unedited backup of SwarmMetadata.config, but swarm still doesn't start.
Any advice would be welcome.
Here's the output:
2021-02-08 03:41:40 INFO - Swarm version/date: Version: 3.2.0 Built: 2020-09-30T22:28:44Z 2021-02-08 03:41:40 INFO - current directory: /Users/stewart/src/swarm/swarm-3.2.0-mvo 2021-02-08 03:41:40 INFO - user.home: /Users/stewart 2021-02-08 03:41:40 INFO - Using configuration file: Swarm.config 2021-02-08 03:41:40 INFO - Using metadata configuration file: SwarmMetadata.config java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 96 at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3734) at java.base/java.lang.String.substring(String.java:1903) at gov.usgs.volcanoes.core.configfile.ConfigFile.readConfigFile(ConfigFile.java:510) at gov.usgs.volcanoes.core.configfile.ConfigFile.readConfigFile(ConfigFile.java:570) at gov.usgs.volcanoes.core.configfile.ConfigFile.readConfigFile(ConfigFile.java:559) at gov.usgs.volcanoes.core.configfile.ConfigFile.(ConfigFile.java:100)
at gov.usgs.volcanoes.swarm.SwarmLayout.createSwarmLayout(SwarmLayout.java:52)
at gov.usgs.volcanoes.swarm.SwarmConfig.loadLayouts(SwarmConfig.java:261)
at gov.usgs.volcanoes.swarm.SwarmConfig.createConfig(SwarmConfig.java:220)
at gov.usgs.volcanoes.swarm.Swarm.(Swarm.java:101)
at gov.usgs.volcanoes.swarm.Swarm.main(Swarm.java:1130)
2021-02-08 03:41:40 INFO - java.version: 15
2021-02-08 03:41:40 INFO - maximum heap size: 4096.000 MB
2021-02-08 03:41:41 INFO - loading MapPack: mapdata/mvo_aster/MapPack.txt
2021-02-08 03:41:41 INFO - loading MapPack: mapdata/smu_sentinel/MapPack.txt
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "gov.usgs.volcanoes.swarm.SwarmLayout.process()" because "sl" is null
at gov.usgs.volcanoes.swarm.Swarm.createUi(Swarm.java:372)
at gov.usgs.volcanoes.swarm.Swarm.(Swarm.java:108)
at gov.usgs.volcanoes.swarm.Swarm.main(Swarm.java:1130)