Jmeter plugins manager failed to install plugin - jmeter

JMeter (version 4.0) plugins manager (jmeter-plugins-manager-1.0.2) failed to install plugins.
Following error is thrown.
2018-05-29 12:39:00,977 ERROR o.j.r.PluginManager: Failed to download cmdrunner>=2.2
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Native Method) ~[?:1.8.0_161]
at java.io.File.createTempFile(Unknown Source) ~[?:1.8.0_161]
at java.io.File.createTempFile(Unknown Source) ~[?:1.8.0_161]
at org.jmeterplugins.repository.JARSourceHTTP.getJAR(JARSourceHTTP.java:395) ~[jmeter-plugins-manager-1.0.2.jar:?]
at org.jmeterplugins.repository.PluginManager.applyChanges(PluginManager.java:167) [jmeter-plugins-manager-1.0.2.jar:?]
at org.jmeterplugins.repository.PluginManagerDialog$4.run(PluginManagerDialog.java:226) [jmeter-plugins-manager-1.0.2.jar:?]

quick fix:
download jar from https://mvnrepository.com/artifact/kg.apc/cmdrunner/2.2.1
and place it int jmeter/library folder

Related

Unable to Create Maven Multi Module Project in wso2 Integration studio 7.0.0

Don't Know where the problem exactly. But when I try to create a Maven project from the Maven project template present in Miscellaneous Project Types of integration studio it won't be created in the workspace.
I have checked in the workspace directory but it was not there.
I also try to provide another directory on the local system but won't create. Is I am missing any updates regarding Maven or any other issue?
Below have done while creating a maven project.
In the maven project dialogue box, provide group Id and Artifact Id and click finish.
Error details as below
!ENTRY org.wso2.tools.eclipse.platform.core 4 0 2020-03-09 17:10:19.688
!MESSAGE ObserverFailed:
!STACK 0
org.wso2.developerstudio.eclipse.platform.core.exception.ObserverFailedException: An observer failed to execute properly: null
at org.wso2.developerstudio.eclipse.platform.core.project.model.ProjectDataModel.trigger(ProjectDataModel.java:234)
at org.wso2.developerstudio.eclipse.platform.core.project.model.ProjectDataModel.setProjectName(ProjectDataModel.java:179)
at org.wso2.developerstudio.eclipse.platform.core.project.model.ProjectDataModel.setModelPropertyValue(ProjectDataModel.java:273)
at org.wso2.developerstudio.eclipse.maven.multi.module.handlers.MvnMultiModuleModel.setModelPropertyValue(MvnMultiModuleModel.java:71)
at org.wso2.developerstudio.eclipse.platform.ui.wizard.pages.ProjectOptionsDataPage$23.onModifyAction(ProjectOptionsDataPage.java:1169)
at org.wso2.developerstudio.eclipse.platform.ui.utils.WSO2UIToolkit$4$1.modifyText(WSO2UIToolkit.java:466)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:180)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:3122)
at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4991)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4846)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5191)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:262)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4941)
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2704)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5178)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2560)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3815)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
at org.eclipse.jface.window.Window.open(Window.java:794)
at org.wso2.developerstudio.eclipse.templates.dashboard.web.function.server.JSEmbeddedFunctions.openWizard(JSEmbeddedFunctions.java:85)
at org.wso2.developerstudio.eclipse.templates.dashboard.web.function.server.OpenIDEFunctionServlet$1$1.run(OpenIDEFunctionServlet.java:47)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4213)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
Caused by: java.lang.NullPointerException
at org.wso2.developerstudio.eclipse.platform.ui.wizard.pages.MavenDetailsPage.setArtifactIDLabel(MavenDetailsPage.java:621)
at org.wso2.developerstudio.eclipse.platform.ui.wizard.pages.MavenDetailsPage.update(MavenDetailsPage.java:609)
at java.util.Observable.notifyObservers(Observable.java:159)
at java.util.Observable.notifyObservers(Observable.java:115)
at org.wso2.developerstudio.eclipse.platform.core.project.model.ProjectDataModel.trigger(ProjectDataModel.java:232)
... 53 more
This issue is already identified and fixed. Please update the Integration Studio 7.0.0 to get the fix.
Help > Check for Updates > Select all updates > Install

Compilation Error while executing maven project through Jenkins

I am trying to execute maven project through jenkins but getting this error. I have not changed the default permission settings::
Started by user kashmir
Building in workspace C:\Users\kashmir\.jenkins\workspace\Test.SampleItem
Parsing POMs
Established TCP socket on 52587
[Test.Sample] $ /bin/java -cp C:\Users\kashmir\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-agent-1.12-alpha-1.jar;C:\Users\kashmir\.jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\boot\plexus-classworlds-2.5.2.jar;C:\Users\kashmir\.jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven/conf/logging jenkins.maven3.agent.Maven35Main C:\Users\kashmir\.jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven C:\Users\kashmir\.jenkins\war\WEB-INF\lib\remoting-3.17.jar C:\Users\kashmir\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-interceptor-1.12-alpha-1.jar C:\Users\kashmir\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.12-alpha-1.jar 52587
ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "/bin/java" (in directory "C:\Users\kashmir\Documents\SELENIUM_PROJECT\Test.Sample"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:249)
at hudson.Proc$LocalProc.<init>(Proc.java:218)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:929)
at hudson.Launcher$ProcStarter.start(Launcher.java:449)
at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:278)
at hudson.maven.ProcessCache.get(ProcessCache.java:236)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:804)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1727)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 13 more
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Did not find any matching files.
Finished: FAILURE

JMeter: No Class Def Found Error: kg/apc/jmeter/JMeterPluginsUtils

I'm trying to run a JMeter test and I keep getting the error listed below. I'm running in non-gui mode on an EC2 instance. I know I'm missing a .jar file and that's what is causing the error. But when I head over to Apache to look through their JMeter plugins, I can't find one that resolves this error.
2017-09-06 21:18:12,954 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: kg/apc/jmeter/JMeterPluginsUtils
at kg.apc.jmeter.PluginsCMDWorker.<init>(PluginsCMDWorker.java:51) ~[jmeter-plugins-cmd-2.1.jar:?]
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:146) ~[jmeter-plugins-graphs-ggl-2.0.jar:?]
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:137) ~[jmeter-plugins-graphs-ggl-2.0.jar:?]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:230) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:498) ~[ApacheJMeter_core.jar:3.2 r1790748]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
Caused by: java.lang.ClassNotFoundException: kg.apc.jmeter.JMeterPluginsUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_141]
Your JMeter Plugins installation is corrupt, double check you have jmeter-plugins-cmn-jmeter-0.3.jar file in the "lib" folder of your JMeter installation. If not - you will have to re-install JMeterPluginsCMD Command Line Tool
Be aware that recommended way of installing JMeter Plugins and keeping them up-to-date is using JMeter Plugins Manager
If you are running in Non-UI mode just remove the plugin element from your jmx file.

sonar XML plugin installation failure in jenkins

I am getting the following error when I manually try to install sonar-xml-plugin-1.4.1.hpi plugin in jenkins:
Error:
Failure -
java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1383)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1161)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Illegal dependency specifier META-INF/lib/xml-squid-1.4.1.jar META-INF/lib/jaxen-1.1.4.jar META-INF/lib/xalan-2.7.2.jar META-INF/lib/sslr-core-1.20.jar META-INF/lib/sslr-squid-bridge-2.6.jar META-INF/lib/xercesImpl-2.8.1.jar META-INF/lib/serializer-2.7.2.jar META-INF/lib/sslr-xpath-1.20.jar
at hudson.PluginWrapper$Dependency.<init>(PluginWrapper.java:218)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:231)
at hudson.PluginManager.dynamicLoad(PluginManager.java:483)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1379)
... 5 more
Do i need to install any dependencies first?? or is it something else that I am missing?
Where did you find this file? The SonarQube XML plugin is a plugin for SonarQube and should be installed on a SonarQube server, not on a Jenkins server.

Sonar Findbugs not running

i have installed sonar and executing sonar-runner from my parent folder but i get the following error do any anyone have an idea what to do?
Exception in thread "main" org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: Can not execute Findbugs
at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
at org.sonar.runner.Runner.execute(Runner.java:151)
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
Caused by: org.sonar.api.utils.SonarException: Can not execute Findbugs
at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:126)
at org.sonar.plugins.findbugs.FindbugsSensor.analyse(FindbugsSensor.java:62)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
at org.sonar.batch.phases.Phases.execute(Phases.java:93)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:131)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:121)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:121)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.Batch.execute(Batch.java:104)
at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69)
at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.sonar.runner.Runner.delegateExecution(Runner.java:285)
... 3 more
Caused by: java.io.IOException: File '/home/bldarea/example/dev/archive/.sonar/findbugs-result.xml' cannot be written to
at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:228)
at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:95)
... 21 more
The message is clear: the 'findbugs-result.xml' temporary file can't be written on the disk, in the folder '/home/bldarea/example/dev/archive/.sonar'.
So you have to know why this file can't be written there. This may be linked to user rights or user quota on this folder...

Resources