错误日志:

[java] 2014-09-23 00:11:34,877 (http-bio-0.0.0.0-8080-exec-4) [     ControlServlet.java:141:INFO ] [[[main(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
[java] 2014-09-23 00:11:34,877 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:164:ERROR] [ControlServlet] ERROR: delegator not found in ServletContext
[java] 2014-09-23 00:11:34,878 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:176:ERROR] [ControlServlet] ERROR: dispatcher not found in ServletContext
[java] 2014-09-23 00:11:34,878 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:185:ERROR] [ControlServlet] ERROR: authorization not found in ServletContext
[java] 2014-09-23 00:11:34,878 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:194:ERROR] [ControlServlet] ERROR: security not found in ServletContext
[java] 2014-09-23 00:11:34,878 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:217:ERROR] Could not find delegator in request or with delegatorName [null] in session, not creating/getting Visitor entity
[java] 2014-09-23 00:11:34,879 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:273:WARN ]
[java] ---- exception report ----------------------------------------------------------
[java] Could not find or create the visitor...
[java] Exception: java.lang.Exception
[java] Message: null
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.Exception
[java] org.ofbiz.webapp.stats.VisitHandler.getVisitor(VisitHandler.java:273)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:205)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java] 2014-09-23 00:11:34,879 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:118:ERROR] Could not find delegator with delegatorName [null] in session, or a delegator attribute in the ServletContext, not creating Visit entity
[java] 2014-09-23 00:11:34,879 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:192:WARN ] Could not find or create the visit...
[java] 2014-09-23 00:11:34,889 (http-bio-0.0.0.0-8080-exec-4) [ ConfigXMLReader.java:120:INFO ] controller loaded: 0.0s, 1 requests, 1 views in jndi:/0.0.0.0/practice/WEB-INF/controller.xml
[java] 2014-09-23 00:11:34,907 (http-bio-0.0.0.0-8080-exec-4) [ ConfigXMLReader.java:120:INFO ] controller loaded: 0.0020s, 36 requests, 19 views in file:/F:/workspace/opensource/apache-obiz/apache-ofbiz-12.04.05/framework/common/webcommon/WEB-INF/common-controller.xml
[java] 2014-09-23 00:11:34,908 (http-bio-0.0.0.0-8080-exec-4) [ RequestHandler.java:766:INFO ] Rendering View [main], sessionId=956C87DAFBAFC4B436EECA4886069E86.jvm1
[java] 2014-09-23 00:11:34,909 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:239:ERROR]
[java] ---- runtime exception report --------------------------------------------------
[java] Error in request handler:
[java] Exception: java.lang.NullPointerException
[java] Message: null
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.NullPointerException
[java] org.ofbiz.base.util.UtilHttp.getServletContextMap(UtilHttp.java:378)
[java] org.ofbiz.base.util.UtilHttp.getCombinedMap(UtilHttp.java:90)
[java] org.ofbiz.widget.screen.ScreenRenderer.populateContextForRequest(ScreenRenderer.java:197)
[java] org.ofbiz.widget.screen.ScreenRenderer.populateContextForRequest(ScreenRenderer.java:188)
[java] org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:94)
[java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:868)
[java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:582)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java] 2014-09-23 00:11:34,909 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:250:ERROR] An error occurred, going to the errorPage: /error/error.jsp
[java] 2014-09-23 00:11:34,909 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:257:ERROR] Including errorPage: /error/error.jsp
[java] 2014-09-23 00:11:34,910 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:217:ERROR] Could not find delegator in request or with delegatorName [null] in session, not creating/getting Visitor entity
[java] 2014-09-23 00:11:34,911 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:273:WARN ]
[java] ---- exception report ----------------------------------------------------------
[java] Could not find or create the visitor...
[java] Exception: java.lang.Exception
[java] Message: null
[java] ---- stack trace ---------------------------------------------------------------
[java] java.lang.Exception
[java] org.ofbiz.webapp.stats.VisitHandler.getVisitor(VisitHandler.java:273)
[java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:323)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
[java] javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
[java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
[java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
[java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
[java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
[java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
[java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
[java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
[java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
[java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
[java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
[java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
[java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
[java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[java] java.lang.Thread.run(Thread.java:662)
[java] --------------------------------------------------------------------------------
[java] 2014-09-23 00:11:34,912 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:118:ERROR] Could not find delegator with delegatorName [null] in session, or a delegator attribute in the ServletContext, not creating Visit entity
[java] 2014-09-23 00:11:34,912 (http-bio-0.0.0.0-8080-exec-4) [ VisitHandler.java:192:WARN ] Could not find or create the visit...
[java] 2014-09-23 00:11:34,912 (http-bio-0.0.0.0-8080-exec-4) [ ServerHitBin.java:626:WARN ] Could not find a visitId, so not storing ServerHit. This is probably a configuration error. If you turn off persistance of visits you should also turn off persistence of hits.
[java] 2014-09-23 00:11:34,913 (http-bio-0.0.0.0-8080-exec-4) [ ControlServlet.java:331:INFO ] [[[main(Domain:http://localhost)] Request Done- total:0.036,since last([main(Domain:http...):0.036]]

问题解决:

由于web.xml没有配置ContextFilter,加上此配置即可解决该问题。

<filter>
<filter-name>ContextFilter</filter-name>
<display-name>ContextFilter</display-name>
<filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
<init-param><param-name>disableContextSecurity</param-name><param-value>N</param-value></init-param>
<init-param>
<param-name>allowedPaths</param-name>
<param-value>/error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value>
</init-param>
<init-param>
<param-name>errorCode</param-name>
<param-value>403</param-value>
</init-param>
<init-param>
<param-name>redirectPath</param-name>
<param-value>/control/main</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ContextFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

OFBIZ bug_ControlServlet.java:239:ERROR的更多相关文章

  1. OFBIZ bug_ControlServlet.java:233:ERROR

    错误日志: [java] 2014-09-26 10:12:17,031 (http-bio-0.0.0.0-8443-exec-5) [ ControlServlet.java:233:ERROR] ...

  2. idea报错:error java compilation failed internal java compiler error

    idea下面报如下问题 error java compilation failed internal java compiler error 解决办法:Setting->Compiler-> ...

  3. idea Error:java: Compilation failed: internal java compiler error

    idea 遇到Error:java: Compilation failed: internal java compiler error 是提示说你当前使用的编译器jdk版本不对. 按住Ctrl+Alt ...

  4. idea之internal java compiler error

    启动错误:Error:java: Compilation failed: internal java compiler error 解决:将圈选地方改为对应的jdk版本即可

  5. Error:java:Compilation failed: internal java compiler error

    在IDEA中编译时出现这个错误:Error:java:Compilation failed: internal java compiler error! Information:Using javac ...

  6. maven Spring 4.2+SpringMVC+dubbo解决TypeProxyInvocationHandler.invoke(SerializableTypeWrapper.java:239)

    java.lang.NullPointerException org.springframework.core.SerializableTypeWrapper$TypeProxyInvocationH ...

  7. java 区分error和exception

    1) java.lang.Error: Throwable的子类,用于标记严重错误.合理的应用程序不应该去try/catch这种错误.绝大多数的错误都是非正常的,就根本不该出现的.java.lang. ...

  8. java中Error与Exception有什么区别

    Error类和Exception类都继承自Throwable类. Error的继承关系: java.lang.Object  java.lang.Throwable      java.lang.Er ...

  9. org.apache.axis2.AxisFault: java.lang.Error: Unresolved compilation problem:

    原创:转载请注明出处 今天遇到以下一个异常,找了好长时间,就是不知道什么原因, 在网上搜了好多,也没搜到相关的解决方法. 1.异常展示, org.apache.axis2.AxisFault: jav ...

随机推荐

  1. CentOS(一)--CentOS6.4环境搭建

    一.前言 作为一个想从事j2ee后台开发的程序猿,linux系统怎能不学呢?所以,这几天自己准备学习一下linux操作系统.废话不多说,直奔主题. 要学linux开发,首先得要安装linux系统吧,这 ...

  2. javaweb学习总结十六(tomcat服务器的使用、虚拟目录的映射)

    一:tomcat服务器的目录 1:目录结构 2:web应用程序介绍 二:虚拟目录的映射 假如我在E盘建立一个目录web,里面存放1.html文件,我想让外界访问 1:直接在conf目录下的server ...

  3. (转)嵌入式学习准备---linux c 文件锁

    (1)fcntl函数说明 前面的这5个基本函数实现了文件的打开.读写等基本操作,这一节将讨论的是,在文 件已经共享的情况下如何操作,也就是当多个用户共同使用.操作一个文件的情况,这时,Linux 通常 ...

  4. [转]T4模版引擎之生成数据库实体类

    本文转自:http://www.cnblogs.com/lzrabbit/archive/2012/07/18/2597953.html 在通过T4模版引擎之基础入门 对T4有了初步印象后,我们开始实 ...

  5. [改善Java代码]避开基本类型数组转换列表陷阱

    开发中经常用到Arrays和Collections这两个工具类. 在数组和列表之间进行切换.非常方便.但是也会遇到一些问题. 看代码: import java.util.Arrays; import ...

  6. 关于location.href几种用法的区别

    常见的几种开发形式: self.location.href; window.location.href; this.location.href; location.href; parent.locat ...

  7. 钓鱼 贪心 end

    #include<iostream> int m,n; int *p; int dis=0; int peo=0; int data[3][2]; int b[3][2]; int da[ ...

  8. Angular 2.0 从0到1:Rx--隐藏在Angular 2.x中利剑

    第一节:Angular 2.0 从0到1 (一)第二节:Angular 2.0 从0到1 (二)第三节:Angular 2.0 从0到1 (三)第四节:Angular 2.0 从0到1 (四)第五节: ...

  9. 【hdu2896】病毒侵袭

    题目描述 当太阳的光辉逐渐被月亮遮蔽,世界失去了光明,大地迎来最黑暗的时刻....在这样的时刻,人们却异常兴奋--我们能在有生之年看到500年一遇的世界奇观,那是多么幸福的事儿啊~~但网路上总有那么些 ...

  10. 7 个基本的 JS 函数【译】

    本文由 伯乐在线 - 刘健超-J.c 翻译,进林 校稿.未经许可,禁止转载!英文出处:davidwalsh.name.欢迎加入翻译组. 我记得早期的 JavaScript ,要完成任何事情几乎都绕不开 ...