JasperReports problem in 202209

Questions and answers for all installation-related topics for Servoy products

JasperReports problem in 202209

Postby tkilshaw1553613063 » Wed Oct 26, 2022 6:25 pm

When we updated our Servoy Developer to version 202203 we installed Basic_Servoy_JasperReports_Plugin_v.2022.3_6.19.1.zip and our reports printed without problems in the developer and when deployed via war file in an NG1 application.

When we updated our Servoy Developer to version 202209 we installed Basic_Servoy_JasperReports_Plugin_v.2022.3_6.19.1.zip and our reports printed without problems in the developer but none of our reports printed at all when deployed via war file in an NG1 application.

For some of them we get the following kind of error in the logs but for others it simply fails without error messages. Can anyone shed some light on what the problem may be? The data and our software in both cases is the same:

Code: Select all
2022-10-25 18:32:28,632 ERROR [Executor,uuid:42D0DC3:2, clientid: 6B7C9CFC-4E05-4640-BA66-7EA9F9A12008]
com.servoy.j2db.util.Debug - TypeError: Cannot call method "getReports" of undefined
(quantech_base/scopes/qfi/outputDetailReport#1549)
(Form Context: _198_Cash_Deal_Stats), JSEvent(type = action, source = Component:
<Component:'button_128' of parent FormUI for FormController[form: _198_Cash_Deal_Stats, fs size:200,visible: true,
selected record: Record[DATA:Row(db:/qfi/v_deal_stats_cash)
[DATA:id=8DAGI5O638RU56XIM803,fk_businessmanagerid=82WQUEJ6AN6W8VDLT2FO,fk_buyerid=REA9DAHJOU3LJA15MRHF,
fk_cobuyerid=null,fk_primaryunitid=null,fk_salesmanagerid=null,fk_salespersonid=null,acccosttotal=null,
addons=null,balancedue=478.73,balancesource=null,bmloginname=Darren,bmsalescommission=73.75,
bmsalescommissionflatfee=null,bmsalescommissionpercent=25.0,cashtodeal=0.0,cod=0.0,codauthnum=null,
coddate=null,codtype=null,costofsales=0.0,dealstatus=PENDING,dealtype=CASH,deposit=null,depositauthnum=null,
depositdate=null,deposittype=null,deposit2=null,deposit2authnum=null,deposit2date=null,deposit2type=null,
deposits=0.0,docfee=295.0,dtdmscodposted=0,dtdmsdepositposted=0,etchingid=null,etchingreserve=0.0,
fiadjustment=null,fireserve=null,fitotal=295.0,figross=295.0,finetprofit=221.25,finetprofitpercent=75.0,
gapreserve=0.0,grossprofit=0.0,grossprofitpercent=0.0,lien=null,maintenancereserve=0.0,modelcode=null,
netprofit=-750.0,netprofitpercent=0.0,otherfeestaxes=138.0,otherfireserve=0.0,propackreserve=0.0,rebates=0.0,
securityreserve=0.0,smloginname=null,smsalescommission=0.0,smsalescommissionflatfee=null,smsalescommissionpercent=5.0,
sploginname=null,spsalescommission=750.0,spsalescommissionflatfee=750.0,spsalescommissionpercent=null,
taxes=45.73,tax1=7.5,tax1fordisclosure=22.13,tax2=8.0,tax2fordisclosure=23.6,tirewheelreserve=0.0,totalprofit=-528.75,
totalreceived=478.73,tradesacv=null,trades=0.0,unitisnew=null,warrantyid=null,warrantyreserve=0.0, 
CALCULATIONS: {}]]  COLUMS: id,fk_businessmanagerid,fk_buyerid,fk_cobuyerid,fk_primaryunitid,fk_salesmanagerid,
fk_salespersonid,acccosttotal,addons,balancedue,balancesource,bmloginname,bmsalescommission,bmsalescommissionflatfee,
bmsalescommissionpercent,cashtodeal,cod,codauthnum,coddate,codtype,costofsales,dealstatus,dealtype,deposit,
depositauthnum,depositdate,deposittype,deposit2,deposit2authnum,deposit2date,deposit2type,deposits,docfee,
dtdmscodposted,dtdmsdepositposted,etchingid,etchingreserve,fiadjustment,fireserve,fitotal,figross,finetprofit,
finetprofitpercent,gapreserve,grossprofit,grossprofitpercent,lien,maintenancereserve,modelcode,netprofit,
netprofitpercent,otherfeestaxes,otherfireserve,propackreserve,rebates,securityreserve,smloginname,smsalescommission,
smsalescommissionflatfee,smsalescommissionpercent,sploginname,spsalescommission,spsalescommissionflatfee,
spsalescommissionpercent,taxes,tax1,tax1fordisclosure,tax2,tax2fordisclosure,tirewheelreserve,totalprofit,
totalreceived,tradesacv,trades,unitisnew,warrantyid,warrantyreserve,,destroyed:false], with spec: servoydefault-button >,
formName = _198_Cash_Deal_Stats, elementName = button_128, timestamp = 2022-10-25 18:32:27.554,
modifiers = 0,x =767,y = 47,data = null)
  at quantech_base/scopes/qfi/outputDetailReport:1549 (outputDetailReport)
  at quantech_base/scopes/qfi/makeReport:666 (makeReport)
  at quantech_base/scopes/qfi/processWebServiceReturn:558 (processWebServiceReturn)
  at quantech_base/scopes/qfi/callAndProcessWebService:59 (callAndProcessWebService)
  at quantech_base/scopes/qfi/triggerWebservice:286 (triggerWebservice)
  at qfi/forms/_198_Cash_Deal_Stats/replacedButton_132:651 (replacedButton_132)
  at qfi/forms/_198_Cash_Deal_Stats/obTrig_Print:200 (obTrig_Print)
  at quantech_base/forms/base/openFormDialog:902 (openFormDialog)
  at quantech_base/scopes/qfi/showFormFromAction:935 (showFormFromAction)
  at quantech_base/scopes/qfi/processWebServiceReturn:362 (processWebServiceReturn)
  at quantech_base/scopes/qfi/callAndProcessWebService:59 (callAndProcessWebService)
  at quantech_base/scopes/qfi/triggerWebservice:286 (triggerWebservice)
  at qfi/forms/_32_Cash_Deal_Work/replacedButton_156:2409 (replacedButton_156)
  at qfi/forms/_32_Cash_Deal_Work/obTrig_Deal_Stats:345 (obTrig_Deal_Stats)
  at quantech_base/forms/base/openFormDialog:902 (openFormDialog)
  at quantech_base/scopes/qfi/showFormFromListRowClick:1209 (showFormFromListRowClick)
  at quantech_base/forms/base/onCellClick$Table_GoToNextScreen:708 (onCellClick$Table_GoToNextScreen)
  at qfi/forms/_355_Deal_List_Pending_With_Bus/onCellClick_table_1:564 (onCellClick_table_1)
[6B7C9CFC-4E05-4640-BA66-7EA9F9A12008 qfi]
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getReports" of undefined (quantech_base/scopes/qfi/outputDetailReport#1549)
  at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4639) ~[js.jar:?]
  at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4620) ~[js.jar:?]
  at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4652) ~[js.jar:?]
  at org.mozilla.javascript.ScriptRuntime.typeErrorById(ScriptRuntime.java:4657) ~[js.jar:?]
  at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:4693) ~[js.jar:?]
  at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2595) ~[js.jar:?]
  at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2589) ~[js.jar:?]
  at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1666) ~[js.jar:?]
  at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1053) ~[js.jar:?]
  at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:90) ~[js.jar:?]
  at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:727) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.server.ngclient.component.EventExecutor.executeEvent(EventExecutor.java:198) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.DataAdapterList.executeEvent(DataAdapterList.java:198) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.WebFormComponent$FormcomponentEventHandler.executeEvent(WebFormComponent.java:252) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.BaseWebObject.doExecuteEvent(BaseWebObject.java:369) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.BaseWebObject.executeEvent(BaseWebObject.java:332) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.services.server.FormServiceHandler.executeEvent(FormServiceHandler.java:137) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeEvent(NGFormServiceHandler.java:598) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.services.server.FormServiceHandler.executeMethod(FormServiceHandler.java:84) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeMethod(NGFormServiceHandler.java:577) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.websocket.WebsocketEndpoint$5.run(WebsocketEndpoint.java:414) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.Event$1.run(Event.java:97) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:80) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.Event.execute(Event.java:87) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:135) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.EventDispatcher.suspend(EventDispatcher.java:264) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGRuntimeWindow.doOldShow(NGRuntimeWindow.java:551) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.scripting.RuntimeWindow.doShow(RuntimeWindow.java:304) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.scripting.RuntimeWindow.show(RuntimeWindow.java:298) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.BasicFormController.showForm(BasicFormController.java:2423) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.BasicFormController$JSForm.js_show(BasicFormController.java:2657) ~[j2db.jar:2022.9.0.3803]
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
  at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:219) ~[js.jar:?]
  at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:284) ~[js.jar:?]
  at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1879) ~[js.jar:?]
  at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1053) ~[js.jar:?]
  at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:90) ~[js.jar:?]
  at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:727) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.server.ngclient.component.EventExecutor.executeEvent(EventExecutor.java:198) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.DataAdapterList.executeEvent(DataAdapterList.java:198) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.WebFormComponent$FormcomponentEventHandler.executeEvent(WebFormComponent.java:252) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.BaseWebObject.doExecuteEvent(BaseWebObject.java:369) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.BaseWebObject.executeEvent(BaseWebObject.java:332) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.services.server.FormServiceHandler.executeEvent(FormServiceHandler.java:137) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeEvent(NGFormServiceHandler.java:598) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.services.server.FormServiceHandler.executeMethod(FormServiceHandler.java:84) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeMethod(NGFormServiceHandler.java:577) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.websocket.WebsocketEndpoint$5.run(WebsocketEndpoint.java:414) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.Event$1.run(Event.java:97) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:80) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.Event.execute(Event.java:87) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:135) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.EventDispatcher.suspend(EventDispatcher.java:264) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGRuntimeWindow.doOldShow(NGRuntimeWindow.java:551) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.scripting.RuntimeWindow.doShow(RuntimeWindow.java:304) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.scripting.RuntimeWindow.show(RuntimeWindow.java:298) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.BasicFormController.showForm(BasicFormController.java:2423) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.BasicFormController$JSForm.js_show(BasicFormController.java:2657) ~[j2db.jar:2022.9.0.3803]
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
  at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
  at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:219) ~[js.jar:?]
  at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:284) ~[js.jar:?]
  at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1879) ~[js.jar:?]
  at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1053) ~[js.jar:?]
  at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:90) ~[js.jar:?]
  at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380) ~[js.jar:?]
  at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3944) ~[js.jar:?]
  at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:88) ~[js.jar:?]
  at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:727) ~[j2db.jar:2022.9.0.3803]
  at com.servoy.j2db.server.ngclient.component.EventExecutor.executeEvent(EventExecutor.java:198) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.DataAdapterList.executeEvent(DataAdapterList.java:198) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.WebFormComponent$FormcomponentEventHandler.executeEvent(WebFormComponent.java:252) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.BaseWebObject.doExecuteEvent(BaseWebObject.java:369) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.BaseWebObject.executeEvent(BaseWebObject.java:332) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.services.server.FormServiceHandler.executeEvent(FormServiceHandler.java:137) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeEvent(NGFormServiceHandler.java:598) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.services.server.FormServiceHandler.executeMethod(FormServiceHandler.java:84) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeMethod(NGFormServiceHandler.java:577) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at org.sablo.websocket.WebsocketEndpoint$5.run(WebsocketEndpoint.java:414) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.Event$1.run(Event.java:97) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:80) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.Event.execute(Event.java:87) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:135) ~[sablo_2022.9.0.3803.jar:?]
  at org.sablo.eventthread.EventDispatcher.run(EventDispatcher.java:90) ~[sablo_2022.9.0.3803.jar:?]
  at com.servoy.j2db.server.ngclient.eventthread.NGEventDispatcher.run(NGEventDispatcher.java:57) ~[servoy_ngclient_2022.9.0.3803.jar:?]
  at java.lang.Thread.run(Thread.java:829) ~[?:?]
tkilshaw1553613063
 
Posts: 37
Joined: Tue Mar 26, 2019 5:11 pm

Re: JasperReports problem in 202209

Postby tkilshaw1553613063 » Wed Oct 26, 2022 8:21 pm

There is a new Servoy JasperReports Plugin 2022.3.1_6.19.1. This has on https://github.com/Servoy/servoy_jasperreports/releases the following:

add '/META-INF/services/com.servoy.j2db.plugins.IPlugin' to the plugin jar, so it also can be used with Servoy 2022.9.x


I will try that next.

thanks,

Terry
tkilshaw1553613063
 
Posts: 37
Joined: Tue Mar 26, 2019 5:11 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest