APAR status
Closed as program error.
Error description
After building and running a zUnit test case, there is an option to Export Runner Results as PDF. This will generate a .pdf file on your local PC containing the results of the test case. The file is not able to be opened using Microsoft Edge, Chrome or Adobe PDF reader. The Adobe Acrobat Reader error returned is: There is an error opening this document. The file is damaged and can not be repaired. The MS Edge error returned is: We canâ t open this file. Something went wrong. The Chrome error returned is: Error. Failed to load PDF document.
Local fix
Opening the .pdf file will work if opened in Firefox browser.
Problem summary
Customer using IDz16 exported the zUnit test results as PDF and tried to open with Adobe,, Edge, Chrome but all failed to open the file. The Adobe Acrobat Reader error returned is: There is an error opening this document. The file is damaged and can not be repaired. The MS Edge error returned is: We can'?t open this file. Something went wrong. The Chrome error returned is: Error. Failed to load PDF document. NoClassDefFoundError like below is logged in the log file of .metadata/.log. java.lang.NoClassDefFoundError: javax.xml.bind.DatatypeConverter at com.sysalto.render.serialization.RenderReport.md5(RenderReport.s cala:86) at com.sysalto.render.serialization.RenderReport.done(RenderReport. scala:134) at com.sysalto.render.PdfNativeRender.close(PdfNativeRender.scala:9 0) at com.sysalto.report.Report.close(Report.scala:316) at com.sysalto.report.Report.render(Report.scala:416) at com.ibm.rdz.dde.zunit.pdf.export.ZUnitRunnerResultPDFExporter30x x.exportPDF(ZUnitRunnerResultPDFExporter30xx.java:144) at com.ibm.rdz.dde.zunit.ui.actions.hyperlinks.SaveResultAsPDF30xx. hyperlink(SaveResultAsPDF30xx.java:141) at com.ibm.xwt.dde.internal.viewers.DetailsViewer$2.widgetSelected( DetailsViewer.java:908) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener. java:252) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1063) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1087) at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:11 04) at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:725) at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5800) at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1961) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5368) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4802) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023) at org.eclipse.swt.internal.win32.OS.CallWindowProc(Native Method) at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:162) at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1990) at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:5181) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4783) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023) at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:363 0) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.r un(PartRenderingEngine.java:1155) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Rea lm.java:338) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run (PartRenderingEngine.java:1046) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI( E4Workbench.java:155) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Rea lm.java:338) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbenc h.java:551) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 156) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDE Application.java:152) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseApp Handle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.run Application(EclipseAppLauncher.java:136) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.sta rt(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart er.java:401) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart er.java:255) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0( Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596) at org.eclipse.equinox.launcher.Main.run(Main.java:1467) at org.eclipse.equinox.launcher.Main.main(Main.java:1440) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter cannot be found by com.ibm.rdz.dde.zunit.pdf_1.0.4.202306121415 at org.eclipse.osgi.internal.loader.BundleLoader.generateException( BundleLoader.java:529) at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleL oader.java:524) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLo ader.java:416) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(Mod uleClassLoader.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1074) ... 50 more Opening the file in Firefox works.
Problem conclusion
ZUnit's reference to javax.xml.bind package is fixed for Java11 environment, that is different from java8 environment.
Temporary fix
Comments
APAR Information
APAR number
PH56733
Reported component name
DEV FOR Z/OS
Reported component ID
5724T0700
Reported release
G00
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-09-05
Closed date
2023-10-20
Last modified date
2023-10-20
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
DEV FOR Z/OS
Fixed component ID
5724T0700
Applicable component levels
[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SSJK49","label":"IBM Developer for z Systems"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"G00"}]
Document Information
Modified date:
21 October 2023