java.lang.NullPointerException

Hibernate JIRA | Johannes Geiger | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Forums and chat are failing with the following error. Other tools may also be broken org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:880) caused by: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1461) caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:442) caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840) caused by: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143) caused by: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187) caused by: java.lang.NullPointerException at org.hibernate.stat.ConcurrentStatisticsImpl.secondLevelCachePut(ConcurrentStatisticsImpl.java:302) at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:189) at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898) at org.hibernate.loader.Loader.doQuery(Loader.java:773) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270) at org.hibernate.loader.Loader.doList(Loader.java:2449) at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2235) at org.hibernate.loader.Loader.list(Loader.java:2184) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1258) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:859) at org.sakaiproject.component.common.type.TypeManagerImpl$2.doInHibernate(TypeManagerImpl.java:192) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at org.sakaiproject.component.common.type.TypeManagerImpl.getType(TypeManagerImpl.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

    Sakai JIRA | 5 years ago | Steve Swinsburg
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Forums and chat are failing with the following error. Other tools may also be broken org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:880) caused by: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1461) caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:442) caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840) caused by: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143) caused by: javax.faces.el.EvaluationException: Error getting property 'template' from bean of type org.sakaiproject.tool.messageforums.DiscussionForumTool: java.lang.NullPointerException at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187) caused by: java.lang.NullPointerException at org.hibernate.stat.ConcurrentStatisticsImpl.secondLevelCachePut(ConcurrentStatisticsImpl.java:302) at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:189) at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898) at org.hibernate.loader.Loader.doQuery(Loader.java:773) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270) at org.hibernate.loader.Loader.doList(Loader.java:2449) at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2235) at org.hibernate.loader.Loader.list(Loader.java:2184) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1258) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:859) at org.sakaiproject.component.common.type.TypeManagerImpl$2.doInHibernate(TypeManagerImpl.java:192) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at org.sakaiproject.component.common.type.TypeManagerImpl.getType(TypeManagerImpl.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)

    Sakai JIRA | 5 years ago | Steve Swinsburg
    java.lang.NullPointerException
  4. 0

    Exception in thread "main" org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean

    Stack Overflow | 6 months ago | karan
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [Statistics[start time=1473339335820,sessions opened=1,sessions closed=1,transactions=1,successful transactions=1,optimistic lock failures=0,flushes=0,connections obtained=1,statements prepared=1,statements closed=0,second level cache puts=0,second level cache hits=0,second level cache misses=0,entities loaded=0,entities updated=0,entities inserted=0,entities deleted=0,entities fetched=0,collections loaded=0,collections updated=0,collections removed=0,collections recreated=0,collections fetched=0,naturalId queries executed to database=0,naturalId cache puts=0,naturalId cache hits=0,naturalId cache misses=0,naturalId max query time=0,queries executed to database=1,query cache puts=0,query cache hits=0,query cache misses=0,update timestamps cache puts=0,update timestamps cache hits=0,update timestamps cache misses=0,max query time=18]] with key 'com.vervewireless.dao.hibernate:type=HibernateStatistics,name=SessionFactoryStatistics'; nested exception is org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [Statistics[start time=1473339335820,sessions opened=1,sessions closed=1,transactions=1,successful transactions=1,optimistic lock failures=0,flushes=0,connections obtained=1,statements prepared=1,statements closed=0,second level cache puts=0,second level cache hits=0,second level cache misses=0,entities loaded=0,entities updated=0,entities inserted=0,entities deleted=0,entities fetched=0,collections loaded=0,collections updated=0,collections removed=0,collections recreated=0,collections fetched=0,naturalId queries executed to database=0,naturalId cache puts=0,naturalId cache hits=0,naturalId cache misses=0,naturalId max query time=0,queries executed to database=1,query cache puts=0,query cache hits=0,query cache misses=0,update timestamps cache puts=0,update timestamps cache hits=0,update timestamps cache misses=0,max query time=18]] with key 'com.vervewireless.dao.hibernate:type=HibernateStatistics,name=SessionFactoryStatistics'; nested exception is org.springframework.jmx.export.metadata.InvalidMetadataException: No ManagedResource attribute found for class: class org.hibernate.stat.internal.ConcurrentStatisticsImpl

    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 org.hibernate.stat.internal.ConcurrentStatisticsImpl.getSecondLevelCacheStatistics()
    2. Hibernate
      ConcurrentStatisticsImpl.getSecondLevelCacheStatistics
      1. org.hibernate.stat.internal.ConcurrentStatisticsImpl.getSecondLevelCacheStatistics(ConcurrentStatisticsImpl.java:306)
      1 frame