Issue calling methods in jar
s connection = ##class(%Net.Remote.Java.JavaGateway).%New()
s sc = connection.%Connect("127.0.0.1",53274)
s classpath="C:\Users\ME9Y1PM\Downloads\wrapper_jar\wrapper-drools-1.0.0-20241127.071529-1.jar"
if (sc=$$$OK) {
s SCJavaDroolsObj.connection=connection
s sc = SCJavaDroolsObj.connection.%Import("com.lca.smc.drools.DroolsRules")
s SCJavaDroolsObj.drools = ##class(com.lca.smc.drools.DroolsRules).%New()
d SCJavaDroolsObj.drools.applyRules(patientjson)
Class com.lca.smc.drools.DroolsRules Extends %Net.Remote.Base [ ProcedureBlock ]
{Parameter IMPORTTIMESTAMP As STRING = "2024-11-29 09:14:27.992";Method applyRules(ByRef args... As %ObjectHandle) As %ObjectHandle
{
quit:$quit ..%dispatch(,$this,"applyRules",..%gateway,args...)
do ..%dispatch(,$this,"applyRules",..%gateway,args...)
}}
I m getting the below exception
<INVALID OREF>%dispatch+1^%Net.Remote.Base.1