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
like this : 


> =-=-=-=-=-=-=-=-= 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)
> ..
> 

The code of my form is like this :



> 

>         
>             
>                 
>                 
>                 
>                 
>                 
>             
>         
>       
>            
>                
>            
>        
>        
>        
>        
>        
>            
>                              
>            
>        
>     
> 


> 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)
> ...
> 
=-=-=-=-=-=-=-=-= 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)

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Issue-with-rendering-FindScreenDecorator-tp3331210p3331210.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to