java.lang.NullPointerException

Hibernate JIRA | Ezio Anselmo Mazarim Fernandes | 1 decade ago
  1. 0

    When executing the HQL query: select o.codHistoricoBloqueio , o.codHistoricoContrato.codSwspsubinteractid.numSolicitacao , o.swdatecreated , o.dscStatusBloqueio , o.dscMotivoBloqueio , o.dscTipoBloqueio , o.dscObservacaoBloqueio , o.vlrCobradoBloqueio , o.swcreatedby , o.dscCanal from br.com.sysmap.tcac.bean.SolHistoricoBloqueio as o left outer join o.codHistoricoContrato where o.codSwagreementid.swagreementid = 3038963.0 Is throwing a NullPointerException. The variable fromElement is null when getting from dot.getImpliedJoin(). It´s ok if i remove the "left outer join o.codHistoricoContrato". java.lang.NullPointerException at org.hibernate.hql.ast.HqlSqlWalker.createFromJoinElement(HqlSqlWalker.java:264) at org.hibernate.hql.antlr.HqlSqlBaseWalker.joinElement(HqlSqlBaseWalker.java:3022) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2841) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2719) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:513) at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:371) at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201) at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83) at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:424) at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:870) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:820) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) at br.com.sysmap.sunlight.dao.hibernate.HibBaseDAO$3.doInHibernate(HibBaseDAO.java:357) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:312) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:288) at br.com.sysmap.sunlight.dao.hibernate.HibBaseDAO.listWithFields(HibBaseDAO.java:256) at br.com.sysmap.sunlight.service.impl.BaseServiceImpl.listWithFields(BaseServiceImpl.java:151) 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:324) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:288) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy50.listWithFields(Unknown Source) at br.com.sysmap.sunlight.web.components.SLDataSource.getCollection(SLDataSource.java:261) at br.com.sysmap.sunlight.web.components.SLAbstractGrid.getCollection(SLAbstractGrid.java:124) at br.com.sysmap.sunlight.web.components.SLSummary.getCollection(SLSummary.java:81) 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:324) at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:278) at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:107) at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:204) at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:163) at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:101) at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129) at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:75) at org.displaytag.tags.el.ExpressionEvaluator.eval(ExpressionEvaluator.java:65) at org.displaytag.tags.el.ELTableTag.evaluateExpressions(ELTableTag.java:381) at org.displaytag.tags.el.ELTableTag.doStartTag(ELTableTag.java:319) at org.apache.jsp.tag.web.summary_tag._jspx_meth_display_table_0(org.apache.jsp.tag.web.summary_tag:808) at org.apache.jsp.tag.web.summary_tag.doTag(org.apache.jsp.tag.web.summary_tag:298) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspx_meth_sl_summary_0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:435) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp.access$23(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:421) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp$BloqueioDesbloqueio_jspHelper.invoke0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:999) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp$BloqueioDesbloqueio_jspHelper.invoke(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:1153) at org.apache.jsp.tag.web.screen_tag$screen_tagHelper.invoke0(org.apache.jsp.tag.web.screen_tag:473) at org.apache.jsp.tag.web.screen_tag$screen_tagHelper.invoke(org.apache.jsp.tag.web.screen_tag:503) at org.apache.jsp.tag.web.form_tag.doTag(org.apache.jsp.tag.web.form_tag:226) at org.apache.jsp.tag.web.screen_tag._jspx_meth_sl_form_0(org.apache.jsp.tag.web.screen_tag:401) at org.apache.jsp.tag.web.screen_tag._jspx_meth_c_when_0(org.apache.jsp.tag.web.screen_tag:369) at org.apache.jsp.tag.web.screen_tag._jspx_meth_c_choose_0(org.apache.jsp.tag.web.screen_tag:335) at org.apache.jsp.tag.web.screen_tag._jspx_meth_html_html_0(org.apache.jsp.tag.web.screen_tag:253) at org.apache.jsp.tag.web.screen_tag.doTag(org.apache.jsp.tag.web.screen_tag:173) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspx_meth_sl_screen_0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:98) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspService(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:172) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534)

    Hibernate JIRA | 1 decade ago | Ezio Anselmo Mazarim Fernandes
    java.lang.NullPointerException
  2. 0

    When executing the HQL query: select o.codHistoricoBloqueio , o.codHistoricoContrato.codSwspsubinteractid.numSolicitacao , o.swdatecreated , o.dscStatusBloqueio , o.dscMotivoBloqueio , o.dscTipoBloqueio , o.dscObservacaoBloqueio , o.vlrCobradoBloqueio , o.swcreatedby , o.dscCanal from br.com.sysmap.tcac.bean.SolHistoricoBloqueio as o left outer join o.codHistoricoContrato where o.codSwagreementid.swagreementid = 3038963.0 Is throwing a NullPointerException. The variable fromElement is null when getting from dot.getImpliedJoin(). It´s ok if i remove the "left outer join o.codHistoricoContrato". java.lang.NullPointerException at org.hibernate.hql.ast.HqlSqlWalker.createFromJoinElement(HqlSqlWalker.java:264) at org.hibernate.hql.antlr.HqlSqlBaseWalker.joinElement(HqlSqlBaseWalker.java:3022) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2841) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2719) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:513) at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:371) at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201) at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83) at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:424) at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:870) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:820) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) at br.com.sysmap.sunlight.dao.hibernate.HibBaseDAO$3.doInHibernate(HibBaseDAO.java:357) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:312) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:288) at br.com.sysmap.sunlight.dao.hibernate.HibBaseDAO.listWithFields(HibBaseDAO.java:256) at br.com.sysmap.sunlight.service.impl.BaseServiceImpl.listWithFields(BaseServiceImpl.java:151) 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:324) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:288) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy50.listWithFields(Unknown Source) at br.com.sysmap.sunlight.web.components.SLDataSource.getCollection(SLDataSource.java:261) at br.com.sysmap.sunlight.web.components.SLAbstractGrid.getCollection(SLAbstractGrid.java:124) at br.com.sysmap.sunlight.web.components.SLSummary.getCollection(SLSummary.java:81) 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:324) at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:278) at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:107) at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:204) at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:163) at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:101) at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129) at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:75) at org.displaytag.tags.el.ExpressionEvaluator.eval(ExpressionEvaluator.java:65) at org.displaytag.tags.el.ELTableTag.evaluateExpressions(ELTableTag.java:381) at org.displaytag.tags.el.ELTableTag.doStartTag(ELTableTag.java:319) at org.apache.jsp.tag.web.summary_tag._jspx_meth_display_table_0(org.apache.jsp.tag.web.summary_tag:808) at org.apache.jsp.tag.web.summary_tag.doTag(org.apache.jsp.tag.web.summary_tag:298) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspx_meth_sl_summary_0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:435) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp.access$23(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:421) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp$BloqueioDesbloqueio_jspHelper.invoke0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:999) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp$BloqueioDesbloqueio_jspHelper.invoke(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:1153) at org.apache.jsp.tag.web.screen_tag$screen_tagHelper.invoke0(org.apache.jsp.tag.web.screen_tag:473) at org.apache.jsp.tag.web.screen_tag$screen_tagHelper.invoke(org.apache.jsp.tag.web.screen_tag:503) at org.apache.jsp.tag.web.form_tag.doTag(org.apache.jsp.tag.web.form_tag:226) at org.apache.jsp.tag.web.screen_tag._jspx_meth_sl_form_0(org.apache.jsp.tag.web.screen_tag:401) at org.apache.jsp.tag.web.screen_tag._jspx_meth_c_when_0(org.apache.jsp.tag.web.screen_tag:369) at org.apache.jsp.tag.web.screen_tag._jspx_meth_c_choose_0(org.apache.jsp.tag.web.screen_tag:335) at org.apache.jsp.tag.web.screen_tag._jspx_meth_html_html_0(org.apache.jsp.tag.web.screen_tag:253) at org.apache.jsp.tag.web.screen_tag.doTag(org.apache.jsp.tag.web.screen_tag:173) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspx_meth_sl_screen_0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:98) at org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspService(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:172) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534)

    Hibernate JIRA | 1 decade ago | Ezio Anselmo Mazarim Fernandes
    java.lang.NullPointerException
  3. 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 org.hibernate.hql.ast.HqlSqlWalker.createFromJoinElement()
    2. Hibernate HQL/JP-QL Parser
      HqlSqlWalker.createFromJoinElement
      1. org.hibernate.hql.ast.HqlSqlWalker.createFromJoinElement(HqlSqlWalker.java:264)
      1 frame
    3. Hibernate
      HqlSqlBaseWalker.statement
      1. org.hibernate.hql.antlr.HqlSqlBaseWalker.joinElement(HqlSqlBaseWalker.java:3022)
      2. org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2841)
      3. org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2719)
      4. org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:513)
      5. org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:371)
      6. org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201)
      7. org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151)
      7 frames
    4. Hibernate HQL/JP-QL Parser
      QueryTranslatorImpl.compile
      1. org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
      2. org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
      3. org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
      3 frames
    5. Hibernate
      QueryImpl.list
      1. org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:424)
      2. org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:870)
      3. org.hibernate.impl.SessionImpl.list(SessionImpl.java:820)
      4. org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
      4 frames
    6. br.com.sysmap
      HibBaseDAO$3.doInHibernate
      1. br.com.sysmap.sunlight.dao.hibernate.HibBaseDAO$3.doInHibernate(HibBaseDAO.java:357)
      1 frame
    7. Hibernate
      HibernateTemplate.execute
      1. org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:312)
      2. org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:288)
      2 frames
    8. br.com.sysmap
      BaseServiceImpl.listWithFields
      1. br.com.sysmap.sunlight.dao.hibernate.HibBaseDAO.listWithFields(HibBaseDAO.java:256)
      2. br.com.sysmap.sunlight.service.impl.BaseServiceImpl.listWithFields(BaseServiceImpl.java:151)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    10. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:288)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      3 frames
    11. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
      1 frame
    12. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
      2 frames
    13. Unknown
      $Proxy50.listWithFields
      1. $Proxy50.listWithFields(Unknown Source)
      1 frame
    14. br.com.sysmap
      SLSummary.getCollection
      1. br.com.sysmap.sunlight.web.components.SLDataSource.getCollection(SLDataSource.java:261)
      2. br.com.sysmap.sunlight.web.components.SLAbstractGrid.getCollection(SLAbstractGrid.java:124)
      3. br.com.sysmap.sunlight.web.components.SLSummary.getCollection(SLSummary.java:81)
      3 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    16. JSP Tag Library
      ExpressionEvaluatorManager.evaluate
      1. org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:278)
      2. org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:107)
      3. org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:204)
      4. org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:163)
      5. org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:101)
      6. org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129)
      7. org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:75)
      7 frames
    17. Display tag library
      ELTableTag.doStartTag
      1. org.displaytag.tags.el.ExpressionEvaluator.eval(ExpressionEvaluator.java:65)
      2. org.displaytag.tags.el.ELTableTag.evaluateExpressions(ELTableTag.java:381)
      3. org.displaytag.tags.el.ELTableTag.doStartTag(ELTableTag.java:319)
      3 frames
    18. org.apache.jsp
      BloqueioDesbloqueio_jsp._jspService
      1. org.apache.jsp.tag.web.summary_tag._jspx_meth_display_table_0(org.apache.jsp.tag.web.summary_tag:808)
      2. org.apache.jsp.tag.web.summary_tag.doTag(org.apache.jsp.tag.web.summary_tag:298)
      3. org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspx_meth_sl_summary_0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:435)
      4. org.apache.jsp.pages.BloqueioDesbloqueio_jsp.access$23(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:421)
      5. org.apache.jsp.pages.BloqueioDesbloqueio_jsp$BloqueioDesbloqueio_jspHelper.invoke0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:999)
      6. org.apache.jsp.pages.BloqueioDesbloqueio_jsp$BloqueioDesbloqueio_jspHelper.invoke(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:1153)
      7. org.apache.jsp.tag.web.screen_tag$screen_tagHelper.invoke0(org.apache.jsp.tag.web.screen_tag:473)
      8. org.apache.jsp.tag.web.screen_tag$screen_tagHelper.invoke(org.apache.jsp.tag.web.screen_tag:503)
      9. org.apache.jsp.tag.web.form_tag.doTag(org.apache.jsp.tag.web.form_tag:226)
      10. org.apache.jsp.tag.web.screen_tag._jspx_meth_sl_form_0(org.apache.jsp.tag.web.screen_tag:401)
      11. org.apache.jsp.tag.web.screen_tag._jspx_meth_c_when_0(org.apache.jsp.tag.web.screen_tag:369)
      12. org.apache.jsp.tag.web.screen_tag._jspx_meth_c_choose_0(org.apache.jsp.tag.web.screen_tag:335)
      13. org.apache.jsp.tag.web.screen_tag._jspx_meth_html_html_0(org.apache.jsp.tag.web.screen_tag:253)
      14. org.apache.jsp.tag.web.screen_tag.doTag(org.apache.jsp.tag.web.screen_tag:173)
      15. org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspx_meth_sl_screen_0(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:98)
      16. org.apache.jsp.pages.BloqueioDesbloqueio_jsp._jspService(org.apache.jsp.pages.BloqueioDesbloqueio_jsp:68)
      16 frames
    19. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      1 frame
    20. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      1 frame
    21. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      3 frames
    22. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      1 frame
    23. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      6 frames
    24. struts
      ActionServlet.doGet
      1. org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
      2. org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
      3. org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
      4. org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
      5. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
      6. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      7. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      7 frames
    25. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2 frames
    26. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2 frames
    27. Hibernate
      OpenSessionInViewFilter.doFilterInternal
      1. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:172)
      1 frame
    28. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      1 frame
    29. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2 frames
    30. JBoss Application Server Tomcat
      ReplyHeaderFilter.doFilter
      1. org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      1 frame
    31. Glassfish Core
      StandardContextValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      4 frames
    32. JBoss Application Server Tomcat
      JaccContextValve.invoke
      1. org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      2. org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      3. org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      3 frames
    33. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      4 frames
    34. Grizzly HTTP
      MasterSlaveWorkerThread.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      4. org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      4 frames
    35. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:534)
      1 frame