|
[ https://issues.apache.org/jira/browse/OFBIZ-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13536977#comment-13536977 ] Brajesh Patel commented on OFBIZ-5104: -------------------------------------- Hi Dhiraj, He is Anil not Ankit and second thing we don't have idea about entity for you are talking, so ask question on user mailing about your error. > Database type warning in EntityExpr =-=-=-=-=-=-=-=-= In entity field > ---------------------------------------------------------------------- > > Key: OFBIZ-5104 > URL: https://issues.apache.org/jira/browse/OFBIZ-5104 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release 10.04 > Reporter: Dhiraj Gupta > > Hi > In TallyModuleMapping entity defined type of filed checked is numeric. > this filed is used in check box.when check box is checked and saved it then we got this warning. > My question is that postgres field type "numeric" is long in java type. > when I pass integer value(check the check box value=1) then why it give the warning. > > 2012-12-19 12:58:37,781 (newThread) [ EntityExpr.java:286:WARN ] > ---- exception report ---------------------------------------------------------- > =-=-=-=-=-=-=-=-= Database type warning in EntityExpr =-=-=-=-=-=-=-=-= In entity field [TallyModuleMapping.checked] set the value passed in [java.lang.Integer] is not compatible with the Java type of the field [Long] > 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:286) > org.ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java:130) > org.ofbiz.entity.condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java:68) > org.ofbiz.entity.condition.EntityConditionListBase.makeWhereString(EntityConditionListBase.java:92) > org.ofbiz.entity.datasource.GenericDAO.makeConditionWhereString(GenericDAO.java:776) > org.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:693) > org.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:139) > org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1727) > org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java:1762) > org.ofbiz.entity.GenericDelegator.findByAnd(GenericDelegator.java:1670) > org.ofbiz.configuration.ConfigurationManager.checkConfig(ConfigurationManager.java:156) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > java.lang.reflect.Method.invoke(Method.java:601) > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) > org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:454) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:231) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) > org.ofbiz.transaction.TransactionManager.addTransaction(TransactionManager.java:71) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > java.lang.reflect.Method.invoke(Method.java:601) > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) > org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:454) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:231) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) > org.ofbiz.service.ServiceDispatcher$1.run(ServiceDispatcher.java:579) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
| Free forum by Nabble | Edit this page |
