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

avinash.eng18

Members
  • Posts

    43
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by avinash.eng18

  1.  have a report (javabean collection datasource) which uses a date function - DATEFORMAT($F{meetingDate},"EEEE dd MMMM yyyy").  The report runs fine in eclipse and if I remove the function it runs properly through java.  


    With the function I get the following errors though 


     

    net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

    1. The method DATEFORMAT(Date, String) is undefined for the type ******

                    value = DATEFORMAT(((java.util.Date)field_OBSDate.getValue()),"EEEE dd MMMM yyyy"); //$JR_EXPR_ID=10$

                            <-------->

    2. The method DATEFORMAT(Date, String) is undefined for the type *******

                    value = DATEFORMAT(((java.util.Date)field_OBSDate.getOldValue()),"EEEE dd MMMM yyyy"); //$JR_EXPR_ID=10$

                            <-------->

    3. The method DATEFORMAT(Date, String) is undefined for the type *******

                    value = DATEFORMAT(((java.util.Date)field_OBSDate.getValue()),"EEEE dd MMMM yyyy"); //$JR_EXPR_ID=10$

                            <-------->

    3 errors

     

    My required date formatt is MM-DD-YYYY  HH:mm:SS

     

  2. I have a query to display errors occured in the last 5 days in a test case(assume), some times i dont get any error. and in this situation when i try to generate a error details as usual,

    JasperServer is throwing an error stating"Error executing SQL query" but doesnt throw any error when run through jasper Studio

     

    Anyone have faced similar situation!! Appreciate help on this..

     

    Note: i tired using when no data property but of no use.

  3. Hi i actually needed to access jasperserver's associated postgresql and hence changed the postgresql.conf and pg_hba.conf files. soon i change them (as ec2-user) the jasperserver became unresponsive and started thrwoing error 404 resource not available.

    Later i reverted the changes but still the jasperserver is responsive. I didnt take a snapshot before changing my bad!

    note: I have checked the catalina.out and it was saying connection refused as error/exception.

    any help on this is much appreciated.

  4. I have followed the link given and imported times new roma normal font and installed it(earlier i was using Sans Serif normal), After the import of timesNewRoman font and updating it and published it to the server.

    After this the report itself didnt work saying it doesnt have the font. (i have followed complete procedure in the attached link).

    When i do a manual export of the report to pdf i dont have any words loss. But the loss of words is happening when i am generating pdfs automatically using TALEND ETL and tjasperserverexec component.

    I dont know if there is a bug in the component or export!! can you pls help me on this @hozawa

  5. I need to schedule report exporting for a particular department which needs to run daily. And each day the list of employees for that department changes.

    So i am using Talend ETL to schedule this job and save the pdfs in a particular folder in my local.

    But the problem is, while creation of pdf from the server it is missing some of the data and generating pdf!!! though complete set of data is available in the report??

    I am using Jasperserver 6.3

    Talend ETL community 6.01

    and tjasperserverexec component to trigger pdf export. 

    Can any one pls suggest how to fix this words missing in the automated export of reports. Thanks in advance.

  6. Hi, I trying install the JasperReportServer(6.3 CP) on RHEL 6.9 

     

    But when  finish installation i receive the error below:

     

    Warning: Problem running post-install step. Installation may not complete 

     

    correctly

     

     Error running /opt/jasperreports-server-cp-6.3.0/apache-ant/bin/ant import-ce 

     

    -DimportFile=install_resources/export/js-catalog : 

     

    BUILD FAILED

     

    /opt/jasperreports-server-cp-6.3.0/buildomatic/bin/import-export.xml:352: The 

     

    following error occurred while executing this line:

     

    /opt/jasperreports-server-cp-6.3.0/buildomatic/bin/import-export.xml:135: Java 

     

    returned: 255

  7. @ernestoo it worked super cool.. and its quite intresting, I just wrote a function for import and the hack around is really helpful. thanks..

     function: 

    as superuser:
     
    create or replace function bytea_import(p_path text, p_result out bytea) 
                       language plpgsql as $$
    declare
      l_oid oid;
      r record;
    begin
      p_result := '';
      select lo_import(p_path) into l_oid;
      for r in ( select data 
                 from pg_largeobject 
                 where loid = l_oid 
                 order by pageno ) loop
        p_result = p_result || r.data;
      end loop;
      perform lo_unlink(l_oid);
    end;$$;
    then:
     
    insert into my_table(bytea_data) select bytea_import('/my/file.name');
×
×
  • Create New...