[ 
https://issues.apache.org/jira/browse/OFBIZ-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661866#action_12661866
 ] 

Erwan de FERRIERES commented on OFBIZ-2113:
-------------------------------------------

Sure !

When you are doing a quickInitDatawarehouse, by clicking on the link in the 
https://demo.hotwaxmedia.com/bi/control/main page, you will have a lot of 
errors in the log, like this one. With this patch, there are no more errors.


[ EntityExpr.java:267:WARN ] ---- exception report 
---------------------------------------------------------- =-=-=-=-=-=-=-=-= 
Database type warning in EntityExpr =-=-=-=-=-=-=-=-= In entity field 
[DateDimension.dateValue] set the value passed in [java.util.Date] is not 
compatible with the Java type of the field [java.sql.Date] Exception: 
java.lang.Exception Message: Location of database type warning ---- stack trace 
--------------------------------------------------------------- 
java.lang.Exception: Location of database type warning 
org.ofbiz.entity.condition.EntityExpr.checkRhsType(EntityExpr.java:267) 
org.ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java:167) 
org.ofbiz.entity.condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java:67)
 
org.ofbiz.entity.condition.EntityConditionListBase.makeWhereString(EntityConditionListBase.java:89)
 
org.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:676)
 
org.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:140)
 org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:2273) 
org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java:2314) 
org.ofbiz.entity.GenericDelegator.findByAnd(GenericDelegator.java:1925) 
org.ofbiz.common.olap.CommonDimensionServices.loadDateDimension(CommonDimensionServices.java:89)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
 
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) 
org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:244) 
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921) 
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749) 
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) 
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) 
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
 org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) 
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:332) 
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:461) 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:293) 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:204) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) 
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:42)
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
 java.lang.Thread.run(Thread.java:595) 
--------------------------------------------------------------------------------
2009-01-08 01:17:57,787 (TP-Processor27) 

> change date format in BI component when calling loadDateDimension
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-2113
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2113
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: SVN trunk
>            Reporter: Erwan de FERRIERES
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: patch.diff
>
>
> We found an error when calling loadDateDimension on the date format, there 
> was an incoherence when trying to initialise the data. There was a problem 
> with the Date format, which has been transformed as java.sql.Date.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to