Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MvnDebug to debug simulap-plugin-sip? #8

Open
4 tasks
michaelplevy opened this issue Sep 13, 2018 · 2 comments
Open
4 tasks

Use MvnDebug to debug simulap-plugin-sip? #8

michaelplevy opened this issue Sep 13, 2018 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@michaelplevy
Copy link

Description

I would like to use MvnDebug to debug simulap-plugin-sip while running under JMeter.

When I try to start JMeter with Simulap-plugin-sip with MvnDebug as:
mvndebug -X install -Djmeter.command=C:\Users\michael\apache-jmeter-4.0\bin\jmeter

I get:
Listening for transport dt_socket at address: 8000

But JMeter GUI does not appear.

Is there a way I can get this to work? Setting breakpoints in Eclipse would be a great help to learn how the plug-in works.

See:

Motivation and Context

  • Project context:
  • SIMULAP version:
  • Operating System version:

Steps to reproduce the problem (if appropriate)

Resources

Checklist

  • I have updated the documentation accordingly.
  • I give my issue a label.
  • I put my issue into Support project.
  • I provide the required resources.
@regnauch
Copy link
Contributor

regnauch commented Sep 18, 2018

Hello Michael

So as to attach to the running JVM, here is what I have in my pom.xml in the exec-maven-plugin section

<executable>${jmeter.command}</executable>
<environmentVariables>
   <JVM_ARGS>-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n</JVM_ARGS>
 </environmentVariables>

I'm able then to attach to port 8787.
Let me know if it's working for you .

Regards
Charles

@regnauch regnauch added the help wanted Extra attention is needed label Sep 18, 2018
@ponnuswamypo
Copy link

While install the sampler facing the issue

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.114 s
[INFO] Finished at: 2019-10-31T17:50:51+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (attach-javadocs) on project simulap-plugin-sip: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - error: error reading C:\Users\i2265.m2\repository\net\java\dev\jna\jna\4.1.0\jna-4.1.0.jar; invalid LOC header (bad signature)
[ERROR]
[ERROR] Command line was: "C:\Program Files\Java\jdk1.8.0_191\jre..\bin\javadoc.exe" @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'C:\Users\i2265\Downloads\simulap-plugin-sip-master\target\apidocs' dir.
[ERROR]
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (attach-javadocs) on project simulap-plugin-sip: MavenReportException: Error while generating Javadoc:
Exit code: 1 - error: error reading C:\Users\i2265.m2\repository\net\java\dev\jna\jna\4.1.0\jna-4.1.0.jar; invalid LOC header (bad signature)

Command line was: "C:\Program Files\Java\jdk1.8.0_191\jre..\bin\javadoc.exe" @options @packages

Refer to the generated Javadoc files in 'C:\Users\i2265\Downloads\simulap-plugin-sip-master\target\apidocs' dir.

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

Caused by: org.apache.maven.plugin.MojoExecutionException: MavenReportException: Error while generating Javadoc:
Exit code: 1 - error: error reading C:\Users\i2265.m2\repository\net\java\dev\jna\jna\4.1.0\jna-4.1.0.jar; invalid LOC header (bad signature)

Command line was: "C:\Program Files\Java\jdk1.8.0_191\jre..\bin\javadoc.exe" @options @packages

Refer to the generated Javadoc files in 'C:\Users\i2265\Downloads\simulap-plugin-sip-master\target\apidocs' dir.

at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.failOnError (AbstractJavadocMojo.java:6202)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute (JavadocJar.java:194)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute (AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

Caused by: org.apache.maven.reporting.MavenReportException:
Exit code: 1 - error: error reading C:\Users\i2265.m2\repository\net\java\dev\jna\jna\4.1.0\jna-4.1.0.jar; invalid LOC header (bad signature)

Command line was: "C:\Program Files\Java\jdk1.8.0_191\jre..\bin\javadoc.exe" @options @packages

Refer to the generated Javadoc files in 'C:\Users\i2265\Downloads\simulap-plugin-sip-master\target\apidocs' dir.

at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocCommandLine (AbstractJavadocMojo.java:5298)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport (AbstractJavadocMojo.java:2134)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute (JavadocJar.java:190)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute (AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

[ERROR]
[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants