IBM Domino Java + aspose error

Hello, all!

I’ve try to print Word Document. I made JavaImportedAgent.
public class ActionPrint extends AgentBase {
public void NotesMain() {
Session session = getSession();
AgentContext agentContext;
try {
agentContext = session.getAgentContext();
Document doc = agentContext.getDocumentContext();
Debug.simpleTest();
} catch (NotesException e) {
e.printStackTrace();
}
}
}
This agent starts this static method
public class Debug {
public static void simpleTest(){
com.aspose.words.Document printDoc;
try {
printDoc = new com.aspose.words.Document(“C:/Temp/33.docx”);
AsposeWordsPrintDocument awPrintDoc = new AsposeWordsPrintDocument(printDoc);
System.out.println(“That’s all”);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Tests in Eclipse environment works good
Agent throws Exception/ All aspose library puts into folder Notes/Jvm/Lib/Ext (Default Java Build Path for Domino JVM)
Exception in thread “AgentThread: main.ActionPrint” java.lang.NoClassDefFoundError: asposewobfuscated.zzDF (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at asposewobfuscated.zzLP.zzZ(Unknown Source)
at asposewobfuscated.zzF2.zzPm(Unknown Source)
at asposewobfuscated.zzTO.zzPs(Unknown Source)
at asposewobfuscated.zzTO.zzPt(Unknown Source)
at asposewobfuscated.zzTO.zzk(Unknown Source)
at asposewobfuscated.zzTO.zzl(Unknown Source)
at asposewobfuscated.zzTO.zzU(Unknown Source)
at asposewobfuscated.zzTO.zzV(Unknown Source)
at com.aspose.words.zz9W.zzZ(Unknown Source)
at com.aspose.words.zz6.zzZ(Unknown Source)
at com.aspose.words.zz9Q$zzZ.zzz(Unknown Source)
at asposewobfuscated.zzGH.zzVy(Unknown Source)
at asposewobfuscated.zzGH.moveNext(Unknown Source)
at com.aspose.words.zz9Q.zzZ(Unknown Source)
at com.aspose.words.zzZ3L.zzZgX(Unknown Source)
at com.aspose.words.zzZ3L.zzX(Unknown Source)
at com.aspose.words.zz9Q.zzSz(Unknown Source)
at com.aspose.words.zz9Q.(Unknown Source)
at com.aspose.words.zzZ0Y.zzY(Unknown Source)
at com.aspose.words.zz9P.zz20(Unknown Source)
at com.aspose.words.zz9P.moveNext(Unknown Source)
at com.aspose.words.zzZNT.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzXM(Unknown Source)
at com.aspose.words.Document.zz3O(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.AsposeWordsPrintDocument.(Unknown Source)
at scripts.Debug.simpleTest(Debug.java:10)
at main.ActionPrint.NotesMain(ActionPrint.java:19)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown Source)

Hi Boris,

Thanks
for your inquiry. In case you are using an older version of
Aspose.Words, I would suggest you please upgrade to the latest version
(v15.6.0) from here and let us know how it goes on your side. If the problem still remains, please share
the following detail for investigation purposes.


  • Please attach your input Word document.
  • Please share the JDK and IBM Domino version

I will investigate the issue on my side and provide you more information.

Hello, Tahir from Customer Happiness Team! I am Boris from the Mountain of Useful Codes :-).

Here IBM Lotus Full Client (you need mainly Designer).

I do not know if you know much about Lotus Notes (very propietary software). Yon need to install it. After first launch, you will see inital dialog window. You should install Lotus without connection to Domino server and enter any user name you will use.

This is Domino application, which contain Imported Java agent. It starts by button on the view action pane.

This is simple class, contains code with aspose functions using

public class Debug {

public static void simpleTest(){

com.aspose.words.Document printDoc;

try {

printDoc = new Document(“C:/Temp/33.docx”);

System.out.println(printDoc.getPageCount());

System.out.println(“That’s all”);

} catch (Exception e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

}

this is agent code (need to start notes Agent)

public class ActionPrint extends AgentBase {

public void NotesMain() {

Session session = getSession();

AgentContext agentContext;

try {

agentContext = session.getAgentContext();

Document doc = agentContext.getDocumentContext();

Debug.simpleTest();

} catch (NotesException e) {

e.printStackTrace();

}

}

}

Result of agent work (java console) you will see, if you will use main menu Item “Tools” - “Show Java Debug Console”

Before you lunch the agent you will change Execution Control List to allow access (File - User security)

Respectfully, Boris

I forget insert the link to Notes Application

Hi Boris,

Thanks
for sharing the detail. I will setup the
IBM Domino at my side and will share my finding here for our reference asap.

Hi Boris,

Thanks
for your patience. I have setup IBM Domino at my side. The note application (aat.nsf) have not executed at my end. I have imported
(aat.nsf) into Domino designer and have not found the Java code. Could you please share the Note application which can be executed through Domino designer? Thanks for your cooperation.