Dietmar Aust

daust ·

daust/JasperReportsIntegration

user_install.sql giving error

Hi,

please use the latest release and make the following change in the file xlib_http.pks in line 39:

HTTP_VERSION_1_1 constant VARCHAR2(64) := 'HTTP/1.1'; -- #123

=>

HTTP_VERSION_1_1 VARCHAR2(64) := 'HTTP/1.1'; -- #123

So, basically, when you...

daust/JasperReportsIntegration

user_install.sql giving error

I will have a look later today. Still busy. First I need to set up an environment so that I can test it ... on an older release. Please bear with me. Thanks. Want to make sure, it works flawlessly this time.

daust/JasperReportsIntegration

user_install.sql giving error

Release 2.4 is very old.

Did you run the script: sys_install_acl_12_and_above.sql ?

You need to use the exact same configuration as what you want to call via the url. For example, when you want to access then you should configure the ACLs to allow ,...

daust/JasperReportsIntegration

user_install.sql giving error

I don't mind at all ... keep 'em coming :).

Thank you.

daust/JasperReportsIntegration

user_install.sql giving error

You are absolutely right ... will have to revisit it. For the most part this is still valid, I don't use any specific higher-version features.

Thank you again!

daust/JasperReportsIntegration

user_install.sql giving error

Thank you for raising this.

I don't have an old database version currently because I switched machines.
I did remove the reference to the 1.1 http version constant ... and it compiles on Oracle 21c.
Will have a look at it next week.

Best, Dietmar.

daust/JasperReportsIntegration

Edit JRI file from ORacle Apex application

Hi,

are you looking for a full-blown replacement for TIBCO Jaspersoft Studio? Or do you have a limited use-case?
After a brief search for HTML/Javascript alternatives (which I could integrate into APEX) I have only found the following: https://fileproi...

daust/JasperReportsIntegration

Error when using a collection as a parameter at the URL

bug

Hi,

I am not sure, I fully understand the use case.

Can you post a simplified version of the pl/sql call and also the SQL query in the .jrxml report file?
That Java code doesn't really make sense to me.

You should have a SQL query in the report, right?

daust/JasperReportsIntegration

Can this (JRI) be used as APEX "report Printing" option.

No, not at the moment.I did build an integration into it in the past, but never made it into production. Conceptionally it should work. Nevertheless, the report has to be built differently. The data source would have to be XML, which is fed into the repo...

daust/JasperReportsIntegration

NoClassDefFoundError net.sf.jasperreports.engine.util.jrstyledtextparser

This typically indicates a missing font in the environment of the Tomcat (or other J2EE) server. You need to install all required fonts on that machine locally so that they are accessible by JasperReports.

daust/JasperReportsIntegration

Integrate and Call Jasper Reports From Oracle APEX

Perfect!

The proof is in the pudding. Whatever works for you.
Actually, the file setenv.bat needs to be created first, it does not exist after installation. But this is a typical (and well documented) way to configure Tomcat.

Best
~Dietmar.

daust/JasperReportsIntegration

Why not call reports directly through URL instead of using xlib_jasperreports.show_report?

Well, xlib_jasperreports.show_report() will form the URL AND execute the report through the database backend using UTL_HTTP. Thus, the call to the Tomcat (where jri.war resides) is done from the database, NOT the client browser.

So, basically, the dat...

daust/JasperReportsIntegration

Integrate and Call Jasper Reports From Oracle APEX

Hi @kashifsbr ,

I guess I would try setting it through the file setenv.bat in the Tomcat bin directory, similar to this:

Greenshot 2022-12-02 11.59.43.png

Best,
Dietmar.

daust/JasperReportsIntegration

how to create xlib_jasperreports packgae

Do you still have this problem, @farooqmalik ?
Seems to be an installation issue.
Please comment.
Thank you.

daust/JasperReportsIntegration

Direct printing from JRI and Apex

Sure, just call

xlib_jasperreports.get_report(...);

without displaying the blob.

The get_report() call will simply return the generated file as a BLOB.
Best
~Dietmar.

daust/JasperReportsIntegration

Testing Jetty server

No, everything is fine. It shows you that the application "JasperReportsIntegration" is available and started. You are good to go :).

I might update the documentation so that people don't get confused.
Best,
Dietmar.

daust/JasperReportsIntegration

JasperReportsIntegration-2.4.0.0 Dont Work with Oracle21c XE

Hi @oegidio,

did you try @DavidGhedini 's suggestion and tested the username/password combination?

Anyhow, I would recommend trying a newer release, it might work better with newer Java versions: https://github.com/daust/JasperReportsIntegration/rele...

daust/JasperReportsIntegration

Why not call reports directly through URL instead of using xlib_jasperreports.show_report?

Sure, you can do it. But it is less secure. For public reports this could be fine.
Typically, in an enterprise context, you would want to control access to your reports and data.

Thus, you want to be able to identify a user (authentication) and then cont...

daust/JasperReportsIntegration

Using Calibri/customized Fonts in PDF generation

Hi @SubhajeetG ,

sorry that it took so long.

I have investigated it and tested a bit more. The easiest instructions are these: https://community.jaspersoft.com/wiki/custom-font-font-extension

Once you have exported your font extension into a file...

daust/JasperReportsIntegration

Direct printing from JRI/Apex without showing the PDF in browser?

Hi Tobi,

for a situation like this I would use the following code:

DECLARE
   l_blob        BLOB;
   l_mime_type   VARCHAR2 (100);
BEGIN  
   xlib_jasperreports.get_report (p_rep_name => apex_util.url_encode('my_report'),
          p_rep_format      ...
daust/JasperReportsIntegration

Java version error?

I could reproduce the issue. By replacing the groovy-3.0.7 library with 3.0.12 it seems to work with JDK17. Will be included in the next release.

daust/JasperReportsIntegration

Java version error?

Hi @jeanomobono,

I am currently looking into this. Also, I will focus on supporting the current LTS JDK releases: https://github.com/daust/JasperReportsIntegration/issues/116

Anyway, I do have a question for you. When looking into the specifi...

daust/JasperReportsIntegration

Java version error?

Hi @jeanomobono,

I really appreciate your comment - many thanks for that.
I appreciate your approach and I typically do the same - for myself.

Nevertheless, I am here to help also those, who have more trouble adapting and finding alternative ways.I will...