Datomic throws ActiveMQInternalErrorException when connecting to restored database - datomic

I backed up a Datomic v0.9.5786 database from :dev storage:
~/datomic/datomic-pro-0.9.5786/bin/datomic -Xmx4g -Xms4g backup-db datomic:dev://localhost:4334/acct file:/Users/petrus/acct.datomic
Copied 0 segments, skipped 0 segments.
Copied 414 segments, skipped 0 segments.
:succeeded
Restoring the backup to a newer version of Datomic Pro v1.0.6202 on my othre laptop apparently succeeds:
➜ datomic-pro-1.0.6202 bin/datomic -Xmx4g -Xms4g restore-db file:/Users/petrus/Projects/acct/resources/data/acct.datomic datomic:dev://localhost:4334/acct
Copied 0 segments, skipped 0 segments.
Copied 414 segments, skipped 0 segments.
:succeeded
{:event :restore, :db acct, :basis-t 38265, :inst #inst "2020-10-22T10:03:31.186-00:00"}
I restarted the Dev transactor as described in the docs, but when I try to connect from the REPL, Datomic throws:
(d/connect "datomic:dev://localhost:4334/acct")
=> Execution error (ActiveMQInternalErrorException) at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl/sendBlocking (ChannelImpl.java:404).
null
Attempts to (d/delete-database "datomic:dev://localhost:4334/acct") fail with the same error, but trying to connect to non-existent DB cleanly throws "catalog does not exist."
I repeated the backup/restore process after installing Datomic Pro v1.0.6202 on the source machine so that the source and destination versions would match, but the same symptoms occur when connecting to the restored DB.
Let's see what happens when I try to create a fresh database:
(d/connect "datomic:dev://localhost:4334/newdb")
=> Execution error at datomic.peer/get-connection$fn (peer.clj:661).
Could not find newdb in catalog
(d/create-database "datomic:dev://localhost:4334/newdb")
=> Execution error (ActiveMQInternalErrorException) at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl/sendBlocking (ChannelImpl.java:404).
null
Hmm, I'm starting to think I've found a bug in Datomic, or there is a problem with my local JDK (OpenJDK 15).
So I create a new Clojure project with only 1.10.1 and Datomic Pro v1.0.6202 in deps.edn:
{:mvn/repos {"my.datomic.com" {:url "https://my.datomic.com/repo"}}
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
com.datomic/datomic-pro {:mvn/version "1.0.6202"}}}
➜ clj
Clojure 1.10.1
user=> (require '[datomic.api :as d])
nil
user=> (d/connect "datomic:dev://localhost:4334/newdb")
Execution error at datomic.peer/get-connection$fn (peer.clj:661).
Could not find newdb in catalog
user=> (d/create-database "datomic:dev://localhost:4334/newdb")
Execution error (ActiveMQInternalErrorException) at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl/sendBlocking (ChannelImpl.java:404).
Could there be a weird conflict somewhere? Let's see what Maven says about the dependency tree:
➜ datomic-debug clj -Spom
➜ datomic-debug mvn dependency:tree -Dverbose=true
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< datomic-debug:datomic-debug >---------------------
[INFO] Building datomic-debug 0.1.0
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from clojars: https://repo.clojars.org/com/google/guava/guava/18.0/guava-18.0.jar
Downloading from my.datomic.com: https://my.datomic.com/repo/com/google/guava/guava/18.0/guava-18.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar (2.3 MB at 2.9 MB/s)
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # datomic-debug ---
[INFO] datomic-debug:datomic-debug:jar:0.1.0
[INFO] +- org.clojure:clojure:jar:1.10.1:compile
[INFO] | +- org.clojure:spec.alpha:jar:0.2.176:compile
[INFO] | \- org.clojure:core.specs.alpha:jar:0.2.44:compile
[INFO] \- com.datomic:datomic-pro:jar:1.0.6202:compile
[INFO] +- (org.clojure:clojure:jar:1.8.0:compile - omitted for conflict with 1.10.1)
[INFO] +- org.clojure:tools.cli:jar:0.3.5:compile
[INFO] +- org.fressian:fressian:jar:0.6.5:compile
[INFO] +- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- org.slf4j:jul-to-slf4j:jar:1.7.22:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.22:compile
[INFO] +- org.slf4j:slf4j-nop:jar:1.7.22:compile
[INFO] | \- (org.slf4j:slf4j-api:jar:1.7.22:compile - omitted for duplicate)
[INFO] +- org.slf4j:log4j-over-slf4j:jar:1.7.22:runtime
[INFO] | \- (org.slf4j:slf4j-api:jar:1.7.22:runtime - omitted for duplicate)
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.22:compile
[INFO] | \- (org.slf4j:slf4j-api:jar:1.7.22:compile - omitted for duplicate)
[INFO] +- org.apache.activemq:artemis-core-client:jar:1.5.6:compile
[INFO] | +- org.apache.activemq:artemis-commons:jar:1.5.6:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | | +- (io.netty:netty-all:jar:4.1.5.Final:compile - omitted for duplicate)
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] | | | \- (commons-collections:commons-collections:jar:3.2.1:compile - omitted for conflict with 3.2.2)
[INFO] | | \- (com.google.guava:guava:jar:19.0:compile - omitted for conflict with 18.0)
[INFO] | +- (io.netty:netty-all:jar:4.1.5.Final:compile - omitted for conflict with 4.1.32.Final)
[INFO] | +- org.apache.geronimo.specs:geronimo-json_1.0_spec:jar:1.0-alpha-1:compile
[INFO] | \- org.apache.johnzon:johnzon-core:jar:0.9.5:compile
[INFO] +- io.netty:netty-all:jar:4.1.32.Final:compile
[INFO] +- com.datomic:query-support:jar:0.8.27:compile
[INFO] +- com.h2database:h2:jar:1.3.171:compile
[INFO] +- com.datomic:datomic-lucene-core:jar:3.3.0:compile
[INFO] +- com.google.guava:guava:jar:18.0:compile
[INFO] +- net.spy:spymemcached:jar:2.11.4:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.9:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.11:compile
[INFO] | \- (commons-codec:commons-codec:jar:1.11:compile - omitted for conflict with 1.10)
[INFO] +- org.apache.tomcat:tomcat-jdbc:jar:7.0.27:compile
[INFO] | \- org.apache.tomcat:tomcat-juli:jar:7.0.27:compile
[INFO] +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] \- org.codehaus.janino:commons-compiler-jdk:jar:3.0.12:compile
[INFO] \- org.codehaus.janino:commons-compiler:jar:3.0.12:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.181 s
[INFO] Finished at: 2020-10-24T13:15:47+01:00
[INFO] ------------------------------------------------------------------------
The same happens whether I'm using OpenJDK 15 or Oracle's JDK 15. I also tried deleting my Datomic data folder before starting Datomic.

The Datomic transactor requires Java 8 and does not support newer versions yet. Solved by switching transactor env to OpenJDK v1.8.0_272:
brew cask install adoptopenjdk8
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
bin/transactor config/dev-transactor.properties
I lost 10 hours on this. Maybe if the transactor tried to connect to itself on startup as a sanity check, it could warn the user early.

Related

Enabling logback logging with Spring boot app for Google app engine

I am trying to enable logback logging for spring boot app on Google app engine.
I followed these instructions.
But stuck with below exception. I referred https://github.com/SeleniumHQ/selenium/issues/3880 , https://github.com/latacora/unsiemly/issues/9 and https://github.com/google/guava/issues/2380 but nothing worked. Any idea what could be missing?
[INFO] GCLOUD: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;J)V
[INFO] GCLOUD: at com.google.api.gax.batching.Semaphore64.notNegative(Semaphore64.java:86)
[INFO] GCLOUD: at com.google.api.gax.batching.Semaphore64.<init>(Semaphore64.java:46)
[INFO] GCLOUD: at com.google.api.gax.batching.FlowController.<init>(FlowController.java:146)
[INFO] GCLOUD: at com.google.api.gax.rpc.BatchingCallSettings.<init>(BatchingCallSettings.java:70)
[INFO] GCLOUD: at com.google.api.gax.rpc.BatchingCallSettings.<init>(BatchingCallSettings.java:46)
[INFO] GCLOUD: at com.google.api.gax.rpc.BatchingCallSettings$Builder.build(BatchingCallSettings.java:146)
[INFO] GCLOUD: at com.google.cloud.logging.v2.LoggingSettings.<init>(LoggingSettings.java:245)
[INFO] GCLOUD: at com.google.cloud.logging.v2.LoggingSettings.<init>(LoggingSettings.java:104)
[INFO] GCLOUD: at com.google.cloud.logging.v2.LoggingSettings$Builder.build(LoggingSettings.java:703)
[INFO] GCLOUD: at com.google.cloud.logging.spi.v2.GrpcLoggingRpc.<init>(GrpcLoggingRpc.java:114)
[INFO] GCLOUD: at com.google.cloud.logging.LoggingOptions$DefaultLoggingRpcFactory.create(LoggingOptions.java:64)
[INFO] GCLOUD: at com.google.cloud.logging.LoggingOptions$DefaultLoggingRpcFactory.create(LoggingOptions.java:58)
[INFO] GCLOUD: at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:472)
[INFO] GCLOUD: at com.google.cloud.logging.LoggingOptions.getLoggingRpcV2(LoggingOptions.java:134)
[INFO] GCLOUD: at com.google.cloud.logging.LoggingImpl.<init>(LoggingImpl.java:108)
[INFO] GCLOUD: at com.google.cloud.logging.LoggingOptions$DefaultLoggingFactory.create(LoggingOptions.java:46)
[INFO] GCLOUD: at com.google.cloud.logging.LoggingOptions$DefaultLoggingFactory.create(LoggingOptions.java:41)
[INFO] GCLOUD: at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:459)
[INFO] GCLOUD: at com.google.cloud.logging.logback.LoggingAppender.getLogging(LoggingAppender.java:201)
[INFO] GCLOUD: at com.google.cloud.logging.logback.LoggingAppender.start(LoggingAppender.java:166)
[INFO] GCLOUD: at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
[INFO] GCLOUD: at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
[INFO] GCLOUD: at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
[INFO] GCLOUD: at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
[INFO] GCLOUD: at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
[INFO] GCLOUD: at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
[INFO] GCLOUD: at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
[INFO] GCLOUD: at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
[INFO] GCLOUD: at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
[INFO] GCLOUD: at org.springframework.boot.logging.logback.LogbackLoggingSystem.configureByResourceUrl(LogbackLoggingSystem.java:17
[INFO] GCLOUD: at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:145)
[INFO] GCLOUD: at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:81)
[INFO] GCLOUD: at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:59)
[INFO] GCLOUD: at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:115)
[INFO] GCLOUD: at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:303)
[INFO] GCLOUD: at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:276)
[INFO] GCLOUD: at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicat
[INFO] GCLOUD: at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:21
[INFO] GCLOUD: at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMultic
[INFO] GCLOUD: at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticas
[INFO] GCLOUD: at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticas
[INFO] GCLOUD: at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticas
[INFO] GCLOUD: at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.
[INFO] GCLOUD: at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
[INFO] GCLOUD: at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)
[INFO] GCLOUD: at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)
[INFO] GCLOUD: at org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:154)
[INFO] GCLOUD: at org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletI
[INFO] GCLOUD: at org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:87)
[INFO] GCLOUD: at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
[INFO] GCLOUD: at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.jav
[INFO] GCLOUD: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[INFO] GCLOUD: at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:330)
[INFO] GCLOUD: at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1406)
[INFO] GCLOUD: at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1368)
[INFO] GCLOUD: at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
[INFO] GCLOUD: at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
[INFO] GCLOUD: at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:522)
[INFO] GCLOUD: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[INFO] GCLOUD: at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
[INFO] GCLOUD: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
[INFO] GCLOUD: at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
[INFO] GCLOUD: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[INFO] GCLOUD: at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
[INFO] GCLOUD: at org.eclipse.jetty.server.Server.start(Server.java:422)
[INFO] GCLOUD: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
[INFO] GCLOUD: at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
[INFO] GCLOUD: at org.eclipse.jetty.server.Server.doStart(Server.java:389)
[INFO] GCLOUD: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[INFO] GCLOUD: at com.google.appengine.tools.development.jetty9.JettyContainerService.startContainer(JettyContainerService.java:346
[INFO] GCLOUD: at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:284)
[INFO] GCLOUD: at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
[INFO] GCLOUD: 2018-02-08 12:52:29.359:INFO:oejs.AbstractConnector:main: Started NetworkTrafficSelectChannelConnector#2b7962a2{HTTP/
[INFO] GCLOUD: at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
[INFO] GCLOUD: at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:274)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:219)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:217)
[INFO] GCLOUD: at java.security.AccessController.doPrivileged(Native Method)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:217)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:368)
[INFO] GCLOUD: at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:47)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:223)
[INFO] GCLOUD: at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:214)
[INFO] GCLOUD:
My dependency tree with excluding conflicting guava dependencies.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Okr 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) # okr ---
[INFO] com.arrkgroup.okr:okr:war:0.0.1-SNAPSHOT
[INFO] +- org.webjars:webjars-locator:jar:0.32:compile
[INFO] | +- org.webjars:webjars-locator-core:jar:0.30:compile
[INFO] | | \- org.apache.commons:commons-compress:jar:1.9:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.8.10:compile
[INFO] +- org.webjars:bootstrap:jar:4.0.0-alpha:compile
[INFO] | \- org.webjars:jquery:jar:1.11.1:compile
[INFO] +- org.xhtmlrenderer:flying-saucer-pdf:jar:9.1.4:compile
[INFO] | +- com.lowagie:itext:jar:2.1.7:compile
[INFO] | +- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] | +- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] | +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] | \- org.xhtmlrenderer:flying-saucer-core:jar:9.1.4:compile
[INFO] +- com.google.appengine:appengine-api-1.0-sdk:jar:1.9.58:compile
[INFO] +- com.google.appengine:appengine-testing:jar:1.9.59:test
[INFO] +- org.antlr:stringtemplate:jar:3.2:compile
[INFO] | \- antlr:antlr:jar:2.7.7:compile
[INFO] +- javax.mail:javax.mail-api:jar:1.5.1:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- io.github.jhipster:jhipster:jar:1.1.8:compile
[INFO] +- io.dropwizard.metrics:metrics-core:jar:3.2.2:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- io.dropwizard.metrics:metrics-annotation:jar:3.2.2:compile
[INFO] +- io.dropwizard.metrics:metrics-json:jar:3.2.2:compile
[INFO] +- io.dropwizard.metrics:metrics-jvm:jar:3.2.2:compile
[INFO] +- io.dropwizard.metrics:metrics-servlet:jar:3.2.2:compile
[INFO] +- io.dropwizard.metrics:metrics-servlets:jar:3.2.2:compile
[INFO] | +- io.dropwizard.metrics:metrics-healthchecks:jar:3.2.2:compile
[INFO] | \- com.papertrail:profiler:jar:1.0.2:compile
[INFO] | \- joda-time:joda-time:jar:2.9.9:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:jar:2.8.10:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.8.10:compile
[INFO] | \- javax.transaction:jta:jar:1.1:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-hppc:jar:2.8.10:compile
[INFO] | \- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.8.10:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.0:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-json-org:jar:2.8.10:compile
[INFO] | \- org.apache.geronimo.bundles:json:jar:20090211_1:compile
[INFO] +- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.8.10:compile
[INFO] +- com.h2database:h2:jar:1.4.196:test
[INFO] +- org.awaitility:awaitility:jar:2.0.0:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- cglib:cglib-nodep:jar:3.1:test
[INFO] | \- org.objenesis:objenesis:jar:2.1:test
[INFO] +- com.jayway.jsonpath:json-path:jar:2.2.0:test
[INFO] | \- net.minidev:json-smart:jar:2.2.1:test
[INFO] | \- net.minidev:accessors-smart:jar:1.1:test
[INFO] | \- org.ow2.asm:asm:jar:5.0.3:test
[INFO] +- io.springfox:springfox-swagger2:jar:2.7.0:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.13:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.13:compile
[INFO] | +- io.springfox:springfox-spi:jar:2.7.0:compile
[INFO] | | \- io.springfox:springfox-core:jar:2.7.0:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.7.0:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.7.0:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.7.0:compile
[INFO] | | \- org.reflections:reflections:jar:0.9.11:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | \- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] +- io.springfox:springfox-bean-validators:jar:2.7.0:compile
[INFO] +- com.mattbertolini:liquibase-slf4j:jar:2.0.0:compile
[INFO] +- com.ryantenney.metrics:metrics-spring:jar:3.1.3:compile
[INFO] | +- org.springframework:spring-core:jar:4.3.12.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:4.3.12.RELEASE:compile
[INFO] | \- org.springframework:spring-aop:jar:4.3.12.RELEASE:compile
[INFO] +- com.zaxxer:HikariCP:jar:2.6.0:compile
[INFO] +- commons-io:commons-io:jar:2.5:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.5:compile
[INFO] +- org.assertj:assertj-core:jar:3.6.2:test
[INFO] +- org.hibernate:hibernate-envers:jar:5.2.8.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.1.Final:compile
[INFO] | \- org.hibernate:hibernate-core:jar:5.2.8.Final:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | +- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.1.Final:compile
[INFO] | +- org.jboss:jandex:jar:2.0.3.Final:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] +- org.hibernate:hibernate-validator:jar:5.3.5.Final:compile
[INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- org.liquibase:liquibase-core:jar:3.5.3:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.17:compile
[INFO] +- org.postgresql:postgresql:jar:42.1.1:compile
[INFO] +- org.mapstruct:mapstruct-jdk8:jar:1.1.0.Final:compile
[INFO] +- org.springframework:spring-context-support:jar:4.3.12.RELEASE:compile
[INFO] | \- org.springframework:spring-context:jar:4.3.12.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:4.3.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-actuator:jar:1.5.8.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot:jar:1.5.8.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-autoconfigure:jar:1.5.8.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:1.5.8.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-loader-tools:jar:1.5.8.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-aop:jar:1.5.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.5.8.RELEASE:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.8.11:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.5.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.5.8.RELEASE:compile
[INFO] | | +- org.apache.tomcat:tomcat-jdbc:jar:8.5.23:compile
[INFO] | | | \- org.apache.tomcat:tomcat-juli:jar:8.5.23:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:4.3.12.RELEASE:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:5.2.8.Final:compile
[INFO] | | \- net.bytebuddy:byte-buddy:jar:1.6.6:compile
[INFO] | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:1.11.8.RELEASE:compile
[INFO] | | +- org.springframework:spring-orm:jar:4.3.12.RELEASE:compile
[INFO] | | \- org.springframework:spring-tx:jar:4.3.12.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:4.3.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:1.5.8.RELEASE:compile
[INFO] | +- ch.qos.logback:logback-classic:jar:1.1.11:compile
[INFO] | | \- ch.qos.logback:logback-core:jar:1.1.11:compile
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:1.5.8.RELEASE:compile
[INFO] | \- com.sun.mail:javax.mail:jar:1.5.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:1.5.8.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:4.2.3.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:4.2.3.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.5.8.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.5.8.RELEASE:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.4.0:test
[INFO] | \- org.springframework:spring-test:jar:4.3.12.RELEASE:test
[INFO] +- org.springframework.security:spring-security-test:jar:4.2.3.RELEASE:test
[INFO] | \- org.springframework.security:spring-security-core:jar:4.2.3.RELEASE:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework.boot:spring-boot-test:jar:1.5.8.RELEASE:test
[INFO] +- org.springframework.boot:spring-boot-starter-thymeleaf:jar:1.5.8.RELEASE:compile
[INFO] | +- org.thymeleaf:thymeleaf-spring4:jar:2.1.5.RELEASE:compile
[INFO] | | \- org.thymeleaf:thymeleaf:jar:2.1.5.RELEASE:compile
[INFO] | | +- ognl:ognl:jar:3.0.8:compile
[INFO] | | \- org.unbescape:unbescape:jar:1.1.0.RELEASE:compile
[INFO] | \- nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:jar:1.4.0:compile
[INFO] | \- org.codehaus.groovy:groovy:jar:2.4.12:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.5.8.RELEASE:compile
[INFO] | +- org.springframework:spring-web:jar:4.3.12.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:4.3.12.RELEASE:compile
[INFO] +- io.jsonwebtoken:jjwt:jar:0.7.0:compile
[INFO] +- net.logstash.logback:logstash-logback-encoder:jar:4.9:compile
[INFO] +- org.springframework.boot:spring-boot-starter-cloud-connectors:jar:1.5.8.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-spring-service-connector:jar:1.2.4.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-core:jar:1.2.4.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-cloudfoundry-connector:jar:1.2.4.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-heroku-connector:jar:1.2.4.RELEASE:compile
[INFO] | \- org.springframework.cloud:spring-cloud-localconfig-connector:jar:1.2.4.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-data:jar:4.2.3.RELEASE:compile
[INFO] | \- org.springframework.data:spring-data-commons:jar:1.13.8.RELEASE:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.3:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.8:compile
[INFO] | \- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- org.springframework.social:spring-social-security:jar:1.1.4.RELEASE:compile
[INFO] | +- org.springframework.social:spring-social-web:jar:1.1.4.RELEASE:compile
[INFO] | | \- javax.inject:javax.inject:jar:1:compile
[INFO] | \- org.springframework.social:spring-social-core:jar:1.1.4.RELEASE:compile
[INFO] +- org.springframework.social:spring-social-google:jar:1.0.0.RELEASE:compile
[INFO] | \- org.springframework.social:spring-social-config:jar:1.1.4.RELEASE:compile
[INFO] +- org.springframework.social:spring-social-facebook:jar:2.0.3.RELEASE:compile
[INFO] +- org.springframework.social:spring-social-twitter:jar:1.1.2.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-crypto:jar:4.2.3.RELEASE:compile
[INFO] +- com.microsoft.azure:spring-social-microsoft-graph:jar:0.1.5:compile
[INFO] +- commons-fileupload:commons-fileupload:jar:1.2.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-undertow:jar:1.5.8.RELEASE:compile
[INFO] | +- io.undertow:undertow-core:jar:1.4.20.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-api:jar:3.3.8.Final:compile
[INFO] | | \- org.jboss.xnio:xnio-nio:jar:3.3.8.Final:runtime
[INFO] | +- io.undertow:undertow-servlet:jar:1.4.20.Final:compile
[INFO] | | \- org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final:compile
[INFO] | +- io.undertow:undertow-websockets-jsr:jar:1.4.20.Final:compile
[INFO] | | \- org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec:jar:1.1.0.Final:compile
[INFO] | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] | \- org.glassfish:javax.el:jar:3.0.0:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:1.5.8.RELEASE:compile
[INFO] +- com.google.api-client:google-api-client:jar:1.21.0:compile
[INFO] | +- com.google.oauth-client:google-oauth-client:jar:1.21.0:compile
[INFO] | | \- com.google.http-client:google-http-client:jar:1.21.0:compile
[INFO] | \- com.google.http-client:google-http-client-jackson2:jar:1.21.0:compile
[INFO] +- com.google.api-client:google-api-client-appengine:jar:1.21.0:compile
[INFO] | +- com.google.oauth-client:google-oauth-client-appengine:jar:1.21.0:compile
[INFO] | \- com.google.http-client:google-http-client-appengine:jar:1.21.0:compile
[INFO] +- com.google.api-client:google-api-client-servlet:jar:1.21.0:compile
[INFO] | +- com.google.oauth-client:google-oauth-client-servlet:jar:1.21.0:compile
[INFO] | | \- com.google.http-client:google-http-client-jdo:jar:1.21.0:compile
[INFO] | \- javax.jdo:jdo2-api:jar:2.3-eb:compile
[INFO] | \- javax.transaction:transaction-api:jar:1.1:compile
[INFO] +- com.google.cloud.sql:postgres-socket-factory:jar:1.0.3:compile
[INFO] | +- com.google.cloud.sql:mysql-socket-factory-core:jar:1.0.3:compile
[INFO] | | \- com.google.apis:google-api-services-sqladmin:jar:v1beta4-rev25-1.22.0:compile
[INFO] | \- mysql:mysql-connector-java:jar:5.1.44:compile
[INFO] +- com.google.appengine:appengine-api-labs:jar:1.5.2:compile
[INFO] +- com.google.guava:guava:jar:23.0:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[INFO] | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
[INFO] \- com.google.cloud:google-cloud-logging-logback:jar:0.32.0-alpha:compile
[INFO] \- com.google.cloud:google-cloud-logging:jar:1.14.0:compile
[INFO] +- io.netty:netty-tcnative-boringssl-static:jar:2.0.6.Final:compile
[INFO] +- com.google.cloud:google-cloud-core:jar:1.14.0:compile
[INFO] | +- org.json:json:jar:20140107:compile
[INFO] | +- com.google.api:api-common:jar:1.2.0:compile
[INFO] | +- com.google.api:gax:jar:1.15.0:compile
[INFO] | +- com.google.protobuf:protobuf-java-util:jar:3.4.0:compile
[INFO] | | \- com.google.code.gson:gson:jar:2.8.2:compile
[INFO] | +- com.google.api.grpc:proto-google-common-protos:jar:1.0.2:compile
[INFO] | \- com.google.api.grpc:proto-google-iam-v1:jar:0.1.26:compile
[INFO] +- com.google.cloud:google-cloud-core-grpc:jar:1.14.0:compile
[INFO] | +- com.google.auth:google-auth-library-credentials:jar:0.9.0:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.4.0:compile
[INFO] | +- io.grpc:grpc-protobuf:jar:1.7.0:compile
[INFO] | | \- io.grpc:grpc-protobuf-lite:jar:1.7.0:compile
[INFO] | \- io.grpc:grpc-context:jar:1.7.0:compile
[INFO] +- com.google.api:gax-grpc:jar:1.15.0:compile
[INFO] | +- com.google.auto.value:auto-value:jar:1.2:compile
[INFO] | +- org.threeten:threetenbp:jar:1.3.3:compile
[INFO] | \- com.google.auth:google-auth-library-oauth2-http:jar:0.9.0:compile
[INFO] +- com.google.api.grpc:proto-google-cloud-logging-v2:jar:0.1.26:compile
[INFO] +- io.grpc:grpc-netty:jar:1.7.0:compile
[INFO] | +- io.grpc:grpc-core:jar:1.7.0:compile (version selected from constraint [1.7.0,1.7.0])
[INFO] | | +- com.google.instrumentation:instrumentation-api:jar:0.4.3:compile
[INFO] | | \- io.opencensus:opencensus-api:jar:0.6.0:compile
[INFO] | +- io.netty:netty-codec-http2:jar:4.1.16.Final:compile (version selected from constraint [4.1.16.Final,4.1.16.Final])
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.16.Final:compile
[INFO] | | | \- io.netty:netty-codec:jar:4.1.16.Final:compile
[INFO] | | \- io.netty:netty-handler:jar:4.1.16.Final:compile
[INFO] | | \- io.netty:netty-buffer:jar:4.1.16.Final:compile
[INFO] | | \- io.netty:netty-common:jar:4.1.16.Final:compile
[INFO] | \- io.netty:netty-handler-proxy:jar:4.1.16.Final:compile
[INFO] | +- io.netty:netty-transport:jar:4.1.16.Final:compile
[INFO] | | \- io.netty:netty-resolver:jar:4.1.16.Final:compile
[INFO] | \- io.netty:netty-codec-socks:jar:4.1.16.Final:compile
[INFO] +- io.grpc:grpc-stub:jar:1.7.0:compile
[INFO] \- io.grpc:grpc-auth:jar:1.7.0:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.349 s
[INFO] Finished at: 2018-02-16T13:03:17+05:30
[INFO] Final Memory: 36M/437M
[INFO] ------------------------------------------------------------------------

Flink 1.5-SNAPSHOT is built when I try to build 1.4 from source

I'm following the documentation to build Flink 1.4 but instead Flink 1.5-SNAPSHOT is built.
What am I doing wrong?
[INFO] ------------------------------------------------------------------------
[INFO] Building flink-streaming-java 1.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # flink-streaming-java_2.11 ---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) # flink-streaming-java_2.11 ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) # flink-streaming-java_2.11 ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (dependency-convergence) # flink-streaming-java_2.11 ---
[INFO]
[INFO] --- directory-maven-plugin:0.1:highest-basedir (directories) # flink-streaming-java_2.11 ---
[INFO] Highest basedir set to: /Users/amar/Downloads/flink-master
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) # flink-streaming-java_2.11 ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # flink-streaming-java_2.11 ---
The documentation is not correct. It shows how to build the current master branch which is always the latest SNAPSHOT version (currently 1.5-SNAPSHOT). Before a new minor Flink version is released, we fork off a release branch. For Flink 1.4 this branch is called release-1.4.
You can build Flink 1.4-SNAPSHOT (the latest version in the dev branch with all bugfixes for Flink 1.4) by checking out the release-1.4 branch before calling Maven. So the commands should be:
git clone https://github.com/apache/flink
cd flink
git checkout release-1.4
mvn -DskipTests clean install
If you want to build a specific version, i.e., not the latest SNAPSHOT of a release, you can checkout a tag. For Flink 1.4.0 this would be git checkout release 1.4.0 instead of git checkout release 1.4.

No plugin found for prefix 'gcloud' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]

I'm trying to deploy and run Google-pubsub sample code in Google app engine by this read me file. While running the deploy command I encounter below build error.
E:\java\cloud-pubsub-samples-java-master>mvn gcloud:deploy -Dgcloud.version=1 -DskipTests=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] pubsub-pull-sample
[INFO] Example for the Google Cloud Pub/Sub on Google App Engine.
[INFO] Cloud Dataflow Examples
[INFO] cloud-pubsub-samples-java
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Could not find artifact org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in central (https://repo.maven.apache.org/maven2)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 9.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 8.9 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] pubsub-pull-sample ................................. SKIPPED
[INFO] Example for the Google Cloud Pub/Sub on Google App Engine. SKIPPED
[INFO] Cloud Dataflow Examples ............................ SKIPPED
[INFO] cloud-pubsub-samples-java .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.167 s
[INFO] Finished at: 2016-08-21T22:20:45+05:30
[INFO] Final Memory: 13M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'gcloud' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\JAISON.G\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
This means that you haven't included the gcloud maven plugin in pom.xml. But you should no longer use gcloud, rather using appengine. See the documentation here.

Javascript build fails

I tried to do a javascript build with an existing working project but it gives me a build error like below, any idea ?
The project is working for Android and IOS, I did the build without any changes of settings or whatever
Full stack Trace :
Executing: /home/ec2-user/jdk1.8.0_45/bin/java -Dretrolambda.inputDir=/tmp/build4395325875721494407xxx/tmpClasses -Dretrolambda.classpath=/tmp/build4395325875721494407xxx/tmpClasses:/tmp/temp6791530583283105825.jar -Dretrolambda.outputDir=/tmp/build4395325875721494407xxx/tmpClasses_retrolamda -Dretrolambda.bytecodeVersion=49 -jar /tmp/temp3309944789126593083.jar Retrolambda 2.0.3
Bytecode version: 49 (Java 5)
Default methods: false
Input directory: /tmp/build4395325875721494407xxx/tmpClasses
Output directory: /tmp/build4395325875721494407xxx/tmpClasses_retrolamda
Classpath: /tmp/build4395325875721494407xxx/tmpClasses:/tmp/temp6791530583283105825.jar
Executing: /home/ec2-user/javascript/apache-maven-3.2.5/bin/mvn -e clean package [INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for nl.aalease.apps:Main:war:1.0
[WARNING] 'dependencies.dependency.systemPath' for ca.weblite:codename1-core:jar should not point at files within the project directory, ${basedir}/lib/CodenameOne.jar will be unresolvable by dependent projects # line 24, column 25
[WARNING] 'dependencies.dependency.systemPath' for ca.weblite:codename1-factory:jar should not point at files within the project directory, ${basedir}/lib/Factory.jar will be unresolvable by dependent projects # line 32, column 25
[WARNING] 'dependencies.dependency.systemPath' for ca.weblite:codename1-core-hello:jar should not point at files within the project directory, ${basedir}/lib/app.jar will be unresolvable by dependent projects # line 40, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Main 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # Main ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # Main ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # Main ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 50 source files to /tmp/build4395325875721494407xxx/target/classes
[WARNING] /tmp/build4395325875721494407xxx/src/main/java/com/codename1/impl/html5/Stub.java: /tmp/build4395325875721494407xxx/src/main/java/com/codename1/impl/html5/Stub.java uses or overrides a deprecated API.
[WARNING] /tmp/build4395325875721494407xxx/src/main/java/com/codename1/impl/html5/Stub.java: Recompile with -Xlint:deprecation for details.
[WARNING] /tmp/build4395325875721494407xxx/src/main/java/com/codename1/teavm/ext/localforage/LocalForage.java: Some input files use unchecked or unsafe operations.
[WARNING] /tmp/build4395325875721494407xxx/src/main/java/com/codename1/teavm/ext/localforage/LocalForage.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # Main ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /tmp/build4395325875721494407xxx/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # Main ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # Main ---
[INFO] No tests to run.
[INFO]
[INFO] --- teavm-maven-plugin:0.3.0-cn1-039:build-javascript (web-client) # Main ---
[INFO] Preparing classpath for JavaScript generation
[INFO] Using the following classpath for JavaScript generation: /tmp/build4395325875721494407xxx/lib/CodenameOne.jar:/tmp/build4395325875721494407xxx/lib/Factory.jar:/tmp/build4395325875721494407xxx/lib/app.jar:/home/ec2-user/.m2/repository/org/teavm/teavm-classlib/0.3.0-cn1-039/teavm-classlib-0.3.0-cn1-039.jar:/home/ec2-user/.m2/repository/org/teavm/teavm-platform/0.3.0-cn1-039/teavm-platform-0.3.0-cn1-039.jar:/home/ec2-user/.m2/repository/org/teavm/teavm-core/0.3.0-cn1-039/teavm-core-0.3.0-cn1-039.jar:/home/ec2-user/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/ec2-user/.m2/repository/org/ow2/asm/asm-debug-all/5.0.3/asm-debug-all-5.0.3.jar:/home/ec2-user/.m2/repository/com/carrotsearch/hppc/0.6.1/hppc-0.6.1.jar:/home/ec2-user/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/home/ec2-user/.m2/repository/com/jcraft/jzlib/1.1.3/jzlib-1.1.3.jar:/home/ec2-user/.m2/repository/joda-time/joda-time/2.7/joda-time-2.7.jar:/home/ec2-user/.m2/repository/org/teavm/teavm-jso/0.3.0-cn1-039/teavm-jso-0.3.0-cn1-039.jar:/home/ec2-user/.m2/repository/org/teavm/teavm-dom/0.3.0-cn1-039/teavm-dom-0.3.0-cn1-039.jar:/home/ec2-user/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/home/ec2-user/.m2/repository/org/mitre/dsmiley/httpproxy/smiley-http-proxy-servlet/1.6/smiley-http-proxy-servlet-1.6.jar:/home/ec2-user/.m2/repository/org/apache/httpcomponents/httpclient/4.3.4/httpclient-4.3.4.jar:/home/ec2-user/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/ec2-user/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/ec2-user/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/tmp/build4395325875721494407xxx/target/classes
[INFO] Building JavaScript file
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:16 min
[INFO] Finished at: 2016-02-09T05:28:02-05:00
[INFO] Final Memory: 17M/839M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.teavm:teavm-maven-plugin:0.3.0-cn1-039:build-javascript (web-client) on project Main: Unexpected error occured: -1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.teavm:teavm-maven-plugin:0.3.0-cn1-039:build-javascript (web-client) on project Main: Unexpected error occured
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.MojoExecutionException: Unexpected error occured
at org.teavm.maven.BuildJavascriptMojo.execute(BuildJavascriptMojo.java:261)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:400)
at java.util.ArrayList.get(ArrayList.java:413)
at org.teavm.javascript.Renderer.visitStatements(Renderer.java:2035)
at org.teavm.javascript.Renderer.visit(Renderer.java:931)
at org.teavm.javascript.ast.ConditionalStatement.acceptVisitor(ConditionalStatement.java:48)
at org.teavm.javascript.Renderer.visitStatements(Renderer.java:2035)
at org.teavm.javascript.Renderer.visit(Renderer.java:1059)
at org.teavm.javascript.ast.BlockStatement.acceptVisitor(BlockStatement.java:34)
at org.teavm.javascript.Renderer.visitStatements(Renderer.java:2032)
at org.teavm.javascript.Renderer.visit(Renderer.java:1059)
at org.teavm.javascript.ast.BlockStatement.acceptVisitor(BlockStatement.java:34)
at org.teavm.javascript.Renderer.visitStatements(Renderer.java:2032)
at org.teavm.javascript.Renderer.visit(Renderer.java:910)
at org.teavm.javascript.ast.SequentialStatement.acceptVisitor(SequentialStatement.java:34)
at org.teavm.javascript.Renderer$MethodBodyRenderer.visit(Renderer.java:752)
at org.teavm.javascript.ast.AsyncMethodNode.acceptVisitor(AsyncMethodNode.java:51)
at org.teavm.javascript.Renderer.renderBody(Renderer.java:604)
at org.teavm.javascript.Renderer.renderMethodBodies(Renderer.java:404)
at org.teavm.javascript.Renderer.render(Renderer.java:302)
at org.teavm.vm.TeaVM.build(TeaVM.java:441)
at org.teavm.tooling.TeaVMTool.generate(TeaVMTool.java:299)
at org.teavm.maven.BuildJavascriptMojo.execute(BuildJavascriptMojo.java:256)
... 21 more
[ERROR]
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
That seems to be an issue with the current implementation of TeaVM that we are using for the JavaScript port.
We are in the process of updating the VM to the latest version which will hopefully resolve that issue.
I've added an issue to our issue tracker to track the status more effectively.

Error on using camel cxf "No binding factory... http://schemas.xmlsoap.org/soap/ registered" (but works in eclipse)

In my camel app i am creating cxf endpoints in java dsl:
CxfEndpoint cxf = new CxfEndpoint(rtdmUrl, new CxfComponent(this.getContext()));
cxf.setServiceClass(EventPortType.class);
process.process(rtdmSetNameFactory.get(eventName)).to(cxf).process(handleRtdmAnswer);
If try to run this route i get:
Exception in thread "main" org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: End
point[http://localhost:8088/mockEventSoapBinding]. Reason: org.apache.cxf.service.factory.ServiceConstructionException:
Could not resolve a binding for null
...
Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/soap/ registered.
But if i run main[] from within eclipse (called in a #Test with same configuration) it is working fine!?
My jar is built with maven-assembly-plugin (executable jar with all dependencies)
I hope/think this is only a configuration problem or is related to how i set up the cxf endpoint.
Additional info for bounty hunters
I created a minimal example that reproduces the error:
https://bitbucket.org/moritz_loeser/cxftests/src
It contains a test that calls main() this test is working if you change the path in the route (it creates a exchange per file, but file content is ignored). I used soapUi (project file within above repository) to mock the web service. On my machine the test works fine but running mvn package and then java -jar cxfTests-1.0-SNAPSHOT-jar-with-dependencies.jar from target folder fails.
i just tried: mvn test is also working
this is the dependency tree:
[INFO] com.sas:cep-adapter-java:jar:1.0-SNAPSHOT
[INFO] +- com.sas:dfESP-component:jar:1.0-SNAPSHOT:compile
[INFO] | \- dfx-esp-api:api:jar:2.2-post:compile
[INFO] +- com.sas.o2:RTDM_general_client:jar:0.0.1-SNAPSHOT:compile
[INFO] +- com.google.inject:guice:jar:3.0:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- com.google.inject.extensions:guice-multibindings:jar:3.0:compile
[INFO] +- com.google.guava:guava:jar:16.0.1:compile
[INFO] +- joda-time:joda-time:jar:2.3:compile
[INFO] +- org.apache.camel:camel-core:jar:2.13.1:compile
[INFO] | \- com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
[INFO] +- org.apache.camel:camel-ftp:jar:2.13.1:compile
[INFO] | +- com.jcraft:jsch:jar:0.1.50:compile
[INFO] | \- commons-net:commons-net:jar:3.3:compile
[INFO] +- org.apache.camel:camel-cxf:jar:2.13.1:compile
[INFO] | +- org.apache.camel:camel-spring:jar:2.13.1:compile
[INFO] | | +- org.springframework:spring-aop:jar:3.2.8.RELEASE:compile
[INFO] | | \- org.springframework:spring-tx:jar:3.2.8.RELEASE:compile
[INFO] | +- org.apache.camel:camel-cxf-transport:jar:2.13.1:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.11:compile
[INFO] | | +- org.apache.cxf:cxf-api:jar:2.7.11:compile
[INFO] | | | +- org.codehaus.woodstox:woodstox-core-asl:jar:4.2.1:compile
[INFO] | | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | | +- org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] | | | +- org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[INFO] | | | \- wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] | | +- org.apache.cxf:cxf-rt-core:jar:2.7.11:compile
[INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
[INFO] | | +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.11:compile
[INFO] | | \- org.apache.cxf:cxf-rt-transports-http:jar:2.7.11:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.11:compile
[INFO] | | +- xml-resolver:xml-resolver:jar:1.2:compile
[INFO] | | +- asm:asm:jar:3.3.1:compile
[INFO] | | +- org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.11:compile
[INFO] | | \- org.apache.cxf:cxf-rt-ws-addr:jar:2.7.11:compile
[INFO] | | \- org.apache.cxf:cxf-rt-ws-policy:jar:2.7.11:compile
[INFO] | | \- org.apache.neethi:neethi:jar:3.0.3:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-security-oauth:jar:2.7.11:compile
[INFO] | | \- net.oauth.core:oauth-provider:jar:20100527:compile
[INFO] | | \- net.oauth.core:oauth:jar:20100527:compile
[INFO] | +- org.springframework:spring-core:jar:3.2.8.RELEASE:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- org.springframework:spring-beans:jar:3.2.8.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:3.2.8.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:3.2.8.RELEASE:compile
[INFO] | +- org.apache.cxf:cxf-rt-features-clustering:jar:2.7.11:compile
[INFO] | \- org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.11:compile
[INFO] | \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.11:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.7:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.7:compile
[INFO] +- org.slf4j:jul-to-slf4j:jar:1.7.7:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.apache.camel:camel-test:jar:2.13.0:test
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] +- org.mockftpserver:MockFtpServer:jar:2.4:compile
[INFO] +- org.jukito:jukito:jar:1.4:compile
[INFO] | +- org.mockito:mockito-core:jar:1.9.5:compile
[INFO] | | \- org.objenesis:objenesis:jar:1.0:compile
[INFO] | \- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
[INFO] \- org.hamcrest:hamcrest-all:jar:1.3:compile
My main method look like this:
public static void main(final String... args) throws Exception {
Injector i;
if (args.length < 1 || Strings.isNullOrEmpty(args[0])) {
i = Guice.createInjector(new CepModule());
} else {
i = Guice.createInjector(new CepModule(args[0]));
}
OurMain main = i.getInstance(OurMain.class);
// eliminates logging to java.util.logger
SLF4JBridgeHandler.removeHandlersForRootLogger();
// redirects all java.util.logger stuff to slf4j
SLF4JBridgeHandler.install();
//i.getInstance(RouteControl.class).startAll();
main.enableHangupSupport();
main.run();
}
As stated before the test that works in eclipse just runs this method with same configuration file as the test that throws this error (run from console java -jar thejat.jar).
I had similar error while migrating cxf from 2.3.1 to 2.6.6.
In my case like in post before:
It seems that assembly-plugin messes up configuration files (overriding
in not specific order). So the solution is don't use it! But use shade
plugin like here: How to package an Apache CXF application into a
monolithic JAR with the Maven "shade" plugin
but I should tried add only :
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/cxf/bus-extensions.txt</resource>
</transformer>
(answer in that post too), not all transformenrs, and I don't need buildtools
i found an answer on a not so clean path but the final hint came from here: http://cxf.547215.n5.nabble.com/Error-on-using-camel-cxf-quot-No-binding-factory-http-schemas-xmlsoap-org-soap-registered-but-works--td5745738.html
It seems that assembly-plugin messes up configuration files (overriding in not specific order). So the solution is don't use it! But use shade plugin like here:
How to package an Apache CXF application into a monolithic JAR with the Maven "shade" plugin
(Answer by corneil)
The only problem i have with it: i don't understand how to properly choose files and transformers. Do i need all of them? Which file is producing my specific error?
One solution would also be to use cxf-bundle-minimal. This works with the assembly-plugin. Although the jar file gets bigger.

Resources