Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-2420

[EAP71] LogstashFormatter does not handle nested "Caused by" logs correctly

    Details

      Description

      Looks like the LogstashFormatter is not including the "Cause by" entries with the stack trace log entry.

      org.jboss.logmanager.ext.formatters.LogstashFormatter

      {"@version":1,"@timestamp":"2018-03-28T14:26:24.054-0500","sequence":69,"loggerClassName":"org.jboss.jca.core.CoreLogger_$logger","loggerName":"org.jboss.jca.core.connectionmanager.pool.strategy.OnePool","level":"WARN","threadName":"default task-5","message":"IJ000604: Throwable while attempting to get a new connection: null","threadId":314,"mdc":{},"ndc":"","exception":{"message":"IJ031084: Unable to create connection","frames":[{"class":"org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory","method":"createLocalManagedConnection","line":345},{"class":"org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory","method":"getLocalManagedConnection","line":352},{"class":"org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory","method":"createManagedConnection","line":287},{"class":"org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool","method":"createConnectionEventListener","line":1327},{"class":"org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool","method":"getConnection","line":499},{"class":"org.jboss.jca.core.connectionmanager.pool.AbstractPool","method":"getSimpleConnection","line":634},{"class":"org.jboss.jca.core.connectionmanager.pool.AbstractPool","method":"getConnection","line":606},{"class":"org.jboss.jca.core.connectionmanager.AbstractConnectionManager","method":"getManagedConnection","line":623},{"class":"org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl","method":"getManagedConnection","line":429},{"class":"org.jboss.jca.core.connectionmanager.AbstractConnectionManager","method":"allocateConnection","line":788},{"class":"org.jboss.jca.adapters.jdbc.WrapperDataSource","method":"getConnection","line":138},{"class":"org.jboss.as.connector.subsystems.datasources.WildFlyDataSource","method":"getConnection","line":66},{"class":"com.foo.ops.wts.dashboard.dao.BaseDAO","method":"openConnection","line":216},{"class":"com.foo.ops.wts.dashboard.dao.BaseDAO","method":"getConnection"
      ,"line":112},{"class":"com.foo.wts.dashboard.controller1.api.Helthz","method":"healthz","line":23},{"class":"com.foo.wts.dashboard.controller1.api.Helthz$Proxy$_$$_WeldClientProxy","method":"healthz"},{"class":"sun.reflect.NativeMethodAccessorImpl","method":"invoke0"},{"class":"sun.reflect.NativeMethodAccessorImpl","method":"invoke","line":62},{"class":"sun.reflect.DelegatingMethodAccessorImpl","method":"invoke","line":43},{"class":"java.lang.reflect.Method","method":"invoke","line":498},{"class":"org.jboss.resteasy.core.MethodInjectorImpl","method":"invoke","line":139},{"class":"org.jboss.resteasy.core.ResourceMethodInvoker","method":"invokeOnTarget","line":295},{"class":"org.jboss.resteasy.core.ResourceMethodInvoker","method":"invoke","line":249},{"class":"org.jboss.resteasy.core.ResourceMethodInvoker","method":"invoke","line":236},{"class":"org.jboss.resteasy.core.SynchronousDispatcher","method":"invoke","line":402},{"class":"org.jboss.resteasy.core.SynchronousDispatcher","method":"invoke","line":209},{"class":"org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher","method":"service","line":221},{"class":"org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher","method":"service","line":56},{"class":"org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher","method":"service","line":51},{"class":"javax.servlet.http.HttpServlet","method":"service","line":790},{"class":"io.undertow.servlet.handlers.ServletHandler","method":"handleRequest","line":85},{"class":"io.undertow.servlet.handlers.security.ServletSecurityRoleHandler","method":"handleRequest","line":62},{"class":"io.undertow.servlet.handlers.ServletDispatchingHandler","method":"handleRequest","line":36},{"class":"org.wildfly.extension.undertow.security.SecurityContextAssociationHandler","method":"handleRequest","line":78},{"class":"io.undertow.server.handlers.PredicateHandler","method":"handleRequest","line":43},{"class":"io.undertow.servlet.handlers.security.SSLInformationAssociationHandler","method":"handleRequest","line":
      131},{"class":"io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler","method":"handleRequest","line":57},{"class":"io.undertow.server.handlers.PredicateHandler","method":"handleRequest","line":43},{"class":"io.undertow.security.handlers.AbstractConfidentialityHandler","method":"handleRequest","line":46},{"class":"io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler","method":"handleRequest","line":64},{"class":"io.undertow.security.handlers.AuthenticationMechanismsHandler","method":"handleRequest","line":60},{"class":"io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler","method":"handleRequest","line":77},{"class":"io.undertow.security.handlers.NotificationReceiverHandler","method":"handleRequest","line":50},{"class":"io.undertow.security.handlers.AbstractSecurityContextAssociationHandler","method":"handleRequest","line":43},{"class":"io.undertow.server.handlers.PredicateHandler","method":"handleRequest","line":43},{"class":"org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler","method":"handleRequest","line":61},{"class":"io.undertow.server.handlers.PredicateHandler","method":"handleRequest","line":43},{"class":"io.undertow.server.handlers.PredicateHandler","method":"handleRequest","line":43},{"class":"io.undertow.servlet.handlers.ServletInitialHandler","method":"handleFirstRequest","line":285},{"class":"io.undertow.servlet.handlers.ServletInitialHandler","method":"dispatchRequest","line":264},{"class":"io.undertow.servlet.handlers.ServletInitialHandler","method":"access$000","line":81},{"class":"io.undertow.servlet.handlers.ServletInitialHandler$1","method":"handleRequest","line":175},{"class":"io.undertow.server.Connectors","method":"executeRootHandler","line":324},{"class":"io.undertow.server.HttpServerExchange$1","method":"run","line":803},{"class":"java.util.concurrent.ThreadPoolExecutor","method":"runWorker","line":1149},{"class":"java.util.concurrent.ThreadPoolExecutor$Worker","method":"run","line":624},{"class":"java.lang.Thread"
      ,"method":"run","line":748}]},"log-handler":"CONSOLE","sourceClassName":"org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool","sourceFileName":"SemaphoreConcurrentLinkedDequeManagedConnectionPool.java","sourceMethodName":"getConnection","sourceLineNumber":537}
      03-28-18 14:26:24  WARN - IJ000604: Throwable while attempting to get a new connection: null
      javax.resource.ResourceException: IJ031084: Unable to create connection
      	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:345)
      	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
      	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
      	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1327)
      	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:499)
      	at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:634)
      	at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:606)
      	at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:623)
      	at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:429)
      	at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:788)
      	at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:138)
      	at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:66)
      	at com.foo.ops.wts.dashboard.dao.BaseDAO.openConnection(BaseDAO.java:216)
      	at com.foo.ops.wts.dashboard.dao.BaseDAO.getConnection(BaseDAO.java:112)
      	at com.foo.wts.dashboard.controller1.api.Helthz.healthz(Helthz.java:23)
      	at com.foo.wts.dashboard.controller1.api.Helthz$Proxy$_$$_WeldClientProxy.healthz(Unknown Source)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139)
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236)
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:402)
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:209)
      	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      	at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      	at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:324)
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:803)
      	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)
      Caused by: java.sql.SQLRecoverableException: IO Error: JNDI Package failure javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=bar,cn=bar,dc=bar'
      	at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)
      	at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
      	at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)
      	at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
      	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
      	at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
      	... 56 more
      Caused by: oracle.net.ns.NetException: JNDI Package failure javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=bar,cn=bar,dc=bar'
      	at oracle.net.jndi.JndiAttrs.getAttrs(JndiAttrs.java:210)
      	at oracle.net.resolver.AddrResolution.<init>(AddrResolution.java:198)
      	at oracle.net.ns.NSProtocol.connect(NSProtocol.java:219)
      	at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1102)
      	at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:320)
      	... 61 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  luck3y Ken Wills
                  Reporter:
                  trogers-rh Travis Rogers
                  Tester:
                  Tomas Remes
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: