You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by Thomas Kernstock <t....@e-technologies.at> on 2020/04/06 18:36:22 UTC
Deltaspike 1.8.2 -> 1.9.3
Hi guys,
Me again. After a while I tried upgrading to 1.9.3 again.
Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
* Bean-validation
* JPA
* JSF (Proxy and Security)
* Partial-bean
When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
java.lang.NullPointerException
at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
at java.lang.Thread.run(Thread.java:748)
2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
java.lang.NullPointerException
at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
at java.lang.Thread.run(Thread.java:748)
I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
Any idea what I should check to avoid/repair this problem?
Br
Thomas
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Just found that the attached logs haven't been sent:
mvn-weld3_1_9.log:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.apache.deltaspike.cdictrl:deltaspike-cdictrl-weld:jar is missing. @ line 153, column 29
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.deltaspike.modules:deltaspike-test-control-module-impl:2.0.0-SNAPSHOT (D:\GITRepositories\deltaspike\deltaspike\modules\test-control\impl\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.deltaspike.cdictrl:deltaspike-cdictrl-weld:jar is missing. @ line 153, column 29
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
mvn-weld.log:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ line 483, column 29
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 483, column 29
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 483, column 29
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 483, column 29
@
[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR] The project org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT (D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml) has 5 errors
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ line 483, column 29
[ERROR]
[ERROR] The project org.apache.deltaspike.core:core-project:2.0.0-SNAPSHOT (D:\GITRepositories\deltaspike\deltaspike\core\pom.xml) has 5 errors
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 483, column 29
[ERROR]
[ERROR] The project org.apache.deltaspike.cdictrl:cdictrl-project:2.0.0-SNAPSHOT (D:\GITRepositories\deltaspike\deltaspike\cdictrl\pom.xml) has 5 errors
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 483, column 29
[ERROR]
[ERROR] The project org.apache.deltaspike.modules:modules-project:2.0.0-SNAPSHOT (D:\GITRepositories\deltaspike\deltaspike\modules\pom.xml) has 5 errors
[ERROR] 'dependencies.dependency.version' for javax.el:el-api:jar must be a valid version but is '${weld.el.api}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 463, column 30
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 466, column 29
[ERROR] 'dependencies.dependency.version' for org.apache.geronimo.specs:geronimo-interceptor_1.1_spec:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 471, column 29
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar must be a valid version but is '${weld.sfl4j}'. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 480, column 30
[ERROR] 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ org.apache.deltaspike:parent-code:2.0.0-SNAPSHOT, D:\GITRepositories\deltaspike\deltaspike\parent\code\pom.xml, line 483, column 29
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
-----Ursprüngliche Nachricht-----
Von: Thomas Kernstock <t....@e-technologies.at>
Gesendet: Mittwoch, 28. Juni 2023 18:27
An: users@deltaspike.apache.org
Betreff: AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi Mark,
I checked the whole project out from the master on github (https://github.com/apache/deltaspike/) and started maven with "mvn clean install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like I found it in the buildall.sh, except that -PWeld3 didn't work at all (see mvn-weld3_1_9.log).
I have to admit that I don't usually work with maven at all, so I'm clearly not very fit to solve the errors mentioned in the log. It seems that there are some properties missing like ${weld.el.api} but I couldn't find the definition in deltaspike\parent\code\pom.xml nor do I know which version I would need and where to set them.
By the way, I'm using:
Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
Maven home: D:\Java\apache-maven-3.9.3
Java version: 17.0.5, vendor: Azul Systems, Inc., runtime: C:\Program Files\Java\jdk17 Default locale: de_AT, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
What shall I do to build the project?
Lg
Thomas
-----Ursprüngliche Nachricht-----
Von: Mark Struberg <st...@yahoo.de.INVALID>
Gesendet: Sonntag, 25. Juni 2023 23:51
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi Thomas!
Could you do us a favour and test with the snaphot version of ds-2.0 to get some feedback?
In which case we would push forward with it soonish.
txs and LieGrue,
strub
> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Guys,
>
> I tried to move my projects from Payara 5 to Payara 6 using Deltaspike 1.9.4 including all Payara Libraries in the projects classpath.
>
> In one of these projects I'm using Deltaspike Repositories with
> @query() definitions. Now eclipse shows this error ->
>
> "The type javax.persistence.LockModeType cannot be resolved. It is indirectly referenced from required type org.apache.deltaspike.data.api.Query"
>
> which is understandable, because instead of javax.persistence.LockModeType it should reference jakarta.persistence.LockModeType which is actually on the classpath.
>
> So I can't use the recent release version anymore.
>
> Looking in the sourcecode on github I found, this is already changed in https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/Query.java and found that Mark committed this and other changes towards Jakarta in 2021 but its not included in 1.9.6 either.
>
> Are there any plans or dates when DeltaSpike 2.0 will be released?
>
> Best regards
>
> Thomas
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Sounds great, I will test it with my projects next week! Thanx a lot!
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Frühbeck <t....@gmail.com>
Gesendet: Dienstag, 10. Oktober 2023 18:59
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Depending on the target server I see different options.
On OWB: build seems to be working fine, you could just take current build or build you own On Weld:
imho currently broken: MessageBundle (only relevant, if you use it - hard exception in Weld on annotated interfaces)
Data: CMT/BMT strategy management seems to have disappeared, I had to disable BMT strategy completely I just took the relevant projects and added them to my current one, changed the DS-version accordingly and everthing works (not using MessageBundle!).
Thus I am instantly ready to switch to official build when available.
Thomas
Am Di., 10. Okt. 2023 um 15:12 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi Thomas,
>
> thanx for the fix and the info. Does this mean that I may use the
> Version
> 2.0 now to resolve my problem or was this the fix for Thomas Frühbeck ?
>
> I'm not sure if Deltaspike 2.0 will be maintained in future - since
> you all seem to be (understandably) very busy. Does it make sense to
> remove Deltaspike from my projects (which will be a huge effort) or
> are the some release plans so that we can use it with the current JEE Versions.
>
> br
> Thomas
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas Andraschko <an...@gmail.com>
> Gesendet: Donnerstag, 5. Oktober 2023 16:46
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> i fixed the OWB dependency version, maven build works fine now again.
>
> Am Do., 5. Okt. 2023 um 16:34 Uhr schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
>
> > Hi,
> >
> > unfortunately I have no experience with aquillian and furthermore
> > wouldn't even know where to start in deltaspike project. I guess it
> > is rather complex to try to understand everything it does. I wasn't
> > even able to build the release from the repository, because in
> > eclipse the maven project doesn't load correctly. So I'm afraid
> > working on the fix will not be possible for me too.
> >
> > Br
> > Thomas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas Andraschko <an...@gmail.com>
> > Gesendet: Donnerstag, 5. Oktober 2023 16:20
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> >
> > Hi guys,
> >
> > in theory we did the most work in the master. We would just need
> > some help to re-activate our arquillian tests and fix the result.
> > I just dont have enough time, probably same as other commiters.
> >
> > So if you can work on it, it would be great.
> >
> >
> >
> > Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <
> > fruehbeck@aon.at
> > >:
> >
> > > Hi Thomas,
> > >
> > > the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> > > reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> > > redesigned? me clueless :-/ For Weld only few adaptations
> > > necessary, the one I noted below seems to be one.
> > > My build works fine for me to finally move project to jakarta.
> > >
> > > Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > > > Hi Thomas
> > > >
> > > > Do you mean me?
> > > > Just for clarification - I'm using the jar files that are
> > > > already
> > > downloadable at http://repository.apache.org/snapshots/ . I didn't
> > > change the source!
> > > > Br
> > > > Thomas
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Thomas Frühbeck <fr...@aon.at>
> > > > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > > > An: users@deltaspike.apache.org
> > > > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> > > >
> > > > Did you move the META-INF/services files to jakarta namespace?
> > > > e.g.:
> > > >
> > >
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> > > >
> > > > inject.spi.Extension
> > > > There you find:
> > > > org.apache.deltaspike.data.impl.RepositoryExtension
> > > >
> > > > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> > > >> Hi Guys,
> > > >>
> > > >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from
> > > >> April but
> > > still can't deploy my project. Still a problem with some
> > > Deltaspike
> > > Dependencies:
> > > >>
> > > >>
> > > >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9]
> > > >> [SCHWERWIEGEND]
> > > [NCLS-CORE-00026] [javax.enterprise.system.core] [tid:
> > > _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> > > 1696337747693] [levelValue: 1000] [[
> > > >> Exception during lifecycle processing
> > > >> org.glassfish.deployment.common.DeploymentException: CDI
> > > >> deployment
> > > failure:WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >> -- WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >>
> > >
> >
>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi again,
Sorry if I bother you, but just checked the snapshot folders at https://repository.apache.org/content/groups/snapshots/org/apache/deltaspike/
The folder dates have changed to today, but the jar Files are still from April !? Do I miss here something? These were the folders that Charlee Chitsuk suggested for download, since my build didn't work at all.
Br
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Frühbeck <t....@gmail.com>
Gesendet: Dienstag, 10. Oktober 2023 18:59
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Depending on the target server I see different options.
On OWB: build seems to be working fine, you could just take current build or build you own On Weld:
imho currently broken: MessageBundle (only relevant, if you use it - hard exception in Weld on annotated interfaces)
Data: CMT/BMT strategy management seems to have disappeared, I had to disable BMT strategy completely I just took the relevant projects and added them to my current one, changed the DS-version accordingly and everthing works (not using MessageBundle!).
Thus I am instantly ready to switch to official build when available.
Thomas
Am Di., 10. Okt. 2023 um 15:12 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi Thomas,
>
> thanx for the fix and the info. Does this mean that I may use the
> Version
> 2.0 now to resolve my problem or was this the fix for Thomas Frühbeck ?
>
> I'm not sure if Deltaspike 2.0 will be maintained in future - since
> you all seem to be (understandably) very busy. Does it make sense to
> remove Deltaspike from my projects (which will be a huge effort) or
> are the some release plans so that we can use it with the current JEE Versions.
>
> br
> Thomas
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas Andraschko <an...@gmail.com>
> Gesendet: Donnerstag, 5. Oktober 2023 16:46
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> i fixed the OWB dependency version, maven build works fine now again.
>
> Am Do., 5. Okt. 2023 um 16:34 Uhr schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
>
> > Hi,
> >
> > unfortunately I have no experience with aquillian and furthermore
> > wouldn't even know where to start in deltaspike project. I guess it
> > is rather complex to try to understand everything it does. I wasn't
> > even able to build the release from the repository, because in
> > eclipse the maven project doesn't load correctly. So I'm afraid
> > working on the fix will not be possible for me too.
> >
> > Br
> > Thomas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas Andraschko <an...@gmail.com>
> > Gesendet: Donnerstag, 5. Oktober 2023 16:20
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> >
> > Hi guys,
> >
> > in theory we did the most work in the master. We would just need
> > some help to re-activate our arquillian tests and fix the result.
> > I just dont have enough time, probably same as other commiters.
> >
> > So if you can work on it, it would be great.
> >
> >
> >
> > Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <
> > fruehbeck@aon.at
> > >:
> >
> > > Hi Thomas,
> > >
> > > the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> > > reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> > > redesigned? me clueless :-/ For Weld only few adaptations
> > > necessary, the one I noted below seems to be one.
> > > My build works fine for me to finally move project to jakarta.
> > >
> > > Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > > > Hi Thomas
> > > >
> > > > Do you mean me?
> > > > Just for clarification - I'm using the jar files that are
> > > > already
> > > downloadable at http://repository.apache.org/snapshots/ . I didn't
> > > change the source!
> > > > Br
> > > > Thomas
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Thomas Frühbeck <fr...@aon.at>
> > > > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > > > An: users@deltaspike.apache.org
> > > > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> > > >
> > > > Did you move the META-INF/services files to jakarta namespace?
> > > > e.g.:
> > > >
> > >
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> > > >
> > > > inject.spi.Extension
> > > > There you find:
> > > > org.apache.deltaspike.data.impl.RepositoryExtension
> > > >
> > > > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> > > >> Hi Guys,
> > > >>
> > > >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from
> > > >> April but
> > > still can't deploy my project. Still a problem with some
> > > Deltaspike
> > > Dependencies:
> > > >>
> > > >>
> > > >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9]
> > > >> [SCHWERWIEGEND]
> > > [NCLS-CORE-00026] [javax.enterprise.system.core] [tid:
> > > _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> > > 1696337747693] [levelValue: 1000] [[
> > > >> Exception during lifecycle processing
> > > >> org.glassfish.deployment.common.DeploymentException: CDI
> > > >> deployment
> > > failure:WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >> -- WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.ext
> > > en
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >>
> > >
> >
>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Frühbeck <t....@gmail.com>.
Depending on the target server I see different options.
On OWB: build seems to be working fine, you could just take current build
or build you own
On Weld:
imho currently broken: MessageBundle (only relevant, if you use it -
hard exception in Weld on annotated interfaces)
Data: CMT/BMT strategy management seems to have disappeared, I had to
disable BMT strategy completely
I just took the relevant projects and added them to my current one, changed
the DS-version accordingly and everthing works (not using MessageBundle!).
Thus I am instantly ready to switch to official build when available.
Thomas
Am Di., 10. Okt. 2023 um 15:12 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi Thomas,
>
> thanx for the fix and the info. Does this mean that I may use the Version
> 2.0 now to resolve my problem or was this the fix for Thomas Frühbeck ?
>
> I'm not sure if Deltaspike 2.0 will be maintained in future - since you
> all seem to be (understandably) very busy. Does it make sense to remove
> Deltaspike from my projects (which will be a huge effort) or are the some
> release plans so that we can use it with the current JEE Versions.
>
> br
> Thomas
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas Andraschko <an...@gmail.com>
> Gesendet: Donnerstag, 5. Oktober 2023 16:46
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> i fixed the OWB dependency version, maven build works fine now again.
>
> Am Do., 5. Okt. 2023 um 16:34 Uhr schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
>
> > Hi,
> >
> > unfortunately I have no experience with aquillian and furthermore
> > wouldn't even know where to start in deltaspike project. I guess it is
> > rather complex to try to understand everything it does. I wasn't even
> > able to build the release from the repository, because in eclipse the
> > maven project doesn't load correctly. So I'm afraid working on the fix
> > will not be possible for me too.
> >
> > Br
> > Thomas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas Andraschko <an...@gmail.com>
> > Gesendet: Donnerstag, 5. Oktober 2023 16:20
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> >
> > Hi guys,
> >
> > in theory we did the most work in the master. We would just need some
> > help to re-activate our arquillian tests and fix the result.
> > I just dont have enough time, probably same as other commiters.
> >
> > So if you can work on it, it would be great.
> >
> >
> >
> > Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <
> > fruehbeck@aon.at
> > >:
> >
> > > Hi Thomas,
> > >
> > > the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> > > reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> > > redesigned? me clueless :-/ For Weld only few adaptations necessary,
> > > the one I noted below seems to be one.
> > > My build works fine for me to finally move project to jakarta.
> > >
> > > Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > > > Hi Thomas
> > > >
> > > > Do you mean me?
> > > > Just for clarification - I'm using the jar files that are already
> > > downloadable at http://repository.apache.org/snapshots/ . I didn't
> > > change the source!
> > > > Br
> > > > Thomas
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Thomas Frühbeck <fr...@aon.at>
> > > > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > > > An: users@deltaspike.apache.org
> > > > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> > > >
> > > > Did you move the META-INF/services files to jakarta namespace?
> > > > e.g.:
> > > >
> > >
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> > > >
> > > > inject.spi.Extension
> > > > There you find:
> > > > org.apache.deltaspike.data.impl.RepositoryExtension
> > > >
> > > > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> > > >> Hi Guys,
> > > >>
> > > >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from
> > > >> April but
> > > still can't deploy my project. Still a problem with some Deltaspike
> > > Dependencies:
> > > >>
> > > >>
> > > >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND]
> > > [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100
> > > _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> > > 1696337747693] [levelValue: 1000] [[
> > > >> Exception during lifecycle processing
> > > >> org.glassfish.deployment.common.DeploymentException: CDI
> > > >> deployment
> > > failure:WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >> -- WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >>
> > >
> >
>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Andraschko <an...@gmail.com>.
it means just that the build works again now and you can open it in the IDE
and try to fix (arquillian) tests.
The rough tasks are already done from the committers for 2.0, we just dont
have enough time to fix tests. Thomas F. is working on it currently.
I general many stuff of DS is already in the specs now (CDI, especially JSF
e.g.) but currently there is no alternative for Data.
I would try to check your applications if you can remove DS usages with the
new spec parts.
Am Di., 10. Okt. 2023 um 15:12 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi Thomas,
>
> thanx for the fix and the info. Does this mean that I may use the Version
> 2.0 now to resolve my problem or was this the fix for Thomas Frühbeck ?
>
> I'm not sure if Deltaspike 2.0 will be maintained in future - since you
> all seem to be (understandably) very busy. Does it make sense to remove
> Deltaspike from my projects (which will be a huge effort) or are the some
> release plans so that we can use it with the current JEE Versions.
>
> br
> Thomas
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas Andraschko <an...@gmail.com>
> Gesendet: Donnerstag, 5. Oktober 2023 16:46
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> i fixed the OWB dependency version, maven build works fine now again.
>
> Am Do., 5. Okt. 2023 um 16:34 Uhr schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
>
> > Hi,
> >
> > unfortunately I have no experience with aquillian and furthermore
> > wouldn't even know where to start in deltaspike project. I guess it is
> > rather complex to try to understand everything it does. I wasn't even
> > able to build the release from the repository, because in eclipse the
> > maven project doesn't load correctly. So I'm afraid working on the fix
> > will not be possible for me too.
> >
> > Br
> > Thomas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas Andraschko <an...@gmail.com>
> > Gesendet: Donnerstag, 5. Oktober 2023 16:20
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> >
> > Hi guys,
> >
> > in theory we did the most work in the master. We would just need some
> > help to re-activate our arquillian tests and fix the result.
> > I just dont have enough time, probably same as other commiters.
> >
> > So if you can work on it, it would be great.
> >
> >
> >
> > Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <
> > fruehbeck@aon.at
> > >:
> >
> > > Hi Thomas,
> > >
> > > the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> > > reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> > > redesigned? me clueless :-/ For Weld only few adaptations necessary,
> > > the one I noted below seems to be one.
> > > My build works fine for me to finally move project to jakarta.
> > >
> > > Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > > > Hi Thomas
> > > >
> > > > Do you mean me?
> > > > Just for clarification - I'm using the jar files that are already
> > > downloadable at http://repository.apache.org/snapshots/ . I didn't
> > > change the source!
> > > > Br
> > > > Thomas
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Thomas Frühbeck <fr...@aon.at>
> > > > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > > > An: users@deltaspike.apache.org
> > > > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> > > >
> > > > Did you move the META-INF/services files to jakarta namespace?
> > > > e.g.:
> > > >
> > >
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> > > >
> > > > inject.spi.Extension
> > > > There you find:
> > > > org.apache.deltaspike.data.impl.RepositoryExtension
> > > >
> > > > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> > > >> Hi Guys,
> > > >>
> > > >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from
> > > >> April but
> > > still can't deploy my project. Still a problem with some Deltaspike
> > > Dependencies:
> > > >>
> > > >>
> > > >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND]
> > > [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100
> > > _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> > > 1696337747693] [levelValue: 1000] [[
> > > >> Exception during lifecycle processing
> > > >> org.glassfish.deployment.common.DeploymentException: CDI
> > > >> deployment
> > > failure:WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >> -- WELD-001408: Unsatisfied dependencies for type
> > > RepositoryExtension with qualifiers @Default
> > > >> at injection point [BackedAnnotatedField] @Inject private
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on
> > > >> at
> > > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > > si
> > > on(RepositoryMetadataHandler.java:0)
> > > >>
> > >
> >
>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Thomas,
thanx for the fix and the info. Does this mean that I may use the Version 2.0 now to resolve my problem or was this the fix for Thomas Frühbeck ?
I'm not sure if Deltaspike 2.0 will be maintained in future - since you all seem to be (understandably) very busy. Does it make sense to remove Deltaspike from my projects (which will be a huge effort) or are the some release plans so that we can use it with the current JEE Versions.
br
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Andraschko <an...@gmail.com>
Gesendet: Donnerstag, 5. Oktober 2023 16:46
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
i fixed the OWB dependency version, maven build works fine now again.
Am Do., 5. Okt. 2023 um 16:34 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi,
>
> unfortunately I have no experience with aquillian and furthermore
> wouldn't even know where to start in deltaspike project. I guess it is
> rather complex to try to understand everything it does. I wasn't even
> able to build the release from the repository, because in eclipse the
> maven project doesn't load correctly. So I'm afraid working on the fix
> will not be possible for me too.
>
> Br
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas Andraschko <an...@gmail.com>
> Gesendet: Donnerstag, 5. Oktober 2023 16:20
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi guys,
>
> in theory we did the most work in the master. We would just need some
> help to re-activate our arquillian tests and fix the result.
> I just dont have enough time, probably same as other commiters.
>
> So if you can work on it, it would be great.
>
>
>
> Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <
> fruehbeck@aon.at
> >:
>
> > Hi Thomas,
> >
> > the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> > reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> > redesigned? me clueless :-/ For Weld only few adaptations necessary,
> > the one I noted below seems to be one.
> > My build works fine for me to finally move project to jakarta.
> >
> > Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > > Hi Thomas
> > >
> > > Do you mean me?
> > > Just for clarification - I'm using the jar files that are already
> > downloadable at http://repository.apache.org/snapshots/ . I didn't
> > change the source!
> > > Br
> > > Thomas
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Thomas Frühbeck <fr...@aon.at>
> > > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > > An: users@deltaspike.apache.org
> > > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> > >
> > > Did you move the META-INF/services files to jakarta namespace?
> > > e.g.:
> > >
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> > >
> > > inject.spi.Extension
> > > There you find:
> > > org.apache.deltaspike.data.impl.RepositoryExtension
> > >
> > > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> > >> Hi Guys,
> > >>
> > >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from
> > >> April but
> > still can't deploy my project. Still a problem with some Deltaspike
> > Dependencies:
> > >>
> > >>
> > >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND]
> > [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100
> > _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> > 1696337747693] [levelValue: 1000] [[
> > >> Exception during lifecycle processing
> > >> org.glassfish.deployment.common.DeploymentException: CDI
> > >> deployment
> > failure:WELD-001408: Unsatisfied dependencies for type
> > RepositoryExtension with qualifiers @Default
> > >> at injection point [BackedAnnotatedField] @Inject private
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > si
> > on
> > >> at
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > si
> > on(RepositoryMetadataHandler.java:0)
> > >> -- WELD-001408: Unsatisfied dependencies for type
> > RepositoryExtension with qualifiers @Default
> > >> at injection point [BackedAnnotatedField] @Inject private
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > si
> > on
> > >> at
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.exten
> > si
> > on(RepositoryMetadataHandler.java:0)
> > >>
> >
>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Andraschko <an...@gmail.com>.
i fixed the OWB dependency version, maven build works fine now again.
Am Do., 5. Okt. 2023 um 16:34 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi,
>
> unfortunately I have no experience with aquillian and furthermore
> wouldn't even know where to start in deltaspike project. I guess it is
> rather complex to try to understand everything it does. I wasn't even able
> to build the release from the repository, because in eclipse the maven
> project doesn't load correctly. So I'm afraid working on the fix will not
> be possible for me too.
>
> Br
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas Andraschko <an...@gmail.com>
> Gesendet: Donnerstag, 5. Oktober 2023 16:20
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi guys,
>
> in theory we did the most work in the master. We would just need some help
> to re-activate our arquillian tests and fix the result.
> I just dont have enough time, probably same as other commiters.
>
> So if you can work on it, it would be great.
>
>
>
> Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <
> fruehbeck@aon.at
> >:
>
> > Hi Thomas,
> >
> > the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> > reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> > redesigned? me clueless :-/ For Weld only few adaptations necessary,
> > the one I noted below seems to be one.
> > My build works fine for me to finally move project to jakarta.
> >
> > Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > > Hi Thomas
> > >
> > > Do you mean me?
> > > Just for clarification - I'm using the jar files that are already
> > downloadable at http://repository.apache.org/snapshots/ . I didn't
> > change the source!
> > > Br
> > > Thomas
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Thomas Frühbeck <fr...@aon.at>
> > > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > > An: users@deltaspike.apache.org
> > > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> > >
> > > Did you move the META-INF/services files to jakarta namespace?
> > > e.g.:
> > >
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> > >
> > > inject.spi.Extension
> > > There you find:
> > > org.apache.deltaspike.data.impl.RepositoryExtension
> > >
> > > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> > >> Hi Guys,
> > >>
> > >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from April
> > >> but
> > still can't deploy my project. Still a problem with some Deltaspike
> > Dependencies:
> > >>
> > >>
> > >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND]
> > [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100
> > _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> > 1696337747693] [levelValue: 1000] [[
> > >> Exception during lifecycle processing
> > >> org.glassfish.deployment.common.DeploymentException: CDI deployment
> > failure:WELD-001408: Unsatisfied dependencies for type
> > RepositoryExtension with qualifiers @Default
> > >> at injection point [BackedAnnotatedField] @Inject private
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> > on
> > >> at
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> > on(RepositoryMetadataHandler.java:0)
> > >> -- WELD-001408: Unsatisfied dependencies for type
> > RepositoryExtension with qualifiers @Default
> > >> at injection point [BackedAnnotatedField] @Inject private
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> > on
> > >> at
> > org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> > on(RepositoryMetadataHandler.java:0)
> > >>
> >
>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi,
unfortunately I have no experience with aquillian and furthermore wouldn't even know where to start in deltaspike project. I guess it is rather complex to try to understand everything it does. I wasn't even able to build the release from the repository, because in eclipse the maven project doesn't load correctly. So I'm afraid working on the fix will not be possible for me too.
Br
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Andraschko <an...@gmail.com>
Gesendet: Donnerstag, 5. Oktober 2023 16:20
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi guys,
in theory we did the most work in the master. We would just need some help to re-activate our arquillian tests and fix the result.
I just dont have enough time, probably same as other commiters.
So if you can work on it, it would be great.
Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <fruehbeck@aon.at
>:
> Hi Thomas,
>
> the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> redesigned? me clueless :-/ For Weld only few adaptations necessary,
> the one I noted below seems to be one.
> My build works fine for me to finally move project to jakarta.
>
> Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > Hi Thomas
> >
> > Do you mean me?
> > Just for clarification - I'm using the jar files that are already
> downloadable at http://repository.apache.org/snapshots/ . I didn't
> change the source!
> > Br
> > Thomas
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas Frühbeck <fr...@aon.at>
> > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> >
> > Did you move the META-INF/services files to jakarta namespace?
> > e.g.:
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> >
> > inject.spi.Extension
> > There you find:
> > org.apache.deltaspike.data.impl.RepositoryExtension
> >
> > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> >> Hi Guys,
> >>
> >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from April
> >> but
> still can't deploy my project. Still a problem with some Deltaspike
> Dependencies:
> >>
> >>
> >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND]
> [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100
> _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> 1696337747693] [levelValue: 1000] [[
> >> Exception during lifecycle processing
> >> org.glassfish.deployment.common.DeploymentException: CDI deployment
> failure:WELD-001408: Unsatisfied dependencies for type
> RepositoryExtension with qualifiers @Default
> >> at injection point [BackedAnnotatedField] @Inject private
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> on
> >> at
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> on(RepositoryMetadataHandler.java:0)
> >> -- WELD-001408: Unsatisfied dependencies for type
> RepositoryExtension with qualifiers @Default
> >> at injection point [BackedAnnotatedField] @Inject private
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> on
> >> at
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extensi
> on(RepositoryMetadataHandler.java:0)
> >>
>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Andraschko <an...@gmail.com>.
Hi guys,
in theory we did the most work in the master. We would just need some help
to re-activate our arquillian tests and fix the result.
I just dont have enough time, probably same as other commiters.
So if you can work on it, it would be great.
Am Do., 5. Okt. 2023 um 15:57 Uhr schrieb Thomas Frühbeck <fruehbeck@aon.at
>:
> Hi Thomas,
>
> the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
> reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
> redesigned? me clueless :-/
> For Weld only few adaptations necessary, the one I noted below seems to
> be one.
> My build works fine for me to finally move project to jakarta.
>
> Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> > Hi Thomas
> >
> > Do you mean me?
> > Just for clarification - I'm using the jar files that are already
> downloadable at http://repository.apache.org/snapshots/ . I didn't change
> the source!
> > Br
> > Thomas
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas Frühbeck <fr...@aon.at>
> > Gesendet: Donnerstag, 5. Oktober 2023 15:30
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
> >
> > Did you move the META-INF/services files to jakarta namespace?
> > e.g.:
> >
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
> >
> > inject.spi.Extension
> > There you find:
> > org.apache.deltaspike.data.impl.RepositoryExtension
> >
> > Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> >> Hi Guys,
> >>
> >> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from April but
> still can't deploy my project. Still a problem with some Deltaspike
> Dependencies:
> >>
> >>
> >> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND]
> [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100
> _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis:
> 1696337747693] [levelValue: 1000] [[
> >> Exception during lifecycle processing
> >> org.glassfish.deployment.common.DeploymentException: CDI deployment
> failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension
> with qualifiers @Default
> >> at injection point [BackedAnnotatedField] @Inject private
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
> >> at
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
> >> -- WELD-001408: Unsatisfied dependencies for type
> RepositoryExtension with qualifiers @Default
> >> at injection point [BackedAnnotatedField] @Inject private
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
> >> at
> org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
> >>
>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Frühbeck <fr...@aon.at>.
Hi Thomas,
the current HEAD (2.0.0-SNAPSHOT) doesn't work for me, for various
reasons (e.g. distinction CMT/BeanManaged strategy - seems to be
redesigned? me clueless :-/
For Weld only few adaptations necessary, the one I noted below seems to
be one.
My build works fine for me to finally move project to jakarta.
Am 05.10.23 um 15:35 schrieb Thomas Kernstock:
> Hi Thomas
>
> Do you mean me?
> Just for clarification - I'm using the jar files that are already downloadable at http://repository.apache.org/snapshots/ . I didn't change the source!
> Br
> Thomas
>
> -----Ursprüngliche Nachricht-----
> Von: Thomas Frühbeck <fr...@aon.at>
> Gesendet: Donnerstag, 5. Oktober 2023 15:30
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Did you move the META-INF/services files to jakarta namespace?
> e.g.:
> deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
>
> inject.spi.Extension
> There you find:
> org.apache.deltaspike.data.impl.RepositoryExtension
>
> Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
>> Hi Guys,
>>
>> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from April but still can't deploy my project. Still a problem with some Deltaspike Dependencies:
>>
>>
>> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1696337747693] [levelValue: 1000] [[
>> Exception during lifecycle processing
>> org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
>> at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
>> at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
>> -- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
>> at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
>> at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
>>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Thomas
Do you mean me?
Just for clarification - I'm using the jar files that are already downloadable at http://repository.apache.org/snapshots/ . I didn't change the source!
Br
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Frühbeck <fr...@aon.at>
Gesendet: Donnerstag, 5. Oktober 2023 15:30
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Did you move the META-INF/services files to jakarta namespace?
e.g.:
deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
inject.spi.Extension
There you find:
org.apache.deltaspike.data.impl.RepositoryExtension
Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> Hi Guys,
>
> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from April but still can't deploy my project. Still a problem with some Deltaspike Dependencies:
>
>
> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1696337747693] [levelValue: 1000] [[
> Exception during lifecycle processing
> org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
> at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
> at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
> -- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
> at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
> at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Frühbeck <fr...@aon.at>.
Did you move the META-INF/services files to jakarta namespace?
e.g.:
deltaspike/modules/data/impl/src/main/resources/META-INF/services/jakarta.enterprise.
inject.spi.Extension
There you find:
org.apache.deltaspike.data.impl.RepositoryExtension
Am 03.10.23 um 15:04 schrieb Thomas Kernstock:
> Hi Guys,
>
> Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from April but still can't deploy my project. Still a problem with some Deltaspike Dependencies:
>
>
> [2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1696337747693] [levelValue: 1000] [[
> Exception during lifecycle processing
> org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
> at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
> at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
> -- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
> at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
> at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Guys,
Now I'm using Payara 6.2003.9 with Deltaspike Snapshots from April but still can't deploy my project. Still a problem with some Deltaspike Dependencies:
[2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1696337747693] [levelValue: 1000] [[
Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:285)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:141)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:162)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:515)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:501)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:476)
at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:492)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:94)
at org.glassfish.weld.WeldDeployer.processApplicationLoaded(WeldDeployer.java:582)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:437)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:344)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:580)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:570)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:552)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:551)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:582)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:574)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:573)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1497)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1879)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1755)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:604)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:256)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:150)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
at java.base/java.lang.Thread.run(Thread.java:833)
]]
[2023-10-03T14:55:47.693+0200] [Payara 6.2023.9] [SCHWERWIEGEND] [] [javax.enterprise.system.core] [tid: _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1696337747693] [levelValue: 1000] [[
Exception while loading the app]]
[2023-10-03T14:55:47.696+0200] [Payara 6.2023.9] [SCHWERWIEGEND] [AS-WEB-GLUE-00192] [jakarta.enterprise.web] [tid: _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1696337747696] [levelValue: 1000] [[
Undeployment failed for context /jobs]]
[2023-10-03T14:55:47.709+0200] [Payara 6.2023.9] [SCHWERWIEGEND] [] [javax.enterprise.system.core] [tid: _ThreadID=100 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1696337747709] [levelValue: 1000] [[
Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
]]
Are there any news or workarounds on this?
Best regards
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Kernstock <t....@e-technologies.at>
Gesendet: Mittwoch, 12. Juli 2023 18:36
An: users@deltaspike.apache.org
Betreff: AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi Mark,
sorry, took longer than expected. Even my Applications compiled fine (in eclipse) I was not able to deploy one of them. Since I didn't know if it was a problem in my code or deployment descriptors I created a fresh "Dynamic Web Project" in eclipse and added all the deltaspike libraries plus omnifaces and primefaces.
First interesting thing is, that I see a validation problem in the faces-config " Class org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper must extend the type javax.faces.application.NavigationHandler", even though I'm using the latest schemas ->
faces-config xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_0.xsd"
version="4.0">
<application>
<navigation-handler>org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper</navigation-handler>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>de_AT</supported-locale>
<supported-locale>de_DE</supported-locale>
</locale-config>
</application>
This could probably be an eclipse problem. But if I deploy the empty app (without the navigation-handler) I see following errors ->
2023-07-12T18:11:30.793+0200|INFORMATION: Custom config found by DeltaSpike. Name: 'META-INF/apache-deltaspike.properties', URL: 'jar:file:/C:/payara6.2023.1/glassfish/domains/domain1/eclipseApps/Test/WEB-INF/lib/deltaspike-jpa-module-impl-2.0.0-20230403.151152-1.jar!/META-INF/apache-deltaspike.properties'
2023-07-12T18:11:30.827+0200|INFORMATION: Computed the following DeltaSpike ProjectStage: Production
2023-07-12T18:11:30.890+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.core.impl.config.ConfigurationExtension.findDynamicConfigurationBeans(@Observes ProcessAnnotatedType<?>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.895+0200|INFORMATION: 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.
2023-07-12T18:11:30.895+0200|INFORMATION: 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.
2023-07-12T18:11:30.901+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.core.impl.interceptor.interdyn.InterDynExtension.processAnnotatedType(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.919+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension.buildViewConfigMetaDataTree(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.927+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.partialbean.impl.PartialBeanBindingExtension.findInvocationHandlerBindings(@Observes ProcessAnnotatedType<X>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.931+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.security.impl.extension.SecurityExtension.processAnnotatedType(@Observes ProcessAnnotatedType<X>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:285)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:141)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:162)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:515)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:501)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:476)
at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:492)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:94)
at org.glassfish.weld.WeldDeployer.processApplicationLoaded(WeldDeployer.java:582)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:437)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:344)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:577)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:612)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:552)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:551)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:582)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:574)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:573)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1497)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1869)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1755)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:604)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:256)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:150)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
at java.base/java.lang.Thread.run(Thread.java:833)
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Exception while loading the app
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Undeployment failed for context /Test
2023-07-12T18:11:31.564+0200|SCHWERWIEGEND: Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
There are a couple more problems, but since I don't know if they are deltaspike related I do not elaborate them here.
liebe grüße
Thomas
-----Ursprüngliche Nachricht-----
Von: Mark Struberg <st...@yahoo.de.INVALID>
Gesendet: Donnerstag, 29. Juni 2023 17:24
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
That's great news, thank you all!
LieGrue,
strub
> Am 29.06.2023 um 10:52 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Charlee,
>
> thanx for the hint. I downloaded the Snapshot Versions for 2.0 (except the Validation is only for 1.9) and my project compiles now.
>
> @Mark: I will deploy and test my application on my server next week.
>
> Lg
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Charlee Chitsuk <ch...@gmail.com>
> Gesendet: Donnerstag, 29. Juni 2023 02:57
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi Thomas,
>
> If I were you, I would prefer to use it from the snapshot repository rather than build it myself.
>
> Regarding to the Use DeltaSpike Snapshots[1], it mentions as the following:
> -
>
> 1. The `settings.xml` or in our `pom.xml`
>
> <repositories>
> <repository>
> <id>apache-snapshot-repository</id>
> <url>http://repository.apache.org/snapshots/</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
> 2. Please take a BIG NOTE that, the
> `org.apache.deltaspike.distribution:distributions-bom` does not provide the version `2.0.0-SNAPSHOT` [2], then in our `pom.xml` will be looked like this.
>
> <properties>
> <deltaspike.version>2.0.0-SNAPSHOT</deltaspike.version>
> </properties>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-api</artifactId>
> <version>${deltaspike.version}</version>
> <scope>compile</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-impl</artifactId>
> <version>${deltaspike.version}</version>
> <scope>runtime</scope>
> </dependency>
>
> I hope this may help.
>
>
> [1] https://deltaspike.apache.org/documentation/snapshots.html
> [2]
> https://repository.apache.org/content/groups/snapshots/org/apache/delt
> aspike/distribution/distributions-bom/
>
>
> --
> Best Regards,
>
> Charlee Ch
>
>
> ในวันที่ พ. 28 มิ.ย. 2023 เวลา 23:27 Thomas Kernstock < t.kernstock@e-technologies.at> เขียนว่า:
>
>> Hi Mark,
>>
>> I checked the whole project out from the master on github (
>> https://github.com/apache/deltaspike/) and started maven with "mvn
>> clean install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like
>> I found it in the buildall.sh, except that -PWeld3 didn't work at all
>> (see mvn-weld3_1_9.log).
>>
>> I have to admit that I don't usually work with maven at all, so I'm
>> clearly not very fit to solve the errors mentioned in the log. It
>> seems that there are some properties missing like ${weld.el.api} but
>> I couldn't find the definition in deltaspike\parent\code\pom.xml nor
>> do I know which version I would need and where to set them.
>>
>> By the way, I'm using:
>> Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
>> Maven home: D:\Java\apache-maven-3.9.3 Java version: 17.0.5, vendor:
>> Azul Systems, Inc., runtime: C:\Program
>> Files\Java\jdk17
>> Default locale: de_AT, platform encoding: Cp1252 OS name: "windows
>> 10", version: "10.0", arch: "amd64", family: "windows"
>>
>> What shall I do to build the project?
>>
>> Lg
>> Thomas
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Mark Struberg <st...@yahoo.de.INVALID>
>> Gesendet: Sonntag, 25. Juni 2023 23:51
>> An: users@deltaspike.apache.org
>> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>>
>> Hi Thomas!
>>
>> Could you do us a favour and test with the snaphot version of ds-2.0
>> to get some feedback?
>> In which case we would push forward with it soonish.
>>
>> txs and LieGrue,
>> strub
>>
>>> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <
>> t.kernstock@e-technologies.at>:
>>>
>>> Hi Guys,
>>>
>>> I tried to move my projects from Payara 5 to Payara 6 using
>>> Deltaspike
>> 1.9.4 including all Payara Libraries in the projects classpath.
>>>
>>> In one of these projects I'm using Deltaspike Repositories with
>>> @query()
>> definitions. Now eclipse shows this error ->
>>>
>>> "The type javax.persistence.LockModeType cannot be resolved. It is
>> indirectly referenced from required type
>> org.apache.deltaspike.data.api.Query"
>>>
>>> which is understandable, because instead of
>> javax.persistence.LockModeType it should reference
>> jakarta.persistence.LockModeType which is actually on the classpath.
>>>
>>> So I can't use the recent release version anymore.
>>>
>>> Looking in the sourcecode on github I found, this is already changed
>>> in
>> https://github.com/apache/deltaspike/blob/master/deltaspike/modules/d
>> a ta/api/src/main/java/org/apache/deltaspike/data/api/Query.java
>> and found that Mark committed this and other changes towards Jakarta
>> in
>> 2021 but its not included in 1.9.6 either.
>>>
>>> Are there any plans or dates when DeltaSpike 2.0 will be released?
>>>
>>> Best regards
>>>
>>> Thomas
>>
>>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Servus Mark,
are there any infos about Deltaspike Version 2.0? Do you plan to create a release version sometime this year?
Liebe Grüße
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Kernstock <t....@e-technologies.at>
Gesendet: Mittwoch, 12. Juli 2023 18:36
An: users@deltaspike.apache.org
Betreff: AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi Mark,
sorry, took longer than expected. Even my Applications compiled fine (in eclipse) I was not able to deploy one of them. Since I didn't know if it was a problem in my code or deployment descriptors I created a fresh "Dynamic Web Project" in eclipse and added all the deltaspike libraries plus omnifaces and primefaces.
First interesting thing is, that I see a validation problem in the faces-config " Class org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper must extend the type javax.faces.application.NavigationHandler", even though I'm using the latest schemas ->
faces-config xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_0.xsd"
version="4.0">
<application>
<navigation-handler>org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper</navigation-handler>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>de_AT</supported-locale>
<supported-locale>de_DE</supported-locale>
</locale-config>
</application>
This could probably be an eclipse problem. But if I deploy the empty app (without the navigation-handler) I see following errors ->
2023-07-12T18:11:30.793+0200|INFORMATION: Custom config found by DeltaSpike. Name: 'META-INF/apache-deltaspike.properties', URL: 'jar:file:/C:/payara6.2023.1/glassfish/domains/domain1/eclipseApps/Test/WEB-INF/lib/deltaspike-jpa-module-impl-2.0.0-20230403.151152-1.jar!/META-INF/apache-deltaspike.properties'
2023-07-12T18:11:30.827+0200|INFORMATION: Computed the following DeltaSpike ProjectStage: Production
2023-07-12T18:11:30.890+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.core.impl.config.ConfigurationExtension.findDynamicConfigurationBeans(@Observes ProcessAnnotatedType<?>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.895+0200|INFORMATION: 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.
2023-07-12T18:11:30.895+0200|INFORMATION: 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.
2023-07-12T18:11:30.901+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.core.impl.interceptor.interdyn.InterDynExtension.processAnnotatedType(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.919+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension.buildViewConfigMetaDataTree(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.927+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.partialbean.impl.PartialBeanBindingExtension.findInvocationHandlerBindings(@Observes ProcessAnnotatedType<X>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.931+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.security.impl.extension.SecurityExtension.processAnnotatedType(@Observes ProcessAnnotatedType<X>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:285)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:141)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:162)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:515)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:501)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:476)
at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:492)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:94)
at org.glassfish.weld.WeldDeployer.processApplicationLoaded(WeldDeployer.java:582)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:437)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:344)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:577)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:612)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:552)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:551)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:582)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:574)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:573)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1497)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1869)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1755)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:604)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:256)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:150)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
at java.base/java.lang.Thread.run(Thread.java:833)
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Exception while loading the app
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Undeployment failed for context /Test
2023-07-12T18:11:31.564+0200|SCHWERWIEGEND: Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
There are a couple more problems, but since I don't know if they are deltaspike related I do not elaborate them here.
liebe grüße
Thomas
-----Ursprüngliche Nachricht-----
Von: Mark Struberg <st...@yahoo.de.INVALID>
Gesendet: Donnerstag, 29. Juni 2023 17:24
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
That's great news, thank you all!
LieGrue,
strub
> Am 29.06.2023 um 10:52 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Charlee,
>
> thanx for the hint. I downloaded the Snapshot Versions for 2.0 (except the Validation is only for 1.9) and my project compiles now.
>
> @Mark: I will deploy and test my application on my server next week.
>
> Lg
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Charlee Chitsuk <ch...@gmail.com>
> Gesendet: Donnerstag, 29. Juni 2023 02:57
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi Thomas,
>
> If I were you, I would prefer to use it from the snapshot repository rather than build it myself.
>
> Regarding to the Use DeltaSpike Snapshots[1], it mentions as the following:
> -
>
> 1. The `settings.xml` or in our `pom.xml`
>
> <repositories>
> <repository>
> <id>apache-snapshot-repository</id>
> <url>http://repository.apache.org/snapshots/</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
> 2. Please take a BIG NOTE that, the
> `org.apache.deltaspike.distribution:distributions-bom` does not provide the version `2.0.0-SNAPSHOT` [2], then in our `pom.xml` will be looked like this.
>
> <properties>
> <deltaspike.version>2.0.0-SNAPSHOT</deltaspike.version>
> </properties>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-api</artifactId>
> <version>${deltaspike.version}</version>
> <scope>compile</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-impl</artifactId>
> <version>${deltaspike.version}</version>
> <scope>runtime</scope>
> </dependency>
>
> I hope this may help.
>
>
> [1] https://deltaspike.apache.org/documentation/snapshots.html
> [2]
> https://repository.apache.org/content/groups/snapshots/org/apache/delt
> aspike/distribution/distributions-bom/
>
>
> --
> Best Regards,
>
> Charlee Ch
>
>
> ในวันที่ พ. 28 มิ.ย. 2023 เวลา 23:27 Thomas Kernstock < t.kernstock@e-technologies.at> เขียนว่า:
>
>> Hi Mark,
>>
>> I checked the whole project out from the master on github (
>> https://github.com/apache/deltaspike/) and started maven with "mvn
>> clean install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like
>> I found it in the buildall.sh, except that -PWeld3 didn't work at all
>> (see mvn-weld3_1_9.log).
>>
>> I have to admit that I don't usually work with maven at all, so I'm
>> clearly not very fit to solve the errors mentioned in the log. It
>> seems that there are some properties missing like ${weld.el.api} but
>> I couldn't find the definition in deltaspike\parent\code\pom.xml nor
>> do I know which version I would need and where to set them.
>>
>> By the way, I'm using:
>> Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
>> Maven home: D:\Java\apache-maven-3.9.3 Java version: 17.0.5, vendor:
>> Azul Systems, Inc., runtime: C:\Program
>> Files\Java\jdk17
>> Default locale: de_AT, platform encoding: Cp1252 OS name: "windows
>> 10", version: "10.0", arch: "amd64", family: "windows"
>>
>> What shall I do to build the project?
>>
>> Lg
>> Thomas
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Mark Struberg <st...@yahoo.de.INVALID>
>> Gesendet: Sonntag, 25. Juni 2023 23:51
>> An: users@deltaspike.apache.org
>> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>>
>> Hi Thomas!
>>
>> Could you do us a favour and test with the snaphot version of ds-2.0
>> to get some feedback?
>> In which case we would push forward with it soonish.
>>
>> txs and LieGrue,
>> strub
>>
>>> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <
>> t.kernstock@e-technologies.at>:
>>>
>>> Hi Guys,
>>>
>>> I tried to move my projects from Payara 5 to Payara 6 using
>>> Deltaspike
>> 1.9.4 including all Payara Libraries in the projects classpath.
>>>
>>> In one of these projects I'm using Deltaspike Repositories with
>>> @query()
>> definitions. Now eclipse shows this error ->
>>>
>>> "The type javax.persistence.LockModeType cannot be resolved. It is
>> indirectly referenced from required type
>> org.apache.deltaspike.data.api.Query"
>>>
>>> which is understandable, because instead of
>> javax.persistence.LockModeType it should reference
>> jakarta.persistence.LockModeType which is actually on the classpath.
>>>
>>> So I can't use the recent release version anymore.
>>>
>>> Looking in the sourcecode on github I found, this is already changed
>>> in
>> https://github.com/apache/deltaspike/blob/master/deltaspike/modules/d
>> a ta/api/src/main/java/org/apache/deltaspike/data/api/Query.java
>> and found that Mark committed this and other changes towards Jakarta
>> in
>> 2021 but its not included in 1.9.6 either.
>>>
>>> Are there any plans or dates when DeltaSpike 2.0 will be released?
>>>
>>> Best regards
>>>
>>> Thomas
>>
>>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Mark,
sorry, took longer than expected. Even my Applications compiled fine (in eclipse) I was not able to deploy one of them. Since I didn't know if it was a problem in my code or deployment descriptors I created a fresh "Dynamic Web Project" in eclipse and added all the deltaspike libraries plus omnifaces and primefaces.
First interesting thing is, that I see a validation problem in the faces-config " Class org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper must extend the type javax.faces.application.NavigationHandler", even though I'm using the latest schemas ->
faces-config xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_0.xsd"
version="4.0">
<application>
<navigation-handler>org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper</navigation-handler>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>de_AT</supported-locale>
<supported-locale>de_DE</supported-locale>
</locale-config>
</application>
This could probably be an eclipse problem. But if I deploy the empty app (without the navigation-handler) I see following errors ->
2023-07-12T18:11:30.793+0200|INFORMATION: Custom config found by DeltaSpike. Name: 'META-INF/apache-deltaspike.properties', URL: 'jar:file:/C:/payara6.2023.1/glassfish/domains/domain1/eclipseApps/Test/WEB-INF/lib/deltaspike-jpa-module-impl-2.0.0-20230403.151152-1.jar!/META-INF/apache-deltaspike.properties'
2023-07-12T18:11:30.827+0200|INFORMATION: Computed the following DeltaSpike ProjectStage: Production
2023-07-12T18:11:30.890+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.core.impl.config.ConfigurationExtension.findDynamicConfigurationBeans(@Observes ProcessAnnotatedType<?>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.895+0200|INFORMATION: 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.
2023-07-12T18:11:30.895+0200|INFORMATION: 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.
2023-07-12T18:11:30.901+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.core.impl.interceptor.interdyn.InterDynExtension.processAnnotatedType(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.919+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension.buildViewConfigMetaDataTree(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.927+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.partialbean.impl.PartialBeanBindingExtension.findInvocationHandlerBindings(@Observes ProcessAnnotatedType<X>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:30.931+0200|INFORMATION: WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.security.impl.extension.SecurityExtension.processAnnotatedType(@Observes ProcessAnnotatedType<X>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:285)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:141)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:162)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:515)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:501)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:476)
at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:492)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:94)
at org.glassfish.weld.WeldDeployer.processApplicationLoaded(WeldDeployer.java:582)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:437)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:344)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:577)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:612)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:552)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:551)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:582)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:574)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:573)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1497)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1869)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1755)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:604)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:256)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:150)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
at java.base/java.lang.Thread.run(Thread.java:833)
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Exception while loading the app
2023-07-12T18:11:31.552+0200|SCHWERWIEGEND: Undeployment failed for context /Test
2023-07-12T18:11:31.564+0200|SCHWERWIEGEND: Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
-- WELD-001408: Unsatisfied dependencies for type RepositoryExtension with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension
at org.apache.deltaspike.data.impl.meta.RepositoryMetadataHandler.extension(RepositoryMetadataHandler.java:0)
There are a couple more problems, but since I don't know if they are deltaspike related I do not elaborate them here.
liebe grüße
Thomas
-----Ursprüngliche Nachricht-----
Von: Mark Struberg <st...@yahoo.de.INVALID>
Gesendet: Donnerstag, 29. Juni 2023 17:24
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
That's great news, thank you all!
LieGrue,
strub
> Am 29.06.2023 um 10:52 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Charlee,
>
> thanx for the hint. I downloaded the Snapshot Versions for 2.0 (except the Validation is only for 1.9) and my project compiles now.
>
> @Mark: I will deploy and test my application on my server next week.
>
> Lg
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Charlee Chitsuk <ch...@gmail.com>
> Gesendet: Donnerstag, 29. Juni 2023 02:57
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi Thomas,
>
> If I were you, I would prefer to use it from the snapshot repository rather than build it myself.
>
> Regarding to the Use DeltaSpike Snapshots[1], it mentions as the following:
> -
>
> 1. The `settings.xml` or in our `pom.xml`
>
> <repositories>
> <repository>
> <id>apache-snapshot-repository</id>
> <url>http://repository.apache.org/snapshots/</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
> 2. Please take a BIG NOTE that, the
> `org.apache.deltaspike.distribution:distributions-bom` does not provide the version `2.0.0-SNAPSHOT` [2], then in our `pom.xml` will be looked like this.
>
> <properties>
> <deltaspike.version>2.0.0-SNAPSHOT</deltaspike.version>
> </properties>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-api</artifactId>
> <version>${deltaspike.version}</version>
> <scope>compile</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-impl</artifactId>
> <version>${deltaspike.version}</version>
> <scope>runtime</scope>
> </dependency>
>
> I hope this may help.
>
>
> [1] https://deltaspike.apache.org/documentation/snapshots.html
> [2]
> https://repository.apache.org/content/groups/snapshots/org/apache/delt
> aspike/distribution/distributions-bom/
>
>
> --
> Best Regards,
>
> Charlee Ch
>
>
> ในวันที่ พ. 28 มิ.ย. 2023 เวลา 23:27 Thomas Kernstock < t.kernstock@e-technologies.at> เขียนว่า:
>
>> Hi Mark,
>>
>> I checked the whole project out from the master on github (
>> https://github.com/apache/deltaspike/) and started maven with "mvn
>> clean install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like
>> I found it in the buildall.sh, except that -PWeld3 didn't work at all
>> (see mvn-weld3_1_9.log).
>>
>> I have to admit that I don't usually work with maven at all, so I'm
>> clearly not very fit to solve the errors mentioned in the log. It
>> seems that there are some properties missing like ${weld.el.api} but
>> I couldn't find the definition in deltaspike\parent\code\pom.xml nor
>> do I know which version I would need and where to set them.
>>
>> By the way, I'm using:
>> Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
>> Maven home: D:\Java\apache-maven-3.9.3 Java version: 17.0.5, vendor:
>> Azul Systems, Inc., runtime: C:\Program
>> Files\Java\jdk17
>> Default locale: de_AT, platform encoding: Cp1252 OS name: "windows
>> 10", version: "10.0", arch: "amd64", family: "windows"
>>
>> What shall I do to build the project?
>>
>> Lg
>> Thomas
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Mark Struberg <st...@yahoo.de.INVALID>
>> Gesendet: Sonntag, 25. Juni 2023 23:51
>> An: users@deltaspike.apache.org
>> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>>
>> Hi Thomas!
>>
>> Could you do us a favour and test with the snaphot version of ds-2.0
>> to get some feedback?
>> In which case we would push forward with it soonish.
>>
>> txs and LieGrue,
>> strub
>>
>>> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <
>> t.kernstock@e-technologies.at>:
>>>
>>> Hi Guys,
>>>
>>> I tried to move my projects from Payara 5 to Payara 6 using
>>> Deltaspike
>> 1.9.4 including all Payara Libraries in the projects classpath.
>>>
>>> In one of these projects I'm using Deltaspike Repositories with
>>> @query()
>> definitions. Now eclipse shows this error ->
>>>
>>> "The type javax.persistence.LockModeType cannot be resolved. It is
>> indirectly referenced from required type
>> org.apache.deltaspike.data.api.Query"
>>>
>>> which is understandable, because instead of
>> javax.persistence.LockModeType it should reference
>> jakarta.persistence.LockModeType which is actually on the classpath.
>>>
>>> So I can't use the recent release version anymore.
>>>
>>> Looking in the sourcecode on github I found, this is already changed
>>> in
>> https://github.com/apache/deltaspike/blob/master/deltaspike/modules/d
>> a ta/api/src/main/java/org/apache/deltaspike/data/api/Query.java
>> and found that Mark committed this and other changes towards Jakarta
>> in
>> 2021 but its not included in 1.9.6 either.
>>>
>>> Are there any plans or dates when DeltaSpike 2.0 will be released?
>>>
>>> Best regards
>>>
>>> Thomas
>>
>>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
That's great news, thank you all!
LieGrue,
strub
> Am 29.06.2023 um 10:52 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Charlee,
>
> thanx for the hint. I downloaded the Snapshot Versions for 2.0 (except the Validation is only for 1.9) and my project compiles now.
>
> @Mark: I will deploy and test my application on my server next week.
>
> Lg
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Charlee Chitsuk <ch...@gmail.com>
> Gesendet: Donnerstag, 29. Juni 2023 02:57
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi Thomas,
>
> If I were you, I would prefer to use it from the snapshot repository rather than build it myself.
>
> Regarding to the Use DeltaSpike Snapshots[1], it mentions as the following:
> -
>
> 1. The `settings.xml` or in our `pom.xml`
>
> <repositories>
> <repository>
> <id>apache-snapshot-repository</id>
> <url>http://repository.apache.org/snapshots/</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
> 2. Please take a BIG NOTE that, the
> `org.apache.deltaspike.distribution:distributions-bom` does not provide the version `2.0.0-SNAPSHOT` [2], then in our `pom.xml` will be looked like this.
>
> <properties>
> <deltaspike.version>2.0.0-SNAPSHOT</deltaspike.version>
> </properties>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-api</artifactId>
> <version>${deltaspike.version}</version>
> <scope>compile</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-impl</artifactId>
> <version>${deltaspike.version}</version>
> <scope>runtime</scope>
> </dependency>
>
> I hope this may help.
>
>
> [1] https://deltaspike.apache.org/documentation/snapshots.html
> [2]
> https://repository.apache.org/content/groups/snapshots/org/apache/deltaspike/distribution/distributions-bom/
>
>
> --
> Best Regards,
>
> Charlee Ch
>
>
> ในวันที่ พ. 28 มิ.ย. 2023 เวลา 23:27 Thomas Kernstock < t.kernstock@e-technologies.at> เขียนว่า:
>
>> Hi Mark,
>>
>> I checked the whole project out from the master on github (
>> https://github.com/apache/deltaspike/) and started maven with "mvn
>> clean install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like I
>> found it in the buildall.sh, except that -PWeld3 didn't work at all
>> (see mvn-weld3_1_9.log).
>>
>> I have to admit that I don't usually work with maven at all, so I'm
>> clearly not very fit to solve the errors mentioned in the log. It
>> seems that there are some properties missing like ${weld.el.api} but I
>> couldn't find the definition in deltaspike\parent\code\pom.xml nor do
>> I know which version I would need and where to set them.
>>
>> By the way, I'm using:
>> Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
>> Maven home: D:\Java\apache-maven-3.9.3 Java version: 17.0.5, vendor:
>> Azul Systems, Inc., runtime: C:\Program
>> Files\Java\jdk17
>> Default locale: de_AT, platform encoding: Cp1252 OS name: "windows
>> 10", version: "10.0", arch: "amd64", family: "windows"
>>
>> What shall I do to build the project?
>>
>> Lg
>> Thomas
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Mark Struberg <st...@yahoo.de.INVALID>
>> Gesendet: Sonntag, 25. Juni 2023 23:51
>> An: users@deltaspike.apache.org
>> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>>
>> Hi Thomas!
>>
>> Could you do us a favour and test with the snaphot version of ds-2.0
>> to get some feedback?
>> In which case we would push forward with it soonish.
>>
>> txs and LieGrue,
>> strub
>>
>>> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <
>> t.kernstock@e-technologies.at>:
>>>
>>> Hi Guys,
>>>
>>> I tried to move my projects from Payara 5 to Payara 6 using
>>> Deltaspike
>> 1.9.4 including all Payara Libraries in the projects classpath.
>>>
>>> In one of these projects I'm using Deltaspike Repositories with
>>> @query()
>> definitions. Now eclipse shows this error ->
>>>
>>> "The type javax.persistence.LockModeType cannot be resolved. It is
>> indirectly referenced from required type
>> org.apache.deltaspike.data.api.Query"
>>>
>>> which is understandable, because instead of
>> javax.persistence.LockModeType it should reference
>> jakarta.persistence.LockModeType which is actually on the classpath.
>>>
>>> So I can't use the recent release version anymore.
>>>
>>> Looking in the sourcecode on github I found, this is already changed
>>> in
>> https://github.com/apache/deltaspike/blob/master/deltaspike/modules/da
>> ta/api/src/main/java/org/apache/deltaspike/data/api/Query.java
>> and found that Mark committed this and other changes towards Jakarta
>> in
>> 2021 but its not included in 1.9.6 either.
>>>
>>> Are there any plans or dates when DeltaSpike 2.0 will be released?
>>>
>>> Best regards
>>>
>>> Thomas
>>
>>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Charlee,
thanx for the hint. I downloaded the Snapshot Versions for 2.0 (except the Validation is only for 1.9) and my project compiles now.
@Mark: I will deploy and test my application on my server next week.
Lg
Thomas
-----Ursprüngliche Nachricht-----
Von: Charlee Chitsuk <ch...@gmail.com>
Gesendet: Donnerstag, 29. Juni 2023 02:57
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi Thomas,
If I were you, I would prefer to use it from the snapshot repository rather than build it myself.
Regarding to the Use DeltaSpike Snapshots[1], it mentions as the following:
-
1. The `settings.xml` or in our `pom.xml`
<repositories>
<repository>
<id>apache-snapshot-repository</id>
<url>http://repository.apache.org/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
2. Please take a BIG NOTE that, the
`org.apache.deltaspike.distribution:distributions-bom` does not provide the version `2.0.0-SNAPSHOT` [2], then in our `pom.xml` will be looked like this.
<properties>
<deltaspike.version>2.0.0-SNAPSHOT</deltaspike.version>
</properties>
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-api</artifactId>
<version>${deltaspike.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-impl</artifactId>
<version>${deltaspike.version}</version>
<scope>runtime</scope>
</dependency>
I hope this may help.
[1] https://deltaspike.apache.org/documentation/snapshots.html
[2]
https://repository.apache.org/content/groups/snapshots/org/apache/deltaspike/distribution/distributions-bom/
--
Best Regards,
Charlee Ch
ในวันที่ พ. 28 มิ.ย. 2023 เวลา 23:27 Thomas Kernstock < t.kernstock@e-technologies.at> เขียนว่า:
> Hi Mark,
>
> I checked the whole project out from the master on github (
> https://github.com/apache/deltaspike/) and started maven with "mvn
> clean install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like I
> found it in the buildall.sh, except that -PWeld3 didn't work at all
> (see mvn-weld3_1_9.log).
>
> I have to admit that I don't usually work with maven at all, so I'm
> clearly not very fit to solve the errors mentioned in the log. It
> seems that there are some properties missing like ${weld.el.api} but I
> couldn't find the definition in deltaspike\parent\code\pom.xml nor do
> I know which version I would need and where to set them.
>
> By the way, I'm using:
> Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
> Maven home: D:\Java\apache-maven-3.9.3 Java version: 17.0.5, vendor:
> Azul Systems, Inc., runtime: C:\Program
> Files\Java\jdk17
> Default locale: de_AT, platform encoding: Cp1252 OS name: "windows
> 10", version: "10.0", arch: "amd64", family: "windows"
>
> What shall I do to build the project?
>
> Lg
> Thomas
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Mark Struberg <st...@yahoo.de.INVALID>
> Gesendet: Sonntag, 25. Juni 2023 23:51
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi Thomas!
>
> Could you do us a favour and test with the snaphot version of ds-2.0
> to get some feedback?
> In which case we would push forward with it soonish.
>
> txs and LieGrue,
> strub
>
> > Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
> >
> > Hi Guys,
> >
> > I tried to move my projects from Payara 5 to Payara 6 using
> > Deltaspike
> 1.9.4 including all Payara Libraries in the projects classpath.
> >
> > In one of these projects I'm using Deltaspike Repositories with
> > @query()
> definitions. Now eclipse shows this error ->
> >
> > "The type javax.persistence.LockModeType cannot be resolved. It is
> indirectly referenced from required type
> org.apache.deltaspike.data.api.Query"
> >
> > which is understandable, because instead of
> javax.persistence.LockModeType it should reference
> jakarta.persistence.LockModeType which is actually on the classpath.
> >
> > So I can't use the recent release version anymore.
> >
> > Looking in the sourcecode on github I found, this is already changed
> > in
> https://github.com/apache/deltaspike/blob/master/deltaspike/modules/da
> ta/api/src/main/java/org/apache/deltaspike/data/api/Query.java
> and found that Mark committed this and other changes towards Jakarta
> in
> 2021 but its not included in 1.9.6 either.
> >
> > Are there any plans or dates when DeltaSpike 2.0 will be released?
> >
> > Best regards
> >
> > Thomas
>
>
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Charlee Chitsuk <ch...@gmail.com>.
Hi Thomas,
If I were you, I would prefer to use it from the snapshot repository rather
than build it myself.
Regarding to the Use DeltaSpike Snapshots[1], it mentions as the following:
-
1. The `settings.xml` or in our `pom.xml`
<repositories>
<repository>
<id>apache-snapshot-repository</id>
<url>http://repository.apache.org/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
2. Please take a BIG NOTE that, the
`org.apache.deltaspike.distribution:distributions-bom` does not provide the
version `2.0.0-SNAPSHOT` [2], then in our `pom.xml` will be looked like
this.
<properties>
<deltaspike.version>2.0.0-SNAPSHOT</deltaspike.version>
</properties>
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-api</artifactId>
<version>${deltaspike.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-impl</artifactId>
<version>${deltaspike.version}</version>
<scope>runtime</scope>
</dependency>
I hope this may help.
[1] https://deltaspike.apache.org/documentation/snapshots.html
[2]
https://repository.apache.org/content/groups/snapshots/org/apache/deltaspike/distribution/distributions-bom/
--
Best Regards,
Charlee Ch
ในวันที่ พ. 28 มิ.ย. 2023 เวลา 23:27 Thomas Kernstock <
t.kernstock@e-technologies.at> เขียนว่า:
> Hi Mark,
>
> I checked the whole project out from the master on github (
> https://github.com/apache/deltaspike/) and started maven with "mvn clean
> install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like I found it
> in the buildall.sh, except that -PWeld3 didn't work at all (see
> mvn-weld3_1_9.log).
>
> I have to admit that I don't usually work with maven at all, so I'm
> clearly not very fit to solve the errors mentioned in the log. It seems
> that there are some properties missing like ${weld.el.api} but I couldn't
> find the definition in deltaspike\parent\code\pom.xml nor do I know which
> version I would need and where to set them.
>
> By the way, I'm using:
> Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
> Maven home: D:\Java\apache-maven-3.9.3
> Java version: 17.0.5, vendor: Azul Systems, Inc., runtime: C:\Program
> Files\Java\jdk17
> Default locale: de_AT, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>
> What shall I do to build the project?
>
> Lg
> Thomas
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Mark Struberg <st...@yahoo.de.INVALID>
> Gesendet: Sonntag, 25. Juni 2023 23:51
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
>
> Hi Thomas!
>
> Could you do us a favour and test with the snaphot version of ds-2.0 to
> get some feedback?
> In which case we would push forward with it soonish.
>
> txs and LieGrue,
> strub
>
> > Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
> >
> > Hi Guys,
> >
> > I tried to move my projects from Payara 5 to Payara 6 using Deltaspike
> 1.9.4 including all Payara Libraries in the projects classpath.
> >
> > In one of these projects I'm using Deltaspike Repositories with @query()
> definitions. Now eclipse shows this error ->
> >
> > "The type javax.persistence.LockModeType cannot be resolved. It is
> indirectly referenced from required type
> org.apache.deltaspike.data.api.Query"
> >
> > which is understandable, because instead of
> javax.persistence.LockModeType it should reference
> jakarta.persistence.LockModeType which is actually on the classpath.
> >
> > So I can't use the recent release version anymore.
> >
> > Looking in the sourcecode on github I found, this is already changed in
> https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/Query.java
> and found that Mark committed this and other changes towards Jakarta in
> 2021 but its not included in 1.9.6 either.
> >
> > Are there any plans or dates when DeltaSpike 2.0 will be released?
> >
> > Best regards
> >
> > Thomas
>
>
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Mark,
I checked the whole project out from the master on github (https://github.com/apache/deltaspike/) and started maven with "mvn clean install -PWeld -Dweld.version=3.1.9.Final > mvn-weld.log" like I found it in the buildall.sh, except that -PWeld3 didn't work at all (see mvn-weld3_1_9.log).
I have to admit that I don't usually work with maven at all, so I'm clearly not very fit to solve the errors mentioned in the log. It seems that there are some properties missing like ${weld.el.api} but I couldn't find the definition in deltaspike\parent\code\pom.xml nor do I know which version I would need and where to set them.
By the way, I'm using:
Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
Maven home: D:\Java\apache-maven-3.9.3
Java version: 17.0.5, vendor: Azul Systems, Inc., runtime: C:\Program Files\Java\jdk17
Default locale: de_AT, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
What shall I do to build the project?
Lg
Thomas
-----Ursprüngliche Nachricht-----
Von: Mark Struberg <st...@yahoo.de.INVALID>
Gesendet: Sonntag, 25. Juni 2023 23:51
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi Thomas!
Could you do us a favour and test with the snaphot version of ds-2.0 to get some feedback?
In which case we would push forward with it soonish.
txs and LieGrue,
strub
> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Guys,
>
> I tried to move my projects from Payara 5 to Payara 6 using Deltaspike 1.9.4 including all Payara Libraries in the projects classpath.
>
> In one of these projects I'm using Deltaspike Repositories with @query() definitions. Now eclipse shows this error ->
>
> "The type javax.persistence.LockModeType cannot be resolved. It is indirectly referenced from required type org.apache.deltaspike.data.api.Query"
>
> which is understandable, because instead of javax.persistence.LockModeType it should reference jakarta.persistence.LockModeType which is actually on the classpath.
>
> So I can't use the recent release version anymore.
>
> Looking in the sourcecode on github I found, this is already changed in https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/Query.java and found that Mark committed this and other changes towards Jakarta in 2021 but its not included in 1.9.6 either.
>
> Are there any plans or dates when DeltaSpike 2.0 will be released?
>
> Best regards
>
> Thomas
AW: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Servus Mark,
sure I will do that. This week I'm very busy with other projects but next week will be fine.
Lg
Thomas
-----Ursprüngliche Nachricht-----
Von: Mark Struberg <st...@yahoo.de.INVALID>
Gesendet: Sonntag, 25. Juni 2023 23:51
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Hi Thomas!
Could you do us a favour and test with the snaphot version of ds-2.0 to get some feedback?
In which case we would push forward with it soonish.
txs and LieGrue,
strub
> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Guys,
>
> I tried to move my projects from Payara 5 to Payara 6 using Deltaspike 1.9.4 including all Payara Libraries in the projects classpath.
>
> In one of these projects I'm using Deltaspike Repositories with @query() definitions. Now eclipse shows this error ->
>
> "The type javax.persistence.LockModeType cannot be resolved. It is indirectly referenced from required type org.apache.deltaspike.data.api.Query"
>
> which is understandable, because instead of javax.persistence.LockModeType it should reference jakarta.persistence.LockModeType which is actually on the classpath.
>
> So I can't use the recent release version anymore.
>
> Looking in the sourcecode on github I found, this is already changed in https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/Query.java and found that Mark committed this and other changes towards Jakarta in 2021 but its not included in 1.9.6 either.
>
> Are there any plans or dates when DeltaSpike 2.0 will be released?
>
> Best regards
>
> Thomas
Re: Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
Hi Thomas!
Could you do us a favour and test with the snaphot version of ds-2.0 to get some feedback?
In which case we would push forward with it soonish.
txs and LieGrue,
strub
> Am 23.06.2023 um 14:43 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi Guys,
>
> I tried to move my projects from Payara 5 to Payara 6 using Deltaspike 1.9.4 including all Payara Libraries in the projects classpath.
>
> In one of these projects I'm using Deltaspike Repositories with @query() definitions. Now eclipse shows this error ->
>
> "The type javax.persistence.LockModeType cannot be resolved. It is indirectly referenced from required type org.apache.deltaspike.data.api.Query"
>
> which is understandable, because instead of javax.persistence.LockModeType it should reference jakarta.persistence.LockModeType which is actually on the classpath.
>
> So I can't use the recent release version anymore.
>
> Looking in the sourcecode on github I found, this is already changed in https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/Query.java and found that Mark committed this and other changes towards Jakarta in 2021 but its not included in 1.9.6 either.
>
> Are there any plans or dates when DeltaSpike 2.0 will be released?
>
> Best regards
>
> Thomas
Deltaspike 1.9.4 on Payara 6 not working anymore - 2.0 ?
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Guys,
I tried to move my projects from Payara 5 to Payara 6 using Deltaspike 1.9.4 including all Payara Libraries in the projects classpath.
In one of these projects I'm using Deltaspike Repositories with @query() definitions. Now eclipse shows this error ->
"The type javax.persistence.LockModeType cannot be resolved. It is indirectly referenced from required type org.apache.deltaspike.data.api.Query"
which is understandable, because instead of javax.persistence.LockModeType it should reference jakarta.persistence.LockModeType which is actually on the classpath.
So I can't use the recent release version anymore.
Looking in the sourcecode on github I found, this is already changed in https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/Query.java and found that Mark committed this and other changes towards Jakarta in 2021 but its not included in 1.9.6 either.
Are there any plans or dates when DeltaSpike 2.0 will be released?
Best regards
Thomas
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Andraschko <ta...@apache.org>.
+1 to add the JNDI fallback per default but not re-introduce our own
lookup/CL mapping per default.
Users can still switch to the old behavior via the config and maybe its
also worth to check the case here exactly and create a issue in the AS.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Am Mo., 13. Apr. 2020 um 13:20 Uhr schrieb Gerhard Petracek <
gpetracek@apache.org>:
> @thomas (a.)
> i'm a bit concerned about the handling of weld in that area (since i
> know quite a lot home-grown helpers in libs and projects, which beak
> as well).
> however, at least the fallback to #resolveBeanManagerViaJndi should
> fix the issue for weld based ee-servers.
>
> in any case, we should continue this thread on the dev-list.
>
> regards,
> gerhard
>
>
> Am Mo., 13. Apr. 2020 um 00:03 Uhr schrieb Gerhard Petracek
> <gp...@apache.org>:
> >
> > @thomas (k.):
> > you couldn't see it due to the log-level.
> >
> > the cause is:
> > Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001328:
> > Unable to identify the correct BeanManager. The calling class
> > sun.reflect.GeneratedMethodAccessor159 is not placed in bean archive
> > at org.jboss.weld.SimpleCDI.unsatisfiedBeanManager(SimpleCDI.java:89)
> > ...
> >
> > regards,
> > gerhard
> >
> >
> >
> > Am So., 12. Apr. 2020 um 20:59 Uhr schrieb Thomas Kernstock
> > <t....@e-technologies.at>:
> > >
> > > Servus Gerhard,
> > >
> > > I recently mailed with mark regarding that problem and created a small
> testproject. Pls find it under
> https://drive.google.com/drive/folders/1NgywZX73QViiM39DTaghigN7hKBxyfsj?usp=sharing.
> When I deploy it on Payara 5.201 the error occurs after accessing the main
> URL.
> > >
> > > I also checked the log file (see attachment) and couldn't find the
> mentioned message.
> > >
> > > Lg
> > > Thomas
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Gerhard Petracek <gp...@apache.org>
> > > Gesendet: Sonntag, 12. April 2020 11:08
> > > An: users@deltaspike.apache.org
> > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > >
> > > @thomas (k.):
> > > please check if you can find
> > > "failed to delegate bean-manager lookup"
> > > in your log/s...
> > >
> > >
> > > @thomas (a.):
> > > with the refactoring the fallback handling was dropped (which can
> cause a NPE).
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > >
> > > Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
> > > <gp...@apache.org>:
> > > >
> > > > @mark:
> > > > yes - it looks like the refactoring to the typed config mixed it
> up...
> > > >
> > > > regards,
> > > > gerhard
> > > >
> > > >
> > > > Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> > > > <t....@e-technologies.at>:
> > > > >
> > > > > Servus Mark,
> > > > >
> > > > > I replaced the deltaspike modules with version 1.9.3 again, to
> include the CDI check in. What I didn't see on the first try was the
> warning in eclipse, "No bean is eligible for injection to the injection
> point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which
> is located in another project. I don't know why this has to do with
> deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the
> JBoss Tools CDI Builder produces a Nullpointer Exception while building the
> projects. This is very weird.
> > > > >
> > > > > Anyway - the following bean is called right after deployment. I
> debugged the CDI.current() and it seems to be fine. I can see the
> Beanmanager etc. So there are no null values.
> > > > >
> > > > > @Eager
> > > > > @ApplicationScoped
> > > > > public class ConfigureApplication {
> > > > > @Inject ApplicationConfig appConfig;
> > > > > @Inject Logger logger;
> > > > > @Inject private ProjectStage projectStage;
> > > > >
> > > > > @PostConstruct
> > > > > public void init(){
> > > > > CDI<Object> cdi= CDI.current();
> > > > >
> > > > > if (ProjectStage.Production.equals(projectStage)) {
> > > > > appConfig.setBetriebsmodusTest(false);
> > > > > appConfig.setSendEmail(true);
> > > > > } else {
> > > > > appConfig.setSendEmail(false);
> > > > > appConfig.setBetriebsmodusTest(true);
> > > > > }
> > > > > logger.info("=== StartupConfig was called.
> Serverinfo: " + ((ServletContext)
> FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > > > > logger.info("=== JSF Stage: {} ",
> FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > > > > logger.info("=== Deltaspike: {}
> ",projectStage.toString());
> > > > > logger.info("=== Sendmails: {} ",
> appConfig.isSendEmail());
> > > > >
> > > > > }
> > > > > }
> > > > >
> > > > > But the Nullpointer I reported occurred on the first call of a
> page.
> > > > >
> > > > > Liebe Grüße
> > > > > Thomas
> > > > >
> > > > > -----Ursprüngliche Nachricht-----
> > > > > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > > > > Gesendet: Donnerstag, 9. April 2020 11:08
> > > > > An: users@deltaspike.apache.org
> > > > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > > > >
> > > > > Hmm, this means the BeanManager is null?
> > > > >
> > > > > Might habe to do with DELTASPIKE-1398?
> > > > >
> > > > > I suspect the following change in BeanManagerProvider, but would
> need to debug into:
> > > > >
> > > > > - if (cdiClass != null &&
> !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > > > + if (cdiClass != null &&
> CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > > >
> > > > > the delegate_lookup got reversed.
> > > > > Are we sure we use CDI.current() in your case, Thomas K? Can you
> please debug into this?
> > > > >
> > > > > Happy to look at it together via hangout.
> > > > >
> > > > >
> > > > > LieGrue,
> > > > > strub
> > > > >
> > > > >
> > > > >
> > > > > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
> > > > > >
> > > > > > Hi guys,
> > > > > >
> > > > > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > > > > Right now my application is running perfectly fine on Payarafish
> 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my
> project I use the modules
> > > > > >
> > > > > > * Bean-validation
> > > > > > * JPA
> > > > > > * JSF (Proxy and Security)
> > > > > > * Partial-bean
> > > > > >
> > > > > > When I replace the Deltaspike jars with 1.9.3 there are no
> problems in eclipse (like in my mail from February) Instead I get a
> stacktrace while deploying the application:
> > > > > >
> > > > > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was
> successfully deployed in 17.698 milliseconds.
> > > > > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be
> used to create @Dependent scoped beans. Bean: Producer Method
> [WindowContext] with qualifiers [@Default @Named @Any] declared as
> [[BackedAnnotatedMethod] @Produces @Named @Dependent public
> org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > > > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> > > > > > java.lang.NullPointerException
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > > > > at
> javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > > > > at
> com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > > > > at
> com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > > > > at
> com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > > > > at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > > > > at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > > > > at
> com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > > > > at
> com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > > > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > > > > at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > > > > at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > > > > at
> javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > > > > at
> javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > > > > at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > > > > at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > > at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > > at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > > at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > > at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > > at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > > at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > > at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > > at java.lang.Thread.run(Thread.java:748)
> > > > > >
> > > > > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> > > > > > java.lang.NullPointerException
> > > > > > at
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > > > > at
> javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > > > > at
> org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > > > > at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > > > > at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > > at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > > at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > > at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > > at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > > at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > > at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > > at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > > at java.lang.Thread.run(Thread.java:748)
> > > > > >
> > > > > > I couldn't find any infos in the what's new pages regarding
> changes in the configuration/faces.xml ect.
> > > > > > Any idea what I should check to avoid/repair this problem?
> > > > > >
> > > > > > Br
> > > > > > Thomas
> > > > > >
> > > > >
>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Andraschko <ta...@apache.org>.
+1 to add the JNDI fallback per default but not re-introduce our own
lookup/CL mapping per default.
Users can still switch to the old behavior via the config and maybe its
also worth to check the case here exactly and create a issue in the AS.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Am Mo., 13. Apr. 2020 um 13:20 Uhr schrieb Gerhard Petracek <
gpetracek@apache.org>:
> @thomas (a.)
> i'm a bit concerned about the handling of weld in that area (since i
> know quite a lot home-grown helpers in libs and projects, which beak
> as well).
> however, at least the fallback to #resolveBeanManagerViaJndi should
> fix the issue for weld based ee-servers.
>
> in any case, we should continue this thread on the dev-list.
>
> regards,
> gerhard
>
>
> Am Mo., 13. Apr. 2020 um 00:03 Uhr schrieb Gerhard Petracek
> <gp...@apache.org>:
> >
> > @thomas (k.):
> > you couldn't see it due to the log-level.
> >
> > the cause is:
> > Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001328:
> > Unable to identify the correct BeanManager. The calling class
> > sun.reflect.GeneratedMethodAccessor159 is not placed in bean archive
> > at org.jboss.weld.SimpleCDI.unsatisfiedBeanManager(SimpleCDI.java:89)
> > ...
> >
> > regards,
> > gerhard
> >
> >
> >
> > Am So., 12. Apr. 2020 um 20:59 Uhr schrieb Thomas Kernstock
> > <t....@e-technologies.at>:
> > >
> > > Servus Gerhard,
> > >
> > > I recently mailed with mark regarding that problem and created a small
> testproject. Pls find it under
> https://drive.google.com/drive/folders/1NgywZX73QViiM39DTaghigN7hKBxyfsj?usp=sharing.
> When I deploy it on Payara 5.201 the error occurs after accessing the main
> URL.
> > >
> > > I also checked the log file (see attachment) and couldn't find the
> mentioned message.
> > >
> > > Lg
> > > Thomas
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Gerhard Petracek <gp...@apache.org>
> > > Gesendet: Sonntag, 12. April 2020 11:08
> > > An: users@deltaspike.apache.org
> > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > >
> > > @thomas (k.):
> > > please check if you can find
> > > "failed to delegate bean-manager lookup"
> > > in your log/s...
> > >
> > >
> > > @thomas (a.):
> > > with the refactoring the fallback handling was dropped (which can
> cause a NPE).
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > >
> > > Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
> > > <gp...@apache.org>:
> > > >
> > > > @mark:
> > > > yes - it looks like the refactoring to the typed config mixed it
> up...
> > > >
> > > > regards,
> > > > gerhard
> > > >
> > > >
> > > > Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> > > > <t....@e-technologies.at>:
> > > > >
> > > > > Servus Mark,
> > > > >
> > > > > I replaced the deltaspike modules with version 1.9.3 again, to
> include the CDI check in. What I didn't see on the first try was the
> warning in eclipse, "No bean is eligible for injection to the injection
> point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which
> is located in another project. I don't know why this has to do with
> deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the
> JBoss Tools CDI Builder produces a Nullpointer Exception while building the
> projects. This is very weird.
> > > > >
> > > > > Anyway - the following bean is called right after deployment. I
> debugged the CDI.current() and it seems to be fine. I can see the
> Beanmanager etc. So there are no null values.
> > > > >
> > > > > @Eager
> > > > > @ApplicationScoped
> > > > > public class ConfigureApplication {
> > > > > @Inject ApplicationConfig appConfig;
> > > > > @Inject Logger logger;
> > > > > @Inject private ProjectStage projectStage;
> > > > >
> > > > > @PostConstruct
> > > > > public void init(){
> > > > > CDI<Object> cdi= CDI.current();
> > > > >
> > > > > if (ProjectStage.Production.equals(projectStage)) {
> > > > > appConfig.setBetriebsmodusTest(false);
> > > > > appConfig.setSendEmail(true);
> > > > > } else {
> > > > > appConfig.setSendEmail(false);
> > > > > appConfig.setBetriebsmodusTest(true);
> > > > > }
> > > > > logger.info("=== StartupConfig was called.
> Serverinfo: " + ((ServletContext)
> FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > > > > logger.info("=== JSF Stage: {} ",
> FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > > > > logger.info("=== Deltaspike: {}
> ",projectStage.toString());
> > > > > logger.info("=== Sendmails: {} ",
> appConfig.isSendEmail());
> > > > >
> > > > > }
> > > > > }
> > > > >
> > > > > But the Nullpointer I reported occurred on the first call of a
> page.
> > > > >
> > > > > Liebe Grüße
> > > > > Thomas
> > > > >
> > > > > -----Ursprüngliche Nachricht-----
> > > > > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > > > > Gesendet: Donnerstag, 9. April 2020 11:08
> > > > > An: users@deltaspike.apache.org
> > > > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > > > >
> > > > > Hmm, this means the BeanManager is null?
> > > > >
> > > > > Might habe to do with DELTASPIKE-1398?
> > > > >
> > > > > I suspect the following change in BeanManagerProvider, but would
> need to debug into:
> > > > >
> > > > > - if (cdiClass != null &&
> !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > > > + if (cdiClass != null &&
> CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > > >
> > > > > the delegate_lookup got reversed.
> > > > > Are we sure we use CDI.current() in your case, Thomas K? Can you
> please debug into this?
> > > > >
> > > > > Happy to look at it together via hangout.
> > > > >
> > > > >
> > > > > LieGrue,
> > > > > strub
> > > > >
> > > > >
> > > > >
> > > > > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
> > > > > >
> > > > > > Hi guys,
> > > > > >
> > > > > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > > > > Right now my application is running perfectly fine on Payarafish
> 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my
> project I use the modules
> > > > > >
> > > > > > * Bean-validation
> > > > > > * JPA
> > > > > > * JSF (Proxy and Security)
> > > > > > * Partial-bean
> > > > > >
> > > > > > When I replace the Deltaspike jars with 1.9.3 there are no
> problems in eclipse (like in my mail from February) Instead I get a
> stacktrace while deploying the application:
> > > > > >
> > > > > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was
> successfully deployed in 17.698 milliseconds.
> > > > > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be
> used to create @Dependent scoped beans. Bean: Producer Method
> [WindowContext] with qualifiers [@Default @Named @Any] declared as
> [[BackedAnnotatedMethod] @Produces @Named @Dependent public
> org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > > > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> > > > > > java.lang.NullPointerException
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > > > > at
> javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > > > > at
> com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > > > > at
> com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > > > > at
> com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > > > > at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > > > > at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > > at
> org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > > > > at
> com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > > > > at
> com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > > > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > > > > at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > > > > at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > > > > at
> javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > > > > at
> javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > > > > at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > > > > at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > > at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > > at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > > at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > > at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > > at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > > at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > > at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > > at java.lang.Thread.run(Thread.java:748)
> > > > > >
> > > > > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> > > > > > java.lang.NullPointerException
> > > > > > at
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > > > > at
> javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > > > > at
> org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > > > > at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > > > > at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > > at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > > at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > > at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > > at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > > at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > > at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > > at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > > at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > > at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > > at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > > at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > > at java.lang.Thread.run(Thread.java:748)
> > > > > >
> > > > > > I couldn't find any infos in the what's new pages regarding
> changes in the configuration/faces.xml ect.
> > > > > > Any idea what I should check to avoid/repair this problem?
> > > > > >
> > > > > > Br
> > > > > > Thomas
> > > > > >
> > > > >
>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Gerhard Petracek <gp...@apache.org>.
@thomas (a.)
i'm a bit concerned about the handling of weld in that area (since i
know quite a lot home-grown helpers in libs and projects, which beak
as well).
however, at least the fallback to #resolveBeanManagerViaJndi should
fix the issue for weld based ee-servers.
in any case, we should continue this thread on the dev-list.
regards,
gerhard
Am Mo., 13. Apr. 2020 um 00:03 Uhr schrieb Gerhard Petracek
<gp...@apache.org>:
>
> @thomas (k.):
> you couldn't see it due to the log-level.
>
> the cause is:
> Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001328:
> Unable to identify the correct BeanManager. The calling class
> sun.reflect.GeneratedMethodAccessor159 is not placed in bean archive
> at org.jboss.weld.SimpleCDI.unsatisfiedBeanManager(SimpleCDI.java:89)
> ...
>
> regards,
> gerhard
>
>
>
> Am So., 12. Apr. 2020 um 20:59 Uhr schrieb Thomas Kernstock
> <t....@e-technologies.at>:
> >
> > Servus Gerhard,
> >
> > I recently mailed with mark regarding that problem and created a small testproject. Pls find it under https://drive.google.com/drive/folders/1NgywZX73QViiM39DTaghigN7hKBxyfsj?usp=sharing. When I deploy it on Payara 5.201 the error occurs after accessing the main URL.
> >
> > I also checked the log file (see attachment) and couldn't find the mentioned message.
> >
> > Lg
> > Thomas
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Gerhard Petracek <gp...@apache.org>
> > Gesendet: Sonntag, 12. April 2020 11:08
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> >
> > @thomas (k.):
> > please check if you can find
> > "failed to delegate bean-manager lookup"
> > in your log/s...
> >
> >
> > @thomas (a.):
> > with the refactoring the fallback handling was dropped (which can cause a NPE).
> >
> > regards,
> > gerhard
> >
> >
> >
> > Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
> > <gp...@apache.org>:
> > >
> > > @mark:
> > > yes - it looks like the refactoring to the typed config mixed it up...
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > > Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> > > <t....@e-technologies.at>:
> > > >
> > > > Servus Mark,
> > > >
> > > > I replaced the deltaspike modules with version 1.9.3 again, to include the CDI check in. What I didn't see on the first try was the warning in eclipse, "No bean is eligible for injection to the injection point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in another project. I don't know why this has to do with deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI Builder produces a Nullpointer Exception while building the projects. This is very weird.
> > > >
> > > > Anyway - the following bean is called right after deployment. I debugged the CDI.current() and it seems to be fine. I can see the Beanmanager etc. So there are no null values.
> > > >
> > > > @Eager
> > > > @ApplicationScoped
> > > > public class ConfigureApplication {
> > > > @Inject ApplicationConfig appConfig;
> > > > @Inject Logger logger;
> > > > @Inject private ProjectStage projectStage;
> > > >
> > > > @PostConstruct
> > > > public void init(){
> > > > CDI<Object> cdi= CDI.current();
> > > >
> > > > if (ProjectStage.Production.equals(projectStage)) {
> > > > appConfig.setBetriebsmodusTest(false);
> > > > appConfig.setSendEmail(true);
> > > > } else {
> > > > appConfig.setSendEmail(false);
> > > > appConfig.setBetriebsmodusTest(true);
> > > > }
> > > > logger.info("=== StartupConfig was called. Serverinfo: " + ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > > > logger.info("=== JSF Stage: {} ", FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > > > logger.info("=== Deltaspike: {} ",projectStage.toString());
> > > > logger.info("=== Sendmails: {} ", appConfig.isSendEmail());
> > > >
> > > > }
> > > > }
> > > >
> > > > But the Nullpointer I reported occurred on the first call of a page.
> > > >
> > > > Liebe Grüße
> > > > Thomas
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > > > Gesendet: Donnerstag, 9. April 2020 11:08
> > > > An: users@deltaspike.apache.org
> > > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > > >
> > > > Hmm, this means the BeanManager is null?
> > > >
> > > > Might habe to do with DELTASPIKE-1398?
> > > >
> > > > I suspect the following change in BeanManagerProvider, but would need to debug into:
> > > >
> > > > - if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > > + if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > >
> > > > the delegate_lookup got reversed.
> > > > Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
> > > >
> > > > Happy to look at it together via hangout.
> > > >
> > > >
> > > > LieGrue,
> > > > strub
> > > >
> > > >
> > > >
> > > > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
> > > > >
> > > > > Hi guys,
> > > > >
> > > > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > > > Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
> > > > >
> > > > > * Bean-validation
> > > > > * JPA
> > > > > * JSF (Proxy and Security)
> > > > > * Partial-bean
> > > > >
> > > > > When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
> > > > >
> > > > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> > > > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > > > java.lang.NullPointerException
> > > > > at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > > > at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > > > at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > > > at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > > > at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > > > at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > > > at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > > > at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > > > at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > at java.lang.Thread.run(Thread.java:748)
> > > > >
> > > > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > > > java.lang.NullPointerException
> > > > > at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > > > at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > > > at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > at java.lang.Thread.run(Thread.java:748)
> > > > >
> > > > > I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> > > > > Any idea what I should check to avoid/repair this problem?
> > > > >
> > > > > Br
> > > > > Thomas
> > > > >
> > > >
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Gerhard Petracek <gp...@apache.org>.
@thomas (a.)
i'm a bit concerned about the handling of weld in that area (since i
know quite a lot home-grown helpers in libs and projects, which beak
as well).
however, at least the fallback to #resolveBeanManagerViaJndi should
fix the issue for weld based ee-servers.
in any case, we should continue this thread on the dev-list.
regards,
gerhard
Am Mo., 13. Apr. 2020 um 00:03 Uhr schrieb Gerhard Petracek
<gp...@apache.org>:
>
> @thomas (k.):
> you couldn't see it due to the log-level.
>
> the cause is:
> Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001328:
> Unable to identify the correct BeanManager. The calling class
> sun.reflect.GeneratedMethodAccessor159 is not placed in bean archive
> at org.jboss.weld.SimpleCDI.unsatisfiedBeanManager(SimpleCDI.java:89)
> ...
>
> regards,
> gerhard
>
>
>
> Am So., 12. Apr. 2020 um 20:59 Uhr schrieb Thomas Kernstock
> <t....@e-technologies.at>:
> >
> > Servus Gerhard,
> >
> > I recently mailed with mark regarding that problem and created a small testproject. Pls find it under https://drive.google.com/drive/folders/1NgywZX73QViiM39DTaghigN7hKBxyfsj?usp=sharing. When I deploy it on Payara 5.201 the error occurs after accessing the main URL.
> >
> > I also checked the log file (see attachment) and couldn't find the mentioned message.
> >
> > Lg
> > Thomas
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Gerhard Petracek <gp...@apache.org>
> > Gesendet: Sonntag, 12. April 2020 11:08
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> >
> > @thomas (k.):
> > please check if you can find
> > "failed to delegate bean-manager lookup"
> > in your log/s...
> >
> >
> > @thomas (a.):
> > with the refactoring the fallback handling was dropped (which can cause a NPE).
> >
> > regards,
> > gerhard
> >
> >
> >
> > Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
> > <gp...@apache.org>:
> > >
> > > @mark:
> > > yes - it looks like the refactoring to the typed config mixed it up...
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > > Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> > > <t....@e-technologies.at>:
> > > >
> > > > Servus Mark,
> > > >
> > > > I replaced the deltaspike modules with version 1.9.3 again, to include the CDI check in. What I didn't see on the first try was the warning in eclipse, "No bean is eligible for injection to the injection point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in another project. I don't know why this has to do with deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI Builder produces a Nullpointer Exception while building the projects. This is very weird.
> > > >
> > > > Anyway - the following bean is called right after deployment. I debugged the CDI.current() and it seems to be fine. I can see the Beanmanager etc. So there are no null values.
> > > >
> > > > @Eager
> > > > @ApplicationScoped
> > > > public class ConfigureApplication {
> > > > @Inject ApplicationConfig appConfig;
> > > > @Inject Logger logger;
> > > > @Inject private ProjectStage projectStage;
> > > >
> > > > @PostConstruct
> > > > public void init(){
> > > > CDI<Object> cdi= CDI.current();
> > > >
> > > > if (ProjectStage.Production.equals(projectStage)) {
> > > > appConfig.setBetriebsmodusTest(false);
> > > > appConfig.setSendEmail(true);
> > > > } else {
> > > > appConfig.setSendEmail(false);
> > > > appConfig.setBetriebsmodusTest(true);
> > > > }
> > > > logger.info("=== StartupConfig was called. Serverinfo: " + ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > > > logger.info("=== JSF Stage: {} ", FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > > > logger.info("=== Deltaspike: {} ",projectStage.toString());
> > > > logger.info("=== Sendmails: {} ", appConfig.isSendEmail());
> > > >
> > > > }
> > > > }
> > > >
> > > > But the Nullpointer I reported occurred on the first call of a page.
> > > >
> > > > Liebe Grüße
> > > > Thomas
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > > > Gesendet: Donnerstag, 9. April 2020 11:08
> > > > An: users@deltaspike.apache.org
> > > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > > >
> > > > Hmm, this means the BeanManager is null?
> > > >
> > > > Might habe to do with DELTASPIKE-1398?
> > > >
> > > > I suspect the following change in BeanManagerProvider, but would need to debug into:
> > > >
> > > > - if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > > + if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > >
> > > > the delegate_lookup got reversed.
> > > > Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
> > > >
> > > > Happy to look at it together via hangout.
> > > >
> > > >
> > > > LieGrue,
> > > > strub
> > > >
> > > >
> > > >
> > > > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
> > > > >
> > > > > Hi guys,
> > > > >
> > > > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > > > Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
> > > > >
> > > > > * Bean-validation
> > > > > * JPA
> > > > > * JSF (Proxy and Security)
> > > > > * Partial-bean
> > > > >
> > > > > When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
> > > > >
> > > > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> > > > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > > > java.lang.NullPointerException
> > > > > at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > > > at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > > > at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > > > at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > > > at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > > > at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > > > at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > > > at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > > > at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > at java.lang.Thread.run(Thread.java:748)
> > > > >
> > > > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > > > java.lang.NullPointerException
> > > > > at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > > > at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > > > at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > at java.lang.Thread.run(Thread.java:748)
> > > > >
> > > > > I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> > > > > Any idea what I should check to avoid/repair this problem?
> > > > >
> > > > > Br
> > > > > Thomas
> > > > >
> > > >
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Gerhard Petracek <gp...@apache.org>.
@thomas (k.):
you couldn't see it due to the log-level.
the cause is:
Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001328:
Unable to identify the correct BeanManager. The calling class
sun.reflect.GeneratedMethodAccessor159 is not placed in bean archive
at org.jboss.weld.SimpleCDI.unsatisfiedBeanManager(SimpleCDI.java:89)
...
regards,
gerhard
Am So., 12. Apr. 2020 um 20:59 Uhr schrieb Thomas Kernstock
<t....@e-technologies.at>:
>
> Servus Gerhard,
>
> I recently mailed with mark regarding that problem and created a small testproject. Pls find it under https://drive.google.com/drive/folders/1NgywZX73QViiM39DTaghigN7hKBxyfsj?usp=sharing. When I deploy it on Payara 5.201 the error occurs after accessing the main URL.
>
> I also checked the log file (see attachment) and couldn't find the mentioned message.
>
> Lg
> Thomas
>
> -----Ursprüngliche Nachricht-----
> Von: Gerhard Petracek <gp...@apache.org>
> Gesendet: Sonntag, 12. April 2020 11:08
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
>
> @thomas (k.):
> please check if you can find
> "failed to delegate bean-manager lookup"
> in your log/s...
>
>
> @thomas (a.):
> with the refactoring the fallback handling was dropped (which can cause a NPE).
>
> regards,
> gerhard
>
>
>
> Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
> <gp...@apache.org>:
> >
> > @mark:
> > yes - it looks like the refactoring to the typed config mixed it up...
> >
> > regards,
> > gerhard
> >
> >
> > Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> > <t....@e-technologies.at>:
> > >
> > > Servus Mark,
> > >
> > > I replaced the deltaspike modules with version 1.9.3 again, to include the CDI check in. What I didn't see on the first try was the warning in eclipse, "No bean is eligible for injection to the injection point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in another project. I don't know why this has to do with deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI Builder produces a Nullpointer Exception while building the projects. This is very weird.
> > >
> > > Anyway - the following bean is called right after deployment. I debugged the CDI.current() and it seems to be fine. I can see the Beanmanager etc. So there are no null values.
> > >
> > > @Eager
> > > @ApplicationScoped
> > > public class ConfigureApplication {
> > > @Inject ApplicationConfig appConfig;
> > > @Inject Logger logger;
> > > @Inject private ProjectStage projectStage;
> > >
> > > @PostConstruct
> > > public void init(){
> > > CDI<Object> cdi= CDI.current();
> > >
> > > if (ProjectStage.Production.equals(projectStage)) {
> > > appConfig.setBetriebsmodusTest(false);
> > > appConfig.setSendEmail(true);
> > > } else {
> > > appConfig.setSendEmail(false);
> > > appConfig.setBetriebsmodusTest(true);
> > > }
> > > logger.info("=== StartupConfig was called. Serverinfo: " + ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > > logger.info("=== JSF Stage: {} ", FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > > logger.info("=== Deltaspike: {} ",projectStage.toString());
> > > logger.info("=== Sendmails: {} ", appConfig.isSendEmail());
> > >
> > > }
> > > }
> > >
> > > But the Nullpointer I reported occurred on the first call of a page.
> > >
> > > Liebe Grüße
> > > Thomas
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > > Gesendet: Donnerstag, 9. April 2020 11:08
> > > An: users@deltaspike.apache.org
> > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > >
> > > Hmm, this means the BeanManager is null?
> > >
> > > Might habe to do with DELTASPIKE-1398?
> > >
> > > I suspect the following change in BeanManagerProvider, but would need to debug into:
> > >
> > > - if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > + if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > >
> > > the delegate_lookup got reversed.
> > > Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
> > >
> > > Happy to look at it together via hangout.
> > >
> > >
> > > LieGrue,
> > > strub
> > >
> > >
> > >
> > > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
> > > >
> > > > Hi guys,
> > > >
> > > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > > Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
> > > >
> > > > * Bean-validation
> > > > * JPA
> > > > * JSF (Proxy and Security)
> > > > * Partial-bean
> > > >
> > > > When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
> > > >
> > > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> > > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > > java.lang.NullPointerException
> > > > at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > > at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > > at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > > at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > > at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > > at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > > at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > > at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > > at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > at java.lang.Thread.run(Thread.java:748)
> > > >
> > > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > > java.lang.NullPointerException
> > > > at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > > at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > > at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > at java.lang.Thread.run(Thread.java:748)
> > > >
> > > > I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> > > > Any idea what I should check to avoid/repair this problem?
> > > >
> > > > Br
> > > > Thomas
> > > >
> > >
AW: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Kernstock <t....@e-technologies.at>.
Servus Gerhard,
I recently mailed with mark regarding that problem and created a small testproject. Pls find it under https://drive.google.com/drive/folders/1NgywZX73QViiM39DTaghigN7hKBxyfsj?usp=sharing. When I deploy it on Payara 5.201 the error occurs after accessing the main URL.
I also checked the log file (see attachment) and couldn't find the mentioned message.
Lg
Thomas
-----Ursprüngliche Nachricht-----
Von: Gerhard Petracek <gp...@apache.org>
Gesendet: Sonntag, 12. April 2020 11:08
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
@thomas (k.):
please check if you can find
"failed to delegate bean-manager lookup"
in your log/s...
@thomas (a.):
with the refactoring the fallback handling was dropped (which can cause a NPE).
regards,
gerhard
Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
<gp...@apache.org>:
>
> @mark:
> yes - it looks like the refactoring to the typed config mixed it up...
>
> regards,
> gerhard
>
>
> Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> <t....@e-technologies.at>:
> >
> > Servus Mark,
> >
> > I replaced the deltaspike modules with version 1.9.3 again, to include the CDI check in. What I didn't see on the first try was the warning in eclipse, "No bean is eligible for injection to the injection point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in another project. I don't know why this has to do with deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI Builder produces a Nullpointer Exception while building the projects. This is very weird.
> >
> > Anyway - the following bean is called right after deployment. I debugged the CDI.current() and it seems to be fine. I can see the Beanmanager etc. So there are no null values.
> >
> > @Eager
> > @ApplicationScoped
> > public class ConfigureApplication {
> > @Inject ApplicationConfig appConfig;
> > @Inject Logger logger;
> > @Inject private ProjectStage projectStage;
> >
> > @PostConstruct
> > public void init(){
> > CDI<Object> cdi= CDI.current();
> >
> > if (ProjectStage.Production.equals(projectStage)) {
> > appConfig.setBetriebsmodusTest(false);
> > appConfig.setSendEmail(true);
> > } else {
> > appConfig.setSendEmail(false);
> > appConfig.setBetriebsmodusTest(true);
> > }
> > logger.info("=== StartupConfig was called. Serverinfo: " + ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > logger.info("=== JSF Stage: {} ", FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > logger.info("=== Deltaspike: {} ",projectStage.toString());
> > logger.info("=== Sendmails: {} ", appConfig.isSendEmail());
> >
> > }
> > }
> >
> > But the Nullpointer I reported occurred on the first call of a page.
> >
> > Liebe Grüße
> > Thomas
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > Gesendet: Donnerstag, 9. April 2020 11:08
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> >
> > Hmm, this means the BeanManager is null?
> >
> > Might habe to do with DELTASPIKE-1398?
> >
> > I suspect the following change in BeanManagerProvider, but would need to debug into:
> >
> > - if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > + if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> >
> > the delegate_lookup got reversed.
> > Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
> >
> > Happy to look at it together via hangout.
> >
> >
> > LieGrue,
> > strub
> >
> >
> >
> > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
> > >
> > > Hi guys,
> > >
> > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
> > >
> > > * Bean-validation
> > > * JPA
> > > * JSF (Proxy and Security)
> > > * Partial-bean
> > >
> > > When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
> > >
> > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > java.lang.NullPointerException
> > > at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > at java.lang.Thread.run(Thread.java:748)
> > >
> > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > java.lang.NullPointerException
> > > at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > at java.lang.Thread.run(Thread.java:748)
> > >
> > > I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> > > Any idea what I should check to avoid/repair this problem?
> > >
> > > Br
> > > Thomas
> > >
> >
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Gerhard Petracek <gp...@apache.org>.
@thomas (a.)
with that argument #resolveBeanManagerViaStaticHelper would need to
re-throw the exception (instead of just logging it).
with the focus on cdi 1.1+ that's for sure a valid option (which
wasn't the case back then).
however, causing a NPE (just because the fallback handling was
dropped), is imo not a nice option.
regards,
gerhard
Am So., 12. Apr. 2020 um 11:50 Uhr schrieb Thomas Andraschko
<an...@gmail.com>:
>
> Not sure.
> I think the behavior is correct to full rely on CDI.current or not.
> If our default should be to use our own BeanManagerProvider-logic (which
> will be lead to memleaks), we can change the default.
>
>
> Am So., 12. Apr. 2020 um 11:07 Uhr schrieb Gerhard Petracek <
> gpetracek@apache.org>:
>
> > @thomas (k.):
> > please check if you can find
> > "failed to delegate bean-manager lookup"
> > in your log/s...
> >
> >
> > @thomas (a.):
> > with the refactoring the fallback handling was dropped (which can cause a
> > NPE).
> >
> > regards,
> > gerhard
> >
> >
> >
> > Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
> > <gp...@apache.org>:
> > >
> > > @mark:
> > > yes - it looks like the refactoring to the typed config mixed it up...
> > >
> > > regards,
> > > gerhard
> > >
> > >
> > > Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> > > <t....@e-technologies.at>:
> > > >
> > > > Servus Mark,
> > > >
> > > > I replaced the deltaspike modules with version 1.9.3 again, to include
> > the CDI check in. What I didn't see on the first try was the warning in
> > eclipse, "No bean is eligible for injection to the injection point [JSR-365
> > §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in
> > another project. I don't know why this has to do with deltaspike, but this
> > warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI
> > Builder produces a Nullpointer Exception while building the projects. This
> > is very weird.
> > > >
> > > > Anyway - the following bean is called right after deployment. I
> > debugged the CDI.current() and it seems to be fine. I can see the
> > Beanmanager etc. So there are no null values.
> > > >
> > > > @Eager
> > > > @ApplicationScoped
> > > > public class ConfigureApplication {
> > > > @Inject ApplicationConfig appConfig;
> > > > @Inject Logger logger;
> > > > @Inject private ProjectStage projectStage;
> > > >
> > > > @PostConstruct
> > > > public void init(){
> > > > CDI<Object> cdi= CDI.current();
> > > >
> > > > if (ProjectStage.Production.equals(projectStage)) {
> > > > appConfig.setBetriebsmodusTest(false);
> > > > appConfig.setSendEmail(true);
> > > > } else {
> > > > appConfig.setSendEmail(false);
> > > > appConfig.setBetriebsmodusTest(true);
> > > > }
> > > > logger.info("=== StartupConfig was called.
> > Serverinfo: " + ((ServletContext)
> > FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > > > logger.info("=== JSF Stage: {} ",
> > FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > > > logger.info("=== Deltaspike: {}
> > ",projectStage.toString());
> > > > logger.info("=== Sendmails: {} ",
> > appConfig.isSendEmail());
> > > >
> > > > }
> > > > }
> > > >
> > > > But the Nullpointer I reported occurred on the first call of a page.
> > > >
> > > > Liebe Grüße
> > > > Thomas
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > > > Gesendet: Donnerstag, 9. April 2020 11:08
> > > > An: users@deltaspike.apache.org
> > > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > > >
> > > > Hmm, this means the BeanManager is null?
> > > >
> > > > Might habe to do with DELTASPIKE-1398?
> > > >
> > > > I suspect the following change in BeanManagerProvider, but would need
> > to debug into:
> > > >
> > > > - if (cdiClass != null &&
> > !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > > + if (cdiClass != null &&
> > CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > >
> > > > the delegate_lookup got reversed.
> > > > Are we sure we use CDI.current() in your case, Thomas K? Can you
> > please debug into this?
> > > >
> > > > Happy to look at it together via hangout.
> > > >
> > > >
> > > > LieGrue,
> > > > strub
> > > >
> > > >
> > > >
> > > > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <
> > t.kernstock@e-technologies.at>:
> > > > >
> > > > > Hi guys,
> > > > >
> > > > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > > > Right now my application is running perfectly fine on Payarafish
> > 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my
> > project I use the modules
> > > > >
> > > > > * Bean-validation
> > > > > * JPA
> > > > > * JSF (Proxy and Security)
> > > > > * Partial-bean
> > > > >
> > > > > When I replace the Deltaspike jars with 1.9.3 there are no problems
> > in eclipse (like in my mail from February) Instead I get a stacktrace while
> > deploying the application:
> > > > >
> > > > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was
> > successfully deployed in 17.698 milliseconds.
> > > > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used
> > to create @Dependent scoped beans. Bean: Producer Method [WindowContext]
> > with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod]
> > @Produces @Named @Dependent public
> > org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> > [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> > FacesExceptionFilter: An exception occurred during processing servlet
> > request. Error page '/errorpages/error.jsp' will be shown.
> > > > > java.lang.NullPointerException
> > > > > at
> > org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > > > at
> > javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > > > at
> > com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > > > at
> > com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > > > at
> > com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > > > at
> > com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > > > at
> > com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > > > at
> > javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at
> > javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at
> > javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at
> > javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > > at
> > org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > > > at
> > com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > > > at
> > com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > > > at
> > org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > > > at
> > javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > > > at
> > javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > > > at
> > javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > > > at
> > org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > at
> > org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > at
> > org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > at
> > org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > at
> > com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > at
> > org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > at
> > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > at
> > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > at
> > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > at
> > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > at
> > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > at
> > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > at
> > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > at
> > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > at
> > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > at
> > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > at
> > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > at
> > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > at
> > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > at
> > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > at java.lang.Thread.run(Thread.java:748)
> > > > >
> > > > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> > [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> > FacesExceptionFilter: An exception occurred during processing servlet
> > request. Error page '/errorpages/error.jsp' will be shown.
> > > > > java.lang.NullPointerException
> > > > > at
> > org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > > > at
> > org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > > > at
> > org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > > > at
> > org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > > > at
> > org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > > > at
> > javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > > > at
> > org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > > > at
> > javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > > > at
> > org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > > at
> > org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > > at
> > org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > > at
> > org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > > at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > > at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > > at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > > at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > > at
> > com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > > at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > > at
> > org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > > at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > > at
> > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > > at
> > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > > at
> > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > > at
> > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > > at
> > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > > at
> > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > > at
> > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > > at
> > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > > at
> > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > > at
> > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > > at
> > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > > at
> > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > > at
> > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > > at
> > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > > at
> > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > > at java.lang.Thread.run(Thread.java:748)
> > > > >
> > > > > I couldn't find any infos in the what's new pages regarding changes
> > in the configuration/faces.xml ect.
> > > > > Any idea what I should check to avoid/repair this problem?
> > > > >
> > > > > Br
> > > > > Thomas
> > > > >
> > > >
> >
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Andraschko <an...@gmail.com>.
Not sure.
I think the behavior is correct to full rely on CDI.current or not.
If our default should be to use our own BeanManagerProvider-logic (which
will be lead to memleaks), we can change the default.
Am So., 12. Apr. 2020 um 11:07 Uhr schrieb Gerhard Petracek <
gpetracek@apache.org>:
> @thomas (k.):
> please check if you can find
> "failed to delegate bean-manager lookup"
> in your log/s...
>
>
> @thomas (a.):
> with the refactoring the fallback handling was dropped (which can cause a
> NPE).
>
> regards,
> gerhard
>
>
>
> Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
> <gp...@apache.org>:
> >
> > @mark:
> > yes - it looks like the refactoring to the typed config mixed it up...
> >
> > regards,
> > gerhard
> >
> >
> > Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> > <t....@e-technologies.at>:
> > >
> > > Servus Mark,
> > >
> > > I replaced the deltaspike modules with version 1.9.3 again, to include
> the CDI check in. What I didn't see on the first try was the warning in
> eclipse, "No bean is eligible for injection to the injection point [JSR-365
> §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in
> another project. I don't know why this has to do with deltaspike, but this
> warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI
> Builder produces a Nullpointer Exception while building the projects. This
> is very weird.
> > >
> > > Anyway - the following bean is called right after deployment. I
> debugged the CDI.current() and it seems to be fine. I can see the
> Beanmanager etc. So there are no null values.
> > >
> > > @Eager
> > > @ApplicationScoped
> > > public class ConfigureApplication {
> > > @Inject ApplicationConfig appConfig;
> > > @Inject Logger logger;
> > > @Inject private ProjectStage projectStage;
> > >
> > > @PostConstruct
> > > public void init(){
> > > CDI<Object> cdi= CDI.current();
> > >
> > > if (ProjectStage.Production.equals(projectStage)) {
> > > appConfig.setBetriebsmodusTest(false);
> > > appConfig.setSendEmail(true);
> > > } else {
> > > appConfig.setSendEmail(false);
> > > appConfig.setBetriebsmodusTest(true);
> > > }
> > > logger.info("=== StartupConfig was called.
> Serverinfo: " + ((ServletContext)
> FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > > logger.info("=== JSF Stage: {} ",
> FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > > logger.info("=== Deltaspike: {}
> ",projectStage.toString());
> > > logger.info("=== Sendmails: {} ",
> appConfig.isSendEmail());
> > >
> > > }
> > > }
> > >
> > > But the Nullpointer I reported occurred on the first call of a page.
> > >
> > > Liebe Grüße
> > > Thomas
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > > Gesendet: Donnerstag, 9. April 2020 11:08
> > > An: users@deltaspike.apache.org
> > > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> > >
> > > Hmm, this means the BeanManager is null?
> > >
> > > Might habe to do with DELTASPIKE-1398?
> > >
> > > I suspect the following change in BeanManagerProvider, but would need
> to debug into:
> > >
> > > - if (cdiClass != null &&
> !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > > + if (cdiClass != null &&
> CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > >
> > > the delegate_lookup got reversed.
> > > Are we sure we use CDI.current() in your case, Thomas K? Can you
> please debug into this?
> > >
> > > Happy to look at it together via hangout.
> > >
> > >
> > > LieGrue,
> > > strub
> > >
> > >
> > >
> > > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <
> t.kernstock@e-technologies.at>:
> > > >
> > > > Hi guys,
> > > >
> > > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > > Right now my application is running perfectly fine on Payarafish
> 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my
> project I use the modules
> > > >
> > > > * Bean-validation
> > > > * JPA
> > > > * JSF (Proxy and Security)
> > > > * Partial-bean
> > > >
> > > > When I replace the Deltaspike jars with 1.9.3 there are no problems
> in eclipse (like in my mail from February) Instead I get a stacktrace while
> deploying the application:
> > > >
> > > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was
> successfully deployed in 17.698 milliseconds.
> > > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used
> to create @Dependent scoped beans. Bean: Producer Method [WindowContext]
> with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod]
> @Produces @Named @Dependent public
> org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> > > > java.lang.NullPointerException
> > > > at
> org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > > at
> javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > > at
> com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > > at
> com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > > at
> com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > > at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > > at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > > at
> org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > > at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > > at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > > at
> javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > > at
> javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > > at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > > at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > at java.lang.Thread.run(Thread.java:748)
> > > >
> > > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> > > > java.lang.NullPointerException
> > > > at
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > > at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > > at
> javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > > at
> org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > > at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > > at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > > at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > > at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > > at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > > at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > > at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > > at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > > at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > > at
> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > > at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > > at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > > at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > > at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > > at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > > at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > > at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > > at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > > at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > > at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > > at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > > at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > > at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > > at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > > at java.lang.Thread.run(Thread.java:748)
> > > >
> > > > I couldn't find any infos in the what's new pages regarding changes
> in the configuration/faces.xml ect.
> > > > Any idea what I should check to avoid/repair this problem?
> > > >
> > > > Br
> > > > Thomas
> > > >
> > >
>
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Gerhard Petracek <gp...@apache.org>.
@thomas (k.):
please check if you can find
"failed to delegate bean-manager lookup"
in your log/s...
@thomas (a.):
with the refactoring the fallback handling was dropped (which can cause a NPE).
regards,
gerhard
Am So., 12. Apr. 2020 um 10:52 Uhr schrieb Gerhard Petracek
<gp...@apache.org>:
>
> @mark:
> yes - it looks like the refactoring to the typed config mixed it up...
>
> regards,
> gerhard
>
>
> Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
> <t....@e-technologies.at>:
> >
> > Servus Mark,
> >
> > I replaced the deltaspike modules with version 1.9.3 again, to include the CDI check in. What I didn't see on the first try was the warning in eclipse, "No bean is eligible for injection to the injection point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in another project. I don't know why this has to do with deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI Builder produces a Nullpointer Exception while building the projects. This is very weird.
> >
> > Anyway - the following bean is called right after deployment. I debugged the CDI.current() and it seems to be fine. I can see the Beanmanager etc. So there are no null values.
> >
> > @Eager
> > @ApplicationScoped
> > public class ConfigureApplication {
> > @Inject ApplicationConfig appConfig;
> > @Inject Logger logger;
> > @Inject private ProjectStage projectStage;
> >
> > @PostConstruct
> > public void init(){
> > CDI<Object> cdi= CDI.current();
> >
> > if (ProjectStage.Production.equals(projectStage)) {
> > appConfig.setBetriebsmodusTest(false);
> > appConfig.setSendEmail(true);
> > } else {
> > appConfig.setSendEmail(false);
> > appConfig.setBetriebsmodusTest(true);
> > }
> > logger.info("=== StartupConfig was called. Serverinfo: " + ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> > logger.info("=== JSF Stage: {} ", FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> > logger.info("=== Deltaspike: {} ",projectStage.toString());
> > logger.info("=== Sendmails: {} ", appConfig.isSendEmail());
> >
> > }
> > }
> >
> > But the Nullpointer I reported occurred on the first call of a page.
> >
> > Liebe Grüße
> > Thomas
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Mark Struberg <st...@yahoo.de.INVALID>
> > Gesendet: Donnerstag, 9. April 2020 11:08
> > An: users@deltaspike.apache.org
> > Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
> >
> > Hmm, this means the BeanManager is null?
> >
> > Might habe to do with DELTASPIKE-1398?
> >
> > I suspect the following change in BeanManagerProvider, but would need to debug into:
> >
> > - if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> > + if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> >
> > the delegate_lookup got reversed.
> > Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
> >
> > Happy to look at it together via hangout.
> >
> >
> > LieGrue,
> > strub
> >
> >
> >
> > > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
> > >
> > > Hi guys,
> > >
> > > Me again. After a while I tried upgrading to 1.9.3 again.
> > > Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
> > >
> > > * Bean-validation
> > > * JPA
> > > * JSF (Proxy and Security)
> > > * Partial-bean
> > >
> > > When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
> > >
> > > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> > > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > java.lang.NullPointerException
> > > at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > > at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > > at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > > at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > > at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > > at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > > at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > > at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > > at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > > at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > at java.lang.Thread.run(Thread.java:748)
> > >
> > > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > > java.lang.NullPointerException
> > > at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > > at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > > at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > > at java.lang.Thread.run(Thread.java:748)
> > >
> > > I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> > > Any idea what I should check to avoid/repair this problem?
> > >
> > > Br
> > > Thomas
> > >
> >
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Gerhard Petracek <gp...@apache.org>.
@mark:
yes - it looks like the refactoring to the typed config mixed it up...
regards,
gerhard
Am Do., 9. Apr. 2020 um 14:15 Uhr schrieb Thomas Kernstock
<t....@e-technologies.at>:
>
> Servus Mark,
>
> I replaced the deltaspike modules with version 1.9.3 again, to include the CDI check in. What I didn't see on the first try was the warning in eclipse, "No bean is eligible for injection to the injection point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in another project. I don't know why this has to do with deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI Builder produces a Nullpointer Exception while building the projects. This is very weird.
>
> Anyway - the following bean is called right after deployment. I debugged the CDI.current() and it seems to be fine. I can see the Beanmanager etc. So there are no null values.
>
> @Eager
> @ApplicationScoped
> public class ConfigureApplication {
> @Inject ApplicationConfig appConfig;
> @Inject Logger logger;
> @Inject private ProjectStage projectStage;
>
> @PostConstruct
> public void init(){
> CDI<Object> cdi= CDI.current();
>
> if (ProjectStage.Production.equals(projectStage)) {
> appConfig.setBetriebsmodusTest(false);
> appConfig.setSendEmail(true);
> } else {
> appConfig.setSendEmail(false);
> appConfig.setBetriebsmodusTest(true);
> }
> logger.info("=== StartupConfig was called. Serverinfo: " + ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
> logger.info("=== JSF Stage: {} ", FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
> logger.info("=== Deltaspike: {} ",projectStage.toString());
> logger.info("=== Sendmails: {} ", appConfig.isSendEmail());
>
> }
> }
>
> But the Nullpointer I reported occurred on the first call of a page.
>
> Liebe Grüße
> Thomas
>
> -----Ursprüngliche Nachricht-----
> Von: Mark Struberg <st...@yahoo.de.INVALID>
> Gesendet: Donnerstag, 9. April 2020 11:08
> An: users@deltaspike.apache.org
> Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
>
> Hmm, this means the BeanManager is null?
>
> Might habe to do with DELTASPIKE-1398?
>
> I suspect the following change in BeanManagerProvider, but would need to debug into:
>
> - if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
> + if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
>
> the delegate_lookup got reversed.
> Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
>
> Happy to look at it together via hangout.
>
>
> LieGrue,
> strub
>
>
>
> > Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
> >
> > Hi guys,
> >
> > Me again. After a while I tried upgrading to 1.9.3 again.
> > Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
> >
> > * Bean-validation
> > * JPA
> > * JSF (Proxy and Security)
> > * Partial-bean
> >
> > When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
> >
> > 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> > 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> > 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > java.lang.NullPointerException
> > at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> > at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> > at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> > at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> > at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> > at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> > at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> > at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> > at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> > at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> > at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> > at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > at java.lang.Thread.run(Thread.java:748)
> >
> > 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> > java.lang.NullPointerException
> > at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> > at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> > at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> > at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> > at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> > at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> > at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> > at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> > at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> > at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> > at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> > at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> > at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> > at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> > at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> > at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> > at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> > at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> > at java.lang.Thread.run(Thread.java:748)
> >
> > I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> > Any idea what I should check to avoid/repair this problem?
> >
> > Br
> > Thomas
> >
>
AW: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Kernstock <t....@e-technologies.at>.
Servus Mark,
I replaced the deltaspike modules with version 1.9.3 again, to include the CDI check in. What I didn't see on the first try was the warning in eclipse, "No bean is eligible for injection to the injection point [JSR-365 §5.2.2]" for the Logger and the ApplicationConfig Bean which is located in another project. I don't know why this has to do with deltaspike, but this warning isn't there when I use 1.8.2. Furthermore the JBoss Tools CDI Builder produces a Nullpointer Exception while building the projects. This is very weird.
Anyway - the following bean is called right after deployment. I debugged the CDI.current() and it seems to be fine. I can see the Beanmanager etc. So there are no null values.
@Eager
@ApplicationScoped
public class ConfigureApplication {
@Inject ApplicationConfig appConfig;
@Inject Logger logger;
@Inject private ProjectStage projectStage;
@PostConstruct
public void init(){
CDI<Object> cdi= CDI.current();
if (ProjectStage.Production.equals(projectStage)) {
appConfig.setBetriebsmodusTest(false);
appConfig.setSendEmail(true);
} else {
appConfig.setSendEmail(false);
appConfig.setBetriebsmodusTest(true);
}
logger.info("=== StartupConfig was called. Serverinfo: " + ((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext()).getServerInfo());
logger.info("=== JSF Stage: {} ", FacesContext.getCurrentInstance().getApplication().getProjectStage().toString());
logger.info("=== Deltaspike: {} ",projectStage.toString());
logger.info("=== Sendmails: {} ", appConfig.isSendEmail());
}
}
But the Nullpointer I reported occurred on the first call of a page.
Liebe Grüße
Thomas
-----Ursprüngliche Nachricht-----
Von: Mark Struberg <st...@yahoo.de.INVALID>
Gesendet: Donnerstag, 9. April 2020 11:08
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
Hmm, this means the BeanManager is null?
Might habe to do with DELTASPIKE-1398?
I suspect the following change in BeanManagerProvider, but would need to debug into:
- if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
+ if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
the delegate_lookup got reversed.
Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
Happy to look at it together via hangout.
LieGrue,
strub
> Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi guys,
>
> Me again. After a while I tried upgrading to 1.9.3 again.
> Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
>
> * Bean-validation
> * JPA
> * JSF (Proxy and Security)
> * Partial-bean
>
> When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
>
> 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> Any idea what I should check to avoid/repair this problem?
>
> Br
> Thomas
>
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
Hmm, this means the BeanManager is null?
Might habe to do with DELTASPIKE-1398?
I suspect the following change in BeanManagerProvider, but would need to debug into:
- if (cdiClass != null && !CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
+ if (cdiClass != null && CoreBaseConfig.BeanManagerIntegration.DELEGATE_LOOKUP)
the delegate_lookup got reversed.
Are we sure we use CDI.current() in your case, Thomas K? Can you please debug into this?
Happy to look at it together via hangout.
LieGrue,
strub
> Am 06.04.2020 um 20:36 schrieb Thomas Kernstock <t....@e-technologies.at>:
>
> Hi guys,
>
> Me again. After a while I tried upgrading to 1.9.3 again.
> Right now my application is running perfectly fine on Payarafish 5.201 with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I use the modules
>
> * Bean-validation
> * JPA
> * JSF (Proxy and Security)
> * Partial-bean
>
> When I replace the Deltaspike jars with 1.9.3 there are no problems in eclipse (like in my mail from February) Instead I get a stacktrace while deploying the application:
>
> 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully deployed in 17.698 milliseconds.
> 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to create @Dependent scoped beans. Bean: Producer Method [WindowContext] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named @Dependent public org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND: [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> at javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND: [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1] FacesExceptionFilter: An exception occurred during processing servlet request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> at javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> at org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> I couldn't find any infos in the what's new pages regarding changes in the configuration/faces.xml ect.
> Any idea what I should check to avoid/repair this problem?
>
> Br
> Thomas
>
AW: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Thomas,
Thanx for your reply. I will try the other versions and will come back to you.
Br
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Andraschko <an...@gmail.com>
Gesendet: Montag, 6. April 2020 21:41
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
It would be great if you could always find the breaking version - otherwise
its very hard to find the reason if you skip 3 versions :P
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Am Mo., 6. Apr. 2020 um 20:36 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi guys,
>
> Me again. After a while I tried upgrading to 1.9.3 again.
> Right now my application is running perfectly fine on Payarafish 5.201
> with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I
> use the modules
>
> * Bean-validation
> * JPA
> * JSF (Proxy and Security)
> * Partial-bean
>
> When I replace the Deltaspike jars with 1.9.3 there are no problems in
> eclipse (like in my mail from February) Instead I get a stacktrace while
> deploying the application:
>
> 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully
> deployed in 17.698 milliseconds.
> 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to
> create @Dependent scoped beans. Bean: Producer Method [WindowContext] with
> qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod]
> @Produces @Named @Dependent public
> org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> at
> javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> at
> com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> at
> com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> at
> com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> at
> javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> at
> javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> at
> javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> at
> org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> I couldn't find any infos in the what's new pages regarding changes in the
> configuration/faces.xml ect.
> Any idea what I should check to avoid/repair this problem?
>
> Br
> Thomas
>
>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
AW: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Thomas,
last post for this night. I tried out version 1.9.1 and got another but different stacktrace while deploying:
2020-04-07T02:11:19.477+0200|WARN: WELD-001478: Interceptor class org.apache.deltaspike.security.impl.extension.SecurityInterceptor is enabled for the application and for the bean archive Karriereportal.war/WEB-INF/lib/deltaspike-security-module-impl. It will only be invoked in the @Priority part of the chain.
2020-04-07T02:11:19.485+0200|WARN: WELD-001478: Interceptor class org.apache.deltaspike.jsf.impl.config.view.navigation.NavigationParameterInterceptor is enabled for the application and for the bean archive Karriereportal.war/WEB-INF/lib/deltaspike-jsf-module-impl. It will only be invoked in the @Priority part of the chain.
2020-04-07T02:11:19.485+0200|WARN: WELD-001478: Interceptor class org.apache.deltaspike.jsf.impl.config.view.navigation.NavigationParameterListInterceptor is enabled for the application and for the bean archive Karriereportal.war/WEB-INF/lib/deltaspike-jsf-module-impl. It will only be invoked in the @Priority part of the chain.
2020-04-07T02:11:19.488+0200|WARN: WELD-001478: Interceptor class org.apache.deltaspike.core.impl.throttling.ThrottledInterceptor is enabled for the application and for the bean archive Karriereportal.war/WEB-INF/lib/deltaspike-core-impl. It will only be invoked in the @Priority part of the chain.
2020-04-07T02:11:19.488+0200|WARN: WELD-001478: Interceptor class org.apache.deltaspike.core.impl.lock.LockedInterceptor is enabled for the application and for the bean archive Karriereportal.war/WEB-INF/lib/deltaspike-core-impl. It will only be invoked in the @Priority part of the chain.
2020-04-07T02:11:19.488+0200|WARN: WELD-001478: Interceptor class org.apache.deltaspike.core.impl.future.FutureableInterceptor is enabled for the application and for the bean archive Karriereportal.war/WEB-INF/lib/deltaspike-core-impl. It will only be invoked in the @Priority part of the chain.
2020-04-07T02:11:19.488+0200|WARN: WELD-001478: Interceptor class org.apache.deltaspike.core.impl.monitoring.InvocationMonitorInterceptor is enabled for the application and for the bean archive Karriereportal.war/WEB-INF/lib/deltaspike-core-impl. It will only be invoked in the @Priority part of the chain.
2020-04-07T02:11:19.778+0200|SCHWERWIEGEND: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:org/apache/deltaspike/jpa/impl/entitymanager/EntityManagerMetadata -- org/apache/deltaspike/jpa/impl/entitymanager/EntityManagerMetadata
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at org.glassfish.web.loader.WebappClassLoader.defineLoadedClass(WebappClassLoader.java:3449)
at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:1139)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1705)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1583)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.getDeclaredConstructor(Class.java:2178)
at org.jboss.weld.util.SecurityActions.getDeclaredConstructor(SecurityActions.java:38)
at org.jboss.weld.util.Proxies.getUnproxyableClassException(Proxies.java:206)
at org.jboss.weld.util.Proxies.getUnproxyableTypeException(Proxies.java:178)
at org.jboss.weld.util.Proxies.getUnproxyableTypesExceptionInt(Proxies.java:190)
at org.jboss.weld.util.Proxies.getUnproxyableTypesException(Proxies.java:173)
at org.jboss.weld.util.Proxies.isTypesProxyable(Proxies.java:161)
at org.jboss.weld.bean.ProducerMethod.<init>(ProducerMethod.java:76)
at org.jboss.weld.bean.ProducerMethod.of(ProducerMethod.java:60)
at org.jboss.weld.bootstrap.AbstractBeanDeployer.createProducerMethod(AbstractBeanDeployer.java:230)
at org.jboss.weld.bootstrap.AbstractBeanDeployer.createProducerMethods(AbstractBeanDeployer.java:215)
at org.jboss.weld.bootstrap.AbstractBeanDeployer.createObserversProducersDisposers(AbstractBeanDeployer.java:192)
at org.jboss.weld.bootstrap.BeanDeployer.createProducersAndObservers(BeanDeployer.java:306)
at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:443)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:86)
at org.glassfish.weld.WeldDeployer.processApplicationLoaded(WeldDeployer.java:512)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:424)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:344)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:568)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:561)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:558)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:554)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:553)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:584)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:576)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:575)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1496)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:120)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1878)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1754)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:564)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:251)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:166)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
at java.lang.Thread.run(Thread.java:748)
2020-04-07T02:11:19.779+0200|SCHWERWIEGEND: Exception while loading the app
Br
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Andraschko <an...@gmail.com>
Gesendet: Montag, 6. April 2020 21:41
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
It would be great if you could always find the breaking version - otherwise
its very hard to find the reason if you skip 3 versions :P
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Am Mo., 6. Apr. 2020 um 20:36 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi guys,
>
> Me again. After a while I tried upgrading to 1.9.3 again.
> Right now my application is running perfectly fine on Payarafish 5.201
> with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I
> use the modules
>
> * Bean-validation
> * JPA
> * JSF (Proxy and Security)
> * Partial-bean
>
> When I replace the Deltaspike jars with 1.9.3 there are no problems in
> eclipse (like in my mail from February) Instead I get a stacktrace while
> deploying the application:
>
> 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully
> deployed in 17.698 milliseconds.
> 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to
> create @Dependent scoped beans. Bean: Producer Method [WindowContext] with
> qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod]
> @Produces @Named @Dependent public
> org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> at
> javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> at
> com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> at
> com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> at
> com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> at
> javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> at
> javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> at
> javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> at
> org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> I couldn't find any infos in the what's new pages regarding changes in the
> configuration/faces.xml ect.
> Any idea what I should check to avoid/repair this problem?
>
> Br
> Thomas
>
>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
AW: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Thomas,
unfortunately I can't download version 1.9.2 from the archive. The .zip and .gz Archives seem to be corrupted/empty.
Br
Thomas
-----Ursprüngliche Nachricht-----
Von: Thomas Andraschko <an...@gmail.com>
Gesendet: Montag, 6. April 2020 21:41
An: users@deltaspike.apache.org
Betreff: Re: Deltaspike 1.8.2 -> 1.9.3
It would be great if you could always find the breaking version - otherwise
its very hard to find the reason if you skip 3 versions :P
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Am Mo., 6. Apr. 2020 um 20:36 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi guys,
>
> Me again. After a while I tried upgrading to 1.9.3 again.
> Right now my application is running perfectly fine on Payarafish 5.201
> with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I
> use the modules
>
> * Bean-validation
> * JPA
> * JSF (Proxy and Security)
> * Partial-bean
>
> When I replace the Deltaspike jars with 1.9.3 there are no problems in
> eclipse (like in my mail from February) Instead I get a stacktrace while
> deploying the application:
>
> 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully
> deployed in 17.698 milliseconds.
> 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to
> create @Dependent scoped beans. Bean: Producer Method [WindowContext] with
> qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod]
> @Produces @Named @Dependent public
> org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> at
> javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> at
> com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> at
> com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> at
> com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> at
> javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> at
> javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> at
> javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> at
> org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> I couldn't find any infos in the what's new pages regarding changes in the
> configuration/faces.xml ect.
> Any idea what I should check to avoid/repair this problem?
>
> Br
> Thomas
>
>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Re: Deltaspike 1.8.2 -> 1.9.3
Posted by Thomas Andraschko <an...@gmail.com>.
It would be great if you could always find the breaking version - otherwise
its very hard to find the reason if you skip 3 versions :P
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Am Mo., 6. Apr. 2020 um 20:36 Uhr schrieb Thomas Kernstock <
t.kernstock@e-technologies.at>:
> Hi guys,
>
> Me again. After a while I tried upgrading to 1.9.3 again.
> Right now my application is running perfectly fine on Payarafish 5.201
> with Deltaspike 1.8.2, Omnifaces 3.3. and Primefaces 8.0. In my project I
> use the modules
>
> * Bean-validation
> * JPA
> * JSF (Proxy and Security)
> * Partial-bean
>
> When I replace the Deltaspike jars with 1.9.3 there are no problems in
> eclipse (like in my mail from February) Instead I get a stacktrace while
> deploying the application:
>
> 2020-04-06T20:27:54.823+0200|INFORMATION: Karriereportal was successfully
> deployed in 17.698 milliseconds.
> 2020-04-06T20:28:17.326+0200|WARNUNG: BeanProvider shall not be used to
> create @Dependent scoped beans. Bean: Producer Method [WindowContext] with
> qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod]
> @Produces @Named @Dependent public
> org.apache.deltaspike.core.impl.scope.window.WindowContextProducer.getWindowContext()]
> 2020-04-06T20:28:17.357+0200|SCHWERWIEGEND:
> [1876507d-b3e1-4a25-bba2-f108db145eba][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster.processEvent(JsfSystemEventBroadcaster.java:56)
> at
> javax.faces.event.SystemEvent.processListener(SystemEvent.java:123)
> at
> com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253)
> at
> com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231)
> at
> com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:115)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127)
> at
> com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:119)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:776)
> at
> org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:148)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:135)
> at com.sun.faces.lifecycle.Phase.queueException(Phase.java:124)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:84)
> at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
> at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> at
> javax.faces.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:73)
> at
> javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> 2020-04-06T20:28:18.063+0200|SCHWERWIEGEND:
> [df043efb-6374-4d9a-9595-bdb71e54c54e][0:0:0:0:0:0:0:1]
> FacesExceptionFilter: An exception occurred during processing servlet
> request. Error page '/errorpages/error.jsp' will be shown.
> java.lang.NullPointerException
> at
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:144)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.init(DeltaSpikeFacesContextWrapper.java:157)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.lazyInit(DeltaSpikeFacesContextWrapper.java:147)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.broadcastDestroyedJsfRequestEvent(DeltaSpikeFacesContextWrapper.java:136)
> at
> org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextWrapper.release(DeltaSpikeFacesContextWrapper.java:104)
> at
> javax.faces.context.FacesContextWrapper.release(FacesContextWrapper.java:319)
> at
> org.primefaces.context.PrimeFacesContext.release(PrimeFacesContext.java:123)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:454)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:133)
> at
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:118)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:89)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:239)
> at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
> at java.lang.Thread.run(Thread.java:748)
>
> I couldn't find any infos in the what's new pages regarding changes in the
> configuration/faces.xml ect.
> Any idea what I should check to avoid/repair this problem?
>
> Br
> Thomas
>
>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>