java.lang.NullPointerException

Pentaho BI Platform Tracking | Emanuele Tomeo | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hi all, I am new to pentaho and like it so much but I am having trouble with authorizations.... this is my problem: I have to create different solution on a single server and different users for different solution plus one to admin and others to develop. I want to do this with roles, creating two roles per solution (e.g. Authenticated and Manager) so my users will take permission from his role. That's what I made in pentaho.xml: Code: <default-acl> <acl-entry role="Admin" acl="FULL_CONTROL" /><!-- Admin users get all authorities --> <acl-entry role="cto" acl="FULL_CONTROL" /><!-- CTO gets everything --> <acl-entry role="dev" acl="EXECUTE_SUBSCRIBE" /><!-- dev gets execute and subscribe --> <acl-entry role="Authenticated" acl="NOTHING" /> <acl-entry role="Role1Authenticated" acl="NOTHING" /> <acl-entry role="Role1SogetManager" acl="NOTHING" /> <acl-entry role="Role2Authenticated" acl="NOTHING" /> <acl-entry role="Role2Manager" acl="NOTHING" /> </default-acls> making this, new files will be not visible to my roles, then I override in this way: Code: <overrides> <file path="/pentaho-solutions/admin"> <acl-entry role="Admin" acl="FULL_CONTROL" /> </file> <file path="/pentaho-solutions/SOLUTION_ROLE_1"> <acl-entry role="Role1Authenticated" acl="EXECUTE" /> <acl-entry role="Role1Manager" acl="EXECUTE_SUBSCRIBE" /> </file> <file path="/pentaho-solutions/SOLUTION_ROLE_2"> <acl-entry role="Role2Authenticated" acl="EXECUTE" /> <acl-entry role="Role2Manager" acl="EXECUTE_SUBSCRIBE" /> </file> </overrides> In addition, the users (for example userForRole1) gets Authenticated role and his own role (Role1Authenticated or Role1Manager). All seems to work correctly because when I log in with admin privileges I'm able to see only the SOLUTION_ROLE_1 solution and his subfolders, but when I try to log in with user role the browse panel remains in "Loading..." state, and I can't see reports. In tomcat log i discovery this: Code: 16:56:51,126 ERROR [[SolutionRepositoryService]] Servlet.service() for servlet SolutionRepositoryService threw exception java.lang.NullPointerException at org.pentaho.platform.repository.solution.SolutionRepositoryServiceImpl.getSolutionRepositoryDoc(SolutionRepositoryServiceImpl.java:477) at org.pentaho.platform.web.servlet.SolutionRepositoryService.dispatch(SolutionRepositoryService.java:152) at org.pentaho.platform.web.servlet.SolutionRepositoryService.doGet(SolutionRepositoryService.java:78) Thinking there was a problem with acl voters, I switched to PentahoUserOverridesVoter, but the situation remains the same and the log is plain (no exception throws). I have also downloaded bi-server's source from svn, the problem seems to be in SecurityHelper.isPentahoAdministrator(session);

    Pentaho BI Platform Tracking | 7 years ago | Emanuele Tomeo
    java.lang.NullPointerException
  2. 0

    Hi all, I am new to pentaho and like it so much but I am having trouble with authorizations.... this is my problem: I have to create different solution on a single server and different users for different solution plus one to admin and others to develop. I want to do this with roles, creating two roles per solution (e.g. Authenticated and Manager) so my users will take permission from his role. That's what I made in pentaho.xml: Code: <default-acl> <acl-entry role="Admin" acl="FULL_CONTROL" /><!-- Admin users get all authorities --> <acl-entry role="cto" acl="FULL_CONTROL" /><!-- CTO gets everything --> <acl-entry role="dev" acl="EXECUTE_SUBSCRIBE" /><!-- dev gets execute and subscribe --> <acl-entry role="Authenticated" acl="NOTHING" /> <acl-entry role="Role1Authenticated" acl="NOTHING" /> <acl-entry role="Role1SogetManager" acl="NOTHING" /> <acl-entry role="Role2Authenticated" acl="NOTHING" /> <acl-entry role="Role2Manager" acl="NOTHING" /> </default-acls> making this, new files will be not visible to my roles, then I override in this way: Code: <overrides> <file path="/pentaho-solutions/admin"> <acl-entry role="Admin" acl="FULL_CONTROL" /> </file> <file path="/pentaho-solutions/SOLUTION_ROLE_1"> <acl-entry role="Role1Authenticated" acl="EXECUTE" /> <acl-entry role="Role1Manager" acl="EXECUTE_SUBSCRIBE" /> </file> <file path="/pentaho-solutions/SOLUTION_ROLE_2"> <acl-entry role="Role2Authenticated" acl="EXECUTE" /> <acl-entry role="Role2Manager" acl="EXECUTE_SUBSCRIBE" /> </file> </overrides> In addition, the users (for example userForRole1) gets Authenticated role and his own role (Role1Authenticated or Role1Manager). All seems to work correctly because when I log in with admin privileges I'm able to see only the SOLUTION_ROLE_1 solution and his subfolders, but when I try to log in with user role the browse panel remains in "Loading..." state, and I can't see reports. In tomcat log i discovery this: Code: 16:56:51,126 ERROR [[SolutionRepositoryService]] Servlet.service() for servlet SolutionRepositoryService threw exception java.lang.NullPointerException at org.pentaho.platform.repository.solution.SolutionRepositoryServiceImpl.getSolutionRepositoryDoc(SolutionRepositoryServiceImpl.java:477) at org.pentaho.platform.web.servlet.SolutionRepositoryService.dispatch(SolutionRepositoryService.java:152) at org.pentaho.platform.web.servlet.SolutionRepositoryService.doGet(SolutionRepositoryService.java:78) Thinking there was a problem with acl voters, I switched to PentahoUserOverridesVoter, but the situation remains the same and the log is plain (no exception throws). I have also downloaded bi-server's source from svn, the problem seems to be in SecurityHelper.isPentahoAdministrator(session);

    Pentaho BI Platform Tracking | 7 years ago | Emanuele Tomeo
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.platform.repository.solution.SolutionRepositoryServiceImpl.getSolutionRepositoryDoc()
    2. org.pentaho.platform
      SolutionRepositoryService.doGet
      1. org.pentaho.platform.repository.solution.SolutionRepositoryServiceImpl.getSolutionRepositoryDoc(SolutionRepositoryServiceImpl.java:477)
      2. org.pentaho.platform.web.servlet.SolutionRepositoryService.dispatch(SolutionRepositoryService.java:152)
      3. org.pentaho.platform.web.servlet.SolutionRepositoryService.doGet(SolutionRepositoryService.java:78)
      3 frames