LS2J is part of IBM Notes Domino Designer and is an interface which allows LotusScript to create and handle Java objects as if they are native to the LotusScript environment.
Questions tagged [ls2j]
18 questions
8
votes
2 answers
Invoking method on a Java class from lotus script (LS2J)
Most dignified developers,
I'm having trouble invoking a method on my own java class from a lotus script agent.
My Java class simplified looks like this
import lotus.domino.*;
public class MyClass{
/* .. omitted constructor and other methods ..…

Erik Backman
- 83
- 1
- 6
5
votes
1 answer
I am trying to use PDFbox on the IBM Domino server, getting NoClassDefFoundError
I can run my IBM Notes agent locally without error, however when I run the agent on the server I get the following error.
LS2J Error: Threw java.lang.NoClassDefFoundError: org.apache.pdfbox.pdmodel.PDDocument in procedure GETTEMPLATE, line 79
My…

PN03
- 85
- 9
2
votes
1 answer
passing LotusScript parameter to Java
I am calling a a java getHTML( urlToRead ) class from LotusScript (thank you, Matt Holthe), which uses a CONST to pass the URL. The java code sits in a java "script-library". When I change the constant urlToRead to a variable, the java class…

carlo
- 359
- 3
- 11
2
votes
1 answer
how pass an objet in parameter of another class in LS2J?
I am trying to pass an object of a java class (a bean) to another class with LS2J.
The problem is that an error is returned :
LS2J Error: Threw java.lang.ClassNotFoundException:
com.pasquier.DTO.WS.LogWSDTO
I don't know why ?
I have a class…

sissi49
- 135
- 1
- 11
2
votes
1 answer
Lotus Notes: Java Runs Fine when on an Agent, but fails when on a java lib
I created a Web Service Consumer.
I want to call a method that is named setCredentials so I can pass my authentication information to the service.
I have two entities that import the web service consumer, an agent and a java library, meant to be…

Carlos Botelho
- 75
- 2
- 11
1
vote
1 answer
How to fix it class not found exception in domino designer?
here is my code when I trigger it it shows an error
Dim jSession As New JavaSession
Dim jClass As JavaClass
Dim jObject As JavaObject
Set jClass = jSession.Getclass("learn/MyClass")
Set jObject = jClass.CreateObject
Call jObject.myMethod()
The…

Muhammad Saleh
- 69
- 7
1
vote
1 answer
LS2J: get session from LS agent into java class
I have a java class that should transfer data from the current database to another server. To access the current database, it seems that Java needs a working Session object:
public class EdgeServerConnection
{
public EdgeServerConnection(Session…

Alexander
- 19,906
- 19
- 75
- 162
1
vote
1 answer
Using itext/xfaworker from IBM Notes/Domino via LS2J
I have used itext in the past where I have created a Java library with a class using the iText jars. This has worked perfectly in the past.
I now have some PDF's the gets corrupted when using setFormFlattening(true), therefor I have tried using the…

Per Lindvig
- 11
- 1
1
vote
1 answer
Is it possible to debug Java (not Javascript) script libraries (not agents) in lotus notes?
I'm writing a Java (not Javascript) script library (not agent) in Code -> Script Libraries and would like to run this script from action button. Actually it works but I need to debug my Java code to complete my task. All manuals which I found in…

Anatoly
- 5,056
- 9
- 62
- 136
1
vote
1 answer
Has anybody successfully used the ODF "Simple API" from LotusScript to generate documents?
I'm trying to use LS2J to invoke the Simple API for the ODF Toolkit (https://incubator.apache.org/odftoolkit/simple/index.html) from LotusScript, and I've been unable to use it properly.
I've included in a Java library called ODFDOM the…

richieadler
- 135
- 9
0
votes
1 answer
How to get JAX RS 2 client working from Domino script library?
I need to call a REST API from LotusScript agent. I'm using LS2J so I have the Java code in script library.
I first tried with Jersey 2. First with latest version and then a few older Jersey 2 versions and was always getting an exception which was…

Panu Haaramo
- 2,932
- 19
- 41
0
votes
2 answers
NotesException:Older version on server does not support this method
Lotusscript calling Java class get this error.
abstract:
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Application Development
Platform: Windows 2008 R2 64bit
Release: 8.5.3
Reproducible: Always
1 create SqlTest script libray(Java)…

witlili
- 3
- 3
0
votes
0 answers
LS2J throws java.lang.ExceptionInInitializerError Java Error when use Apache POI XSSF
I would like to do Excel Export in the file format of XLSX. I have chosen Apache POI OOXML 3.9 (without excel installed on server). I see Excel export with the file format xls (HSSF) works well with LS2J. But XSSF not works.
I am using following Jar…

Mahendran Rathinam
- 121
- 1
- 12
0
votes
1 answer
LS2J passing lotus object as pa
I am trying to use LS2J to pass the Notes Database Object as a parameter to a java object constructor method. However, I get the error message 'Java constructor failed to execute'. If I try to create a session within the java code( since I cannot…
0
votes
0 answers
Reload changed java code in javacon module
A part of my lotus application is written in java and the classes reside in a Java library. On a form using Lotus Script, I communicate with my Java classes using the module Javacon (LS2J).
When I change something in some Java class, the lotus…

AHH
- 981
- 2
- 10
- 26