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

sadakar

Members
  • Posts

    343
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by sadakar

  1. Hi, How can we remove blog sites in the Jaspersoft Planet ? 
    I don't see "Feeds" section ( so can't edit or delete) in my account as explained here : https://community.jaspersoft.com/wiki/planet-jaspersoft-help-guide.

    Someone from Jaspersoft has added my blog site few years ago and now I want this to be removed since the content I post is no longer for Jasper rather automation.
    https://community.jaspersoft.com/planet?f%5B0%5D=field_feed_source%3A841187 

    Attached image. 

    Please help. 

  2.  I would recommend testing the reports in JasperReports server insteqd in the studio since eventually irrespective of DEV or QA or PROD environments, we load or export the reports from the server. 
    Coming to the question, which version of studio are you using ? Is it community edition or professional edition ? 
    Sometimes it could be poor performance of the studio to load the components with in the report or perhaps it could be memory or report engine issues of the studio. 

  3. Did you try run the sub report as a separate report first in the server see how that's showing up ? 

    Normally in a non-complex report, I test the sub report independet of master report then link. 

    The other thought on my head is that the paths of the sub-reports should be taken as repo: instead of physical drive paths for the sub reports. 

    In recent times, I have created a fundamental video on sub reports that is aviable to watch on YouTube @ : 

    Check if this could be of any hlep.!

  4. Hi Community, 
    Please help on how to display byte[] data as an image on Japser report.

     1) SQL query : select  * from chart_images where id = 1

    2) Filed Name that needs to be displayed as an image  : $F{content}

    3) Field data type is : byte[] in jasper reports. 

    4) Field type in PostgreSQL is : bytea 

    5) Field data looks like 

          ÀÂPNG        IHDR    À          À À J    sRGB  À À  À   xeXIfMM...................................ÀÂP( c À À  À ÀÂ` ÀÂk§À     IEND ÀÂB` ÀÂ

    6) Report Design : 

            Taken summary band, Dragged an empty image and put $F{content} feld in the image expression.

    Below is the error log. 

    Studio Error Log: 

    net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Image read failed.
        at net.sf.jasperreports.engine.export.HtmlExporter$CellElementVisitor.visit(HtmlExporter.java:3123)
        at net.sf.jasperreports.engine.export.HtmlExporter$CellElementVisitor.visit(HtmlExporter.java:3095)
        at net.sf.jasperreports.engine.fill.JRTemplatePrintImage.accept(JRTemplatePrintImage.java:417)
        at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:3066)
        at net.sf.jasperreports.engine.export.HtmlExporter$TableVisitor.visit(HtmlExporter.java:3050)
        at net.sf.jasperreports.engine.export.tabulator.ElementCell.accept(ElementCell.java:56)
        at net.sf.jasperreports.engine.export.HtmlExporter.exportTable(HtmlExporter.java:590)
        at net.sf.jasperreports.engine.export.HtmlExporter.exportPage(HtmlExporter.java:490)
        at net.sf.jasperreports.engine.export.HtmlExporter.exportReportToWriter(HtmlExporter.java:391)
        at net.sf.jasperreports.engine.export.HtmlExporter.exportReport(HtmlExporter.java:248)
        at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.exportWithProgress(AExportAction.java:223)
        at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.doPreview(AExportAction.java:347)
        at com.jaspersoft.studio.editor.preview.actions.export.AExportAction$3.run(AExportAction.java:191)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
    Caused by: net.sf.jasperreports.engine.JRException: Image read failed.
        at net.sf.jasperreports.engine.util.JRJdk14ImageReader.readImage(JRJdk14ImageReader.java:70)
        at net.sf.jasperreports.engine.util.JRImageLoader.loadAwtImageFromBytes(JRImageLoader.java:164)
        at net.sf.jasperreports.renderers.WrappingImageDataToGraphics2DRenderer.getImage(WrappingImageDataToGraphics2DRenderer.java:76)
        at net.sf.jasperreports.renderers.WrappingImageDataToGraphics2DRenderer.getDimension(WrappingImageDataToGraphics2DRenderer.java:86)
        at net.sf.jasperreports.engine.export.HtmlExporter$InternalImageProcessor.process(HtmlExporter.java:1400)
        at net.sf.jasperreports.engine.export.HtmlExporter.writeImage(HtmlExporter.java:1021)
        at net.sf.jasperreports.engine.export.HtmlExporter$CellElementVisitor.visit(HtmlExporter.java:3115)
        ... 13 more
     

      Have been trying with below data types and expressions but unable get the image displayed and none worked so far. Please help in providing some inputs. 
     java.io.InputStream
     java.awt.Image
     java.lang.Object
     java.sql.Blob

    (java.sql.Blob)$F{content}.getBinaryStream()
    new java.io.ByteArrayInputStream(javax.xml.DatatypeConverter.parseBase64Binary($F{content}))

    new java.io.ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64($F{content}.getBytes()))
    new java.io.StringBufferInputStream(new org.w3c.tools.codec.Base64Decoder($F{content}).processString())
    new java.io.ByteArrayInputStream(Base64.getDecoder().decode($F{content}))

    Thank you in Advance. 

    Sadakar Pochampalli 

  5. Hi folks, 

    While installing 6.4.2 pro in Windows 10, I got below error message and unable to complete installation. Did any one come across it ? 

    Error running C:Jaspersoftjasperreports-server-6.4.2/postgresql/bin/psql.exe -U postgres -p 5432 -h 127.0.0.1

    - c "ALTER USER postgres PASSWORD '****":psql:could not connect to server: Connectin time out(0x0000274C/10060) 
    Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? 
    The application will exit now. 

    Thank you in Advance. 

    Sadakar


     

  6. Hi Community, 

    Did anyone try level1Index in TOC report ? By default there is a variable called "level2Index" to display level-2 but there is no a variable to display level-1 index. 

    The out of the box expression for level2Index is $F{level} == 1 ? 0 : ($F{level} == 2 ? ($V{level2Index} + 1) : $V{level2Index})

    Tried creating level1Index as similar to above one as $F{level} == 0 ? 0 : ($F{level} == 1 ? ($V{level1Index} + 1) : $V{level1Index}) but it doesn't work and thrown null value.

    In other words, from below I need the bold ones in level1 index in TOC. 

    {

    1. leve1

             1. level2

              2. level2

    2. level1

            1.level2

            2.level2

    }

    Any help would appricated on this. 

    Thank you in advance. 

    Sadakar Pochampalli

  7. I've tried with below code but it doesn't work 

    <hc:chartProperty name="plotOptions.series.data.marker.symbol">
                                <hc:propertyExpression><![CDATA["function (){ if(this.y==194.1) retrun "url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcREREQtiHarOyb4r2bo6vPeAb3wrOOo-BKXoIHRCy4jnHQr5mZ1)" else return "circle"}"]]></hc:propertyExpression>
                            </hc:chartProperty>

  8. I'm also having the same problem. In my scenario the table in postgres is as follows

    create table category_images4  (
    "id_category" int primary key,
    "category_name" TEXT,
    "category_image" oid
    )

    and the insert statement is : 

    insert into category_images4(id_category,category_name,category_image) values(1,'tablette', lo_import('C:UserssadakarPicturesSaved Picturespics1.png'));

    I could see that data is stored in table without any issue and the selection of the data : 

    select * from category_images4;

    id_category category_name category_image

    1  tablette 19902
     

    In jasper reports I have changed the category_image type to java.io.InputStream but this doesn't work for me. 

    I(we) will be very grateful if someone could shed some light on this thread. 

    Thank you in advance. 

     

×
×
  • Create New...