Our web application is using a third party product to provide
access from ASP to java classes. This allows ASP pages to
communicate with our java application via DCOM.

Example code which requires the third party software installed
on the IIS server:
Dim dtmDate
Set dtmDate = GetObject("myjvm:java.util.Date")
The date is <%= dtmDate.toString() %>

Or it can use a COM objref moniker
Set jvm = GetObject("objref:....")
Set dtmDate = jvm.get("java.util.Date")
The date is <%= dtmDate.toString() %>


Several of our customer have run into an issue where the asp
pages return errors when trying to access the java classes.

The virtual directory must be unloaded in order for the asp pages.
The error is RPC_S_CALL_FAILED (0X800706be) after the GetObject
call is made or a method is invoked on a Java object.

I have been able to te the problem by using Microsoft's Web
Application Stress tool
and putting the application under heavy stress.

Using the Microsoft Debugger, I have been able to trace the exception to
an comparison in the method:

RPCRT4!OSF_BINDING_HANDLE::AllocateCCall
cmp dword ptr [ebx+0xac],0x1

Here's part of the debug session:
0:017> t
eax=03001d00 ebx=000ee690 ecx=7ff8c000 edx=000ee6f8 esi=000ee690 edi=00000000
eip=77d4fbea esp=0263eef4 ebp=0263ef40 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
RPCRT4!OSF_BINDING_HANDLE::AllocateCCall+0x24f:
77d4fbea 83bbac00000001 cmp dword ptr [ebx+0xac],0x1 ds:0023:000ee73c=00000008
0:017> t
eax=03001d00 ebx=000ee690 ecx=7ff8c000 edx=000ee6f8 esi=000ee690 edi=00000000
eip=77d4fbf1 esp=0263eef4 ebp=0263ef40 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
RPCRT4!OSF_BINDING_HANDLE::AllocateCCall+0x256:
77d4fbf1 7535 jnz RPCRT4!OSF_BINDING_HANDLE::AllocateCCall+0x28d (77d4fc28)
[br=1]
0:017> t
eax=03001d00 ebx=000ee690 ecx=7ff8c000 edx=000ee6f8 esi=000ee690 edi=00000000
eip=77d4fc28 esp=0263eef4 ebp=0263ef40 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
RPCRT4!OSF_BINDING_HANDLE::AllocateCCall+0x28d:
77d4fc28 8bb090000000 mov esi,[eax+0x90] ds:0023:03001d90=000006be

Any advice you can provide to this problem would be appreciated.
I have not been able to find out what is being compared in the
AllocateCCall method.



Here's the IIState log:

Opened log file 'C:\devtools\iisstate\output\IISState-2000.log'

***********************
Starting new log output
IISState version 3.3.1

Wed Oct 12 08:52:18 2005

OS = Windows 2000
Executable: dllhost.exe
PID = 2000

Note: Thread times are formatted as HH:MM:SS.ms

***********************




Thread ID: 0
System Thread ID: 7cc
Kernel Time: 0:0:0.40
User Time: 0:0:0.20
Thread Type: Other
# ChildEBP RetAddr
00 0006fd28 7c59a030 ntdll!ZwWaitForSingleObject+0xb
01 0006fd50 7c57b3db KERNEL32!WaitForSingleObjectEx+0x71
02 0006fd60 7ceb0d04 KERNEL32!WaitForSingleObject+0xf
03 0006fe0c 77fcb7c2 ole32!CEMfObject::ChangeData+0x9
04 0006feb0 0006fe54 ntdll!RtlFreeHeap+0xf8
WARNING: Frame IP not in any known module. Following frames may be wrong.
05 00000000 00000000 0x6fe54




Thread ID: 1
System Thread ID: 7dc
Kernel Time: 0:0:0.50
User Time: 0:0:0.0
Thread Type: Other
# ChildEBP RetAddr
00 008fff30 7ceb92c8 USER32!ExitWindowsWorker+0x7e
01 008fff70 7ce260ca ole32!ValidateStgOptions+0x5e
02 008fff70 7ce260ca ole32!IID_IStdMarshalInfo+0x2
03 008fff8c 7ce25fcc ole32!IID_IStdMarshalInfo+0x2
04 00007530 00000000 ole32!`string'+0xc




Thread ID: 2
System Thread ID: 7e8
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: Other
# ChildEBP RetAddr
00 009cfc54 7c585423 ntdll!NtRemoveIoCompletion+0xb
01 009cfc80 6de8b9d0 KERNEL32!GetQueuedCompletionStatus+0x27
02 009cfd94 6de8b908 TxfAux!WORK_QUEUE::WorkerLoop+0xa0
03 009cffb4 7c57b388 TxfAux!WORK_QUEUE::ThreadLoop+0x58
04 009cffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 3
System Thread ID: 7f0
Kernel Time: 0:0:0.10
User Time: 0:0:0.0
Thread Type: Other
# ChildEBP RetAddr
00 00baff1c 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 00baff6c 7c59a10e KERNEL32!WaitForMultipleObject+0xea
02 00baff84 1f7e67f8 KERNEL32!WaitForMultipleObjects+0x17
03 00baffb0 77f89c9d ODBC32!SQLForeignKeys+0xd4
04 00baffb4 7c57b388 ntdll!CsrNewThread+0xb
05 00baffbc 77fb6690 KERNEL32!BaseThreadStart+0x52
06 00000000 00000000 ntdll!memmove




Thread ID: 4
System Thread ID: 834
Kernel Time: 0:0:0.80
User Time: 0:0:0.0
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 00beff08 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 00beff58 7c59a10e KERNEL32!WaitForMultipleObject+0xea
02 00beff70 787f58ce KERNEL32!WaitForMultipleObjects+0x17
03 00beffb4 7c57b388 COMSVCS!CEventDispatcher::PushEvents+0x4e
04 00beffc0 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 5
System Thread ID: 838
Kernel Time: 0:0:0.20
User Time: 0:0:0.0
Thread Type: Possible ASP page. Possible DCOM activity
Executing Page: Unable to locate ASP page

No remote call being made

# ChildEBP RetAddr
00 00c2fb68 77d5f2a1 ntdll!NtRequestWaitReplyPort+0xb
01 00c2fb94 77d5d675 RPCRT4!LRPC_CCALL::SendReceive+0x11e
02 00c2fba0 7cf05eb8 RPCRT4!I_RpcSendReceive+0x2c
03 00c2fbc0 7cf05d4a ole32!any_handle <PERF> (ole32+0xe5eb8)
04 00c2fbd8 7cf05c57 ole32!any_handle <PERF> (ole32+0xe5d4a)
05 00c2fc18 7cf05eae ole32!any_handle <PERF> (ole32+0xe5c57)
06 00c2fc88 7ce35b67 ole32!any_handle <PERF> (ole32+0xe5eae)
07 00c2fce0 77d9a063 ole32!CPagedVector::GetTableWithSect+0x1f7
08 00c2fcfc 77d9a011 RPCRT4!NdrProxySendReceive+0x4c
09 00c2ff44 77d99db8 RPCRT4!NdrClientCall2+0x4f5
0a 00c2ff60 77d4183f RPCRT4!ObjectStublessClient+0x76
0b 00c2ff70 787f5818 RPCRT4!ObjectStubless+0xf
0c 00c2ffb4 7c57b388 COMSVCS!CEventDispatcher::GetEventServerInfoThread +0x118
0d 00c2ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 6
System Thread ID: 83c
Kernel Time: 0:0:0.60
User Time: 0:0:0.140
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 00c6fee0 7c59a28f ntdll!ZwDelayExecution+0xb
01 00c6ff00 7c59a25a KERNEL32!SleepEx+0x32
02 00c6ff0c 787d12aa KERNEL32!Sleep+0xb
03 00c6ff7c 780085bc COMSVCS!PostData+0xf2
04 00c6ff88 7ce36836 MSVCRT!_endthreadex+0xc1
05 00000000 00000000 ole32!DFlagsToMode+0x15




Thread ID: 7
System Thread ID: 840
Kernel Time: 0:0:0.350
User Time: 0:0:0.260
Thread Type: Other
# ChildEBP RetAddr
00 00eefe5c 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 00eefeac 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 00eeff08 77e41706 USER32!__ClientExtTextOutW+0x3f
03 00eeff24 6e5a5a7c USER32!__ClientGetTextExtentPointW+0x48
04 00eeff78 78008593 IISRTL!SchedulerWorkerThread+0xa7
05 00eeffb4 7c57b388 MSVCRT!_endthreadex+0x98
06 00eeffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 8
System Thread ID: 844
Kernel Time: 0:0:0.520
User Time: 0:0:0.180
Thread Type: Other
# ChildEBP RetAddr
00 00f2fe5c 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 00f2feac 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 00f2ff08 77e41706 USER32!__ClientExtTextOutW+0x3f
03 00f2ff24 6e5a5a7c USER32!__ClientGetTextExtentPointW+0x48
04 00f2ff78 78008593 IISRTL!SchedulerWorkerThread+0xa7
05 00f2ffb4 7c57b388 MSVCRT!_endthreadex+0x98
06 00f2ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 9
System Thread ID: 848
Kernel Time: 0:0:0.30
User Time: 0:0:0.0
Thread Type: HTTP Listener
# ChildEBP RetAddr
00 00feff50 7c585423 ntdll!NtRemoveIoCompletion+0xb
01 00feff7c 6d702957 KERNEL32!GetQueuedCompletionStatus+0x27
02 00feffb4 7c57b388 ISATQ!AtqPoolThread+0x40
03 00feffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 10
System Thread ID: 84c
Kernel Time: 0:0:0.60
User Time: 0:0:0.0
Thread Type: HTTP Listener
# ChildEBP RetAddr
00 0093ff50 7c585423 ntdll!NtRemoveIoCompletion+0xb
01 0093ff7c 6d702957 KERNEL32!GetQueuedCompletionStatus+0x27
02 0093ffb4 7c57b388 ISATQ!AtqPoolThread+0x40
03 0093ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 11
System Thread ID: 854
Kernel Time: 0:0:7.160
User Time: 0:0:3.434
Thread Type: Possible ASP page. Possible DCOM activity
Executing Page: Unable to locate ASP page

No remote call being made

# ChildEBP RetAddr
00 0118feb8 7c585423 ntdll!NtRemoveIoCompletion+0xb
01 0118fee4 77d4fa03 KERNEL32!GetQueuedCompletionStatus+0x27
02 0118ff20 77d4f964 RPCRT4!COMMON_ProcessCalls+0x9e
03 0118ff74 77d43dd7 RPCRT4!LOADABLE_TRANSPORT::ProcessIOEvents+0x99
04 0118ff78 77d4e003 RPCRT4!ProcessIOEventsWrapper+0x9
05 0118ffa8 77d4af16 RPCRT4!BaseCachedThreadRoutine+0x4f
06 0118ffb4 7c57b388 RPCRT4!ThreadStartRoutine+0x18
07 0118ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 12
System Thread ID: 860
Kernel Time: 0:0:0.20
User Time: 0:0:0.0
Thread Type: ASP
Executing Page: Unable to locate ASP page

# ChildEBP RetAddr
00 01d6fe70 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 01d6fec0 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 01d6ff1c 77e41706 USER32!__ClientExtTextOutW+0x3f
03 01d6ff38 74a036b4 USER32!__ClientGetTextExtentPointW+0x48
04 01d6ff7c 78008454 asp!CMTACallbackThread::Thread+0x42
05 01d6ffb4 7c57b388 MSVCRT!_endthread+0xc6
06 01d6ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 13
System Thread ID: 868
Kernel Time: 0:0:0.150
User Time: 0:0:0.60
*** WARNING: Unable to verify checksum for
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
-
Thread Type: PDM (Debugger) Thread.
# ChildEBP RetAddr
00 01defddc 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 01defe2c 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 01defe88 77e41706 USER32!__ClientExtTextOutW+0x3f
03 01defea4 4a00886c USER32!__ClientGetTextExtentPointW+0x48
04 01deff7c 7c599d6d pdm+0x886c
05 01deffb0 4a008a09 KERNEL32!ReleaseSemaphore+0x12
06 01deffcc 77fb2c8a pdm+0x8a09
07 01deffd8 ffffffff ntdll!RtlpFreeToHeapLookaside+0x4a
08 77fb2c8a 18eb01b0 0xffffffff
WARNING: Frame IP not in any known module. Following frames may be wrong.
09 fffc4d83 00000000 0x18eb01b0




Thread ID: 14
System Thread ID: 88c
Kernel Time: 0:0:0.190
User Time: 0:0:0.90
Thread Type: Other
# ChildEBP RetAddr
00 0204ff9c 77fa238a ntdll!ZwDelayExecution+0xb
01 0204ffb4 7c57b388 ntdll!RtlpTimerThread+0x42
02 0204ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 15
System Thread ID: 894
Kernel Time: 0:0:0.80
User Time: 0:0:0.40
Thread Type: Other
# ChildEBP RetAddr
00 0223ff20 77fa096f ntdll!NtRemoveIoCompletion+0xb
01 0223ffb4 7c57b388 ntdll!RtlpWorkerThread+0x6b
02 0223ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 16
System Thread ID: 898
Kernel Time: 0:0:9.163
User Time: 0:0:4.666
Thread Type: Possible ASP page. Possible DCOM activity
Executing Page: Unable to locate ASP page

No remote call being made

# ChildEBP RetAddr
00 0227feb8 7c585423 ntdll!NtRemoveIoCompletion+0xb
01 0227fee4 77d4fa03 KERNEL32!GetQueuedCompletionStatus+0x27
02 0227ff20 77d4f964 RPCRT4!COMMON_ProcessCalls+0x9e
03 0227ff74 77d43dd7 RPCRT4!LOADABLE_TRANSPORT::ProcessIOEvents+0x99
04 0227ff78 77d4e003 RPCRT4!ProcessIOEventsWrapper+0x9
05 0227ffa8 77d4af16 RPCRT4!BaseCachedThreadRoutine+0x4f
06 0227ffb4 7c57b388 RPCRT4!ThreadStartRoutine+0x18
07 0227ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 17
System Thread ID: 50c
Kernel Time: 0:1:0.617
User Time: 0:1:30.89
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 07a6fe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 07a6fe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 07a6fed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 07a6fef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 07a6ff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 07a6ffb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 07a6ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 18
System Thread ID: 198
Kernel Time: 0:0:36.772
User Time: 0:1:11.763
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 07aafe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 07aafe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 07aafed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 07aafef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 07aaff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 07aaffb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 07aaffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 19
System Thread ID: 62c
Kernel Time: 0:1:0.887
User Time: 0:1:28.96
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 07defe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 07defe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 07defed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 07defef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 07deff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 07deffb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 07deffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 20
System Thread ID: 914
Kernel Time: 0:0:59.836
User Time: 0:1:28.377
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 081afe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 081afe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 081afed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 081afef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 081aff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 081affb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 081affec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 21
System Thread ID: 85c
Kernel Time: 0:1:0.567
User Time: 0:1:28.917
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 0822fe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 0822fe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 0822fed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 0822fef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 0822ff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 0822ffb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 0822ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 22
System Thread ID: 8e8
Kernel Time: 0:0:59.805
User Time: 0:1:28.637
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 0832fe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 0832fe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 0832fed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 0832fef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 0832ff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 0832ffb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 0832ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 23
System Thread ID: 864
Kernel Time: 0:1:0.36
User Time: 0:1:26.664
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 0852fe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 0852fe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 0852fed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 0852fef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 0852ff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 0852ffb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 0852ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 24
System Thread ID: 640
Kernel Time: 0:0:59.735
User Time: 0:1:28.126
Thread Type: Idle ASP thread
# ChildEBP RetAddr
00 0856fe28 7c59a1fb ntdll!ZwWaitForMultipleObjects+0xb
01 0856fe78 77e4169f KERNEL32!WaitForMultipleObject+0xea
02 0856fed4 77e41706 USER32!__ClientExtTextOutW+0x3f
03 0856fef0 787c3911 USER32!__ClientGetTextExtentPointW+0x48
04 0856ff1c 787c2cc0 COMSVCS!STAThread::WaitForWork+0x33
05 0856ffb4 7c57b388 COMSVCS!STAThread::STAThreadWorker+0x4e2
06 0856ffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 25
System Thread ID: 270
Kernel Time: 0:0:0.20
User Time: 0:0:0.0
Thread Type: Possible ASP page. Possible DCOM activity
Executing Page: Unable to locate ASP page

No remote call being made

# ChildEBP RetAddr
00 02fdff74 77d4e078 ntdll!ZwDelayExecution+0xb
01 02fdffa8 77d4af16 RPCRT4!BaseCachedThreadRoutine+0xc3
02 02fdffb4 7c57b388 RPCRT4!ThreadStartRoutine+0x18
03 02fdffec 00000000 KERNEL32!BaseThreadStart+0x52




Thread ID: 26
System Thread ID: bb8
Kernel Time: 0:0:0.0
User Time: 0:0:0.0
Thread Type: Possible ASP page. Possible DCOM activity
Executing Page: Unable to locate ASP page

No remote call being made

# ChildEBP RetAddr
00 0301fe24 77d5e6c4 ntdll!ZwReplyWaitReceivePortEx+0xb
01 0301ff74 77d4e0c0 RPCRT4!LRPC_ADDRESS::ReceiveLotsaCalls+0x74
02 0301ff78 77d4e003 RPCRT4!RecvLotsaCallsWrapper+0x9
03 0301ffa8 77d4af16 RPCRT4!BaseCachedThreadRoutine+0x4f
04 0301ffb4 7c57b388 RPCRT4!ThreadStartRoutine+0x18
05 0301ffec 00000000 KERNEL32!BaseThreadStart+0x52

Closing open log file C:\devtools\iisstate\output\IISState-2000.log