[#12151] - NoClassDefFoundError on click 'reset' button

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

Good day.

When I use a customized function library that is packaged in a jar file , errors occur when I click the reset button on preview tab.

Exception:
net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: GET_SUMMARY_NOTE_OF_SERVICE(new Date($P{dateReport}*1000), $P{SERVICE_UUID}, $P{EMERGENCY_SERVICE_ID}, $P{EMPLOYEE_UUID}, $P{OPERATOR_ID})
at net.sf.jasperreports.engine.fill.JREvaluator.handleEvaluationException(JREvaluator.java:284)
at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:316)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:672)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:640)
at net.sf.jasperreports.engine.fill.JRFillDataset.evaluateParameterValues(JRFillDataset.java:1042)
at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:668)
at net.sf.jasperreports.engine.fill.JRParameterDefaultValuesEvaluator.evaluateParameterDefaultValues(JRParameterDefaultValuesEvaluator.java:90)
at com.jaspersoft.studio.utils.ExpressionUtil.initBuiltInParameters(ExpressionUtil.java:400)
at com.jaspersoft.studio.editor.preview.view.control.ReportController.resetParametersToDefault(ReportController.java:179)
at com.jaspersoft.studio.editor.preview.PreviewContainer$5.widgetSelected(PreviewContainer.java:388)
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:4131)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
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(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:91)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
Caused by: java.lang.NoClassDefFoundError: ru/reksoft/s112/reporting/utils/S112Utils
at Blank_A4_1569860809248_162944.evaluate(Blank_A4_1569860809248_162944:167)
at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:302)
... 35 more
Caused by: java.lang.ClassNotFoundException: ru.reksoft.s112.reporting.utils.S112Utils
at java.lang.ClassLoader.findClass(ClassLoader.java:530)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 37 more

But on just preview I use my function library fine, I call my function and get value. My functions also are recognized in the JusperSoftStudio.

AttachmentSize
Image icon s122_functions.png148.19 KB
v6.9.0
Jaspersoft Studio
yrceus's picture
2
Joined: Apr 15 2019 - 11:58pm
Last seen: 1 week 5 days ago
Feedback
randomness