java.lang.IllegalArgumentException: Failed to instantiate class org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue from {"name":"HOSTN","value":"yourhostname"}

Jenkins JIRA | Konrad Lorentz | 5 years ago
  1. 0

    Hi developers, I've a problem to trigger a parametrized job from commandline, if a parameter is a Node ... Setup: a fresh (Test) job: TESTJOBNAME enable: This build is parameterized add Node define the variable name: HOSTN select a/mutliple hosts goto "Build Triggers" enable Trigger builds remotely (e.g., from scripts) -> leave token blank goto "Build" add "Execute shell" fill the field: "pwd date hostname" click save goto into a shell: curl --silent -u USERNAME:PASSWORD --show-error --data 'json={"parameter":[{"name":"HOSTN","value":"YOURHOSTNAME"}]}&Submit=Build' 'http://YOURSERVER:8080/job/TESTJOBNAME/build' get the error: jenkinslaunch ERROR: The Hudson server's response was: jenkinslaunch ERROR: <html><head><title>Error 500</title></head><body bgcolor="#ffffff"><h1>Status Code: 500</h1>Exception: <br>Stacktrace: <pre>java.lang.IllegalArgumentException: Failed to instantiate class org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue from {"name":"HOSTN","value":"yourhostname"} jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:628) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:372) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:368) jenkinslaunch ERROR: at org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterDefinition.createValue(NodeParameterDefinition.java:145) jenkinslaunch ERROR: at hudson.model.ParametersDefinitionProperty._doBuild(ParametersDefinitionProperty.java:127) jenkinslaunch ERROR: at hudson.model.AbstractProject.doBuild(AbstractProject.java:1571) jenkinslaunch ERROR: at sun.reflect.GeneratedMethodAccessor518.invoke(Unknown Source) jenkinslaunch ERROR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) jenkinslaunch ERROR: at java.lang.reflect.Method.invoke(Method.java:597) jenkinslaunch ERROR: at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) jenkinslaunch ERROR: at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) jenkinslaunch ERROR: at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) jenkinslaunch ERROR: at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104) jenkinslaunch ERROR: at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) jenkinslaunch ERROR: at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234) jenkinslaunch ERROR: at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.service(Stapler.java:159) jenkinslaunch ERROR: at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) jenkinslaunch ERROR: at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) jenkinslaunch ERROR: at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) jenkinslaunch ERROR: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) jenkinslaunch ERROR: at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) jenkinslaunch ERROR: at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) jenkinslaunch ERROR: at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) jenkinslaunch ERROR: at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) jenkinslaunch ERROR: at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) jenkinslaunch ERROR: at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) jenkinslaunch ERROR: at java.lang.Thread.run(Thread.java:662) jenkinslaunch ERROR: Caused by: java.lang.IllegalArgumentException: at least one label must be given! jenkinslaunch ERROR: at org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue.<init>(NodeParameterValue.java:47) jenkinslaunch ERROR: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) jenkinslaunch ERROR: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) jenkinslaunch ERROR: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) jenkinslaunch ERROR: at java.lang.reflect.Constructor.newInstance(Constructor.java:513) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:419) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.access$300(RequestImpl.java:75) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:626) jenkinslaunch ERROR: ... 61 more jenkinslaunch ERROR: </pre><br><hr size="1" width="90%"><i>Generated by Winstone Servlet Engine v0.9.10 at Thu Sep 15 11:11:40 CEST 2011</i></body></html>jenkinslaunch ERROR: Failed to submit job: 2

    Jenkins JIRA | 5 years ago | Konrad Lorentz
    java.lang.IllegalArgumentException: Failed to instantiate class org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue from {"name":"HOSTN","value":"yourhostname"}
  2. 0

    Hi developers, I've a problem to trigger a parametrized job from commandline, if a parameter is a Node ... Setup: a fresh (Test) job: TESTJOBNAME enable: This build is parameterized add Node define the variable name: HOSTN select a/mutliple hosts goto "Build Triggers" enable Trigger builds remotely (e.g., from scripts) -> leave token blank goto "Build" add "Execute shell" fill the field: "pwd date hostname" click save goto into a shell: curl --silent -u USERNAME:PASSWORD --show-error --data 'json={"parameter":[{"name":"HOSTN","value":"YOURHOSTNAME"}]}&Submit=Build' 'http://YOURSERVER:8080/job/TESTJOBNAME/build' get the error: jenkinslaunch ERROR: The Hudson server's response was: jenkinslaunch ERROR: <html><head><title>Error 500</title></head><body bgcolor="#ffffff"><h1>Status Code: 500</h1>Exception: <br>Stacktrace: <pre>java.lang.IllegalArgumentException: Failed to instantiate class org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue from {"name":"HOSTN","value":"yourhostname"} jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:628) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:372) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:368) jenkinslaunch ERROR: at org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterDefinition.createValue(NodeParameterDefinition.java:145) jenkinslaunch ERROR: at hudson.model.ParametersDefinitionProperty._doBuild(ParametersDefinitionProperty.java:127) jenkinslaunch ERROR: at hudson.model.AbstractProject.doBuild(AbstractProject.java:1571) jenkinslaunch ERROR: at sun.reflect.GeneratedMethodAccessor518.invoke(Unknown Source) jenkinslaunch ERROR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) jenkinslaunch ERROR: at java.lang.reflect.Method.invoke(Method.java:597) jenkinslaunch ERROR: at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) jenkinslaunch ERROR: at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) jenkinslaunch ERROR: at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) jenkinslaunch ERROR: at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104) jenkinslaunch ERROR: at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) jenkinslaunch ERROR: at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234) jenkinslaunch ERROR: at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) jenkinslaunch ERROR: at org.kohsuke.stapler.Stapler.service(Stapler.java:159) jenkinslaunch ERROR: at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) jenkinslaunch ERROR: at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) jenkinslaunch ERROR: at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) jenkinslaunch ERROR: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) jenkinslaunch ERROR: at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) jenkinslaunch ERROR: at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) jenkinslaunch ERROR: at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkinslaunch ERROR: at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) jenkinslaunch ERROR: at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) jenkinslaunch ERROR: at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) jenkinslaunch ERROR: at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) jenkinslaunch ERROR: at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) jenkinslaunch ERROR: at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) jenkinslaunch ERROR: at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) jenkinslaunch ERROR: at java.lang.Thread.run(Thread.java:662) jenkinslaunch ERROR: Caused by: java.lang.IllegalArgumentException: at least one label must be given! jenkinslaunch ERROR: at org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue.<init>(NodeParameterValue.java:47) jenkinslaunch ERROR: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) jenkinslaunch ERROR: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) jenkinslaunch ERROR: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) jenkinslaunch ERROR: at java.lang.reflect.Constructor.newInstance(Constructor.java:513) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:419) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl.access$300(RequestImpl.java:75) jenkinslaunch ERROR: at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:626) jenkinslaunch ERROR: ... 61 more jenkinslaunch ERROR: </pre><br><hr size="1" width="90%"><i>Generated by Winstone Servlet Engine v0.9.10 at Thu Sep 15 11:11:40 CEST 2011</i></body></html>jenkinslaunch ERROR: Failed to submit job: 2

    Jenkins JIRA | 5 years ago | Konrad Lorentz
    java.lang.IllegalArgumentException: Failed to instantiate class org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue from {"name":"HOSTN","value":"yourhostname"}
  3. 0

    Dex Support for GraphSail

    GitHub | 4 years ago | joshsh
    java.lang.IllegalArgumentException: Label must be given
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In order to run both my TestNG & JUnit 4 tests, I configured surefire in the following way in my project's pom: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.11</version> <executions> <execution> <id>default-test</id> <configuration> <skipTests>true</skipTests> </configuration> </execution> <execution> <id>junit-tests</id> <goals> <goal>test</goal> </goals> <configuration> <testNGArtifactName>none:none</testNGArtifactName> <printSummary>false</printSummary> <redirectTestOutputToFile>true</redirectTestOutputToFile> <excludes> <exclude>**/*_Roo_*</exclude> </excludes> </configuration> </execution> <execution> <id>testng-tests</id> <goals> <goal>test</goal> </goals> <configuration> <junitArtifactName>none:none</junitArtifactName> <printSummary>false</printSummary> <redirectTestOutputToFile>true</redirectTestOutputToFile> <excludes> <exclude>**/*_Roo_*</exclude> </excludes> </configuration> </execution> </executions> </plugin> Then, after running roo.sh (with development.mode=true), I get the following shell behavior: ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.1.RELEASE [rev 6eae723] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. [FelixDispatchQueue] at least one goal must be specified java.lang.IllegalArgumentException: at least one goal must be specified at org.apache.commons.lang3.Validate.notEmpty(Validate.java:251) at org.springframework.roo.project.Execution.<init>(Execution.java:48) at org.springframework.roo.project.Plugin.getExecutions(Plugin.java:137) at org.springframework.roo.project.Plugin.<init>(Plugin.java:182) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.roo.project.maven.PomFactoryImpl.parseElements(PomFactoryImpl.java:164) at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:90) at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:206) at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:336) at org.springframework.roo.project.PomManagementServiceImpl.getModuleForFileIdentifier(PomManagementServiceImpl.java:123) at org.springframework.roo.project.AbstractProjectOperations.getModuleForFileIdentifier(AbstractProjectOperations.java:510) at org.springframework.roo.classpath.TypeLocationServiceImpl.getProposedJavaType(TypeLocationServiceImpl.java:342) at org.springframework.roo.classpath.TypeLocationServiceImpl.doesPathIndicateJavaType(TypeLocationServiceImpl.java:112) at org.springframework.roo.classpath.TypeLocationServiceImpl.getPhysicalTypeIdentifier(TypeLocationServiceImpl.java:248) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:176) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:429) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:642) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:15) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:139) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:35) at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:68) at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725) at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949) at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54) at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106) at java.lang.Thread.run(Thread.java:662) roo> hint at least one goal must be specified java.lang.IllegalArgumentException: at least one goal must be specified at org.apache.commons.lang3.Validate.notEmpty(Validate.java:251) at org.springframework.roo.project.Execution.<init>(Execution.java:48) at org.springframework.roo.project.Plugin.getExecutions(Plugin.java:137) at org.springframework.roo.project.Plugin.<init>(Plugin.java:182) at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.roo.project.maven.PomFactoryImpl.parseElements(PomFactoryImpl.java:164) at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:90) at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:206) at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:336) at org.springframework.roo.project.PomManagementServiceImpl.getFocusedModule(PomManagementServiceImpl.java:108) at org.springframework.roo.project.PomManagementServiceImpl.getFocusedModuleName(PomManagementServiceImpl.java:116) at org.springframework.roo.project.AbstractProjectOperations.getFocusedModuleName(AbstractProjectOperations.java:494) at org.springframework.roo.project.AbstractProjectOperations.isFocusedProjectAvailable(AbstractProjectOperations.java:595) at org.springframework.roo.classpath.operations.HintOperationsImpl.determineTopic(HintOperationsImpl.java:49) at org.springframework.roo.classpath.operations.HintOperationsImpl.hint(HintOperationsImpl.java:101) at org.springframework.roo.classpath.operations.HintCommands.hint(HintCommands.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:46) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:226) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:43) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:225) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:135) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:420) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:538) at java.lang.Thread.run(Thread.java:662) If I then add <goals><goal>test</goal></goals> to the default-test surefire execution, everything works fine.

    Spring JIRA | 5 years ago | Matthew T. Adams
    java.lang.IllegalArgumentException: at least one goal must be specified
  6. 0

    In order to run both my TestNG & JUnit 4 tests, I configured surefire in the following way in my project's pom: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.11</version> <executions> <execution> <id>default-test</id> <configuration> <skipTests>true</skipTests> </configuration> </execution> <execution> <id>junit-tests</id> <goals> <goal>test</goal> </goals> <configuration> <testNGArtifactName>none:none</testNGArtifactName> <printSummary>false</printSummary> <redirectTestOutputToFile>true</redirectTestOutputToFile> <excludes> <exclude>**/*_Roo_*</exclude> </excludes> </configuration> </execution> <execution> <id>testng-tests</id> <goals> <goal>test</goal> </goals> <configuration> <junitArtifactName>none:none</junitArtifactName> <printSummary>false</printSummary> <redirectTestOutputToFile>true</redirectTestOutputToFile> <excludes> <exclude>**/*_Roo_*</exclude> </excludes> </configuration> </execution> </executions> </plugin> Then, after running roo.sh (with development.mode=true), I get the following shell behavior: ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.1.RELEASE [rev 6eae723] Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. [FelixDispatchQueue] at least one goal must be specified java.lang.IllegalArgumentException: at least one goal must be specified at org.apache.commons.lang3.Validate.notEmpty(Validate.java:251) at org.springframework.roo.project.Execution.<init>(Execution.java:48) at org.springframework.roo.project.Plugin.getExecutions(Plugin.java:137) at org.springframework.roo.project.Plugin.<init>(Plugin.java:182) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.roo.project.maven.PomFactoryImpl.parseElements(PomFactoryImpl.java:164) at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:90) at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:206) at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:336) at org.springframework.roo.project.PomManagementServiceImpl.getModuleForFileIdentifier(PomManagementServiceImpl.java:123) at org.springframework.roo.project.AbstractProjectOperations.getModuleForFileIdentifier(AbstractProjectOperations.java:510) at org.springframework.roo.classpath.TypeLocationServiceImpl.getProposedJavaType(TypeLocationServiceImpl.java:342) at org.springframework.roo.classpath.TypeLocationServiceImpl.doesPathIndicateJavaType(TypeLocationServiceImpl.java:112) at org.springframework.roo.classpath.TypeLocationServiceImpl.getPhysicalTypeIdentifier(TypeLocationServiceImpl.java:248) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:176) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:429) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:642) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:15) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:139) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:35) at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:68) at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725) at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949) at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54) at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106) at java.lang.Thread.run(Thread.java:662) roo> hint at least one goal must be specified java.lang.IllegalArgumentException: at least one goal must be specified at org.apache.commons.lang3.Validate.notEmpty(Validate.java:251) at org.springframework.roo.project.Execution.<init>(Execution.java:48) at org.springframework.roo.project.Plugin.getExecutions(Plugin.java:137) at org.springframework.roo.project.Plugin.<init>(Plugin.java:182) at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.roo.project.maven.PomFactoryImpl.parseElements(PomFactoryImpl.java:164) at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:90) at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:206) at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:336) at org.springframework.roo.project.PomManagementServiceImpl.getFocusedModule(PomManagementServiceImpl.java:108) at org.springframework.roo.project.PomManagementServiceImpl.getFocusedModuleName(PomManagementServiceImpl.java:116) at org.springframework.roo.project.AbstractProjectOperations.getFocusedModuleName(AbstractProjectOperations.java:494) at org.springframework.roo.project.AbstractProjectOperations.isFocusedProjectAvailable(AbstractProjectOperations.java:595) at org.springframework.roo.classpath.operations.HintOperationsImpl.determineTopic(HintOperationsImpl.java:49) at org.springframework.roo.classpath.operations.HintOperationsImpl.hint(HintOperationsImpl.java:101) at org.springframework.roo.classpath.operations.HintCommands.hint(HintCommands.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:46) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:169) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:226) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:43) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:225) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:135) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:420) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:538) at java.lang.Thread.run(Thread.java:662) If I then add <goals><goal>test</goal></goals> to the default-test surefire execution, everything works fine.

    Spring JIRA | 5 years ago | Matthew T. Adams
    java.lang.IllegalArgumentException: at least one goal must be specified

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      at least one label must be given!

      at org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue.<init>()
    2. org.jvnet.jenkins
      NodeParameterValue.<init>
      1. org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue.<init>(NodeParameterValue.java:47)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    4. Stapler
      RequestImpl.bindJSON
      1. org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:419)
      2. org.kohsuke.stapler.RequestImpl.access$300(RequestImpl.java:75)
      3. org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:626)
      4. org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:372)
      5. org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:368)
      5 frames
    5. org.jvnet.jenkins
      NodeParameterDefinition.createValue
      1. org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterDefinition.createValue(NodeParameterDefinition.java:145)
      1 frame
    6. Hudson
      AbstractProject.doBuild
      1. hudson.model.ParametersDefinitionProperty._doBuild(ParametersDefinitionProperty.java:127)
      2. hudson.model.AbstractProject.doBuild(AbstractProject.java:1571)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor518.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    8. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104)
      5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      8. org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234)
      9. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      10. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      11. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      12. org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      13. org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      13 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    10. winstone
      RequestDispatcher.doFilter
      1. winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      2. winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      3 frames
    11. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      2 frames
    12. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    13. Hudson
      CrumbFilter.doFilter
      1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      1 frame
    14. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    15. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      2. hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      3. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      3 frames
    16. Acegi Security Core
      ExceptionTranslationFilter.doFilter
      1. org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      1 frame
    17. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      1 frame
    18. Acegi Security Core
      AnonymousProcessingFilter.doFilter
      1. org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      1 frame
    19. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      1 frame
    20. Acegi Security Core
      RememberMeProcessingFilter.doFilter
      1. org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      1 frame
    21. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      1 frame
    22. Acegi Security Core
      AbstractProcessingFilter.doFilter
      1. org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      1 frame
    23. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      1 frame
    24. Acegi Security Core
      BasicProcessingFilter.doFilter
      1. org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      1 frame
    25. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      1 frame
    26. jenkins.security
      ApiTokenFilter.doFilter
      1. jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
      1 frame
    27. Hudson
      ChainedServletFilter$1.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      1 frame
    28. Acegi Security Core
      HttpSessionContextIntegrationFilter.doFilter
      1. org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      1 frame
    29. Hudson
      HudsonFilter.doFilter
      1. hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      2. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      3. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      4. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      4 frames
    30. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    31. Hudson
      CharacterEncodingFilter.doFilter
      1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      1 frame
    32. winstone
      RequestHandlerThread.run
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      3. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      4. winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      5 frames
    33. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame