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

Archana H commented on LENS-903:
--------------------------------

CLI error:
Command failed 
org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: 
MessageBodyReader not found for media type=text/html; charset=ISO-8859-1, 
type=class org.apache.lens.api.result.LensAPIResult, genericType=class 
org.apache.lens.api.result.LensAPIResult.

Error:
{CODE}
ERROR org.apache.lens.server.LensRequestListener - Encountered HTTP exception
org.glassfish.jersey.server.internal.process.MappableException: 
java.util.MissingFormatArgumentException: Format specifier '%s'
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.mapTargetToRuntimeEx(AbstractJavaResourceMethodDispatcher.java:190)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.access$200(AbstractJavaResourceMethodDispatcher.java:74)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:160)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
 ~[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255) 
~[jersey-server-2.3.1.jar:na]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) 
[jersey-common-2.3.1.jar:na]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) 
[jersey-common-2.3.1.jar:na]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315) 
[jersey-common-2.3.1.jar:na]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297) 
[jersey-common-2.3.1.jar:na]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267) 
[jersey-common-2.3.1.jar:na]
        at 
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
 [jersey-common-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235) 
[jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983)
 [jersey-server-2.3.1.jar:na]
        at 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:330)
 [jersey-container-grizzly2-http-2.3.1.jar:na]
        at 
org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:212) 
[grizzly-http-server-2.3.6.jar:2.3.6]
        at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
 [grizzly-framework-2.3.6.jar:2.3.6]
        at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
 [grizzly-framework-2.3.6.jar:2.3.6]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
Caused by: java.util.MissingFormatArgumentException: Format specifier '%s'
        at java.util.Formatter.format(Formatter.java:2519) ~[na:1.8.0_40]
        at java.util.Formatter.format(Formatter.java:2455) ~[na:1.8.0_40]
        at java.lang.String.format(String.java:2928) ~[na:1.8.0_40]
        at 
org.apache.lens.api.error.LensError.getFormattedErrorMsg(LensError.java:61) 
~[lens-api-2.5.3-inm-SNAPSHOT.jar:2.5.3-inm-SNAPSHOT]
{CODE}

> No candidate dim available exception should contain only brief error
> --------------------------------------------------------------------
>
>                 Key: LENS-903
>                 URL: https://issues.apache.org/jira/browse/LENS-903
>             Project: Apache Lens
>          Issue Type: Improvement
>          Components: cube
>            Reporter: Sushil Mohanty
>            Assignee: Sushil Mohanty
>             Fix For: 2.5
>
>         Attachments: LENS-903.patch
>
>
> As part of LENS-270 we have made no candidate fact exception to show only 
> brief message. We need to do the same for no candidate dim. Along with this 
> compare the errors from different drivers and show the appropriate one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to