wangbiao
论坛版主
论坛版主
  • UID99
  • 粉丝1
  • 关注0
  • 发帖数11
阅读:11287回复:1

加载页面,界面报java.lang.NullPointerException错误

楼主#
更多 发布于:2016-03-23 10:30
前提:StudioFuncConfig中url配置正确
控制台:报错
10:33:41,871 ERROR [STDERR] 三月 23, 2016 10:33:41 上午 com.sun.facelets.FaceletViewHandler handleRenderException
严重: Error Rendering View[/com/hearker/demo/pages/chartreport/pie/dought.xhtml]
java.lang.NullPointerException
 at com.sunsheen.jfids.ui.tags.ATag.apply(Unknown Source)
 at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
 at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
 at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
 at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
 at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
 at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
 at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:98)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.sunsheen.jfids.system.servlet.SystemPageFilter.doFilter(Unknown Source)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
 at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:72)
 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:61)
 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:66)
 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:159)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
 at java.lang.Thread.run(Thread.java:745)
wangbiao
论坛版主
论坛版主
  • UID99
  • 粉丝1
  • 关注0
  • 发帖数11
沙发#
发布于:2016-03-23 10:33
加载页面,界面报java.lang.NullPointerException错误 原因
错误原因:ss:panel和ss:viewPort标签位置错误,ss:panel标签应该在ss:viewPort之内
<ss:remoting interface="CommonDao,MapEntity"/>
 <ss:panel region="north" title="说明" contentEl="memo" height="160" margins="5 5 5 5"/>
<ss:viewPort layout="border" margins="3 3 3 3">
 <ss:panel region="north" title="说明" contentEl="memo" height="160" margins="5 5 5 5"/>
 <ss:chartPanel border="true" id="chartPanelevHr"  autoScroll="true" split="true" title="" region="center" chartWidth="100%" chartHeight="100%" chartAlign="center" plug="echarts"  margins="0 0 0 0">
 <ss:chartStore type="Doughnut2D" dataUrl="./data/ChartData.svt?chartId=dought" />
 </ss:chartPanel>
 </ss:viewPort>
游客

返回顶部