DuJava Posted February 5, 2007 Share Posted February 5, 2007 When I compile the report using iReport 1.3.0 no errors happen. But when I execute the application the following error happens... java.lang.ClassCastException: [b cannot be cast to java.io.InputStream The full print stack is in the attached file. With versions: ireport 1.3.0hbernate 3.1jasperreport 1.2.0 My property bean on hibernate is a byte[] and this field is setted with InputStream on iReports and no error is catched if there is no data in the field. [file name=printStack.txt size=9048]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/printStack.txt[/file] Link to comment Share on other sites More sharing options...
DuJava Posted March 19, 2007 Author Share Posted March 19, 2007 Help-me please :( Link to comment Share on other sites More sharing options...
DuJava Posted March 19, 2007 Author Share Posted March 19, 2007 Use iReport+JasperReport+Mysql+ one field blob... try Link to comment Share on other sites More sharing options...
slaisne Posted March 19, 2007 Share Posted March 19, 2007 Have you enough information like the text field description in your template Link to comment Share on other sites More sharing options...
DuJava Posted March 20, 2007 Author Share Posted March 20, 2007 I just set the field to InputStream, and I'm trying to view with Image component, isn't enough?This error just happens with Hibernate + jasper, if I use JDBC + mysql it works. Link to comment Share on other sites More sharing options...
slaisne Posted March 21, 2007 Share Posted March 21, 2007 Hibernate can returns InputStream fields? Link to comment Share on other sites More sharing options...
slaisne Posted March 21, 2007 Share Posted March 21, 2007 InputStream is NOT an Hibernate mapping type. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now