[ 
https://issues.apache.org/jira/browse/CXF-7973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16770868#comment-16770868
 ] 

Jiri Ondrusek commented on CXF-7973:
------------------------------------

PR: https://github.com/apache/cxf/pull/511

> Add NPE guard for jetty and undertow threads configuration in blueprint (to 
> prevent NPE during karaf-quickstart/../Keycloak-cxf quickstarts)
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-7973
>                 URL: https://issues.apache.org/jira/browse/CXF-7973
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>            Reporter: Jiri Ondrusek
>            Assignee: Freeman Fang
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Run quickstart security/keycloak/keycloak-cxf according to 
> [README.md|https://github.com/jboss-fuse/karaf-quickstarts/blob/7.x.redhat-7-x/security/keycloak/keycloak-cxf/README.md]
> Bundle deployment fails with following error:
> {noformat}2019-02-14 10:50:53,707 | ERROR | .3.0.redhat-SNAPSHOT | 
> o.a.a.b.c.BlueprintContainerImpl | 51 - org.apache.aries.blueprint.core - 
> 1.9.0 | Unable to start blueprint container for bundle 
> keycloak-cxf/7.3.0.redhat-SNAPSHOT
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to 
> initialize bean kc-cxf-endpoint-config
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:593)
>  ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:703)
>  ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
>  ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) 
> ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
>       at 
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) 
> ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
>  ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190)
>  ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:716)
>  ~[51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:413)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
>  [51:org.apache.aries.blueprint.core:1.9.0]
>       at 
> org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
>  [?:?]
>       at 
> org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
>  [?:?]
>       at 
> org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
>  [?:?]
>       at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) 
> [?:?]
>       at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) [?:?]
>       at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
> [?:?]
>       at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
> [?:?]
>       at org.apache.karaf.bundle.command.Install.execute(Install.java:115) 
> [121:org.apache.karaf.bundle.core:4.2.0.fuse-730017]
>       at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) 
> [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) 
> [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) 
> [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [145:org.apache.karaf.shell.core:4.2.0.fuse-730017]
>       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) [?:?]
> Caused by: java.lang.RuntimeException: Could not process configuration.
>       at 
> org.apache.cxf.transport.http_undertow.blueprint.UndertowHTTPServerEngineFactoryHolder.init(UndertowHTTPServerEngineFactoryHolder.java:180)
>  ~[?:?]
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:?]
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:?]
>       at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
>       at 
> org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:331)
>  ~[?:?]
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:838) 
> ~[?:?]
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:591)
>  ~[?:?]
>       ... 40 more
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.cxf.transport.http_undertow.blueprint.UndertowHTTPServerEngineFactoryHolder.init(UndertowHTTPServerEngineFactoryHolder.java:156)
>  ~[?:?]
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:?]
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:?]
>       at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
>       at 
> org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:331)
>  ~[?:?]
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:838) 
> ~[?:?]
>       at 
> org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:591)
>  ~[?:?]
>       ... 40 more{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to