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

Pranav Kumar Agarwal commented on LENS-549:
-------------------------------------------

[~prongs] I also want to call setClient while initializing lens-cli module. I'm 
accepting the lens server connection details from the user as an input. Since I 
don't have the lens server connection details at the time of lens class loading 
I propose that we delay the lens client creation done using a static block, so 
that there is an opportunity to set the client from outside.

I've sent the review request for the same - https://reviews.apache.org/r/34780/

> Lens client doesn't come-up if the lens server is not available
> ---------------------------------------------------------------
>
>                 Key: LENS-549
>                 URL: https://issues.apache.org/jira/browse/LENS-549
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Pranav Kumar Agarwal
>            Assignee: Pranav Kumar Agarwal
>
> LensClientSingletonWrapper constructor fails if the lens.server.base.url is 
> unavailable. atm, since its in static path it fails with 
> ExceptionInInitializerError, thus unable to use 
> LensClientSingletonWrapper.setClient.



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

Reply via email to