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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Feb 2, 2015, 3:31 AM
21 Posts

FYI - LS2J GetMethod call fails (broken) with FP3 (java.lang.internalError)

  • Category: Notes Client
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: LS2J
  • Replies: 3

FYI ... after applying Notes / Domino 9.0.1 FP3 the LS2J 'GetMethod' fails with a 'java.lang.internalError'.

 

Example:

Dim jSession As JavaSession

Dim jClass As JavaClass

Dim jObject As JavaObject

Dim jMethod As JavaMethod

Dim returnValue As Variant

 

Set jSession = NewJavaSession()

Set jClass = jSession.GetClass("acme.com.utils.MyClass")

Set jObject = jClass.CreateObject

Set jMethod = jClass.GetMethod("myFunction","(Ljava/lang/String;Ljava/lang/string;)Z")   <-- error occurs here

returnValue = jMethod.Invoke(jObject, "xxx", "yyy")

 

 

Workaround - iterate through the methods of the java class object to find the method you want.

Example:

Dim jSession As JavaSession

Dim jClass As JavaClass

Dim jObject As JavaObject

Dim jMethods As JavaMethodCollection

Dim jMethod As JavaMethod

Dim returnValue As Variant

 

Set jSession = NewJavaSession()

Set jClass = jSession.GetClass("acme.com.utils.MyClass")

Set jObject = jClass.CreateObject

Set jMethods = jClass.GetClassMethods()

Forall method In jMethods

    If method.MethodName = "myFunction" Then

        Set jMethod = method;

        Exit Forall

End Forall

returnValue = jMethod.Invoke(jObject, "xxx", "yyy")

 

Note: this error only occurs when FP3 is installed and does not occur in other versions / patches of Notes / Domino.

 

Hope it helps.

 

Alex Elliott

http://www.agecom.com.au

 

Feb 5, 2015, 8:59 PM
74 Posts
This issue is being investigated.
Thank you for this post.  The team is investigating this issue.
Mar 23, 2015, 12:14 PM
5 Posts
Fixed yet

Has this issue been addressed or fixed yet? We have a mission-critical app that leverages Java through LS2J that is broken thanks to this bug. 


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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal