[ https://issues.apache.org/jira/browse/LENS-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15436735#comment-15436735 ]
Rajat Khandelwal commented on LENS-1209: ---------------------------------------- The warnings should be visible when log level is TRACE, but not when the log level is DEBUG or more. > Remove toString warnings from debug log > --------------------------------------- > > Key: LENS-1209 > URL: https://issues.apache.org/jira/browse/LENS-1209 > Project: Apache Lens > Issue Type: Improvement > Components: api > Reporter: Rajat Khandelwal > Assignee: Rajat Khandelwal > Fix For: 2.6 > > Attachments: LENS-1209.2016-07-04_16:30:06.patch > > > This is the repeated trace coming in debug logs: > {noformat} > 04 Jul 2016 14:21:31 [db48587d-c70a-484f-a337-e0e9361406c9] > [addbb2dd-2093-4ac2-980d-aacfe1932536 grizzly-http-server-17] DEBUG > org.apache.lens.api.jaxb.YAMLToStringStrategy - getter access failed for > java.lang.Double#getValue. Going the usual way > java.lang.NoSuchMethodException: java.lang.Double.getValue() > at java.lang.Class.getDeclaredMethod(Class.java:2130) ~[na:1.8.0_72] > at > org.apache.lens.api.jaxb.YAMLToStringStrategy.appendInternal(YAMLToStringStrategy.java:324) > ~[lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT] > at > org.jvnet.jaxb2_commons.lang.DefaultToStringStrategy.append(DefaultToStringStrategy.java:475) > [jaxb2-basics-runtime-0.9.5.jar:na] > at > org.jvnet.jaxb2_commons.lang.DefaultToStringStrategy.appendField(DefaultToStringStrategy.java:302) > [jaxb2-basics-runtime-0.9.5.jar:na] > at > org.apache.lens.api.ToYAMLString.appendFields(ToYAMLString.java:87) > [lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT] > at org.apache.lens.api.ToYAMLString.append(ToYAMLString.java:58) > [lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT] > at org.apache.lens.api.ToYAMLString.toString(ToYAMLString.java:47) > [lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT] > at > org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:305) > [slf4j-api-1.7.6.jar:1.7.6] > at > org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:277) > [slf4j-api-1.7.6.jar:1.7.6] > at > org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:231) > [slf4j-api-1.7.6.jar:1.7.6] > at > ch.qos.logback.classic.spi.LoggingEvent.getFormattedMessage(LoggingEvent.java:298) > [logback-classic-1.1.3.jar:na] > at > ch.qos.logback.classic.spi.LoggingEvent.prepareForDeferredProcessing(LoggingEvent.java:208) > [logback-classic-1.1.3.jar:na] > at > ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212) > [logback-core-1.1.3.jar:na] > at > ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:182) > [logback-core-1.1.3.jar:na] > at > ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103) > [logback-core-1.1.3.jar:na] > at > ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88) > [logback-core-1.1.3.jar:na] > at > ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48) > [logback-core-1.1.3.jar:na] > at > ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:273) > [logback-classic-1.1.3.jar:na] > at ch.qos.logback.classic.Logger.callAppenders(Logger.java:260) > [logback-classic-1.1.3.jar:na] > at > ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:442) > [logback-classic-1.1.3.jar:na] > at > ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:396) > [logback-classic-1.1.3.jar:na] > at ch.qos.logback.classic.Logger.info(Logger.java:612) > [logback-classic-1.1.3.jar:na] > at > org.apache.lens.server.api.query.QueryContext.setStatus(QueryContext.java:367) > [lens-server-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT] > at > org.apache.lens.server.query.QueryExecutionServiceImpl.submitQuery(QueryExecutionServiceImpl.java:1833) > [classes/:na] > at > org.apache.lens.server.query.QueryExecutionServiceImpl.executeAsyncInternal(QueryExecutionServiceImpl.java:1827) > [classes/:na] > at > org.apache.lens.server.query.QueryExecutionServiceImpl.executeAsync(QueryExecutionServiceImpl.java:1775) > [classes/:na] > at > org.apache.lens.server.query.QueryServiceResource.query(QueryServiceResource.java:228) > [classes/:na] > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > ~[na:na] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_72] > at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72] > at > org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) > [jersey-server-2.22.1.jar:na] > at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) > [jersey-common-2.22.1.jar:na] > at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) > [jersey-common-2.22.1.jar:na] > at org.glassfish.jersey.internal.Errors.process(Errors.java:315) > [jersey-common-2.22.1.jar:na] > at org.glassfish.jersey.internal.Errors.process(Errors.java:297) > [jersey-common-2.22.1.jar:na] > at org.glassfish.jersey.internal.Errors.process(Errors.java:267) > [jersey-common-2.22.1.jar:na] > at > org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) > [jersey-common-2.22.1.jar:na] > at > org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) > [jersey-server-2.22.1.jar:na] > at > org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384) > [jersey-container-grizzly2-http-2.22.1.jar:na] > at > org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) > [grizzly-http-server-2.3.23.jar:2.3.23] > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) > [grizzly-framework-2.3.23.jar:2.3.23] > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) > [grizzly-framework-2.3.23.jar:2.3.23] > at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)