drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-5910) ClassNotFoundException message enhancement
Date Sat, 28 Oct 2017 08:42:00 GMT

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

ASF GitHub Bot commented on DRILL-5910:
---------------------------------------

Github user vladimirtkach commented on the issue:

    https://github.com/apache/drill/pull/1013
  
    @sohami I'm getting this stack
    ```
    java.lang.ExceptionInInitializerError
    	at org.apache.drill.exec.rpc.security.ClientAuthenticatorProvider.getInstance(ClientAuthenticatorProvider.java:45)
    	at org.apache.drill.exec.rpc.user.UserClient.getAuthenticatorFactory(UserClient.java:405)
    ......
    Caused by: org.apache.drill.common.exceptions.DrillRuntimeException: Failed to create
auth factory 'org.apache.drill.exec.rpc.security.maprsasl.MapRSaslFactory'
    	at org.apache.drill.exec.rpc.security.ClientAuthenticatorProvider.<init>(ClientAuthenticatorProvider.java:69)
    	at org.apache.drill.exec.rpc.security.ClientAuthenticatorProvider.<init>(ClientAuthenticatorProvider.java:30)
    	at org.apache.drill.exec.rpc.security.ClientAuthenticatorProvider$Holder.<clinit>(ClientAuthenticatorProvider.java:37)
    	... 24 more
    Caused by: java.lang.ClassNotFoundException: org.apache.drill.exec.rpc.security.maprsasl.MapRSaslFactory
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Class.java:264)
    	at org.apache.drill.exec.rpc.security.ClientAuthenticatorProvider.<init>(ClientAuthenticatorProvider.java:63)
    	... 26 more
    ```


> ClassNotFoundException message enhancement 
> -------------------------------------------
>
>                 Key: DRILL-5910
>                 URL: https://issues.apache.org/jira/browse/DRILL-5910
>             Project: Apache Drill
>          Issue Type: Improvement
>    Affects Versions: 1.11.0
>            Reporter: Volodymyr Tkach
>            Assignee: Volodymyr Tkach
>            Priority: Minor
>              Labels: ready-to-commit
>             Fix For: 1.12.0
>
>
> We need to add factory name in exception message  when ClassNotFoundException is caught
and DrillRuntimeException is than re-thrown in ClientAuthenticatorProvider constructor.
> Steps to repoduce:
> 1) Configure plain authentication
> 2) Add 
> -Ddrill.customAuthFactories=org.apache.drill.exec.rpc.security.maprsasl.MapRSaslFactory
to SQLLINE_JAVA_OPTS or another class that is not present in classpath.
> 3) Run sqlline and connect to drillbit



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message