Domino crashes after java agent finishes (PANIC: Object handle is invalid)

In my java agent I produce 1000 pdf files that I generate using Apache FOP from 1000 domino documents that I read in a loop from a view.

After the agent stops, this is what is printed on Domino console:

Thread=[0388:0008-04F8]

Stack base=0x0D2AF05C, Stack size = -712 bytes

PANIC: Object handle is invalid

After this is written, Domino shuts down.

in my NSD log there are some entries that look suspicious:

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

thread 3/70: [ nserver: 1340: 1900]

FP=0476fd70, PC=77f8287e, SP=0476fd24, stkbase=04730000, stksize=4096

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

@[ 1] 0x77f8287e ntdll.RtlAdjustPrivilege+157 (476fd48,1,0,0)

@[ 2] 0x7c578f0d KERNEL32.DosDateTimeToFileTime+4988 (5,b000a,7c325107,7bdc0)

@[ 3] 0x7c57438b KERNEL32.RegisterConsoleVDM+629 (778321fe,7bdc0,0,c8)

Short Callstack detected, dumping extra stack data

   # 0476ffec  00000000 00000000 778321fe 0007bdc0  |.........!.w....|

   # 0476fffc  00000000 000000c8 00000100 eeffeeff  |................|

   # 0477000c  00001002 00000000 0000fe00 00100000  |................|

   # 0477001c  00002000 00000200 00002000 0000141e  |. ....... ......|

   # 0477002c  7ffdefff 0608000a 00000000 00000000  |................|

   # 0477003c  00000000 00000000 04770598 0000000f  |..........w.....|

   # 0477004c  fffffff8 04770050 04770050 04770640  |....P.w.P.w.@.w.|

Does anyone have any suggestions on how to handle this ?

Subject: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

need to see code

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

The code is quite long and was designed for one-by-one document pdf creation. What I wanted to test using this agent was how many documents would correctly print and how many will not. Therefore I added the loop to read doc by doc from view in another database (the agent was ment to run on a test server but retrieve documents from production server).

I must add that before I changed the code to reuse more objects and dispose of them after they are not needed anymore, the agent only ran and printed about 100 documents and then stopped (so I had to End process from the Task manager - after I did that I also got the PANIC console error).

This is the link to the main JavaAgent source (I will have to remove it from my server later on, but will post any relevant pieces if fault is found due to bad code):

http://www.meduzica.com/java_code/JavaAgent.java

Fop discusses issues regarding memory consumption (http://xmlgraphics.apache.org/fop/0.93/running.html#memory ), the solution is to increase memory available to jvm. How to set that up?

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

This may or may not help could be related if you’re using AgentLogging, regardless any errors I experience with this have had to do with recycling and the order you recycle variables.http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/9225e6ac5d97ddcd8525737f00180871?OpenDocument

Subject: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Your not recycling properly.

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

I did try recycling the Domino document but I must say that Domino still crashes … (I used this page for reference: http://www-1.ibm.com/support/docview.wss?uid=swg21097861 )

I tried to increase jvm memory (JavaStackSize and JavaMaxHeapSize) but did not help much.

Also what I noticed, all thing works much better when I turn JavaNoAsyncGC switch in notes.ini to 1 (see reference: IBM Developer ). I feel like the Domino’s jvm is maybe having problems with GC.

Now I’m considering using this article to maybe see if I have a Heap Fragmentation Problem: http://www-1.ibm.com/support/docview.wss?uid=swg21196072 but I’m running out of time to test everything …

How could I debug what is going on, no errors are printed (other than the PANIC error when server crashes). I’m not very familiar with Domino I must add, so any suggestions are welcome.

Thank you for you help !

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

refreshing to see someone doing serious research. :slight_smile: So I apologise thinking this was the first stop.

Ok your NSD shown isn’t enough to fully answer the issue. But you should look for this.

Thread=[0388:0008-04F8]

This is where the issue occurred. Do a search in the NSD for “Fatal” or “0388: 04F8]”.

This will give you the stack where the issue is. If you can post that I might be able to guess further.

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Hi !

Thank you for your response !

I see in my NSD log that there is a fatal error msg. I will paste the fatal Thread log, maybe you will be able to help me with “translation”.


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

thread 13/15: [ namgr: 904: 1272]

FP=0d2add0c, PC=77f82870, SP=0d2adce8, stkbase=0d1b0000, stksize=28672

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

@[ 1] 0x77f82870 ntdll.RtlAdjustPrivilege+143 (8d0,927c0,0,60191127)

@[ 2] 0x7c573b50 KERNEL32.RegisterWowExec+2317 (d2ae3a4,1,1,0)

@[ 3] 0x60191c94 nnotes._FRTerminateWindowsResources+980 (1,0,d2aef7c,0)

@[ 4] 0x60192033 nnotes._OSFaultCleanupExt@20+851 (0,cd4a34,0,0,0)

@[ 5] 0x60192098 nnotes._OSFaultCleanup@12+24 (0,0,0)

@[ 6] 0x6019db72 nnotes._OSNTUnhandledExceptionFilter@4+178 (d2aef7c)

[ 7] 0x703a180f hpi+6159 (d2aef7c,0,d2affa4,c0000005)

[ 8] 0x7800c176 MSVCRT+49526 (0,d2aef7c,7800bdb5,d2aef84)

[ 9] 0x780085f0 MSVCRT+34288 (c9f20a8,b21e1bc,638efb0,c9f20a8)

@[10] 0x7c57438b KERNEL32.RegisterConsoleVDM+629 (78008532,c9f20a8,0,c8)

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

FATAL THREAD 13/15 [ namgr: 904: 1272]

FP=0x0d2afaa4, PC=0x60178931, SP=0x0d2af330, stksize=1908

EAX=0x012d0648, EBX=0x011fa2f4, ECX=0x00c90000, EDX=0x00c90000

ESI=0x0d2af938, EDI=0x000000b4, CS=0x0000001b, SS=0x00000023

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

Exception code: c0000005 (ACCESS_VIOLATION)

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

@[ 1] 0x60178931 nnotes._Panic@4+417 (60abdac4)

@[ 2] 0x601789cc nnotes._Halt@4+28 (2b4)

@[ 3] 0x60008f75 nnotes._HANDLEDereference@4+117 (b5)

@[ 4] 0x6001fdbd nnotes._CollectionUser@4+13 (b5)

@[ 5] 0x60084554 nnotes._NIFCloseCollection@4+20 (b5)

@[ 6] 0x632ac464 nlsxbe.CleanupThreads::purge+244 (0)

@[ 7] 0x6327f0ae nlsxbe._Java_lotus_domino_NotesThread_NnotesTermThread@8+558 (b00c010,d2afccc)

[ 8] 0x70d4e9a2 jvm (b00c010,6327ee80)

[ 9] 0x70d4e4ec jvm (0,b00c010)

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

PASS 2 : FATAL THREAD with STACK FRAMES 13/15 [ namgr: 904: 1272]

FP=0d2afaa4, PC=60178931, SP=0d2af330, stksize=1908

Exception code: c0000005 (ACCESS_VIOLATION)

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

---------- Top of the Stack ----------

   # 0d2af330  00000001 000002b4 54200a0a 61657268  |.......... Threa|

   # 0d2af340  305b3d64 3a383833 38303030 4634302d  |d=[0388:0008-04F|

   # 0d2af350  530a5d38 6b636174 73616220 78303d65  |8].Stack base=0x|

   # 0d2af360  41324430 43353046 7453202c 206b6361  |0D2AF05C, Stack |

   # 0d2af370  657a6973 2d203d20 20323137 65747962  |size = -712 byte|

   # 0d2af380  41500a73 3a43494e 6a624f20 20746365  |s.PANIC: Object |

   # 0d2af390  646e6168 6920656c 6e692073 696c6176  |handle is invali|

   # 0d2af3a0  00000a64 00000000 00000000 00000000  |d...............|

   # 0d2af3b0  00000000 00000000 00000000 00000000  |................|

   # 0d2af3c0  00000000 00000000 302e3531 30322e36  |........15.06.20|

   # 0d2af3d0  31203730 39353a38 2034313a 67412020  |07 18:59:14   Ag|

   # 0d2af3e0  6000124f 6000124f 016c6a37 60001440  |O..`O..`7jl.@..`|

   # 0d2af3f0  016c6a37 00000000 f02403c3 63757320  |7jl.......$. suc|

   # 0d2af400  0146a4e0 0146b3e7 00000001 002200de  |..F...F.......".|

   # 0d2af410  0d2af430 605fb7ee 0146b3e7 00000022  |0.*..._`..F."...|

   # 0d2af420  0d2af758 00000100 00000022 0146b3e7  |X.*.....".....F.|

   # 0d2af430  00000001 0000000a 0d2af85c 607a9b55  |........\.*.U.z`|

   # 0d2af440  00000000 00000022 00000000 0146a4e0  |....".........F.|

   # 0d2af450  0146b3e7 00000001 0d2afb74 0d2afb74  |..F.....t.*.t.*.|

   # 0d2af460  0d2af474 6000d374 0146ab1b 0d2af478  |t.*.t..`..F.x.*.|

   # 0d2af470  60001710 0146ab21 0d2af48c 6000d417  |...`!.F...*....`|

   # 0d2af480  0146ab50 01460000 0146a4e0 0d2af8ac  |P.F...F...F...*.|

   # 0d2af490  600d4e8f 60001440 012d333b 012d3378  |.N.`@..`;3-.x3-.|

   # 0d2af4a0  00000006 00000003 000000b2 000000b2  |................|

   # 0d2af4b0  0b267524 0d2af4cc 00000003 00000000  |$u&...*.........|

   # 0d2af4c0  0d2af704 c12572fb 004a1c4c 0d2af5dc  |..*..r%.L.J...*.|

   # 0d2af4d0  0d2af5dc 004a1c4c 0d2af5b4 004a1c4c  |..*.L.J...*.L.J.|

   # 0d2af4e0  002572fb c0000006 0d2af560 6008aa02  |.r%.....`.*....`|

   # 0d2af4f0  ffffffff 00000001 0d2af5dc 0146ab1b  |..........*...F.|

   # 0d2af500  0d2af518 60008f54 029de830 00001005  |..*.T..`0.......|

   # 0d2af510  00000000 0d2af530 60008ea9 029de830  |....0.*....`0...|

   # 0d2af520  00055005 00000000 00000000 0d2af764  |.P..........d.*.|

   # 0d2af530  600355db 00000000 00000000 000000b3  |.U.`............|

   # 0d2af540  0144e4e0 00000000 00000000 60b8fcdc  |..D............`|

   # 0d2af550  00000000 00000000 000000b3 0d2afa6c  |............l.*.|

   # 0d2af560  0d2af5a8 60095462 0000000f 0d2af590  |..*.bT.`......*.|

   # 0d2af570  0d2af578 00000000 0000000a ffffffff  |x.*.............|

   # 0d2af580  00000001 00000000 00000000 6000124f  |............O..`|

   # 0d2af590  6000124f 016c6747 016c6747 60001440  |O..`Ggl.Ggl.@..`|

   # 0d2af5a0  016c6747 00002b09 00002b09 600080d9  |Ggl..+...+.....`|

   # 0d2af5b0  014342e4 0003ae05 0d2afa6c 014342e0  |.BC.....l.*..BC.|

   # 0d2af5c0  00000003 00000000 0d2af80c 016c6747  |..........*.Ggl.|

   # 0d2af5d0  00002b09 0d2af5e0 60001a73 016c6747  |.+....*.s..`Ggl.|

   # 0d2af5e0  600080d9 01375842 000000b2 00000000  |...`BX7.........|

   # 0d2af5f0  000000b2 6002aab2 00c90014 00002b09  |.......`.....+..|

   # 0d2af600  600080d9 013756b6 0144e4e0 011d6d44  |...`.V7...D.Dm..|

   # 0d2af610  0d2afa6c 00001005 00000000 0d2af638  |l.*.........8.*.|

   # 0d2af620  60008ea9 029de830 00055005 00000000  |...`0....P......|

   # 0d2af630  00000000 0d2af86c 600355db 00000000  |....l.*..U.`....|

   # 0d2af640  00000000 00000092 0144e4e0 00000000  |..........D.....|

   # 0d2af650  00000000 60b8fcdc 00000000 00000000  |.......`........|

   # 0d2af660  00000000 000000b3 0d2af704 00000000  |..........*.....|

   # 0d2af670  00000000 00000000 00000000 00000000  |................|

   # 0d2af680  00000000 00000000 00000000 00000000  |................|

   # 0d2af690  00000000 00000000 00000000 00000000  |................|

   # 0d2af6a0  00000000 00000000 00000000 00000000  |................|

   # 0d2af6b0  00000000 00000000 00000000 00000000  |................|

   # 0d2af6c0  00000000 00000000 00000000 00000000  |................|

   # 0d2af6d0  00000000 00000000 00000000 00074801  |.............H..|

   # 0d2af6e0  013f836c 029de830 0d2afa6c 0003ae05  |l.?.0...l.*.....|

   # 0d2af6f0  6000124f 013f836e 60001440 013f836e  |O..`n.?.@..`n.?.|

   # 0d2af700  013f836c 6000124f 01644ab9 60001440  |l.?.O..`.Jd.@..`|

   # 0d2af710  01644ab9 00000000 f0240264 00000000  |.Jd.....d.$.....|

   # 0d2af720  000000b2 0d2af73c 0d2af738 600011ae  |....<.*.8.*....`|

   # 0d2af730  01644ab9 00000001 0d2af74c 60002c0b  |.Jd.....L.*..,.`|

   # 0d2af740  01644ab9 0d2af750 60001a73 01644ab9  |.Jd.P.*.s..`.Jd.|

   # 0d2af750  0d2af768 60002cd1 01644a94 029aad00  |h.*..,.`.Jd.....|

   # 0d2af760  60001440 0144eb21 0144eb1f 0d2afa6c  |@..`!.D...D.l.*.|

   # 0d2af770  00c90014 0144eb1f 0144e4e0 0d2afa6c  |......D...D.l.*.|

   # 0d2af780  029aad06 00000388 00000001 0d2af7a4  |..............*.|

   # 0d2af790  0d2af7a4 6000f2d0 0d2af7a4 60001710  |..*....`..*....`|

   # 0d2af7a0  0144eb21 0d2afa48 60034e8c 0144eb50  |!.D.H.*..N.`P.D.|

   # 0d2af7b0  00000000 000000b3 00000000 029de830  |............0...|

   # 0d2af7c0  00001005 00000000 0d2af7e4 60008ea9  |..........*....`|

   # 0d2af7d0  029de830 00055005 01d5fd28 00000000  |0....P..(.......|

   # 0d2af7e0  0d2afa18 600355db 00000000 00000000  |..*..U.`........|

   # 0d2af7f0  000000b3 0144e4e0 00000000 00000000  |......D.........|

   # 0d2af800  60b8fcdc 00000000 01d5fd28 000000b3  |...`....(.......|

   # 0d2af810  00000000 60001440 01644ab9 00000000  |....@..`.Jd.....|

   # 0d2af820  f0240264 00000000 00000091 0d2af844  |d.$.........D.*.|

   # 0d2af830  0d2af840 600011ae 01644ab9 00000001  |@.*....`.Jd.....|

   # 0d2af840  0d2af854 60002c0b 01644ab9 0d2af858  |T.*..,.`.Jd.X.*.|

   # 0d2af850  60001a73 01644ab9 0d2af870 60002cd1  |s..`.Jd.p.*..,.`|

   # 0d2af860  01644a94 029aad00 60001440 0144eb21  |.Jd.....@..`!.D.|

   # 0d2af870  0144eb1f 0d2afb74 00c90014 0144eb1f  |..D.t.*.......D.|

   # 0d2af880  0144e4e0 0d2afb74 029aad06 00000388  |..D.t.*.........|

   # 0d2af890  00000001 0d2af8ac 0d2af8ac 6000f2d0  |......*...*....`|

   # 0d2af8a0  0d2af8ac 60001710 0144eb21 0d2afb50  |..*....`!.D.P.*.|

   # 0d2af8b0  60034e8c 0144eb50 00000000 645c3a45  |.N.`P.D.....E:\d|

   # 0d2af8c0  5c617461 767a6172 705c6a6f 6f727465  |ata\*hidden*****|

   # 0d2af8d0  70695c6c 305f616d 725f3031 66736e2e  |\database***.nsf|

   # 0d2af8e0  011f8200 00000000 0d2afb20 600355db  |........ .*..U.`|

   # 0d2af8f0  00000000 00000000 00000092 0144e4e0  |..............D.|

   # 0d2af900  00000000 00000000 60b8fcdc 600080d9  |...........`...`|

   # 0d2af910  01d02e78 00000000 000000b3 0d2af9b8  |x.............*.|

   # 0d2af920  600080d9 01375842 000000b4 00000000  |...`BX7.........|

   # 0d2af930  000000b4 00000000 656a624f 68207463  |........Object h|

   # 0d2af940  6c646e61 73692065 766e6920 64696c61  |andle is invalid|

   # 0d2af950  00000000 00000000 00000000 00000000  |................|

   # 0d2af960  00000000 00000000 00000000 00000000  |................|

   # 0d2af970  00000000 00000000 00000000 00000000  |................|

   # 0d2af980  00000000 00000000 00000000 00000000  |................|

   # 0d2af990  00000000 00000000 00000000 00000000  |................|

   # 0d2af9a0  00000000 00000000 00000000 00000000  |................|

   # 0d2af9b0  00000000 00000000 0146dce0 00000000  |..........F.....|

   # 0d2af9c0  00055005 000000b3 00000000 00000000  |.P..............|

   # 0d2af9d0  0d2af800 00000000 00000000 ffffffff  |..*.............|

   # 0d2af9e0  725f3031 00000003 000000b2 000000b2  |10_r............|

   # 0d2af9f0  0146dce0 0144e6b4 000000b3 0005d001  |..F...D.........|

   # 0d2afa00  01561f30 013e9504 00000000 0144e4e0  |0.V...>.......D.|

   # 0d2afa10  6000124f 01561f32 60001440 0005ac01  |O..`2.V.@..`....|

   # 0d2afa20  01561f30 013e9504 00000000 00000000  |0.V...>.........|

   # 0d2afa30  6000124f 01561f32 60001400 01561f32  |O..`2.V....`2.V.|

   # 0d2afa40  01561f30 01d5e924 000000b4 00000010  |0.V.$...........|

   # 0d2afa50  fbf43474 011fa2f4 000000b4 000000b4  |t4..............|

   # 0d2afa60  0d2afa84 60013713 60001440 011f6f50  |..*..7.`@..`Po..|

   # 0d2afa70  011f6f50 00000000 00000001 011f6e5c  |Po..........\n..|

   # 0d2afa80  00000002 0d2afa9c 60013611 04733644  |......*..6.`D6s.|

   # 0d2afa90  fbf43478 0000000a 011f6f40 005d5080  |x4......@o...P].|

   # 0d2afaa0  c12572fb 0d2afab4 601789cc 60abdac4  |.r%...*....`...`|

@[ 1] 0x60178931 nnotes._Panic@4+417 (60abdac4)

   # 0d2afaa4  0d2afab4 601789cc 60abdac4 00000000  |..*....`...`....|

@[ 2] 0x601789cc nnotes._Halt@4+28 (2b4)

   # 0d2afab4  0d2afac8 60008f75 000002b4 000000b5  |..*.u..`........|

   # 0d2afac4  011fa2e4 0d2afad4 6001fdbd 000000b5  |......*....`....|

@[ 3] 0x60008f75 nnotes._HANDLEDereference@4+117 (b5)

   # 0d2afac8  0d2afad4 6001fdbd 000000b5 0d2afbf4  |..*....`......*.|

@[ 4] 0x6001fdbd nnotes._CollectionUser@4+13 (b5)

   # 0d2afad4  0d2afbf4 60084554 000000b5 011f7c1c  |..*.TE.`.....|..|

   # 0d2afae4  011fa2e4 000060ec 6000124f 00c90042  |.....`..O..`B...|

   # 0d2afaf4  60001440 014684e0 0144e6b4 00000092  |@..`..F...D.....|

   # 0d2afb04  00000000 00000000 00000000 00000000  |................|

   # 0d2afb14  0144e4e0 0144e4e0 0143445c 00000001  |..D...D.\DC.....|

   # 0d2afb24  00000000 00000000 00000092 00000000  |................|

   # 0d2afb34  00000000 00000000 00000000 00000000  |................|

   # 0d2afb44  014684e0 0d2afb9c 00000000 0d2afb9c  |..F...*.......*.|

   # 0d2afb54  60036a20 0d2afb9c 60036a35 00000002  | j.`..*.5j.`....|

   # 0d2afb64  00000000 02ecae84 00000000 011f89f8  |................|

   # 0d2afb74  00000000 0144e4e0 6000124f 012bc63a  |......D.O..`:.+.|

   # 0d2afb84  012bc677 012bc63a 0d2af800 00000000  |w.+.:.+...*.....|

   # 0d2afb94  00000000 ffffffff 0d2afbb4 0d2afbb0  |..........*...*.|

   # 0d2afba4  600011ae 012bc63a 00000001 0d2afbc4  |...`:.+.......*.|

   # 0d2afbb4  600014de 012bc677 60001440 6000124f  |...`w.+.@..`O..`|

   # 0d2afbc4  011f7c30 011f7c1c 06047399 00000000  |0|...|...s......|

   # 0d2afbd4  34780001 0000000a 0473363c 00000000  |..x4....<6s.....|

   # 0d2afbe4  047334b4 0d2afbf4 6320100c 011fa2d4  |.4s...*... c....|

@[ 5] 0x60084554 nnotes._NIFCloseCollection@4+20 (b5)

   # 0d2afbf4  0d2afc2c 632ac464 000000b5 0d2afc8c  |,.*.d.*c......*.|

   # 0d2afc04  06047399 06047399 011f7c30 00000001  |.s...s..0|......|

   # 0d2afc14  011f7c30 00000008 00000000 0d2afd50  |0|..........P.*.|

   # 0d2afc24  6332f9b8 00000000 0d2afc7c 6327f0ae  |..2c....|.*...'c|

@[ 6] 0x632ac464 nlsxbe.CleanupThreads::purge+244 (0)

   # 0d2afc2c  0d2afc7c 6327f0ae 00000000 0af3a444  ||.*...'c....D...|

   # 0d2afc3c  0af3b663 0a971c1c 00000000 011f7fc8  |c...............|

   # 0d2afc4c  00000001 047334d8 0120714c 70d2c5b3  |.....4s.Lq ....p|

   # 0d2afc5c  00000000 011f7e7c 00000000 00000008  |....|~..........|

   # 0d2afc6c  066bec24 047334b4 012072fc 066bec20  |$.k..4s..r . .k.|

@[ 7] 0x6327f0ae nlsxbe._Java_lotus_domino_NotesThread_NnotesTermThread@8+558 (b00c010,d2afccc)

   # 0d2afc7c  0d2afc98 70d4e9a2 0b00c010 0d2afccc  |..*....p......*.|

   # 0d2afc8c  0b267524 0b00c010 0af3dcfc 0d2afccc  |$u&...........*.|

[ 8] 0x70d4e9a2 jvm (b00c010,6327ee80)

   # 0d2afc98  0d2afccc 70d4e4ec 0b00c010 6327ee80  |..*....p......'c|

   # 0d2afca8  0d2afd18 06047398 00000000 0d2afccc  |..*..s........*.|

   # 0d2afcb8  0a8e89d8 0b00c010 0d2afd3c 00000001  |........<.*.....|

   # 0d2afcc8  70d4e5ab 0a8e89d8 0af3dcfc 00000000  |...p............|

[ 9] 0x70d4e4ec jvm (0,b00c010)

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

PASS 3 : FATAL THREAD with PARAMETER DATA 13/15 [ namgr: 904: 1272]

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

@[ 1] 0x60178931 nnotes._Panic@4+417 (60abdac4)

   Parameter 1:

   # 60abdac4  00000000 00000000 00000000 00000000  |................|

   # 60abdad4  00000000 00000000 00000000 00000000  |................|

@[ 2] 0x601789cc nnotes._Halt@4+28 (2b4)

@[ 3] 0x60008f75 nnotes._HANDLEDereference@4+117 (b5)

@[ 4] 0x6001fdbd nnotes._CollectionUser@4+13 (b5)

@[ 5] 0x60084554 nnotes._NIFCloseCollection@4+20 (b5)

@[ 6] 0x632ac464 nlsxbe.CleanupThreads::purge+244 (0)

@[ 7] 0x6327f0ae nlsxbe._Java_lotus_domino_NotesThread_NnotesTermThread@8+558 (b00c010,d2afccc)

   Parameter 1:

   # 0b00c010  70d6b190 00000000 00000000 00003f2c  |...p........,?..|

   # 0b00c020  06894130 00005144 00000000 0000a000  |0A..DQ..........|

   Parameter 2:

   # 0d2afccc  0a8e89d8 0af3dcfc 00000000 0b00c010  |................|

   # 0d2afcdc  0d2afd18 0b00c1e8 000c0000 0b00c010  |..*.............|

[ 8] 0x70d4e9a2 jvm (b00c010,6327ee80)

   Parameter 1:

   # 0b00c010  70d6b190 00000000 00000000 00003f2c  |...p........,?..|

   # 0b00c020  06894130 00005144 00000000 0000a000  |0A..DQ..........|

   Parameter 2:

   # 6327ee80  83ec8b55 45c748ec 000000e4 e045c700  |U....H.E......E.|

   # 6327ee90  00000000 0a94e9e8 ec458900 00d1ba68  |..........E.h...|

[ 9] 0x70d4e4ec jvm (0,b00c010)

   Parameter 2:

   # 0b00c010  70d6b190 00000000 00000000 00003f2c  |...p........,?..|

   # 0b00c020  06894130 00005144 00000000 0000a000  |0A..DQ..........|

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Hi,

I don’t check this forum as frequently recently (sorry).

In answer to your question.

The following debug helps in finding crashes related to Java in nAmgr + nHttp.


debug_threadid=1

DebugShowJavaAgentTid=1

AgentThreadDebug=1

console_log_enabled=1

javaverboseGC=1

javaverbose=1


Put that onto the server. When it crashes you need to check the NSD for for the following information.

  1. Do a search for FATAL. This will get you to the thread that crashed. Will look something like this…

FATAL THREAD 13/15: [ namgr: 904: 1272]

The two numbers you are interested here is…

TID: 904

PID: 1272

  1. Now do a search for “TLS MAPPING”. You are looking for the one that related to namgr and with the same TID+PID in the left column.

example.

TLS MAPPING

                           NativeTID                VirtualTID                 PrimalTID

            [   nAmgr:   904:  1272]  [   nAmgr:   904:  0a50]  [   nAmgr:   904:  1272]

Now you need the VTID. In the example above this number is 0a50.

  1. Now search for “VTHREAD”. You are trying to match up the same process and VTID. Example:

** VThread [ namgr: 0a50

When you find this thread check down through it. It should tell you exactly the database and agent that caused the crash. After that you need to go through the code of that agent to see what the issue is.

Now this is no guarantee above that this will find the agent with the issue. For example if you started your agent as a Thread instead of NotesThread then Domino can’t track it in the NSD.

Also your crash stack above here is the important part.

Exception code: c0000005 (ACCESS_VIOLATION) @[ 1] 0x60178931 nnotes._Panic@4+417 (60abdac4)

@[ 2] 0x601789cc nnotes._Halt@4+28 (2b4)

@[ 3] 0x60008f75 nnotes._HANDLEDereference@4+117 (b5)

@[ 4] 0x6001fdbd nnotes._CollectionUser@4+13 (b5)

@[ 5] 0x60084554 nnotes._NIFCloseCollection@4+20 (b5)

@[ 6] 0x632ac464 nlsxbe.CleanupThreads::purge+244 (0)

@[ 7] 0x6327f0ae nlsxbe._Java_lotus_domino_NotesThread_NnotesTermThread@8+558 (b00c010,d2afccc)

[ 8] 0x70d4e9a2 jvm (b00c010,6327ee80)

[ 9] 0x70d4e4ec jvm (0,b00c010) ### PASS 2 : FATAL THREAD with STACK FRAMES 13/15 [ namgr: 904: 1272]

While I can’t give you an accurate answer just on this it appears that your code is dereferencing a View collection object in order to free up memory and failing. A quick check and I can find other instances of this. In the cases I found it related to a corrupted database that the agent was referencing. Running FIXUP on the database that is referenced by this view collection may resolve your issue.

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Hello

We experience exactly the same behaviour after java agent finishes parsing a large XML File.

Any solution to your problem yet?

Any hint appreciated!

Thanks,

Paul

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Sorry for the URL

http://www-1.ibm.com/support/docview.wss?rs=899&context=SWA40&context=SWA50&context=SWA60&context=SWCZ0&context=SWD10&context=SS4R7J&context=SSES8G&context=SSKTYF&context=SSMT72&context=SSPQ7E&context=SSMSB2&context=SS6JVW&context=SS5LUA&context=SSCM2P&context=SS3LP9&context=SSFLMV&context=SSESJN&context=SSKTPA&context=SSVHEW&context=SSVHFY&context=SSVLBW&dc=DB510&dc=DB520&dc=D800&dc=D900&dc=DA900&dc=DA800&dc=DB530&dc=DA600&dc=DB550&dc=D100&dc=D600&dc=D700&dc=DA500&dc=D200&dc=DA410&dc=DA450&dc=DA430&dc=DA440&dc=DA420&dc=DA460&dc=DB300&dc=DA470&dc=DA480&dc=DB100&dc=DA4A10&dc=DA4A20&dc=DA700&dc=DA4A30&q1=CleanupThreads&uid=swg1LO11849&loc=en_US&cs=UTF-8&lang=all

JYR

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Thanks!

No solution or workaround?

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Not from this link and neither on google or the kbase.

I would call IBM and reference this link to your problem.

JYR

Subject: RE: Domino crashes after java agent finishes (PANIC: Object handle is invalid)

Unless your stack traces are exactly the same there is no guarantee the issue you are experiencing is exactly the same.