Buffer.BlockCopy + ArgumentException

Jul 26, 2013 at 1:08 PM
Hi, Keithh,

We noticed below exception raised up after issuing WspCommand.exe Wsp_GetNetworkInfo, on one of the node router.

We have WSP 3.0 router running on different 5 machines (hub and node), only the one on the machine where we issue the command got crashed.

Seems the bytes are not completely received, and cause Buffer.BlockCopy threw the exception, I had tried another command, no exception observed.

We had kept all the routing running for days, and keep publishing the messaging from two of them, except the exceptio raised up after issuing command WspCommand.exe Wsp_GetNetworkInfo, we haven't observed anything else abnormal.

We just worried there is other potential problem to cause the router failed to process itself suddenly, can you help on this?

Here are something we traced when the exception occurred:

System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
at Microsoft.WebSolutionsPlatform.PubSubManager.WspEvent.ChangeInRouterName(Byte[] serializationData, Byte[] inRouterNameArray, String inRouterName) in C:\WORKSPACE\WSP\src\v3.0\PubSubMgr\WspEvent.cs:line 428}

serializationData = "L?\0j\0\0\0\0$\0\0\0ca523b77-6d85-48ed-9f1a-4869b73d2a78 \f\0\0\0ficvelwbdv01 \f\0\0\0ticvelwbua01 \0\0\0635103295803936400 \0\0\03.0致 \0\rCorrelationID $604bf0a2-1d65-469c-b874-c34c8e60c7b2\aResults \f\0\0\0 NetworkInterfaces "

Length of serializationData = 203
Length of serializationData = 118
Length of wspEvent.Body = 180950
bodyLength = 180950

Thanks in advance for the helps.
Jul 29, 2013 at 4:04 PM
I haven't run into this issue before. If the BlockCopy is failing it would be that there is some data corruption. I just don't know where this would be occurring or why it's happening on just one of your servers.