This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: Calling a Java Script Library from Lotus Script Agent
Feedback Type: Question
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Error Message
Platform: Windows 2003 server
Release: 8.5
Reproducible: Always
Hi,
I am hoping someone can help me with a problem I am stumped on.
I have a Lotus Script Agent from which I call a Java Script Library. When executing the Java code there is a null pointer exception and the code bombs out.
I can put the Java Script Library into it's own agent and can run it without any problems.
It seems to be failing when called from the agent on:
Session session = getSession();
This is the call to the Java Script Library from the Lotus Script agent:
Dim mySession As JavaSession
Dim myClass As JavaClass
Dim myObject As JavaObject
Dim myMethod As JavaMethod
Dim success As Boolean
Set mySession = New JavaSession()
Set myClass = mySession.GetClass("HWURLCommand")
Set myMethod = myClass.GetMethod("NotesMain","()V")
Set myObject = myClass.CreateObject()
success = 999
success = myMethod.Invoke(myObject)
If success Then
'Do stuff
Else
'error occurred
End If