java.lang.NullPointerException

Pentaho BI Platform Tracking | Jeff Rosen | 3 years ago
  1. 0

    I have a very strange problem that I've been battling and I can't seem to figure out. Any help would be greatly appreciated. I am trying to deploy Mondrian 3.5 in glassfish 3.1 on a hosted server running centos 6. I have successfully deployed the same mondrian.war in the same version of glassfish running on a Windows workstation. It seems that whenever mondrian attempts to initialize on centos, I get an NPE at line 85 of MondrianServerRegistry. I have created a simple test that simply calls MondrianServerRegistry.INSTANCE.getOrLoadVersion(); It executes successfully on the centos environment and returns the following information from MondrianVersion: VersionString: 3.50 Product: mondrian MajorVersion: 3 MinorVersion: 0 I have looked at the code for MondrianServerRegistry and it would seem that "versionString" is null. Looking at loadVersionFile(), I don't see how that is possible. I guess I can setup to try and remotely debug (over the internet, yuk!), but while I'm doing that, has anyone seen anything like this or have any idea what might cause something like this? java.lang.NullPointerException at mondrian.server.MondrianServerRegistry.getOrLoadVersion(MondrianServerRegistry.java:85) at mondrian.olap.MondrianServer.getVersion(MondrianServer.java:107) at mondrian.rolap.RolapSchema.checkSchemaVersion(RolapSchema.java:448) at mondrian.rolap.RolapSchema.load(RolapSchema.java:408) at mondrian.rolap.RolapSchema.(RolapSchema.java:216) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:214) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:66) at mondrian.rolap.RolapConnection.(RolapConnection.java:160) at mondrian.rolap.RolapConnection.(RolapConnection.java:90) at mondrian.olap.DriverManager.getConnection(DriverManager.java:112) at com.tonbeller.jpivot.mondrian.MondrianModel.initialize(MondrianModel.java:518) at com.tonbeller.jpivot.olap.model.OlapModelDecorator.initialize(OlapModelDecorator.java:132) at com.tonbeller.jpivot.tags.OlapModelProxy$MyState.initialize(OlapModelProxy.java:77) at com.tonbeller.jpivot.tags.StackStateManager.initializeAndShow(StackStateManager.java:76) at com.tonbeller.jpivot.tags.OlapModelProxy.initializeAndShow(OlapModelProxy.java:160) at com.tonbeller.jpivot.tags.OlapModelTag.doEndTag(OlapModelTag.java:81) at org.apache.jsp.WEB_002dINF.queries.mondrian_jsp._jspx_meth_jp_mondrianQuery_0(mondrian_jsp.java from :114) at org.apache.jsp.WEB_002dINF.queries.mondrian_jsp._jspService(mondrian_jsp.java from :62) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:809) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556) at com.tonbeller.wcf.utils.IncludeTag.doStartTag(IncludeTag.java:59) at org.apache.jsp.testpage_jsp._jspx_meth_wcf_include_0(testpage_jsp.java from :263) at org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java from :123) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139) at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662)

    Pentaho BI Platform Tracking | 3 years ago | Jeff Rosen
    java.lang.NullPointerException
  2. 0

    I have a very strange problem that I've been battling and I can't seem to figure out. Any help would be greatly appreciated. I am trying to deploy Mondrian 3.5 in glassfish 3.1 on a hosted server running centos 6. I have successfully deployed the same mondrian.war in the same version of glassfish running on a Windows workstation. It seems that whenever mondrian attempts to initialize on centos, I get an NPE at line 85 of MondrianServerRegistry. I have created a simple test that simply calls MondrianServerRegistry.INSTANCE.getOrLoadVersion(); It executes successfully on the centos environment and returns the following information from MondrianVersion: VersionString: 3.50 Product: mondrian MajorVersion: 3 MinorVersion: 0 I have looked at the code for MondrianServerRegistry and it would seem that "versionString" is null. Looking at loadVersionFile(), I don't see how that is possible. I guess I can setup to try and remotely debug (over the internet, yuk!), but while I'm doing that, has anyone seen anything like this or have any idea what might cause something like this? java.lang.NullPointerException at mondrian.server.MondrianServerRegistry.getOrLoadVersion(MondrianServerRegistry.java:85) at mondrian.olap.MondrianServer.getVersion(MondrianServer.java:107) at mondrian.rolap.RolapSchema.checkSchemaVersion(RolapSchema.java:448) at mondrian.rolap.RolapSchema.load(RolapSchema.java:408) at mondrian.rolap.RolapSchema.(RolapSchema.java:216) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:214) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:66) at mondrian.rolap.RolapConnection.(RolapConnection.java:160) at mondrian.rolap.RolapConnection.(RolapConnection.java:90) at mondrian.olap.DriverManager.getConnection(DriverManager.java:112) at com.tonbeller.jpivot.mondrian.MondrianModel.initialize(MondrianModel.java:518) at com.tonbeller.jpivot.olap.model.OlapModelDecorator.initialize(OlapModelDecorator.java:132) at com.tonbeller.jpivot.tags.OlapModelProxy$MyState.initialize(OlapModelProxy.java:77) at com.tonbeller.jpivot.tags.StackStateManager.initializeAndShow(StackStateManager.java:76) at com.tonbeller.jpivot.tags.OlapModelProxy.initializeAndShow(OlapModelProxy.java:160) at com.tonbeller.jpivot.tags.OlapModelTag.doEndTag(OlapModelTag.java:81) at org.apache.jsp.WEB_002dINF.queries.mondrian_jsp._jspx_meth_jp_mondrianQuery_0(mondrian_jsp.java from :114) at org.apache.jsp.WEB_002dINF.queries.mondrian_jsp._jspService(mondrian_jsp.java from :62) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:809) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556) at com.tonbeller.wcf.utils.IncludeTag.doStartTag(IncludeTag.java:59) at org.apache.jsp.testpage_jsp._jspx_meth_wcf_include_0(testpage_jsp.java from :263) at org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java from :123) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139) at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662)

    Pentaho BI Platform Tracking | 3 years ago | Jeff Rosen
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at mondrian.server.MondrianServerRegistry.getOrLoadVersion()
    2. mondrian.server
      MondrianServerRegistry.getOrLoadVersion
      1. mondrian.server.MondrianServerRegistry.getOrLoadVersion(MondrianServerRegistry.java:85)
      1 frame
    3. mondrian.olap
      MondrianServer.getVersion
      1. mondrian.olap.MondrianServer.getVersion(MondrianServer.java:107)
      1 frame
    4. mondrian.rolap
      RolapConnection.<init>
      1. mondrian.rolap.RolapSchema.checkSchemaVersion(RolapSchema.java:448)
      2. mondrian.rolap.RolapSchema.load(RolapSchema.java:408)
      3. mondrian.rolap.RolapSchema.<init>(RolapSchema.java:216)
      4. mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:214)
      5. mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:66)
      6. mondrian.rolap.RolapConnection.<init>(RolapConnection.java:160)
      7. mondrian.rolap.RolapConnection.<init>(RolapConnection.java:90)
      7 frames
    5. mondrian.olap
      DriverManager.getConnection
      1. mondrian.olap.DriverManager.getConnection(DriverManager.java:112)
      1 frame
    6. com.tonbeller.jpivot
      OlapModelTag.doEndTag
      1. com.tonbeller.jpivot.mondrian.MondrianModel.initialize(MondrianModel.java:518)
      2. com.tonbeller.jpivot.olap.model.OlapModelDecorator.initialize(OlapModelDecorator.java:132)
      3. com.tonbeller.jpivot.tags.OlapModelProxy$MyState.initialize(OlapModelProxy.java:77)
      4. com.tonbeller.jpivot.tags.StackStateManager.initializeAndShow(StackStateManager.java:76)
      5. com.tonbeller.jpivot.tags.OlapModelProxy.initializeAndShow(OlapModelProxy.java:160)
      6. com.tonbeller.jpivot.tags.OlapModelTag.doEndTag(OlapModelTag.java:81)
      6 frames