BinaryFormatter, XmlScanner, argument mismatch, from .NET Driver
book
Article ID: KB0086109
calendar_today
Updated On:
Products
Versions
TIBCO DataSynapse GridServer
-
Not Applicable
-
Description
Resolution: If the xmlSerialization value is changed after a proxy has been generated for the Service (Java or .NET), these types of errors can occur when running services from a .NET Driver.
The solution is to regenerate the .NET proxy if you change this value.
The following are examples of the exceptions:
09/26/2003 16:13:28:316 Severe: [ClusterServiceManager] Exception thrown from the ServiceHandler, Task failed due to : java.lang.Exception: init failed ErrroInfo: BinaryFormatter Version incompatibility. Expected Version 1.0. Received Version 1852795251.774971965. at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser input) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializationHeaderRecord() at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boole
09/26/2003 16:19:43:364 Severe: [ClusterServiceManager] Exception thrown from the ServiceHandler, Task failed due to : java.lang.Exception: init failed ErrroInfo: There is an invalid character in the given encoding. Line 1, position 1. at System.Xml.XmlScanner.GetChars(Byte[] srcBuffer, Int32& srcOffset, Int32 srcLen, Char[] destBuffer, Int32 destOffset, Boolean zeroedOut) at System.Xml.XmlScanner.Read() at System.Xml.XmlScanner.ScanContent() at System.Xml.XmlTextReader.ParseRoot() at System.Xml.XmlTextReader.Read() at System.Xml.XmlReader.MoveToContent()
09/26/2003 16:23:11:293 Severe: [ClusterServiceManager] Exception thrown from the ServiceHandler, Task failed due to : java.lang.IllegalArgumentException: argument type mismatch on Engine: HOTCORNER java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.livecluster.core.tasklet.bridge.ClassTasklet.call(ClassTasklet.java:122) at com.livecluster.core.tasklet.bridge.ClassTasklet.init(ClassTasklet.java:49) at com.livecluster.core.tasklet.bridge.BridgeTasklet.init(BridgeTasklet.java:72)
09/26/2003 16:25:36:491 Severe: [ClusterServiceManager] Exception thrown from the ServiceHandler, Task failed due to : java.lang.ClassCastException: com.livecluster.core.tasklet.bridge.DotNETData on Engine: HOTCORNER java.lang.ClassCastException: com.livecluster.core.tasklet.bridge.DotNETData at com.livecluster.core.tasklet.bridge.ClassTasklet.decode(ClassTasklet.java:59 at com.livecluster.core.tasklet.bridge.ClassTasklet.call(ClassTasklet.java:119) com.livecluster.core.tasklet.bridge.ClassTasklet.init(ClassTasklet.java:49) at com.livecluster.core.tasklet.bridge.BridgeTasklet.init(BridgeTasklet.java:72)
Issue/Introduction
BinaryFormatter, XmlScanner, argument mismatch, from .NET Driver