Question
· Dec 10

Issue calling methods in jar

connection = ##class(%Net.Remote.Java.JavaGateway).%New()
sc = connection.%Connect("127.0.0.1",53274)
classpath="C:\Users\ME9Y1PM\Downloads\wrapper_jar\wrapper-drools-1.0.0-20241127.071529-1.jar"
if (sc=$$$OK) {
SCJavaDroolsObj.connection=connection
sc = SCJavaDroolsObj.connection.%Import("com.lca.smc.drools.DroolsRules")
SCJavaDroolsObj.drools = ##class(com.lca.smc.drools.DroolsRules).%New()
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

Product version: IRIS 2024.2
Discussion (0)1
Log in or sign up to continue