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] ------------------------------------------------------------------------
Related
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.
I am using google-endpoint V2 on app engine standard, with firebase authentication.
When deploying locally, the server starts and runs fine. When a query is issued to access one of the endpointV2, I get an inconsistent behavior:
it works well for a bit (the endpoint returns with the expected payload), but sometimes gets stuck trying to contact https://servicecontrol.googleapis.com/v1/services/my-project-id.appspot.com:check.
It takes about a minute to timeout, then the next query may timeout or return properly...
Any idea of how to resolve that would be appreciated!
The logs in the devserver, for a failed query:
[INFO] GCLOUD: failed because of java.net.SocketTimeoutException: Timeout while fetching: https://servicecontrol.googleapis.com/v1/services/my-project-id.appspot.com:check
[INFO] GCLOUD: Aug 02, 2017 12:27:06 AM com.google.api.control.Client check
[INFO] GCLOUD: SEVERE: direct send of a check request service_name: "my-project-id.appspot.com"
[INFO] GCLOUD: operation {
[INFO] GCLOUD: operation_id: "7453fb02-56e3-48ec-856c-e25d09ccc792"
[INFO] GCLOUD: operation_name: "1.recipes_groceries_appspot_com.ApiadminPop"
[INFO] GCLOUD: consumer_id: "project:my-project-id"
[INFO] GCLOUD: start_time {
[INFO] GCLOUD: seconds: 1501658786
[INFO] GCLOUD: nanos: 76000000
[INFO] GCLOUD: }
[INFO] GCLOUD: end_time {
[INFO] GCLOUD: seconds: 1501658786
[INFO] GCLOUD: nanos: 76000000
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/referer"
[INFO] GCLOUD: value: "http://localhost:4200/_ah/api/static/proxy.html?jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en.4KxLsUEUJCA.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAGLTcCOh765ksalVtUgJb_uys4PUTu6HZA"
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/caller_ip"
[INFO] GCLOUD: value: "127.0.0.1"
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/user_agent"
[INFO] GCLOUD: value: "ESP"
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/service_agent"
[INFO] GCLOUD: value: "EF_JAVA/1.0.4"
[INFO] GCLOUD: }
[INFO] GCLOUD: }
[INFO] GCLOUD: failed because of java.net.SocketTimeoutException: Timeout while fetching: https://servicecontrol.googleapis.com/v1/services/my-project-id.appspot.com:check
[INFO] GCLOUD: Aug 02, 2017 12:27:06 AM com.google.api.control.ControlFilter doFilter
[INFO] GCLOUD: WARNING: the check did not succeed; the response null
[INFO] GCLOUD: Aug 02, 2017 12:27:06 AM com.google.api.server.spi.auth.GoogleAppEngineAuthenticator authenticate
[INFO] GCLOUD: INFO: appEngineUser = example#example.com
I am currently playing with kotlin, Spring social and Google app engine. I am trying to get back a number of followers every second.
Here is my code :
#Service
class SubscribeService {
var subscriber : Disposable? = null
var twitter : Twitter = TwitterTemplate(
"XXXAUTHXXX",
"XXXAUTHXXX",
"XXXAUTHXXX",
"XXXAUTHXXX")
fun subscribe() {
subscriber = Observable.interval(1, TimeUnit.SECONDS).subscribe {println(twitter.userOperations().getUserProfile("azeaze").followersCount)}
}
fun unsubscribe() {
subscriber?.dispose()
}
}
I get this exception when I execute subscribe function :
[INFO] io.reactivex.exceptions.OnErrorNotImplementedException: Can't make API call urlfetch.Fetch in a thread that is neither the original request thread nor a thread created by ThreadManager
[INFO] at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
[INFO] at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
[INFO] at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:74)
[INFO] at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:64)
[INFO] at io.reactivex.internal.operators.observable.ObservableInterval$IntervalObserver.run(ObservableInterval.java:83)
[INFO] at io.reactivex.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:39)
[INFO] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[INFO] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[INFO] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[INFO] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] at java.lang.Thread.run(Thread.java:748)
[INFO] Caused by: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call urlfetch.Fetch in a thread that is neither the original request thread nor a thread created by ThreadManager
[INFO] at com.google.apphosting.api.ApiProxy$CallNotFoundException.foreignThread(ApiProxy.java:844)
[INFO] at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:116)
[INFO] at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:40)
[INFO] at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.fetchResponse(URLFetchServiceStreamHandler.java:543)
[INFO] at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getInputStream(URLFetchServiceStreamHandler.java:422)
[INFO] at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getResponseCode(URLFetchServiceStreamHandler.java:275)
[INFO] at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:84)
[INFO] at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
[INFO] at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
[INFO] at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:99)
[INFO] at org.springframework.social.oauth1.OAuth1RequestInterceptor.intercept(OAuth1RequestInterceptor.java:48)
[INFO] at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:86)
[INFO] at org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:70)
[INFO] at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
[INFO] at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
[INFO] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:652)
[INFO] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:628)
[INFO] at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:303)
[INFO] at org.springframework.social.twitter.api.impl.UserTemplate.getUserProfile(UserTemplate.java:60)
[INFO] at tbetous.SubscribeService$test$1.accept(SubscribeService.kt:20)
[INFO] at tbetous.SubscribeService$test$1.accept(SubscribeService.kt:11)
[INFO] at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:60)
[INFO] ... 9 more
[INFO] Exception in thread "RxComputationThreadPool-1" io.reactivex.exceptions.OnErrorNotImplementedException: Can't make API call urlfetch.Fetch in a thread that is neither the original request thread nor a thread created by ThreadManager
[INFO] at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
[INFO] at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
[INFO] at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:74)
[INFO] at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:64)
[INFO] at io.reactivex.internal.operators.observable.ObservableInterval$IntervalObserver.run(ObservableInterval.java:83)
[INFO] at io.reactivex.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:39)
[INFO] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[INFO] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[INFO] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[INFO] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] at java.lang.Thread.run(Thread.java:748)
[INFO] Caused by: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call urlfetch.Fetch in a thread that is neither the original request thread nor a thread created by ThreadManager
[INFO] at com.google.apphosting.api.ApiProxy$CallNotFoundException.foreignThread(ApiProxy.java:844)
[INFO] at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:116)
[INFO] at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:40)
[INFO] at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.fetchResponse(URLFetchServiceStreamHandler.java:543)
[INFO] at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getInputStream(URLFetchServiceStreamHandler.java:422)
[INFO] at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getResponseCode(URLFetchServiceStreamHandler.java:275)
[INFO] at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:84)
[INFO] at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
[INFO] at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
[INFO] at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:99)
[INFO] at org.springframework.social.oauth1.OAuth1RequestInterceptor.intercept(OAuth1RequestInterceptor.java:48)
[INFO] at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:86)
[INFO] at org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:70)
[INFO] at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
[INFO] at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
[INFO] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:652)
[INFO] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:628)
[INFO] at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:303)
[INFO] at org.springframework.social.twitter.api.impl.UserTemplate.getUserProfile(UserTemplate.java:60)
[INFO] at tbetous.SubscribeService$test$1.accept(SubscribeService.kt:20)
[INFO] at tbetous.SubscribeService$test$1.accept(SubscribeService.kt:11)
[INFO] at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:60)
[INFO] ... 9 more
I am pretty sure it is something about google app engine. When I run my application I use mvn appengine:devserver. Can anyone help me ?
I found my solution. Thanks to this link. GAE does not work with RxJava beacause It does not respect thred restriction of Google standard environnent. I had to specify how RxJava have to create thread.
Here is my code :
val scheduler : Scheduler = Schedulers.from(ScheduledThreadPoolExecutor(3, ThreadManager.backgroundThreadFactory()))
RxJavaPlugins.setComputationSchedulerHandler { scheduler }
After that I can use RxJava :
subscriber = Observable.interval(1, TimeUnit.SECONDS)
.map { twitter.userOperations().getUserProfile("azeazeaz").followersCount }
.subscribe {it -> println(it)}
When attempting to upload a file to a Google App Engine Application running in the Java 8/Jetty 9 Compatible Managed VM environment, I get the following stack trace because the org.eclipse.jetty.util.MultiPartInputStreamParser$MultiPart class does NOT implement the java.io.Serializable interface.
I get the following exception:
[INFO] java.io.NotSerializableException: org.eclipse.jetty.util.MultiPartInputStreamParser$MultiPart
[INFO] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
[INFO] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
[INFO] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
[INFO] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[INFO] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[INFO] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
[INFO] at java.util.HashMap.internalWriteEntries(HashMap.java:1777)
[INFO] at java.util.HashMap.writeObject(HashMap.java:1354)
[INFO] at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
[INFO] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
[INFO] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[INFO] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[INFO] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
[INFO] at java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333)
[INFO] at java.util.HashMap.writeObject(HashMap.java:1354)
[INFO] at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
[INFO] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
[INFO] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[INFO] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[INFO] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
[INFO] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441)
[INFO] at java.util.Collections$SynchronizedMap.writeObject(Collections.java:2691)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
[INFO] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
[INFO] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[INFO] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[INFO] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
[INFO] at java.util.HashMap.internalWriteEntries(HashMap.java:1777)
[INFO] at java.util.HashMap.writeObject(HashMap.java:1354)
[INFO] at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
[INFO] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
[INFO] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[INFO] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[INFO] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
[INFO] at com.google.apphosting.runtime.SessionManagerUtil.serialize(SessionManagerUtil.java:28)
[INFO] at com.google.apphosting.runtime.DatastoreSessionStore.createEntityForSession(DatastoreSessionStore.java:73)
[INFO] at com.google.apphosting.runtime.DatastoreSessionStore.saveSession(DatastoreSessionStore.java:112)
[INFO] at com.google.apphosting.runtime.jetty9.SessionManager$AppEngineSession.save(SessionManager.java:145)
[INFO] at com.google.apphosting.runtime.jetty9.SaveSessionFilter.doFilter(SaveSessionFilter.java:43)
[INFO] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
[INFO] at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
[INFO] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
[INFO] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
[INFO] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
[INFO] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
[INFO] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
[INFO] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
[INFO] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
[INFO] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
[INFO] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
[INFO] at com.google.apphosting.vmruntime.jetty9.VmRuntimeWebAppContext.doScope(VmRuntimeWebAppContext.java:299)
[INFO] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
[INFO] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
[INFO] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
[INFO] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
[INFO] at org.eclipse.jetty.server.Server.handle(Server.java:497)
[INFO] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
[INFO] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
[INFO] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
[INFO] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
[INFO] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
[INFO] at java.lang.Thread.run(Thread.java:745)
As you see there:
[INFO] at com.google.apphosting.runtime.SessionManagerUtil.serialize(SessionManagerUtil.java:28)
[INFO] at com.google.apphosting.runtime.DatastoreSessionStore.createEntityForSession(DatastoreSessionStore.java:73)
[INFO] at com.google.apphosting.runtime.DatastoreSessionStore.saveSession(DatastoreSessionStore.java:112)
[INFO] at com.google.apphosting.runtime.jetty9.SessionManager$AppEngineSession.save(SessionManager.java:145)
[INFO] at com.google.apphosting.runtime.jetty9.SaveSessionFilter.doFilter(SaveSessionFilter.java:43)
server is trying to put MultiPartInputStreamParser into user Session (and save to database). You shouldn't do that.
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.