Erro no vraptor-error-control

31 views
Skip to first unread message

Rafael Delanhese

unread,
Apr 29, 2018, 10:20:44 PM4/29/18
to caelum-vraptor
Ao tentar executar o vraptor-error-control ele apresenta o seguinte erro:

GRAVE: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type ServletBasedEnvironment with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject private br.com.caelum.vraptor.errormail.ErrorLoggerServlet.env
  at br.com.caelum.vraptor.errormail.ErrorLoggerServlet.env(ErrorLoggerServlet.java:0)

at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:368)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:289)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:135)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:166)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:514)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

abr 29, 2018 4:32:25 PM org.apache.catalina.core.StandardContext listenerStop
GRAVE: Exception sending context destroyed event to listener instance of class org.jboss.weld.environment.servlet.Listener
java.lang.NullPointerException
at org.jboss.weld.servlet.WeldInitialListener.contextDestroyed(WeldInitialListener.java:120)
at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.contextDestroyed(ForwardingServletListener.java:30)
at org.jboss.weld.environment.servlet.Listener.contextDestroyed(Listener.java:85)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5157)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5830)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:149)
at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1584)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1548)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1784)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:366)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1494)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1665)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1675)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1643)
at java.lang.Thread.run(Thread.java:748)


 Pelo que eu entendi do erro o cdi tenta injetar a variável env e ela retorna como nulo, porém não sei com resolver isso, segui as instruções conforme a documentação do plugin, alguém sabe alguma maneira de resolver isso?

Rafael Delanhese

unread,
May 17, 2018, 5:53:29 PM5/17/18
to caelum-vraptor
Problema solucionado, usando esta versão:
<dependency>
            <groupId>br.com.caelum.vraptor</groupId>
            <artifactId>vraptor-error-control</artifactId>
            <version>4.0.3</version>
        </dependency>
        

Reply all
Reply to author
Forward
0 new messages