cancel
Showing results for 
Search instead for 
Did you mean: 

When will JDK 17 be supported?

busitech_inc
Discoverer
0 Kudos

When will JDK 17 be supported? Crystal Reports is the only piece of software blocking our migraiton.

speters
Discoverer
0 Kudos

Hi don.williams,

we tried SP 28 and according to https://answers.sap.com/answers/13630498/view.html IMHO it is not fully compatible with Java 17 b/c the add-exports option is just a workaround and breaks encapsulation -- see http://openjdk.java.net/jeps/261 . Could you please address this issue for a future service pack?

Accepted Solutions (0)

Answers (3)

Answers (3)

sgessner
Explorer
0 Kudos

Hello busitech.inc

have you tried it with JDK 17 and does it work?

We tried and are facing some problems.

This exception occured:

Caused by: java.lang.IllegalAccessError: class com.crystaldecisions.sdk.occa.report.application.ClientDocument (in unnamed module @0x55a3efe5) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x55a3efe5
	at com.crystaldecisions.sdk.occa.report.application.ClientDocument.getDefaultLocale(SourceFile:959)
	at com.crystaldecisions.sdk.occa.report.application.ClientDocument.<init>(SourceFile:70)
	at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.<init>(SourceFile:243)
sgessner
Explorer

We solved the problem by adding the following jvm argument to our application.

With this argument added, there are no issues when executing reports.

--add-exports java.base/sun.security.action=ALL-UNNAMED
0 Kudos

sgessner

Hi, I am facing the same issue, tried to add the command as a jvm argument within the application without success, is there a chance you can show a sample code of where did you add it?

thanks

sgessner
Explorer
0 Kudos

snir_ashwal

Hello,

I'm using Tomcat. For Linux you can add the jvm argument in the variable CATALINA_OPTS like this:

export CATALINA_OPTS="-Xms256m -Xmx2048m -XX:MaxMetaspaceSize=512M -Duser.language=de -Duser.country=DE --add-exports java.base/sun.security.action=ALL-UNNAMED"

For Windows you have to open Tomcatw.exe and go to "Java". There you can add the jvm argument into the field "Java 9 Options".

Maybe it doesn't work if you add the argument at runtime. I think the application should be started with the jvm argument.

clara_sanchez
Explorer
0 Kudos

Hi! This worked for me, thank you! But now I'm facing another problem. The document is downloading empty, did it happen to you too? I'm using JDK 17 too.

Thank you very much.

Clara

sgessner
Explorer
0 Kudos

Hi clara.sanchez ,

My report wasn't empty. When the reportoption "Suppress Printing If No Records" is active, this might occur, if the report has no data to print.

If you uncheck this option in your report, then you should at least see the title or footer of your report.

clara_sanchez
Explorer
0 Kudos

Hi! Thank you for your response. This reports that now is printing empty before I migrated to SP28 version it worked fine. I don't think is a problem of data. Did you have any trouble with that?

Thank you again.

Clara

sgessner
Explorer
0 Kudos

Hello Clara,

I have SP28 too and it works so far. But I'm using Java 11 as compile level not Java 17. That can make a difference. I changed the compile level from 8 to 11 some months ago and there were some problems with the font but it always prints records.

clara_sanchez
Explorer
0 Kudos

Hello, thank you for your response. Do you know if the problem could come from that I have migrated crystal libraries from 2008 to 2021?

sgessner
Explorer
0 Kudos

Hello,

I'm using SAP Crystal Reports 2013. Maybe 2021 is not working with the SP28 runtime.

busitech_inc
Discoverer
0 Kudos

Hi Don, thank you for the notice. Does it support Java 17 (the latest JDK)?

0 Kudos

Hi Mathew,

SP 28 was just released, it now supports log4j version 2.17.

Get it here:

https://wiki.scn.sap.com/wiki/display/BOBJ/SAP+Crystal+Reports+version+for+Eclipse+-+Downloads

PS - Follow the page to get the updates

Merry Christmas and Happy New Year

Don