jObject stays blank

Running this code in lotus notes.

Set jSession = New JavaSession()

Set jClass = jSession.GetClass(“getCode”)

Set jObject = jClass.CreateObject

jObject seems to remain blank when viewed in the debugger after the

Set jObject command. Should it have a value/refence?

Because the next call “outCode = jObject.execute(inCode)” later throws

an error: “LS2J: Error: Null Java Object”

I created a constructor in getCode but it didn’t make any difference

getCode() { }

Any ideas what is happening? Thanks!

Subject: jObject stays blank

Is “getCode” a Java class? If so, where is it defined? How are you trying to make it available at runtime? Judging by the error you’re running into (object is null), LS seems to be unable to create the underlying Java object.

If you need some help getting started, you might head over to the Code Bin at OpenNTF and have a look at some of the LS2J stuff posted there.

dgg