Jump to content
We've recently updated our Privacy Statement, available here ×

anyulled

Members
  • Posts

    3
  • Joined

  • Last visited

anyulled's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I tried running the query with mysql workbench and it works perfectly. I don't use any accent, just calling an stored procedure with an input string with comma-separated values series of numbers. Thanks for your help
  2. i'm trying to configure a jaspersoft report at jasperserver with several text input controls. When I try with short values the report displays successfully. But when i pass a long string input value, the server returns an error filling the report: com.jaspersoft.jasperserver.api.JSException: Error filling report Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'canales' at row 1 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3607) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2293) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:239) ... 15 more com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'canales' at row 1 Traza de error com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'canales' at row 1 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3607) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
  3. Greetings. I've been trying to display my report in html but it doesn't show correctly the images, instead, I see every image has as a src attribute the word nullimg followed by a series of numbers ( like nullimg_0_33_66). I've read in some other place that I have to use an image servlet for that purpose, but I can't find it here. this is the code i'm using for the Html Exporter: JRHtmlExporter htmlExporter = new JRHtmlExporter(); htmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE); htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); htmlExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, byteArrayOutputStream); htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, "/opt/apache-tomcat-6.0.18/webapps/Simm/images"); htmlExporter.exportReport(); Code:JRHtmlExporter htmlExporter = new JRHtmlExporter(); htmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE); htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); htmlExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, byteArrayOutputStream); htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, "/opt/apache-tomcat-6.0.18/webapps/Simm/images"); htmlExporter.exportReport();
×
×
  • Create New...