DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16231>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16231 org.apache.commons.beanutils.ConversionException: Cannot assign value of Summary: org.apache.commons.beanutils.ConversionException: Cannot assign value of Product: Commons Version: 1.5 Final Platform: All OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Bean Utilities AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] i am writing the following code to use with struts > > stmt = con.createStatement(); > rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr"); > ResultSetDynaClass rsdc = new ResultSetDynaClass(rs); > BasicDynaClass bdc = new BasicDynaClass("foo", > BasicDynaBean.class, rsdc.getDynaProperties()); > > Iterator rows = rsdc.iterator(); > while (rows.hasNext()) { > DynaBean row = (DynaBean) rows.next(); > DynaBean newRow = bdc.newInstance(); > PropertyUtils.copyProperties(newRow, row); > results.add(row); > } > > the above code is giving the error msg like this , the batchid that i am > seleting from database is of type Integer. > > org.apache.commons.beanutils.ConversionException: Cannot assign value of > type 'java.lang.Integer' to property 'ivtransbatchid' of type > 'java.lang.Long' -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>