hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HADOOP-15686) Supress bogus AbstractWadlGeneratorGrammarGenerator in KMS stderr
Date Fri, 01 Feb 2019 19:16:01 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-15686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16758001#comment-16758001
] 

Xiaoyu Yao edited comment on HADOOP-15686 at 2/1/19 7:15 PM:
-------------------------------------------------------------

Thanks [~jojochuang] for working on this. The patch LGTM, +1. I just have two minor comments:

 

KMSWebApp.java

Line 84: Can we add a javadoc for this function?
{code:java}
 
/**

*Maps jersey's java.util.logging to slf4j

*/{code}
Line 85: NIT: can we remove "Optionally" as we are remove all here unconditionally?

 

Also, we can remove "Inspired by ATLAS-16" because this code was there in KMSWebApp.java
but was removed by HADOOP-13597 by accident. 

Have you consider declaring it in a static block like before to ensure it only execute once. 
 

{code}

static {
  SLF4JBridgeHandler.removeHandlersForRootLogger();
  SLF4JBridgeHandler.install();
}

{code}

 

 

 


was (Author: xyao):
Thanks [~jojochuang] for working on this. The patch LGTM, +1. I just have two minor comments:

 

KMSWebApp.java

Line 84: Can we add a javadoc for this function?
{code:java}
 
/**

*Maps jersey's java.util.logging to slf4j

*/{code}
Line 85: NIT: can we remove "Optionally" as we are remove all here unconditionally? Also,
we can remove "Inspired by ATLAS-16".

 

 

 

 

> Supress bogus AbstractWadlGeneratorGrammarGenerator in KMS stderr
> -----------------------------------------------------------------
>
>                 Key: HADOOP-15686
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15686
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: kms
>    Affects Versions: 3.0.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>            Priority: Major
>         Attachments: HADOOP-15686.001.patch
>
>
> After we switched underlying system of KMS from Tomcat to Jetty, we started to observe
a lot of bogus messages like the follow [1]. It is harmless but very annoying. Let's suppress
it in log4j configuration.
> [1]
> {quote}
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.WadlGeneratorJAXBGrammarGenerator
buildModelAndSchemas
> SEVERE: Failed to generate the schema for the JAX-B elements
> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
> java.util.Map is an interface, and JAXB can't handle interfaces.
> 	this problem is related to the following location:
> 		at java.util.Map
> java.util.Map does not have a no-arg default constructor.
> 	this problem is related to the following location:
> 		at java.util.Map
> 	at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)
> 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:489)
> 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:319)
> 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1170)
> 	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145)
> 	at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:247)
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:234)
> 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:441)
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641)
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)
> 	at com.sun.jersey.server.wadl.generators.WadlGeneratorJAXBGrammarGenerator.buildModelAndSchemas(WadlGeneratorJAXBGrammarGenerator.java:169)
> 	at com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator.createExternalGrammar(AbstractWadlGeneratorGrammarGenerator.java:405)
> 	at com.sun.jersey.server.wadl.WadlBuilder.generate(WadlBuilder.java:149)
> 	at com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.getApplication(WadlApplicationContextImpl.java:119)
> 	at com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.getApplication(WadlApplicationContextImpl.java:138)
> 	at com.sun.jersey.server.impl.wadl.WadlMethodFactory$WadlOptionsMethodDispatcher.dispatch(WadlMethodFactory.java:110)
> 	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
> 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
> 	at org.apache.hadoop.crypto.key.kms.server.KMSMDCFilter.doFilter(KMSMDCFilter.java:84)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
> 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:644)
> 	at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:304)
> 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:592)
> 	at org.apache.hadoop.crypto.key.kms.server.KMSAuthenticationFilter.doFilter(KMSAuthenticationFilter.java:142)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1751)
> 	at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1608)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
> 	at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:531)
> 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
> 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
> 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
> 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
> 	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
> 	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
> 	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
> 	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
> 	at java.lang.Thread.run(Thread.java:748)
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class javax.ws.rs.core.Response
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class java.util.Map
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class javax.ws.rs.core.Response
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class javax.ws.rs.core.Response
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class java.util.Map
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class java.util.Map
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class java.util.Map
> Aug 20, 2018 11:26:17 AM com.sun.jersey.server.wadl.generators.AbstractWadlGeneratorGrammarGenerator
attachTypes
> INFO: Couldn't find grammar element for class java.util.Map
> {quote}
> Httpfs doesn't have the same issue because it was fixed via HDFS-11055.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message