short addition:
please pull the latest change and try it again.

regards,
gerhard



2014-05-20 11:46 GMT+02:00 Gerhard Petracek <[email protected]>:

> hi heiko,
>
> the only way to get around that WAS8 issue is to deactivate
> org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator (it
> implements Deactivatable).
>
> regards,
> gerhard
>
>
>
> 2014-05-20 11:36 GMT+02:00 <[email protected]>:
>
> Hello,
>>
>> we've come across an issue with Version 0.7 and even 0.8-SNAPSHOT under
>> WebSphere 8 in the JSF module. When the application is started the
>> following stack trace occurs.
>>
>> I've debugged into this a bit more. The SPI extension ViewConfigExtension
>> is present and exists and the observers are correctly called, however it
>> seems that afterwards within the ViewConfigResolverProducer the
>> ViewConfigExtension is not correctly injected. The problem seems to be
>> related to WAS 8 and not WAS 8.5 as the liberty profile works.
>>
>> I've changed the producer in the following way which made it work under
>> WAS 8.
>>
>>     @Produces
>>     @ApplicationScoped
>>     public ViewConfigResolver createViewConfigResolver()
>>     {
>>         if (viewConfigExtension == null)
>>         {
>>             viewConfigExtension =
>> BeanProvider.getContextualReference(ViewConfigExtension.class);
>>         }
>>
>>         ...
>>     }
>>
>>
>> Can somebody help out what might happen here? WebSphere 8 uses a rather
>> old version of OWB, but still it would be great if deltaspike would support
>> it.
>>
>> Thanks,
>>
>> Heiko
>>
>> [20.05.14 10:52:52:745 CEST] 00000025 webapp        E
>> com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated
>> SRVE0283E: Es wurde eine Ausnahme beim Initialisieren des Kontextes
>> abgefangen: {0}
>>                                  java.lang.NullPointerException
>>         at
>> org.apache.deltaspike.jsf.impl.config.view.ViewConfigResolverProducer.createViewConfigResolver(ViewConfigResolverProducer.java:50)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>         at java.lang.reflect.Method.invoke(Method.java:611)
>>         at
>> org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:297)
>>         at
>> org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:98)
>>         at
>> org.apache.deltaspike.jsf.impl.config.view.ViewConfigResolverProducer_$$_javassist_31.createViewConfigResolver(ViewConfigResolverProducer_$$_javassist_31.java)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>         at java.lang.reflect.Method.invoke(Method.java:611)
>>         at
>> org.apache.webbeans.inject.InjectableMethods.doInjection(InjectableMethods.java:205)
>>         at
>> org.apache.webbeans.component.ProducerMethodBean.createDefaultInstance(ProducerMethodBean.java:204)
>>         at
>> org.apache.webbeans.component.ProducerMethodBean.createInstance(ProducerMethodBean.java:166)
>>         at
>> org.apache.webbeans.component.AbstractOwbBean.createNewInstance(AbstractOwbBean.java:216)
>>         at
>> org.apache.webbeans.portable.creation.AbstractProducer.produce(AbstractProducer.java:82)
>>         at
>> org.apache.webbeans.component.InjectionTargetWrapper.produce(InjectionTargetWrapper.java:142)
>>         at
>> org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:174)
>>         at
>> org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanInstanceBag.java:80)
>>         at
>> org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:226)
>>         at
>> org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:191)
>>         at
>> org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:135)
>>         at
>> org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:95)
>>         at
>> org.javassist.tmp.java.lang.Object_$$_javassist_30.getConfigDescriptors(Object_$$_javassist_30.java)
>>         at
>> org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator.validateViewConfigPaths(ViewConfigPathValidator.java:63)
>>         at
>> org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator.contextInitialized(ViewConfigPathValidator.java:52)
>>         at
>> com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1686)
>>         at
>> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
>>         at
>> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
>>         at
>> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
>>         at
>> com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
>>         at
>> com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
>>         at
>> com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
>>         at
>> com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
>>         at
>> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1164)
>>         at
>> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
>>         at
>> com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
>>         at
>> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
>>         at
>> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:770)
>>         at
>> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1361)
>>         at
>> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2162)
>>         at
>> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:446)
>>         at
>> com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
>>         at
>> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:389)
>>         at
>> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:117)
>>         at
>> com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:664)
>>         at
>> com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5468)
>>         at
>> com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5594)
>>         at
>> com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
>>         at
>> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:678)
>>         at
>> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:622)
>>         at
>> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1251)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>         at java.lang.reflect.Method.invoke(Method.java:611)
>>         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69)
>>         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>         at java.lang.reflect.Method.invoke(Method.java:611)
>>         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272)
>>         at
>> javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1152)
>>         at
>> java.security.AccessController.doPrivileged(AccessController.java:298)
>>         at
>> com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
>>         at
>> sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
>>         at
>> javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1146)
>>         at
>> javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:999)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:847)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:783)
>>         at
>> com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
>>         at
>> com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
>>         at
>> com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
>>         at
>> com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
>>         at
>> com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
>>         at
>> com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
>>         at
>> com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
>>         at
>> com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1819)
>>         at
>> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
>>         at
>> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>>         at
>> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
>>         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
>>         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
>>         at
>> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
>>         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
>>         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1702)
>>
>> --
>> Heiko Kopp
>>
>>
>> If you are not the addressee, please inform us immediately that you have
>> received this e-mail by mistake, and delete it. We thank you for your
>> support.
>>
>>
>

Reply via email to