I want to build a project and the following error occurs.
My colleagues can build it without any problem.
The error occurs since I've got a new laptop.
Does somebody has any idea?
>[INFO]
Loading source files for package xxx...
Loading source files for package xxx...
Loading source files for package xxx...
Constructing Javadoc information...
Standard Doclet version 1.8.0_151
Building tree for all the packages and classes...
Generating C:\Eigene Dateien\Documents\workspace\xxx.html...
1 error
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.042 s
[INFO] Finished at: 2018-03-09T09:56:09+01:00
[INFO] Final Memory: 43M/326M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (attach-javadocs) on project xxx: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - java.lang.IllegalArgumentException: Error decoding percent encoded characters
[ERROR] at sun.net.www.ParseUtil.decode(ParseUtil.java:216)
[ERROR] at sun.misc.URLClassPath$FileLoader.<init>(URLClassPath.java:1241)
[ERROR] at sun.misc.URLClassPath$3.run(URLClassPath.java:560)
[ERROR] at sun.misc.URLClassPath$3.run(URLClassPath.java:555)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at sun.misc.URLClassPath.getLoader(URLClassPath.java:554)
[ERROR] at sun.misc.URLClassPath.getLoader(URLClassPath.java:519)
[ERROR] at sun.misc.URLClassPath.getNextLoader(URLClassPath.java:484)
[ERROR] at sun.misc.URLClassPath.access$100(URLClassPath.java:65)
[ERROR] at sun.misc.URLClassPath$1.next(URLClassPath.java:266)
[ERROR] at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:277)
[ERROR] at java.net.URLClassLoader$3$1.run(URLClassLoader.java:601)
[ERROR] at java.net.URLClassLoader$3$1.run(URLClassLoader.java:599)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader$3.next(URLClassLoader.java:598)
[ERROR] at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:623)
[ERROR] at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
[ERROR] at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
[ERROR] at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:354)
[ERROR] at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:393)
[ERROR] at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:474)
[ERROR] at javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:293)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
[ERROR] at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
[ERROR] at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
[ERROR] at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:89)
[ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:120)
[ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:189)
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:194)
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:139)
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:82)
[ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:80)
[ERROR] at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
[ERROR] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
[ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
[ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:219)
[ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:205)
[ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:64)
[ERROR] at com.sun.tools.javadoc.Main.main(Main.java:54)
Command line was: C:\java\jdk1.8.0_151\jre\..\bin\javadoc.exe #options #packages
When I skip creating javaDoc with maven.javadoc.skip and edit the build-plugins maven-deploy-plugin and maven-javadoc-plugin it will be build successful.
Related
We have a larger GWT application that used to be built with GWT v2.8.0. I am trying to upgrade it to GWT v2.9.0.
Compilation and packaging etc. all works fine, but when I try to start it (via maven using the goal gwt:run) I get the below error and stacktrace.
Any idea anyone, what is causing this and if and how one can fix this?
I am using an AdopOpenJDK v8.0.292.10 (hotspot) as runtime.
[INFO] --- gwt-maven-plugin:2.9.0:run (default-cli) # myapp-web ---
[INFO] create exploded Jetty webapp in D:\Projects\myapp-web\target\myapp
[INFO] Super Dev Mode starting up
[INFO] workDir: C:\Users\mms\AppData\Local\Temp\gwt-codeserver-3584342502042631589.tmp
[INFO] Loading Java files in com.example.myapp.MyApp.
[ERROR] java.lang.IllegalArgumentException
[ERROR] at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
[ERROR] at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
[ERROR] at com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor.<init>(BytecodeSignatureMaker.java:59)
[ERROR] at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
[ERROR] at com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
[ERROR] at com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
[ERROR] at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:41)
[ERROR] at com.google.gwt.dev.javac.Dependencies$Ref.<init>(Dependencies.java:36)
[ERROR] at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:100)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:349)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:532)
[ERROR] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:464)
[ERROR] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[ERROR] at com.google.gwt.dev.codeserver.Recompiler.initWithoutPrecompile(Recompiler.java:213)
[ERROR] at com.google.gwt.dev.codeserver.Outbox.maybePrecompile(Outbox.java:89)
[ERROR] at com.google.gwt.dev.codeserver.Outbox.<init>(Outbox.java:61)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.makeOutboxTable(CodeServer.java:192)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:151)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:104)
[ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:112)
[ERROR] at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:91)
[ERROR] at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:666)
[ERROR] at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:785)
[ERROR] at com.google.gwt.dev.DevMode.doStartup(DevMode.java:551)
[ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:888)
[ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:705)
[ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:432)
Firstly I would make sure you have deleted any GWT caching files/directories. Look in C:\Users\mms\AppData\Local\Temp\ for any files/folders starting with gwt.
Another possibility is that you have dependencies in your project that are using an older version of the asm.jar library that is incompatible with the GWT compiler.
In more detail, com.google.gwt:gwt-dev:2.9.0 is built against org.ow2.asm:7.1 . Check that your project does not have a dependency on ASM that is earlier than 7. (Note that this could be a transitive dependency.)
I am creating a POC where I am trying to download the dependencies from my corporate repository (JFrog) where my build file is :-
build.sbt :-
name := "sbt-test4"
version := "0.1"
scalaVersion := "2.12.8"
resolvers ++= Seq {
"Artifactory" at "https://someurl/artifactory/packagename"
}
credentials += Credentials(new File("credentials.properties"))
libraryDependencies += "ccp.mts.aerospike" % "mts-aerospike_2.12" % "0.2"
credentials.properties :-
realm=Artifactory Realm
host=https://<url>/artifactory
user=<user-id>
password=<password>
Now I am running these commands:-
java -Dhttp.proxyHost=162.158.20.9 -Dhttps.proxyHost=162.158.20.9
-Dhttp.proxyPort=8300 -Dhttps.proxyPort=8300 -Dhttp.nonProxyHosts="*.company.net" -Dhttps.nonProxyHosts="*.company.net" -jar C:\Users\xxxx.xxx034\.IntelliJIdea2018.2\config\plugins\Scala\launcher\sbt-launch.jar
>sbt update
this proxy information I have tried to pass using command itself and "sbtconfig.txt" and "sbtopts" files also.
Even These information I have passed through evn variables like :-
JAVA_OPTS=$JAVA_OPTS -Dhttp.proxyHost=162.158.20.9 -Dhttps.proxyHost=162.158.20.9 -Dhttp.proxyPort=8300 -Dhttps.proxyPort=8300 -Dhttp.proxyUser=uid-Dhttp.proxyPassword=password -Dhttps.proxyUser=uid-Dhttps.proxyPassword=password
SBT_OPTS=$SBT_OPTS -Dhttp.proxyHost=162.158.20.9 -Dhttp.proxyPort=8300 -Dhttp.proxyUser=uid-Dhttp.proxyPassword=password -Dhttps.proxyHost=162.158.20.9 -Dhttps.proxyPort=8300 -Dhttps.proxyUser=uid -Dhttps.proxyPassword=password
but still it I am not able to get the dependencies from remote repositories.
I have also referred :-
SBT 0.13.11 cannot download dependencies behind a proxy
And this is the Error log:-
[info] Set current project to sbt-test4 (in build file:/D:/workspace/scala-intellij/sbt-test4/)
[info] Updating ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: ccp.mts.aerospike#mts-aerospike_2.12;0.2: Artifactory: unable to get resource for ccp/mts/aerospike#mts-aerospike_2.12;0.2: res=https://xxxxxxxxxxxx/artifactory/xxxxxxxxx/ccp/mts/aerospike/mts-aerospike_2.12/0.2/mts-aerospike_2.12-0.2.pom: java.io.IOException: Unexpected response code for CONNECT: 502
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] ccp.mts.aerospike:mts-aerospike_2.12:0.2 (D:\workspace\scala-intellij\sbt-test4\build.sbt#L13-14)
[warn] +- default:sbt-test4_2.12:0.1
[error] sbt.librarymanagement.ResolveException: unresolved dependency: ccp.mts.aerospike#mts-aerospike_2.12;0.2: Artifactory: unable to get resource for ccp/mts/aerospike#mts-aerospike_2.12;0.2: res=https://xxxxxx/artifactory/xxxxxx/ccp/mts/aerospike/mts-aerospike_2.12/0.2/mts-aerospike_2.12-0.2.pom: java.io.IOException: Unexpected response code for CONNECT: 502
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:332)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:208)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:239)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:238)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:193)
[error] at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:45)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:93)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:106)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:106)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:89)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:120)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2561)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)
[error] at sbt.std.Transform$$anon$4.work(System.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:278)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: ccp.mts.aerospike#mts-aerospike_2.12;0.2: Artifactory: unable to get resource for ccp/mts/aerospike#mts-aerospike_2.12;0.2: res=https://xxxxxxx/artifactory/xxxxxxx/ccp/mts/aerospike/mts-aerospike_2.12/0.2/mts-aerospike_2.12-0.2.pom: java.io.IOException: Unexpected response code for CONNECT: 502
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:332)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:208)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:239)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:238)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:193)
[error] at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:45)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:93)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:106)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:106)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:89)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:120)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2561)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)
[error] at sbt.std.Transform$$anon$4.work(System.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:278)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: ccp.mts.aerospike#mts-aerospike_2.12;0.2: Artifactory: unable to get resource for ccp/mts/aerospike#mts-aerospike_2.12;0.2: res=https://xxxxxxxx/artifactory/xxxxxxx/ccp/mts/aerospike/mts-aerospike_2.12/0.2/mts-aerospike_2.12-0.2.pom: java.io.IOException: Unexpected response code for CONNECT: 502
[error] (ssExtractDependencies) sbt.librarymanagement.ResolveException: unresolved dependency: ccp.mts.aerospike#mts-aerospike_2.12;0.2: Artifactory: unable to get resource for ccp/mts/aerospike#mts-aerospike_2.12;0.2: res=https://xxxxxxxxxxx/artifactory/xxxxxxxxxxx/ccp/mts/aerospike/mts-aerospike_2.12/0.2/mts-aerospike_2.12-0.2.pom: java.io.IOException: Unexpected response code for CONNECT: 502
[error] Total time: 3 s, completed Feb 1, 2019 12:43:15 PM
[info] shutting down server
Picked up _JAVA_OPTIONS: -Xmx1024m
Here whatever the URL (in error log) sbt is hitting to get download the dependencies, the same url I am hitting in browser and after providing user credential I am able to downlaod the dependencies.
please let me know if anyone is having any solution for this.
I run fake server for batch of functional tests, fill database with evolutions. This idea works well to test in IntelijIdea, but I cannot configure CI because activator test fails...
./activator -Dconfig.resource=env_test.conf testOnly com.api.test.FunctionalTestsSuite
[info] Loading project definition from /Users/aieremenko/pr/api/project
[info] Set current project to api (in build file:/Users/aieremenko/pr/api/)
[info] Test run started
THE FIRST
[warn] application - hardcoded value: user is deprecated, use username instead
[info] application - Creating Pool for datasource 'default'
Starting server
before provideApplication
[error] Test com.api.test.FunctionalTestsSuite failed: play.api.Configuration$$anon$1: Configuration error[null], took 0.0 sec
[error] at play.api.Configuration$.configError(Configuration.scala:154)
[error] at play.api.Configuration.reportError(Configuration.scala:806)
[error] at play.Configuration.reportError(Configuration.java:366)
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.setServerConfigDataSource(DefaultEbeanConfig.java:94)
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.parse(DefaultEbeanConfig.java:75)
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.get(DefaultEbeanConfig.java:56)
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.get(DefaultEbeanConfig.java:40)
[error] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
[error] at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
[error] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
[error] at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
[error] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
[error] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
[error] at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
[error] at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
[error] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:104)
[error] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
[error] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
[error] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
[error] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
[error] at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
[error] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
[error] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
[error] at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:205)
[error] at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:199)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
[error] at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:199)
[error] at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:180)
[error] at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
[error] at com.google.inject.Guice.createInjector(Guice.java:96)
[error] at com.google.inject.Guice.createInjector(Guice.java:84)
[error] at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:181)
[error] at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:123)
[error] at play.api.test.FakeApplication.<init>(Fakes.scala:209)
[error] at play.test.FakeApplication.<init>(FakeApplication.java:51)
[error] at play.test.Helpers.fakeApplication(Helpers.java:124)
[error] at com.dimanex.api.test.FunctionalTestsSuite$1.provideApplication(FunctionalTestsSuite.java:105)
[error] at com.dimanex.api.test.FunctionalTestsSuite$1.startServer(FunctionalTestsSuite.java:54)
[error] at com.dimanex.api.test.FunctionalTestsSuite$1.before(FunctionalTestsSuite.java:38)
[error] ...
[error] Caused by: java.lang.NullPointerException
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.setServerConfigDataSource(DefaultEbeanConfig.java:92)
[error] ... 64 more
[info] Test run finished: 1 failed, 0 ignored, 0 total, 41.043s
I have separated files with configs for dev, prod and test mode. Tests use own database to miss possibility to hurt production server(I don't use inmemory database)....
Okay. activator just ignores -Dconfig.resource=env_test.conf for test plugin. When I use application.conf for test purposes (which is default config file) than it works. For application running it works:
./activator -Dconfig.resource=env_dev.conf run
But it's IntelijIdea runs test well with defiled -Dconfig.resource=env_test.conf. It's just funny:)
I got this error while trying to compile my GWT app. I tried to Google it but there is no informative description of this error:
[ERROR] java.lang.RuntimeException: a new annotation has been introduced (org.hibernate.validator.constraints.ConstraintComposition); you cannot currently introduce new annotations in devmode. Please restart.
[ERROR] at org.jboss.errai.config.rebind.MetaClassBridgeUtil.populateMetaClassFactoryFromTypeOracle(MetaClassBridgeUtil.java:88)
[ERROR] at org.jboss.errai.config.rebind.AbstractAsyncGenerator$2.run(AbstractAsyncGenerator.java:93)
[ERROR] at org.jboss.errai.config.rebind.AsyncGenerationJob.notifyStarting(AsyncGenerationJob.java:86)
[ERROR] at org.jboss.errai.config.rebind.AsyncGenerators.notifyStarting(AsyncGenerators.java:190)
[ERROR] at org.jboss.errai.config.rebind.AsyncGenerators.startAll(AsyncGenerators.java:144)
[ERROR] at org.jboss.errai.config.rebind.AsyncGenerators.getFutureFor(AsyncGenerators.java:55)
[ERROR] at org.jboss.errai.config.rebind.AsyncGenerationJob.submit(AsyncGenerationJob.java:109)
[ERROR] at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:86)
[ERROR] at org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator.generate(IOCGenerator.java:58)
[ERROR] at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
[ERROR] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)
[ERROR] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[ERROR] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
[ERROR] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
[ERROR] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
[ERROR] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[ERROR] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)
[ERROR] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)
[ERROR] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)
[ERROR] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[ERROR] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
[ERROR] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[ERROR] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
[ERROR] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
[ERROR] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[ERROR] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
[ERROR] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)
[ERROR] at com.google.gwt.dev.jjs.ast.JTryStatement.traverse(JTryStatement.java:60)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
[ERROR] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[ERROR] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
[ERROR] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)
[ERROR] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[ERROR] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)
[ERROR] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[ERROR] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[ERROR] at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)
[ERROR] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)
[ERROR] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)
[ERROR] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
[ERROR] at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
[ERROR] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[ERROR] at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
[ERROR] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[ERROR] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[ERROR] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[ERROR] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[ERROR] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
[ERROR] at com.google.gwt.dev.Compiler.main(Compiler.java:177)
This exception gets thrown whenever an annotation type can't be loaded. As the message says (and Thomas explained in his response), one scenario where this can happen is when you add a new annotation type during a Dev Mode session.
Another possible way to get this error is not having org.hibernate.validator.constraints.ConstraintComposition on your GWT compiler's classpath. Try compiling with mvn -X gwt:compile and take a look at the classpath used with the GWT compiler. Verify that your GWT compilation classpath includes a .jar with org/hibernate/validator/constraints/ConstraintComposition.class in it.
DevMode (and the GWT Compiler BTW) resolves annotations from bytecode, not source code (to my knownledge, this is the only use of bytecode as source in GWT); so annotations you introduce in your source code can't be seen by DevMode until you restart it.
This is unless the generator that makes use of the annotations uses some tricks to actually load the recompiled bytecode. FYI, GIN used to suffer from this limitation, and starting with 2.0 it uses ClassLoader tricks to mitigate it.
Errai seems to have some tricks to detect you have changed the source code in ways that won't be seen by DevMode (in this case, I suppose by the Bean Validation generator built into GWT, so it cannot be changed to use similar tricskas GIN) and generates an error.
Im trying to run a test using selenium testng on Saucelabs. Im getting an error and cant seem to figure it out!
I`ve tried different versions for the Surefire plugin , testng but cant seem to resolve this.
Here the maven stack trace . Any help is much appreciated
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
14:test (default-test) on project functional: Execution default-test of goal org
.apache.maven.plugins:maven-surefire-plugin:2.14:test failed: There was an error
in the forked process
[ERROR] org.testng.TestNGException: java.lang.NullPointerException
[ERROR] at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:340)
[ERROR] at org.testng.TestNG.run(TestNG.java:1004)
[ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.ja
va:178)
[ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXml
TestSuite.java:92)
[ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider
.java:96)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:606)
[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2
(ReflectionUtils.java:208)
[ERROR] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke
(ProviderFactory.java:158)
[ERROR] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi
derFactory.java:86)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork
edBooter.java:153)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
95)
[ERROR] Caused by: java.lang.NullPointerException
[ERROR] at org.testng.xml.TestNGContentHandler.xmlListeners(TestNGContentHandler
.java:352)
[ERROR] at org.testng.xml.TestNGContentHandler.endElement(TestNGContentHandler.j
ava:700)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(AbstractSAXParser.java:606)
[ERROR] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamesp
aceScope(XMLDTDValidator.java:2054)
[ERROR] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEnd
Element(XMLDTDValidator.java:2005)
[ERROR] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElemen
t(XMLDTDValidator.java:879)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1742)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2900)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
MLDocumentScannerImpl.java:607)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:835)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:123)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1210)
[ERROR] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(SAXParserImpl.java:568)
[ERROR] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParser
Impl.java:302)
[ERROR] at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
[ERROR] at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:17)
[ERROR] at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:10)
[ERROR] at org.testng.xml.Parser.parse(Parser.java:172)
[ERROR] at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:310)
[ERROR] ... 13 more