Hi, I am new to ofbiz and i am using two version, the latest revision: 1076135 and also the stable version 10.4 . I try to make simple component like in the example component, and i am using entities i've created.
The problem is my form works okay in the stable version when i try to retrieve data from the entity, even there's a warning of GenericEntity.set because i am using integer type for the id instead of string (CMIIW): > =-=-=-=-=-=-=-=-= Database type warning GenericEntity.set > =-=-=-=-=-=-=-=-= In entity field [KnbsType.knbsTypeId] set the value > passed in [java.lang.String] 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.GenericEntity.set(GenericEntity.java:426) > org.ofbiz.entity.GenericEntity.setFields(GenericEntity.java:945) > .. > but when i tried copy my component to the latest revision hot-deploy, i got this error in the screen on the column of Type like this: http://ofbiz.135035.n4.nabble.com/file/n3331268/Untitled.png and beside that GenericEntity.set warning, there's error stack trace on the console log : > 2011-03-02 15:31:33,450 (http-0.0.0.0-8443-1) [ > ModelScreen.java:429:ERROR] > ---- exception report > ---------------------------------------------------------- > Could not commit transaction: > org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, > could not commit transaction, was rolled back instead because of: Error > rendering screen > [component://common/widget/CommonScreens.xml#FindScreenDecorator]: > java.lang.ClassCastExceptionjava.lang.ClassCastException (null) > Exception: org.ofbiz.entity.transaction.GenericTransactionException > Message: Roll back error, could not commit transaction, was rolled back > instead because of: Error rendering screen > [component://common/widget/CommonScreens.xml#FindScreenDecorator]: > java.lang.ClassCastExceptionjava.lang.ClassCastException (null) > ---- cause > --------------------------------------------------------------------- > Exception: java.lang.ClassCastException > Message: null > ---- stack trace > --------------------------------------------------------------- > java.lang.ClassCastException > java.lang.Class.cast(Unknown Source) > org.ofbiz.entity.jdbc.SqlJdbcUtil.setValue(SqlJdbcUtil.java:756) > org.ofbiz.entity.jdbc.SqlJdbcUtil.setValue(SqlJdbcUtil.java:735) > org.ofbiz.entity.jdbc.SqlJdbcUtil.setPkValues(SqlJdbcUtil.java:489) > org.ofbiz.entity.datasource.GenericDAO.select(GenericDAO.java:523) > org.ofbiz.entity.datasource.GenericDAO.select(GenericDAO.java:493) > ... > i don't know why this is happen, because my form works fine in the stable version (even there's a warning like i've mentioned before), this is the code of the form : http://ofbiz.135035.n4.nabble.com/file/n3331268/Untitled3.png is this a bug? any ideas? Thank you in advance. -- View this message in context: http://ofbiz.135035.n4.nabble.com/Issue-with-rendering-FindScreenDecorator-in-the-latest-revision-tp3331268p3331268.html Sent from the OFBiz - User mailing list archive at Nabble.com.
