You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Prashant katiyar (Jira)" <ji...@apache.org> on 2020/07/17 18:56:00 UTC

[jira] [Commented] (SUREFIRE-1823) Surefire plugin giving error

    [ https://issues.apache.org/jira/browse/SUREFIRE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17160143#comment-17160143 ] 

Prashant katiyar commented on SUREFIRE-1823:
--------------------------------------------

[~tibordigana]

Can you please confirm which version is compatible with jdk 8.

> Surefire plugin giving error
> ----------------------------
>
>                 Key: SUREFIRE-1823
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1823
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>            Reporter: Prashant katiyar
>            Assignee: Tibor Digana
>            Priority: Major
>
> Hi,
>  
> I am migrating one application from java 6 to java 8. i am using maven-surefile-plugin 2.5 version.
> ------------------------------
> Configuration - 
>  
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-surefire-plugin</artifactId>
>  <configuration>
>  <jvm>C:\Program Files\Java\jdk1.8.0_251\bin\java</jvm>
>  <printSummary>true</printSummary>
>  <!--<outputDirectory>${project.basedir}/target/output</outputDirectory>-->
>  <environmentVariables>
>  <!--<HOME>${env.home}</HOME>-->
>  <!-- Windows: all dependencies seem to be linked in -->
>  <PATH>${project.build.directory}/${caf-lib-path}</PATH>
>  <!-- Linux: dynamically loaded dependencies -->
>  <LD_LIBRARY_PATH>
>  ${project.build.directory}/${caf-lib-path}:${project.build.directory}/${caf-dependencies.lib-path}:/apps/IRDtools/pkgs/pd/xerces-c/3.1.1/lib:/apps/IRDtools/pkgs/pd/boost/1.52.0/lib:/apps/IRDtools/pkgs/pd/libxml/2.6.24/lib:/apps/IRDtools/pkgs/pd/gcc/4.4.3/lib
>  </LD_LIBRARY_PATH>
>  </environmentVariables>
>  <reportsDirectory>${sonar.junit.reportsPath}</reportsDirectory>
>  <includes>
>  <include>**/${foundry.test.suite}.java</include>
>  <!-- <echo>File >>> ${foundry.test.suite}</echo>-->
>  </includes>
>  <failIfNoTests>true</failIfNoTests>
>  <testFailureIgnore>false</testFailureIgnore> <!---XX:MaxPermSize=${maxPermSize} -XX:+CMSClassUnloadingEnabled-->
>  <argLine>${argLine} -server -Xmx${maxHeap} -XX:+UseConcMarkSweepGC -XX:MaxPermSize=${maxPermSize} -XX:+CMSClassUnloadingEnabled
>  -XX:+CMSPermGenSweepingEnabled -XX:+HeapDumpOnOutOfMemoryError
>  -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=${jmxPort}
>  -Dcom.sun.management.jmxremote.authenticate=false -Dfoundry.partitioncount=23
>  </argLine>
>  <systemPropertyVariables>
>  <com.sun.management.jmxremote>true</com.sun.management.jmxremote>
>  <com.sun.management.jmxremote.authenticate>false</com.sun.management.jmxremote.authenticate>
>  <com.sun.management.jmxremote.port>${jmxport}</com.sun.management.jmxremote.port>
>  <com.sun.management.jmxremote.ssl>false</com.sun.management.jmxremote.ssl>
>  <hostname>${hostname}</hostname>
>  <log4j.configuration>foundry-log4j.xml</log4j.configuration>
>  <log4j.hostname>${hostname}</log4j.hostname>
>  <tangosol.coherence.cacheconfig>foundry-processing-combined-cache-config.xml
>  </tangosol.coherence.cacheconfig>
>  <tangosol.coherence.cluster>${hostname}-cluster</tangosol.coherence.cluster>
>  <tangosol.coherence.clusteraddress>${clusteraddress}</tangosol.coherence.clusteraddress>
>  <tangosol.coherence.clusterport>${clusterport}</tangosol.coherence.clusterport>
>  <tangosol.coherence.localhost>${hostname}</tangosol.coherence.localhost>
>  <tangosol.coherence.localport>${localport}</tangosol.coherence.localport>
>  <tangosol.coherence.management>all</tangosol.coherence.management>
>  <tangosol.coherence.management.remote>true</tangosol.coherence.management.remote>
>  <tangosol.coherence.mode>dev</tangosol.coherence.mode>
>  <tangosol.coherence.override>foundry-cluster-config.xml</tangosol.coherence.override>
>  <tangosol.coherence.ttl>0</tangosol.coherence.ttl>
>  <foundry.errorStringLimit>120</foundry.errorStringLimit>
>  <tangosol.join.timeout>1000</tangosol.join.timeout>
>  <fire.disable.cachestore>true</fire.disable.cachestore>
>  <foundry.importthreads>5</foundry.importthreads>
>  <foundry.indexthreads>10</foundry.indexthreads>
>  <foundry.extract.threads>1</foundry.extract.threads>
>  <foundry.integration-test.storagenodes>${foundry.integration-test.storagenodes}
>  </foundry.integration-test.storagenodes>
>  <foundry.index.holder.storage.enabled>true</foundry.index.holder.storage.enabled>
>  <foundry.core.storage.enabled>true</foundry.core.storage.enabled>
>  <foundry.config.storage.enabled>true</foundry.config.storage.enabled>
>  <foundry.instrumentation.app.enabled>false</foundry.instrumentation.app.enabled>
>  <foundry.partitioncount>23</foundry.partitioncount>
>  <foundry.config.partitioncount>23</foundry.config.partitioncount>
>  <foundry-rest.sso.inactive>true</foundry-rest.sso.inactive>
>  <foundry.instrumentation.app.enabled>false</foundry.instrumentation.app.enabled>
>  <foundry.row.source.nic.listener.enabled>true</foundry.row.source.nic.listener.enabled>
>  <caf.lib.path>${project.basedir}/target/caf/bin</caf.lib.path>
>  <spring.profiles.active>test</spring.profiles.active>
>  </systemPropertyVariables>
>  <additionalClasspathElements>
>  <additionalClasspathElement>
>  ${project.basedir}/../foundry-config/target/classes/env/integrationtest
>  </additionalClasspathElement>
>  <additionalClasspathElement>${project.basedir}/../foundry-config/target/classes/env/all
>  </additionalClasspathElement>
>  <additionalClasspathElement>${project.basedir}/target/test-classes/server0
>  </additionalClasspathElement>
>  </additionalClasspathElements>
>  <!--<systemPropertyVariables>
>  <spring.profiles.active>test</spring.profiles.active>
>  </systemPropertyVariables>-->
>  </configuration>
> </plugin>
> ------------------------------
> Whenever i do mvn clean install test .... i get below error
> [DEBUG] Setting system property [caf.lib.path]=[E:\Project\0707\steel\mdx-integration-tests/target/caf/bin]
> [DEBUG] Setting system property [localRepository]=[C:\Users\katikpt\.m2\repository]
> [DEBUG] Setting system property [com.sun.management.jmxremote.port]=[3699]
> [DEBUG] Setting system property [foundry-rest.sso.inactive]=[true]
> [DEBUG] Setting system property [com.sun.management.jmxremote.ssl]=[false]
> [DEBUG] Setting environment variable [LD_LIBRARY_PATH]=[E:\Project\0707\steel\mdx-integration-tests\target/caf/bin:E:\Project\0707\steel\mdx-integration-tests\t
> arget/${caf-dependencies.lib-path}:/apps/IRDtools/pkgs/pd/xerces-c/3.1.1/lib:/apps/IRDtools/pkgs/pd/boost/1.52.0/lib:/apps/IRDtools/pkgs/pd/libxml/2.6.24/lib:/a
> pps/IRDtools/pkgs/pd/gcc/4.4.3/lib]
> [DEBUG] Setting environment variable [PATH]=[E:\Project\0707\steel\mdx-integration-tests\target/caf/bin]
> [INFO] Surefire report directory: E:\Project\0707\steel\mdx-integration-tests\..\target\surefire-reports
> Forking command line: cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_251\bin\java" -javaagent:C:\\Users\\katikpt\\.m2\\repository\\org\\jacoco\\org.jacoco.agent
> \\0.7.9\\org.jacoco.agent-0.7.9-runtime.jar=destfile=E:\\Project\\0707\\steel\\mdx-integration-tests\\..\\target\\jacoco-it.exec,append=true -server -Xmx6g -XX:
> +UseConcMarkSweepGC -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled
>  -XX:+CMSPermGenSweepingEnabled -XX:+HeapDumpOnOutOfMemoryError
>  -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=28002
>  -Dcom.sun.management.jmxremote.authenticate=false -Dfoundry.partitioncount=23 -jar C:\Users\katikpt\AppData\Local\Temp\surefirebooter5432316427063681014.jar C:
> \Users\katikpt\AppData\Local\Temp\surefire8919841153855074616tmp C:\Users\katikpt\AppData\Local\Temp\surefire7540265933895363746tmp"
> Usage: java [-options] class [args...]
>  (to execute a class)
>  or java [-options] -jar jarfile [args...]
>  (to execute a jar file)
> where options include:
>  -d32 use a 32-bit data model if available
>  -d64 use a 64-bit data model if available
>  -server to select the "server" VM
>  The default VM is server.
> -cp <class search path of directories and zip/jar files>
>  -classpath <class search path of directories and zip/jar files>
>  A ; separated list of directories, JAR archives,
>  and ZIP archives to search for class files.
>  -D<name>=<value>
>  set a system property
>  -verbose:[class|gc|jni]
>  enable verbose output
>  -version print product version and exit
>  -version:<value>
>  Warning: this feature is deprecated and will be removed
>  in a future release.
>  require the specified version to run
>  -showversion print product version and continue
>  -jre-restrict-search | -no-jre-restrict-search
>  Warning: this feature is deprecated and will be removed
>  in a future release.
>  include/exclude user private JREs in the version search
>  -? -help print this help message
>  -X print help on non-standard options
>  -ea[:<packagename>...|:<classname>]
>  -enableassertions[:<packagename>...|:<classname>]
>  enable assertions with specified granularity
>  -da[:<packagename>...|:<classname>]
>  -disableassertions[:<packagename>...|:<classname>]
>  disable assertions with specified granularity
>  -esa | -enablesystemassertions
>  enable system assertions
>  -dsa | -disablesystemassertions
>  disable system assertions
>  -agentlib:<libname>[=<options>]
>  load native agent library <libname>, e.g. -agentlib:hprof
>  see also, -agentlib:jdwp=help and -agentlib:hprof=help
>  -agentpath:<pathname>[=<options>]
>  load native agent library by full pathname
>  -javaagent:<jarpath>[=<options>]
>  load Java programming language agent, see java.lang.instrument
>  -splash:<imagepath>
>  show splash screen with specified image
> See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
> Picked up _JAVA_OPTIONS: -Xmx512m
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 52.672 s
> [INFO] Finished at: 2020-07-17T16:34:01+05:30
> [INFO] Final Memory: 34M/267M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project mdx-integration-tests: There are test failures.
> [ERROR]
> [ERROR] Please refer to E:\Project\0707\steel\mdx-integration-tests\..\target\surefire-reports for the individual test results.
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project
>  mdx-integration-tests: There are test failures.
> Please refer to E:\Project\0707\steel\mdx-integration-tests\..\target\surefire-reports for the individual test results.
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>  at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
>  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
>  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:289)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
> Please refer to E:\Project\0707\steel\mdx-integration-tests\..\target\surefire-reports for the individual test results.
>  at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:629)
>  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>  ... 19 more
> [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/MojoFailureException
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
> E:\Project\0707\steel\mdx-integration-tests>
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)