Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64886

Error: not a valid file / error in the forked process while executing a project in Jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: maven-plugin
    • Environment:
      CentOS Linux release 7.8.2003 (Core) , Java version -openjdk version "1.8.0_252", maven-resources-plugin:3.0.2, maven-compiler-plugin:3.7.0, Jenkins 2.235.5
    • Similar Issues:

      Description

      I have an test XML which works by itself when running through Intellij.

      Also the same XML works fine when running on Jenkins Slave running on Windows, but when I try to run the same XML on CentOS slave gives the following Error:

      Do we need to modify the existing XML file to make it work with CentOS/Linux slave ?
      13:43:53 There was an error in the forked process*13:43:53* Suite file /home/centos/workspace/CentOS_XSI_API/src/test/java/Broadsoft/XSI_API_Prod/CentOS_XSI_API_Prod.xml is not a valid file*13:43:53* org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process*13:43:53* Suite file /home/centos/workspace/CentOS_XSI_API/src/test/java/Broadsoft/XSI_API_Prod/CentOS_XSI_API_Prod.xml is not a valid file*13:43:53* at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:673)13:43:53 at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:535)13:43:53 at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:280)13:43:53 at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)13:43:53 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1124)13:43:53 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:954)13:43:53 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:832)13:43:53 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)13:43:53 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)13:43:53 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)13:43:53 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)13:43:53 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)13:43:53 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)13:43:53 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)13:43:53 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)13:43:53 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)13:43:53 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)13:43:53 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)13:43:53 at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main(Maven35Launcher.java:130)13:43:53 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)13:43:53 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)13:43:53 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)13:43:53 at java.lang.reflect.Method.invoke(Method.java:498)13:43:53 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)13:43:53 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)13:43:53 at jenkins.maven3.agent.Maven35Main.launch(Maven35Main.java:178)13:43:53 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)13:43:53 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)13:43:53 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)13:43:53 at java.lang.reflect.Method.invoke(Method.java:498)13:43:53 at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)13:43:53 at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)13:43:53 at hudson.remoting.UserRequest.perform(UserRequest.java:211)13:43:53 at hudson.remoting.UserRequest.perform(UserRequest.java:54)13:43:53 at hudson.remoting.Request$2.run(Request.java:369)13:43:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)13:43:53 at java.util.concurrent.FutureTask.run(FutureTask.java:266)13:43:53 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)13:43:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)13:43:53 at java.lang.Thread.run(Thread.java:748)13:43:53

       

      This issue is similar to - JENKINS-43709 but there is no solution so far to this issue 

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            paraggulwani Parag Gulwani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: