[jira] [Commented] (TOMEE-1897) CdiResourceProvider masks critical error in InjectionException
[ https://issues.apache.org/jira/browse/TOMEE-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15411494#comment-15411494 ] Romain Manni-Bucau commented on TOMEE-1897: --- WebApplicationExceptionMapper error is a side effect of trowing a WebApplicationException which are always logged but not linked to the instantiation so having both sounds a good compromise to me. > CdiResourceProvider masks critical error in InjectionException > -- > > Key: TOMEE-1897 > URL: https://issues.apache.org/jira/browse/TOMEE-1897 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server >Affects Versions: 1.7.4, 7.0.1 > Environment: NA >Reporter: Andy Gumbrecht >Priority: Critical > Fix For: 1.7.5, 7.0.2 > > > openejb-cxf-rs: > /org/apache/openejb/server/cxf/rs/CdiResourceProvider.java:277 > The InjectionException details should be propagated or logged. Currently the > WebApplicationException contains no information on the underlying error., > making error tracing very difficult -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TOMEE-1897) CdiResourceProvider masks critical error in InjectionException
[ https://issues.apache.org/jira/browse/TOMEE-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15411464#comment-15411464 ] Andy Gumbrecht commented on TOMEE-1897: --- Sure, the current propagated error is: WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - javax.ws.rs.WebApplicationException In this instance the actual underlying error finally tracked down on site was: javax.enterprise.inject.CreationException: java.lang.NoSuchMethodError ... on a Hystrix wrapper. It was hard to track down. So at least one should be logged as severe, as this causes a complete failure at application level. > CdiResourceProvider masks critical error in InjectionException > -- > > Key: TOMEE-1897 > URL: https://issues.apache.org/jira/browse/TOMEE-1897 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server >Affects Versions: 1.7.4, 7.0.1 > Environment: NA >Reporter: Andy Gumbrecht >Priority: Critical > Fix For: 1.7.5, 7.0.2 > > > openejb-cxf-rs: > /org/apache/openejb/server/cxf/rs/CdiResourceProvider.java:277 > The InjectionException details should be propagated or logged. Currently the > WebApplicationException contains no information on the underlying error., > making error tracing very difficult -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (TOMEE-1897) CdiResourceProvider masks critical error in InjectionException
[ https://issues.apache.org/jira/browse/TOMEE-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15411440#comment-15411440 ] Romain Manni-Bucau commented on TOMEE-1897: --- [~andyg] should be logged only IMO since it would give some details to the client we don't want to propagate IMHO. We can also remove the current entity to make it more silent for the same reason but agree a good logger.error() should replace it. > CdiResourceProvider masks critical error in InjectionException > -- > > Key: TOMEE-1897 > URL: https://issues.apache.org/jira/browse/TOMEE-1897 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server >Affects Versions: 1.7.4, 7.0.1 > Environment: NA >Reporter: Andy Gumbrecht >Priority: Critical > Fix For: 1.7.5, 7.0.2 > > > openejb-cxf-rs: > /org/apache/openejb/server/cxf/rs/CdiResourceProvider.java:277 > The InjectionException details should be propagated or logged. Currently the > WebApplicationException contains no information on the underlying error., > making error tracing very difficult -- This message was sent by Atlassian JIRA (v6.3.4#6332)