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

Burcu commented on MNG-6430:
----------------------------

I run mvn -Dmaven.surefire.debug at commandLine and it gives this exception.

D:\ys03_YERLISINYAL03-29207\sysadmin>mvn -Dmaven.surefire.debug
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< gov.ys03:sysadmin >--------------------------
[INFO] Building sysadmin 1.2.7
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:regex-property (regex-property) @ sys
admin ---
[INFO] No match to regex 'none' found in 'sysadmin'. The initial value 'sysadmin
' is left as-is...
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sysadmin -
--
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 53 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ sysadmin ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sy
sadmin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ sysad
min ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ sysadmin ---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.783 s
[INFO] Finished at: 2018-09-17T11:44:40+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
22.0:test (default-test) on project sysadmin: There are test failures.
[ERROR]
[ERROR] Please refer to D:\ys03_YERLISINYAL03-29207\sysadmin\target\surefire-rep
orts for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].
dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or Sy
stem.exit called?
[ERROR] Command was cmd.exe /X /C ""D:\jdk 1.8.0 181\jdk1.8.0_181\jre\bin\java"
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,su
spend=y,address=5005 -jar C:\Users\BURCU~1.YAP\AppData\Local\Temp\surefire710926
1247218200820\surefirebooter5654933263826171073.jar C:\Users\burcu.yapici\AppDat
a\Local\Temp\surefire7109261247218200820 2018-09-17T11-44-39_076-jvmRun1 surefir
e3734182111977398042tmp surefire_03305418142430269683tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 2
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked
 VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C ""D:\jdk 1.8.0 181\jdk1.8.0_181\jre\bin\java"
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,su
spend=y,address=5005 -jar C:\Users\BURCU~1.YAP\AppData\Local\Temp\surefire710926
1247218200820\surefirebooter5654933263826171073.jar C:\Users\burcu.yapici\AppDat
a\Local\Temp\surefire7109261247218200820 2018-09-17T11-44-39_076-jvmRun1 surefir
e3734182111977398042tmp surefire_03305418142430269683tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 2
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.for
k(ForkStarter.java:671)
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.for
k(ForkStarter.java:533)
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run
(ForkStarter.java:278)
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run
(ForkStarter.java:244)
[ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute
Provider(AbstractSurefireMojo.java:1194)
[ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute
AfterPreconditionsChecked(AbstractSurefireMojo.java:1022)
[ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute
(AbstractSurefireMojo.java:868)
[ERROR]         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:137)
[ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Mojo
Executor.java:208)
[ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Mojo
Executor.java:154)
[ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Mojo
Executor.java:146)
[ERROR]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.bu
ildProject(LifecycleModuleBuilder.java:117)
[ERROR]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.bu
ildProject(LifecycleModuleBuilder.java:81)
[ERROR]         at org.apache.maven.lifecycle.internal.builder.singlethreaded.Si
ngleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR]         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
LifecycleStarter.java:128)
[ERROR]         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305
)
[ERROR]         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192
)
[ERROR]         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR]         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954)
[ERROR]         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR]         at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:62)
[ERROR]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
[ERROR]         at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhan
ced(Launcher.java:289)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Laun
cher.java:229)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExi
tCode(Launcher.java:415)
[ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launch
er.java:356)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

D:\ys03_YERLISINYAL03-29207\sysadmin>

> UnsatisfiedLinkError:Native Library jdk1.8.0_121\jre\bin\glass.dll already 
> loaded in another classloader
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-6430
>                 URL: https://issues.apache.org/jira/browse/MNG-6430
>             Project: Maven
>          Issue Type: Bug
>          Components: Class Loading
>            Reporter: Burcu
>            Assignee: Tibor Digana
>            Priority: Major
>              Labels: ClassLoader, Classloader, classloader, glass, 
> unsatisfiedLinkError
>         Attachments: 2018-09-11T16-32-01_814-jvmRun1.dump, 
> 2018-09-11T16-32-01_814-jvmRun2.dump, 2018-09-12T13-28-04_278-jvmRun1.dump, 
> glassdll.jpg, mvnTest.jpg, plugin.jpg, pom.xml, pom.xml, runAllTest.jpg
>
>
> Although I made the linkte and tried other solutions, I could not resolve the 
> glass.dll not found error. I'm looking for a solution to this issue that is 
> long-lasting. I'm using Powermock and TestFx. I have encountered this problem 
> since I started working with both. I would like to try if you offer a 
> solution in this regard. Below you will find some images of the fault.
> [https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to