Darkside138 / DiscordSoundboard

Java Soundboard for Discord
Apache License 2.0
137 stars 55 forks source link

Application run failed #134

Closed Kashkin closed 3 years ago

Kashkin commented 4 years ago
2020-03-31 10:13:55.230 ERROR 23254 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'soundPlayerImpl' defined in URL [jar:file:/DiscordSoundboard/lib/DiscordSoundboard-3.0.4.jar!/BOOT-INF/classes!/net/dirtydeeds/discordsoundboard/service/SoundPlayerImpl.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.dirtydeeds.discordsoundboard.service.SoundPlayerImpl]: Constructor threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:312) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]

I'm on a mac, and used brew to install java 8.

openjdk version "1.8.0_242" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

Happy to provide further details if there isn't an obvious issue with the above.

Darkside138 commented 3 years ago

Try the latest, I believe a lot has changed since this and should be working.