daust / JasperReportsIntegration

JasperReportsIntegration provides an interface to use the JasperReports reporting engine in an Oracle database application, specifically with Oracle Application Express (Oracle APEX).
BSD 3-Clause "New" or "Revised" License
56 stars 25 forks source link

JRI 2.5.0 Errors #10

Closed ghost closed 4 years ago

ghost commented 6 years ago

I was trying test JRI 2.5.0 and I have some errors. 1) Apex application, error installing on APEX 18.2 2) Error compiling user package XLIB_JASPERREPORTS (line 237 and 353) l_url := l_url || '&_printJobName=' || bool2string(p_print_job_name); 3) Error running "test" report on APEX application, report runs showing a binary page.

Note: Yes, please, upgrade to 6.7.0 libraries. image

daust commented 6 years ago

1) Well, here we are actually hitting a bug (I guess due to the older compatibility mode setting in the app) https://community.oracle.com/thread/4173070. The workaround is simple, just install on the command line using sqlplus . You will probably want to change your environment in the session prior to installing the script:

SQL> DECLARE
  2     l_workspace_id   NUMBER;
  3  BEGIN
  4     l_workspace_id := APEX_UTIL.FIND_SECURITY_GROUP_ID ('JRI_TEST');
  5     apex_application_install.set_workspace_id (l_workspace_id);
  6     apex_application_install.generate_application_id;
  7     apex_application_install.set_schema('JRI_TEST');
  8  END;
  9  /

PL/SQL procedure successfully completed.

SQL> @f121_JasperReportsIntegration-Test_2.5.0.0.sql

For the next fix 2.5.0.1 I will make a version available which installs into 18.1 without problems.

2) This is weird, it did compile during my testing. Anyhow this is wrong, I already fixed it in dev.

Just change the line

l_url := l_url || '&_printJobName=' || bool2string(p_print_job_name);

to

l_url := l_url || '&_printJobName=' || p_print_job_name;

conversion to bool is not required here ... copy / paste mistake.

3) this one I cannot reproduce. please make the above changes and try again.

4) Good catch, I will check. The funny thing is that the JasperReports team did make a mistake here. I am calling their .getVersion() function and I have deployed the latest libraries, but they still return version 6.6.0:

greenshot 2018-09-30 08 44 14

daust commented 6 years ago

I have just released a fix here https://github.com/daust/JasperReportsIntegration/releases/tag/v2.5.0.1 and also included a few more fixed bugs.

ghost commented 6 years ago

Woooh.!!! Thanks @daust ...!! You are a great person.!! Regards, @jfernal

daust commented 4 years ago

Closing the issue. Cleaning up the older tickets.