281812 [http-8080-1] ERROR org.openbravo.userinterface.selector.SelectorDataSourceFilter  - Error evaluating filter expression: if (OB.getWindowId() && OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID")) {
  OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID");
} else {
  OB.getContext().getWarehouse().id;
}
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot read property "id" from null (<Unknown source>#4) in <Unknown source> at line number 4
	at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:153)
	at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:167)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
	at org.openbravo.client.application.ParameterUtils.getJSExpressionResult(ParameterUtils.java:161)
	at org.openbravo.userinterface.selector.SelectorDataSourceFilter.applyDefaultExpressions(SelectorDataSourceFilter.java:286)
	at org.openbravo.userinterface.selector.SelectorDataSourceFilter.doFilter(SelectorDataSourceFilter.java:97)
	at org.openbravo.service.datasource.DataSourceServlet.doFetch(DataSourceServlet.java:189)
	at org.openbravo.service.datasource.DataSourceServlet.doPost(DataSourceServlet.java:574)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
	at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:459)
	at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:87)
	at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:63)
	at org.openbravo.service.datasource.DataSourceServlet.service(DataSourceServlet.java:123)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
	at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
	at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
	at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
	at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
	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:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:680)
784702 [http-8080-5] ERROR org.openbravo.userinterface.selector.SelectorDataSourceFilter  - Error evaluating filter expression: if (OB.getWindowId() && OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID")) {
  OB.getSession().getAttribute(OB.getWindowId() +"|M_WAREHOUSE_ID");
} else {
  OB.getContext().getWarehouse().id;
}
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot read property "id" from null (<Unknown source>#4) in <Unknown source> at line number 4
	at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:153)
	at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:167)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
	at org.openbravo.client.application.ParameterUtils.getJSExpressionResult(ParameterUtils.java:161)
	at org.openbravo.userinterface.selector.SelectorDataSourceFilter.applyDefaultExpressions(SelectorDataSourceFilter.java:286)
	at org.openbravo.userinterface.selector.SelectorDataSourceFilter.doFilter(SelectorDataSourceFilter.java:97)
	at org.openbravo.service.datasource.DataSourceServlet.doFetch(DataSourceServlet.java:189)
	at org.openbravo.service.datasource.DataSourceServlet.doPost(DataSourceServlet.java:574)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
	at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:459)
	at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:87)
	at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:63)
	at org.openbravo.service.datasource.DataSourceServlet.service(DataSourceServlet.java:123)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
	at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
	at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
	at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
	at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
	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:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:680)