You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2020/06/17 06:04:59 UTC

[zeppelin] branch branch-0.9 updated: [hotfix] unable to start zeppelin in intellij due to ClasssNotFound

This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new c158d24  [hotfix] unable to start zeppelin in intellij due to ClasssNotFound
c158d24 is described below

commit c158d24b2e6629df9210e99d09f77298c83d0645
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Wed Jun 17 14:04:18 2020 +0800

    [hotfix] unable to start zeppelin in intellij due to ClasssNotFound
---
 .../src/main/java/org/apache/zeppelin/server/ZeppelinServer.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java b/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java
index d41ebb1..41f3645 100644
--- a/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java
+++ b/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java
@@ -35,7 +35,6 @@ import javax.servlet.DispatcherType;
 import javax.servlet.ServletContextEvent;
 import javax.servlet.ServletContextListener;
 import org.apache.commons.lang3.StringUtils;
-import org.apache.directory.api.util.Strings;
 import org.apache.shiro.web.env.EnvironmentLoaderListener;
 import org.apache.shiro.web.servlet.ShiroFilter;
 import org.apache.zeppelin.cluster.ClusterManagerServer;
@@ -350,14 +349,14 @@ public class ZeppelinServer extends ResourceConfig {
 
   private static void runNoteOnStart(ZeppelinConfiguration conf) throws IOException, InterruptedException {
     String noteIdToRun = conf.getNotebookRunId();
-    if (!Strings.isEmpty(noteIdToRun)) {
+    if (!StringUtils.isEmpty(noteIdToRun)) {
       LOG.info("Running note {} on start", noteIdToRun);
       NotebookService notebookService = (NotebookService) ServiceLocatorUtilities.getService(
               sharedServiceLocator, NotebookService.class.getName());
 
       ServiceContext serviceContext;
       String base64EncodedJsonSerializedServiceContext = conf.getNotebookRunServiceContext();
-      if (Strings.isEmpty(base64EncodedJsonSerializedServiceContext)) {
+      if (StringUtils.isEmpty(base64EncodedJsonSerializedServiceContext)) {
         LOG.info("No service context provided. use ANONYMOUS");
         serviceContext = new ServiceContext(AuthenticationInfo.ANONYMOUS, new HashSet<String>() {});
       } else {