Open xiazhao2015 opened 8 years ago
Issue is reproducible with latest code here: fabric8/cdi-camel-mq:2.2.97-SNAPSHOT
oc logs -f cdi-camel-mq-2-udlff Executing /deployments/bin/run ... Launching application in folder: /deployments Running java -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/jolokia.properties,useSslClientAuthentication=true,extraClientCheck=true,protocol=https,caCert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt,clientPrincipal=cn=system:master-proxy -classpath .:/deployments/lib/cdi-camel-mq.jar:/deployments/lib/camel-core-2.16.2.jar:/deployments/lib/slf4j-api-1.6.6.jar:/deployments/lib/jaxb-core-2.2.11.jar:/deployments/lib/jaxb-impl-2.2.11.jar:/deployments/lib/camel-cdi-2.16.2.jar:/deployments/lib/deltaspike-core-api-1.5.2.jar:/deployments/lib/deltaspike-core-impl-1.5.2.jar:/deployments/lib/activemq-camel-5.12.1.jar:/deployments/lib/camel-jms-2.16.2.jar:/deployments/lib/camel-spring-2.16.2.jar:/deployments/lib/spring-aop-4.1.9.RELEASE.jar:/deployments/lib/aopalliance-1.0.jar:/deployments/lib/spring-jms-4.1.9.RELEASE.jar:/deployments/lib/spring-core-4.1.9.RELEASE.jar:/deployments/lib/spring-messaging-4.1.9.RELEASE.jar:/deployments/lib/spring-context-4.1.9.RELEASE.jar:/deployments/lib/spring-expression-4.1.9.RELEASE.jar:/deployments/lib/spring-tx-4.1.9.RELEASE.jar:/deployments/lib/spring-beans-4.1.9.RELEASE.jar:/deployments/lib/activemq-spring-5.12.1.jar:/deployments/lib/xbean-spring-3.18.jar:/deployments/lib/activemq-broker-5.12.1.jar:/deployments/lib/activemq-openwire-legacy-5.12.1.jar:/deployments/lib/geronimo-jta_1.0.1B_spec-1.0.1.jar:/deployments/lib/commons-pool2-2.4.2.jar:/deployments/lib/activemq-pool-5.12.1.jar:/deployments/lib/activemq-jms-pool-5.12.1.jar:/deployments/lib/geronimo-jms_1.1_spec-1.1.1.jar:/deployments/lib/activemq-client-5.12.1.jar:/deployments/lib/hawtbuf-1.11.jar:/deployments/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar:/deployments/lib/fabric8-cdi-2.2.89-tests.jar:/deployments/lib/fabric8-annotations-2.2.89.jar:/deployments/lib/kubernetes-api-2.2.89.jar:/deployments/lib/validation-api-1.1.0.Final.jar:/deployments/lib/json-20151123.jar:/deployments/lib/dnsjava-2.1.7.jar:/deployments/lib/kubernetes-client-1.3.67.jar:/deployments/lib/kubernetes-model-1.0.41.jar:/deployments/lib/jackson-module-jaxb-annotations-2.6.3.jar:/deployments/lib/okhttp-2.7.2.jar:/deployments/lib/okio-1.6.0.jar:/deployments/lib/logging-interceptor-2.7.2.jar:/deployments/lib/okhttp-ws-2.7.2.jar:/deployments/lib/jul-to-slf4j-1.7.13.jar:/deployments/lib/jackson-databind-2.7.0.jar:/deployments/lib/jackson-annotations-2.7.0.jar:/deployments/lib/fabric8-utils-2.2.89.jar:/deployments/lib/jackson-core-2.6.4.jar:/deployments/lib/jackson-dataformat-yaml-2.6.4.jar:/deployments/lib/snakeyaml-1.15.jar:/deployments/lib/javaee-api-7.0.jar:/deployments/lib/javax.mail-1.5.0.jar:/deployments/lib/activation-1.1.jar:/deployments/lib/plexus-utils-3.0.22.jar:/deployments/lib/weld-se-2.3.2.Final.jar:/deployments/lib/weld-core-2.3.2.Final.jar:/deployments/lib/weld-api-2.3.Final.jar:/deployments/lib/weld-spi-2.3.Final.jar:/deployments/lib/jboss-classfilewriter-1.1.2.Final.jar:/deployments/lib/jboss-annotations-api_1.2_spec-1.0.0.Final.jar:/deployments/lib/guava-18.0.jar:/deployments/lib/jboss-el-api_3.0_spec-1.0.0.Alpha1.jar:/deployments/lib/jboss-interceptors-api_1.2_spec-1.0.0.Final.jar:/deployments/lib/jboss-logging-3.2.1.Final.jar:/deployments/lib/deltaspike-cdictrl-weld-1.5.2.jar:/deployments/lib/deltaspike-cdictrl-api-1.5.2.jar:/deployments/lib/slf4j-log4j12-1.7.12.jar:/deployments/lib/log4j-1.2.17.jar org.apache.camel.cdi.Main I> No access restrictor found, access to all MBean is allowed Jolokia: Agent started with URL https://172.17.0.13:8778/jolokia/ 2016-02-01 05:17:15,700 [main ] INFO Version - WELD-000900: 2.3.2 (Final) Feb 01, 2016 5:17:15 AM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage INFO: Computed the following DeltaSpike ProjectStage: Production 2016-02-01 05:17:16,040 [main ] INFO Bootstrap - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously. 2016-02-01 05:17:16,289 [main ] INFO Event - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension.vetoBeans(@Observes ProcessAnnotatedType, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds. 2016-02-01 05:17:16,296 [main ] INFO Event - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.message.MessageBundleExtension.detectInterfaces(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds. 2016-02-01 05:17:16,303 [main ] INFO Event - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.interceptor.GlobalInterceptorExtension.promoteInterceptors(@Observes ProcessAnnotatedType, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds. 2016-02-01 05:17:16,315 [main ] INFO Event - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.camel.cdi.internal.CamelExtension.detectRouteBuilders(@Observes ProcessAnnotatedType<?>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds. Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.jmx.MBeanExtension activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.interceptor.GlobalInterceptorExtension activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true Feb 01, 2016 5:17:16 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult INFO: class: org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension activated=true 2016-02-01 05:17:16,404 [weld-worker-1 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.WeldJUnitRunner because of underlying class loading error: Type org.junit.runners.BlockJUnit4ClassRunner not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,405 [weld-worker-1 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.deltaspike.DeltaspikeTestBase because of underlying class loading error: Type org.jboss.shrinkwrap.api.asset.Asset not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,408 [weld-worker-2 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.ClientProducer$1 because of underlying class loading error: Type org.easymock.IAnswer not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,410 [weld-worker-1 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.internal.endpoints.EnpointsInternalTest because of underlying class loading error: Type org.junit.rules.ExpectedException not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,416 [weld-worker-2 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.ClientProducer because of underlying class loading error: Type org.easymock.IAnswer not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,416 [weld-worker-2 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.nonamespace.NoNamespaceTest because of underlying class loading error: Type org.junit.rules.ExpectedException not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,419 [weld-worker-1 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.internal.ExtensionInternalTest because of underlying class loading error: Type org.jboss.shrinkwrap.api.spec.WebArchive not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,419 [weld-worker-2 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.external.ExtensionExternalTest because of underlying class loading error: Type org.jboss.shrinkwrap.api.spec.WebArchive not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:16,419 [weld-worker-2 ] INFO Bootstrap - WELD-000119: Not generating any bean definitions from io.fabric8.cdi.weld.internal.brokenfactory.BrokenFactoryInternalTest because of underlying class loading error: Type org.junit.rules.ExpectedException not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-02-01 05:17:17,182 [weld-worker-2 ] WARN Validator - WELD-001473: javax.enterprise.inject.spi.Bean implementation org.apache.camel.cdi.internal.CamelContextBean@7d322cad declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with a passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface. Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type ActiveMQComponent with qualifiers @ServiceName at injection point [BackedAnnotatedField] @Inject @ServiceName @Alias io.fabric8.quickstarts.camelcdi.MyRoutes.activeMQComponent at io.fabric8.quickstarts.camelcdi.MyRoutes.activeMQComponent(MyRoutes.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:359)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Issue reproducible with latest code: cdi-camel-mq:2.2.98-SNAPSHOT
Issue reproducible with latest code: cdi-camel-mq:2.2.104-SNAPSHOT
Reproduce with latest code: cdi-camel-mq:2.2.106-SNAPSHOT
OSE/Mgmt Console M M
Version-Release number of selected component (if applicable): oc v3.1.1.5 kubernetes v1.1.0-origin-1107-g4c8e6f4 Firefox 43.0.4 Apache Maven 3.2.2 Java version: 1.8.0_65
Steps to Reproduce:
Actual Result: Application pod is CrashLoopBackOff because failed to start up
Expected Result: Application should be able to start up
Additional info: full logs: