Problem/Bug Surefire test failing during compilation of Bukkit

Discussion in 'Bukkit Help' started by Garwas89, Nov 3, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Garwas89

    I am not horribly familiar with bukkit, first time trying to compile this so that I can use plugins on my server. Everything looks great until I get to this point in the process:

    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 54.495 s
    [INFO] Finished at: 2017-11-03T22:42:51-05:00
    [INFO] Final Memory: 24M/81M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project craftbukkit: There are test failures.
    [ERROR]
    [ERROR] Please refer to C:\Users\%user%\Desktop\Bukkit server\CraftBukkit\target\surefire-reports for the individual test results.
    [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
    [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
    [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jre-9.0.1\bin\java" --add-modules java.se.ee -jar C:\Users\%user%\AppData\Local\Temp\surefire4912844458203405164\surefirebooter5142477933216120441.jar C:\Users\%user%\AppData\Local\Temp\surefire4912844458203405164 2017-11-03T22-42-48_803-jvmRun1 surefire5786672661560367587tmp surefire_014640747247253829773tmp"
    [ERROR] Error occurred in starting fork, check output in log
    [ERROR] Process Exit Code: 1
    [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
    [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jre-9.0.1\bin\java" --add-modules java.se.ee -jar C:\Users\%user%\AppData\Local\Temp\surefire4912844458203405164\surefirebooter5142477933216120441.jar C:\Users\%user%\AppData\Local\Temp\surefire4912844458203405164 2017-11-03T22-42-48_803-jvmRun1 surefire5786672661560367587tmp surefire_014640747247253829773tmp"
    [ERROR] Error occurred in starting fork, check output in log
    [ERROR] Process Exit Code: 1
    [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:686)
    [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:535)
    [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:280)
    [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
    [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1124)
    [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:954)
    [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:832)
    [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
    [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    [ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
    [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
    [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
    [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
    [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
    [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
    [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR] at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    [ERROR]
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    Exception in thread "main" java.lang.RuntimeException: Error running command, return status !=0: [sh, C:\Users\%user%\Desktop\Bukkit server\apache-maven-3.5.0/bin/mvn, clean, install]
    at org.spigotmc.builder.Builder.runProcess(Builder.java:560)
    at org.spigotmc.builder.Builder.main(Builder.java:437)
    at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:23)


    Can anyone give me a hint on where to go from here?

    More information:

    OS: Windows 10 x64

    $ java -version
    java version "9.0.1"
    Java(TM) SE Runtime Environment (build 9.0.1+11)
    Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

    No wrappers installed

    Not sure on build I am running (all I know is it is downloaded from "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar", and it was today)

    I don't have a server.log file as of yet, as it hasn't actually been able to run. The command I am using is "
    java -jar BuildTools.jar"

    Vanilla server works with no problems. I have no addons as of yet, as far as I know I am running the latest CraftBukkit build.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 3, 2017
  2. Offline

    Zombie_Striker

    @Garwas89
    Have you tried deleting the "work","builddata","spigot", and "bukkit" files and re-running the build tools jar? Does that return the same error message?
     
  3. Offline

    Garwas89

    @Zombie_Striker Just did it, same thing. I have tried compiling several times, each time either in a new folder or completely removing everything (Java, git, the .jar files, everything.) What am I missing here?
     
  4. Offline

    Zombie_Striker

Thread Status:
Not open for further replies.

Share This Page