Notes NSD Crash when loading a Java Library

I’m trying to run some lotus script on a button click that will use a 3rd party java toolkit to grab data out of a datastore and put it in some fields in a form.

I am using LS2J to call the java code in question, and put the jar file in a Java script library. (there aren’t any class files or anything there though… just the script library with the jar)

I have Uselsx and use “ScriptLibraryName” in the options for my button, and I have the LotusScript set up to create the appropriate objects and call the methods in the java session.

Unfortunately, when I try to create a new document using this form in Notes, the client crashes with NSD output. The form doesn’t even show up, it just crashes right away.

If I remove the jar file/script library, the form opens fine, but of course it doesn’t work because I need to use that jar library.

Does anyone have any idea what could be causing the crash, and/or who I could get to diagnose my NSD memory dump?

Subject: Notes NSD Crash when loading a Java Library

I had also Notes crahes with LS2J when using Arrays as paramaters or return values.I think there is a problem when the array is null and you try to access it.

Are you using arrays?

Subject: RE: Notes NSD Crash when loading a Java Library

I was having the same problem with random NSD crashes with LS2J. I was trying use Perl like RegX in Lotusscript using Jakarta-Oro. One particular method returned an array of all matches (like m///) but in certain situations it would return Null when no matches were found = crash.

It was driving me mad and I had no idea what was causing it - Thanks :slight_smile:

Subject: RE: Notes NSD Crash when loading a Java Library

Hi

Can you post the FATAL THREAD section of the NSD files with the few lines under it

For example:

############################################################

FATAL THREAD 1/2 [ domdsm:107a8:67076]

FP=0x0012a34c, PC=0x60069a86, SP=0x0012a2f0, stksize=92

EAX=0x01a3088c, EBX=0x01a48650, ECX=0x0000bffe, EDX=0x01a325e6

ESI=0x00004000, EDI=0x0032ff78, CS=0x0000001b, SS=0x00000023

DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010206

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

@[ 1] 0x60069a86 nnotes._fdDelete@4+118 (4000,12a368,608770ef,4000)

@[ 2] 0x60069a0c nnotes._OSFileClose@4+12 (4000,12adc0,12a380,60872ea7)

@[ 3] 0x608770ef nnotes._sqloclose+15 (4000,12b59c,5010,0)

@[ 4] 0x60872ea7 nnotes._sqlpgclf+71 (12adc0,1aaa2cb,70,1aaa2f3)

@[ 5] 0x60885458 nnotes._sqlpgfdl+616 (12b9a4,1aaa2cb,41,12be44)

@[ 6] 0x60876a6f nnotes._sqlpgcdl+927 (12bf44,12b9a4,0,12be44).

Date

Topic

Frequently asked question - How to analyze Notes/Domino NSDs? (Jean-Yves Riverin)

or call IBM support.

JYR