Open shhQuiet opened 7 years ago
Thanks I will investigate that. The error seems to come from the Shrinkwrap sub component. If you have the possibility to send me the 10 pom files, that would be wonderful, I can send you my email if you need
Le mer. 26 juil. 2017 à 20:04, Steve Horne notifications@github.com a écrit :
Problem with first run... I am getting an exception shown below. Any help would be appreciated.
connected to the server. X
Hello ! This is the beta version of POM Explorer ...
Have fun !
The official repository is here : https://github.com/ltearno/pom-explorer
Creating your session
Session created and registered. It has been attached to your profile
Analyzing the default directory
X analyze directory d:\sigdev\dst-utils Analyzing directory 'd:\sigdev\dst-utils'... possible options: verbose, nofetch, offline, profiles analyzing 'd:\sigdev\dst-utils' Pom Analysis ready! adding directory 'd:\sigdev\dst-utils' found 10 pom files loading pom files loaded 10 projects
completing loaded projects Error when interpreting command 'analyze directory d:\sigdev\dst-utils' Command class : AnalyzeCommand Command method : directory Argument : class: fr.lteconsulting.pomexplorer.commands.CommandOptions toString : fr.lteconsulting.pomexplorer.commands.CommandOptions@c64dced Argument : class: fr.lteconsulting.pomexplorer.Client toString : fr.lteconsulting.pomexplorer.Client@275f17e6 Argument : class: fr.lteconsulting.pomexplorer.ApplicationSession toString : fr.lteconsulting.pomexplorer.ApplicationSession@6afa0755 Argument : class: fr.lteconsulting.pomexplorer.AppFactory$2 toString : fr.lteconsulting.pomexplorer.AppFactory$2@4ad78fac Argument : class: java.lang.String toString : d:\sigdev\dst-utils org.jboss.shrinkwrap.resolver.api.Invokable$InvocationException: Unable to invoke onlyOne([Ljava.lang.Class;@434c683e) on object org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry with parameters [Ljava.lang.Object;@14000b2c org.jboss.shrinkwrap.resolver.api.Invokable.invokeMethod(Invokable.java:108) org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:91) org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:53) org.jboss.shrinkwrap.resolver.api.Resolvers.use(Resolvers.java:68) org.jboss.shrinkwrap.resolver.api.maven.Maven.resolver(Maven.java:36) fr.lteconsulting.pomexplorer.MavenResolver.init(MavenResolver.java:51) fr.lteconsulting.pomexplorer.Session.mavenResolver(Session.java:51) fr.lteconsulting.pomexplorer.DefaultPomFileLoader.loadPomFileForGav(DefaultPomFileLoader.java:26) fr.lteconsulting.pomexplorer.PomAnalysis.loadAndCheckProject(PomAnalysis.java:373) fr.lteconsulting.pomexplorer.PomAnalysis.processProjectForCompleteness(PomAnalysis.java:334) fr.lteconsulting.pomexplorer.PomAnalysis.completeLoadedProjects(PomAnalysis.java:228) fr.lteconsulting.pomexplorer.PomAnalysis.runFullRecursiveAnalysis(PomAnalysis.java:71) fr.lteconsulting.pomexplorer.commands.AnalyzeCommand.directory(AnalyzeCommand.java:29) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) fr.lteconsulting.pomexplorer.commands.Commands.takeCommand(Commands.java:251) fr.lteconsulting.pomexplorer.AppFactory$1.onWebsocketMessage(AppFactory.java:169) fr.lteconsulting.pomexplorer.webserver.WebServer$2$1.lambda$onFullTextMessage$0(WebServer.java:145) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) java.util.concurrent.FutureTask.run(FutureTask.java:266) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) java.lang.Thread.run(Thread.java:745)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ltearno/pom-explorer/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AALqXU3SGdf-Gs-0fgpuN56AbVHg7FM5ks5sR3-YgaJpZM4OkR9J .
I just investigated a bit more your stack trace.
The problem comes from ShrinkWrap which is a 3rd party lib I use to link to the Maven system. The library seems to have difficulties to initialize.
This might be due to it not finding your maven configuration file.
Can you please type the following line before entering the analyze directory d:\sigdev\dst-utils
command (and replace PATH_TO_MAVEN_SETTINGS with the correct path) :
session mavenSettingsFilePath C:\PATH_TO_MAVEN_SETTINGS\settings.xml
I suspect that ShrinkWrap does not find your configuration but not 100% sure.
Meanwhile I have added some more logging when an exception occurs. So could you please pull the latest changes from the master branch, compile it again and run it again, and send me the stack trace (it should this time include root cause exceptions).
Thanks
Thanks for your quick response! I pulled from master and rebuilt the application. The stack trace is similar, it is shown below.
Another point to mention is that I am behind a corporate proxy server. I have a local proxy that does authentication (cntlm), so I am running the server like this:
"C:\Program Files\Java\jdk1.8.0_121\bin\java" -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3128 -Dfile.encoding=windows-1252 -jar D:\sigdev\pom-explorer\pom-explorer\target\pom-explorer.jar
connected to the server.
X
Hello ! This is the beta version of POM Explorer ...
Have fun !
The official repository is here : https://github.com/ltearno/pom-explorer
Creating your session
Session created and registered. It has been attached to your profile
Analyzing the default directory
X
session mavenSettingsFilePath c:\Users\shorne2\.m2\settings.xml
Session's maven settings file set to c:\Users\shorne2\.m2\settings.xml
X
analyze directory d:\sigdev\dst-utils
Analyzing directory 'd:\sigdev\dst-utils'...
possible options: verbose, nofetch, offline, profiles
analyzing 'd:\sigdev\dst-utils'
Pom Analysis ready!
adding directory 'd:\sigdev\dst-utils'
found 10 pom files
loading pom files
loaded 10 projects
completing loaded projects
Error when interpreting command 'analyze directory d:\sigdev\dst-utils'
Command class : AnalyzeCommand
Command method : directory
Argument : class: fr.lteconsulting.pomexplorer.commands.CommandOptions toString : fr.lteconsulting.pomexplorer.commands.CommandOptions@73f7efa3
Argument : class: fr.lteconsulting.pomexplorer.Client toString : fr.lteconsulting.pomexplorer.Client@62b1cf1c
Argument : class: fr.lteconsulting.pomexplorer.ApplicationSession toString : fr.lteconsulting.pomexplorer.ApplicationSession@43d9851d
Argument : class: fr.lteconsulting.pomexplorer.AppFactory$2 toString : fr.lteconsulting.pomexplorer.AppFactory$2@66c636c6
Argument : class: java.lang.String toString : d:\sigdev\dst-utils
org.jboss.shrinkwrap.resolver.api.Invokable$InvocationException: Unable to invoke onlyOne([Ljava.lang.Class;@39738921) on object org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry with parameters [Ljava.lang.Object;@21332777
org.jboss.shrinkwrap.resolver.api.Invokable.invokeMethod(Invokable.java:108)
org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:91)
org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:53)
org.jboss.shrinkwrap.resolver.api.Resolvers.configure(Resolvers.java:40)
org.jboss.shrinkwrap.resolver.api.maven.Maven.configureResolver(Maven.java:46)
fr.lteconsulting.pomexplorer.MavenResolver.init(MavenResolver.java:49)
fr.lteconsulting.pomexplorer.Session.mavenResolver(Session.java:51)
fr.lteconsulting.pomexplorer.DefaultPomFileLoader.loadPomFileForGav(DefaultPomFileLoader.java:26)
fr.lteconsulting.pomexplorer.PomAnalysis.loadAndCheckProject(PomAnalysis.java:373)
fr.lteconsulting.pomexplorer.PomAnalysis.processProjectForCompleteness(PomAnalysis.java:334)
fr.lteconsulting.pomexplorer.PomAnalysis.completeLoadedProjects(PomAnalysis.java:228)
fr.lteconsulting.pomexplorer.PomAnalysis.runFullRecursiveAnalysis(PomAnalysis.java:71)
fr.lteconsulting.pomexplorer.commands.AnalyzeCommand.directory(AnalyzeCommand.java:29)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
fr.lteconsulting.pomexplorer.commands.Commands.takeCommand(Commands.java:251)
fr.lteconsulting.pomexplorer.AppFactory$1.onWebsocketMessage(AppFactory.java:169)
fr.lteconsulting.pomexplorer.webserver.WebServer$2$1.lambda$onFullTextMessage$0(WebServer.java:145)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
Caused by
java.lang.RuntimeException: Could not create new service instance
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.createInstance(SpiServiceLoader.java:248)
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.createInstances(SpiServiceLoader.java:208)
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.all(SpiServiceLoader.java:79)
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.onlyOne(SpiServiceLoader.java:85)
org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry.onlyOne(ServiceRegistry.java:117)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.jboss.shrinkwrap.resolver.api.Invokable.invokeMethod(Invokable.java:100)
org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:91)
org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:53)
org.jboss.shrinkwrap.resolver.api.Resolvers.configure(Resolvers.java:40)
org.jboss.shrinkwrap.resolver.api.maven.Maven.configureResolver(Maven.java:46)
fr.lteconsulting.pomexplorer.MavenResolver.init(MavenResolver.java:49)
fr.lteconsulting.pomexplorer.Session.mavenResolver(Session.java:51)
fr.lteconsulting.pomexplorer.DefaultPomFileLoader.loadPomFileForGav(DefaultPomFileLoader.java:26)
fr.lteconsulting.pomexplorer.PomAnalysis.loadAndCheckProject(PomAnalysis.java:373)
fr.lteconsulting.pomexplorer.PomAnalysis.processProjectForCompleteness(PomAnalysis.java:334)
fr.lteconsulting.pomexplorer.PomAnalysis.completeLoadedProjects(PomAnalysis.java:228)
fr.lteconsulting.pomexplorer.PomAnalysis.runFullRecursiveAnalysis(PomAnalysis.java:71)
fr.lteconsulting.pomexplorer.commands.AnalyzeCommand.directory(AnalyzeCommand.java:29)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
fr.lteconsulting.pomexplorer.commands.Commands.takeCommand(Commands.java:251)
fr.lteconsulting.pomexplorer.AppFactory$1.onWebsocketMessage(AppFactory.java:169)
fr.lteconsulting.pomexplorer.webserver.WebServer$2$1.lambda$onFullTextMessage$0(WebServer.java:145)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
Caused by
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException: Unable to get security configuration from C:\Users\shorne2\.m2\settings-security.xml. Please define path to the settings-security.xml file via -Dorg.apache.maven.security-settings, or put it the the default location defined by Maven.
org.jboss.shrinkwrap.resolver.impl.maven.internal.decrypt.MavenSecurityDispatcher.getMaster(MavenSecurityDispatcher.java:171)
org.jboss.shrinkwrap.resolver.impl.maven.internal.decrypt.MavenSecurityDispatcher.decrypt(MavenSecurityDispatcher.java:96)
org.jboss.shrinkwrap.resolver.impl.maven.internal.decrypt.MavenSettingsDecrypter.decrypt(MavenSettingsDecrypter.java:92)
org.jboss.shrinkwrap.resolver.impl.maven.internal.decrypt.MavenSettingsDecrypter.decrypt(MavenSettingsDecrypter.java:60)
org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenSettingsBuilder.decryptPasswords(MavenSettingsBuilder.java:223)
org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenSettingsBuilder.buildSettings(MavenSettingsBuilder.java:186)
org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenSettingsBuilder.buildDefaultSettings(MavenSettingsBuilder.java:113)
org.jboss.shrinkwrap.resolver.impl.maven.MavenWorkingSessionImpl.(MavenWorkingSessionImpl.java:136)
org.jboss.shrinkwrap.resolver.impl.maven.ConfigurableMavenResolverSystemImpl.(ConfigurableMavenResolverSystemImpl.java:47)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.createInstance(SpiServiceLoader.java:244)
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.createInstances(SpiServiceLoader.java:208)
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.all(SpiServiceLoader.java:79)
org.jboss.shrinkwrap.resolver.spi.loader.SpiServiceLoader.onlyOne(SpiServiceLoader.java:85)
org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry.onlyOne(ServiceRegistry.java:117)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.jboss.shrinkwrap.resolver.api.Invokable.invokeMethod(Invokable.java:100)
org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:91)
org.jboss.shrinkwrap.resolver.api.ResolverSystemFactory.createFromUserView(ResolverSystemFactory.java:53)
org.jboss.shrinkwrap.resolver.api.Resolvers.configure(Resolvers.java:40)
org.jboss.shrinkwrap.resolver.api.maven.Maven.configureResolver(Maven.java:46)
fr.lteconsulting.pomexplorer.MavenResolver.init(MavenResolver.java:49)
fr.lteconsulting.pomexplorer.Session.mavenResolver(Session.java:51)
fr.lteconsulting.pomexplorer.DefaultPomFileLoader.loadPomFileForGav(DefaultPomFileLoader.java:26)
fr.lteconsulting.pomexplorer.PomAnalysis.loadAndCheckProject(PomAnalysis.java:373)
fr.lteconsulting.pomexplorer.PomAnalysis.processProjectForCompleteness(PomAnalysis.java:334)
fr.lteconsulting.pomexplorer.PomAnalysis.completeLoadedProjects(PomAnalysis.java:228)
fr.lteconsulting.pomexplorer.PomAnalysis.runFullRecursiveAnalysis(PomAnalysis.java:71)
fr.lteconsulting.pomexplorer.commands.AnalyzeCommand.directory(AnalyzeCommand.java:29)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
fr.lteconsulting.pomexplorer.commands.Commands.takeCommand(Commands.java:251)
fr.lteconsulting.pomexplorer.AppFactory$1.onWebsocketMessage(AppFactory.java:169)
fr.lteconsulting.pomexplorer.webserver.WebServer$2$1.lambda$onFullTextMessage$0(WebServer.java:145)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
An update to my issue- it has been solved by adding a settings-security.xml
file alongside the maven settings.xml
as follows:
<settingsSecurity>
</settingsSecurity>
That's fantastic! I thought I'd had a hard time reproducing the bug :) How did you find out?
Le mer. 2 août 2017 à 16:13, Steve Horne notifications@github.com a écrit :
An update to my issue- it has been solved by adding a settings-security.xml file alongside the maven settings.xml as follows:
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/ltearno/pom-explorer/issues/37#issuecomment-319684991, or mute the thread https://github.com/notifications/unsubscribe-auth/AALqXWdcdh0GZHIHJ56FEQKLCZJM-QTcks5sUIQKgaJpZM4OkR9J .
Since I saw Unable to get security configuration from C:\Users\shorne2\.m2\settings-security.xml
in the stack trace, I thought I would give it a try. Seems that settings-security.xml
is required, even if you don't need it.
Clever. I will look around the documented purpose of this file. If possible, add a message in pom explorer for other users.
Le mer. 2 août 2017 à 17:06, Steve Horne notifications@github.com a écrit :
Since I saw Unable to get security configuration from C:\Users\shorne2.m2\settings-security.xml. in the stack trace, I thought I would give it a try. Seems that settings-security.xml is required, even if you don't need it.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/ltearno/pom-explorer/issues/37#issuecomment-319701210, or mute the thread https://github.com/notifications/unsubscribe-auth/AALqXW1AFg2nKjFhzPm0Tfaiqli9Qqfwks5sUJCFgaJpZM4OkR9J .
Problem with first run... I am getting an exception shown below. Any help would be appreciated.