Topic
2 replies Latest Post - ‏2014-03-12T06:58:41Z by QFSN_deepak_karma
SystemAdmin
SystemAdmin
217 Posts
ACCEPTED ANSWER

Pinned topic System memory out of exception with Cognos8.3 SP2

‏2009-01-07T21:13:54Z |
Omprakash Venkata said:

I am getting the following error when I ran the reports with the report output size above 20MB . For smaller report no problem at all. Appreciate your inputs on this.

Error details:

System.InvalidOperationException: There is an error in XML document (305, 9). ---> System.OutOfMemoryException: Exception of type System.OutOfMemoryException was thrown.

--- End of inner exception stack trace ---

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, XmlDeserializationEvents events)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Objecthttp://] parameters) at cognosdotnet.reportService1.getOutput(asynchRequest conversation, parameterValue[ parameterValues, option parameters)

at cognosdotnet.reportService1.getOutput(asynchRequest conversation, parameterValue] parameterValues, option[ options)

at LossRunReporter.LossRunReporter.Execute(contentManagerService1 c8CMS, String report, String outputPath, String connString, Boolean debug, String outFormat, String timeout1, String timeout2)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, XmlDeserializationEvents events)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Objecthttp://] parameters) at cognosdotnet.reportService1.getOutput(asynchRequest conversation, parameterValue[ parameterValues, option[] options)

at LossRunReporter.LossRunReporter.Execute(contentManagerService1 c8CMS, String report, String outputPath, String connString, Boolean debug, String outFormat, String timeout1, String timeout2

Updated on 2011-03-07T11:47:28Z at 2011-03-07T11:47:28Z by wuguangcheng
  • wuguangcheng
    wuguangcheng
    1 Post
    ACCEPTED ANSWER

    Re: System memory out of exception with Cognos8.3 SP2

    ‏2011-03-07T11:47:28Z  in response to SystemAdmin
    how do you solve this system memory out problem? thx
  • QFSN_deepak_karma
    QFSN_deepak_karma
    1 Post
    ACCEPTED ANSWER

    Re: System memory out of exception with Cognos8.3 SP2

    ‏2014-03-12T06:58:41Z  in response to SystemAdmin

    Dear System Admin,

    I am getting an error on line AsynchReply res =repService.run(new SearchPathSingleObject(reportPath), parameters, runOptions);

    i have used : DotNet Framework 4.5 + Cognos10 + cognosdotnet_2_0.dll

    Inner Exception :

    Message:Object cannot be stored in an array of this type.


    stacktrace:
    at System.Array.InternalSetValue(Void* target, Object value)
    at System.Array.SetValue(Object value, Int32 index)
    at System.Xml.Serialization.XmlSerializationReader.ReadArray(String typeName, String typeNs)
    at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, Boolean elementCanBeType, String& fixupReference)
    at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, String& fixupReference)
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read8974_asynchRequest()
    at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, Boolean elementCanBeType, String& fixupReference)
    at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, String& fixupReference)
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read8975_asynchReply()
    at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, Boolean elementCanBeType, String& fixupReference)
    at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, String& fixupReference)
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read9992_runResponse()
    at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer1017.Deserialize(XmlSerializationReader reader)
    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

    Please let me know the solution as soon as possible. Thanks in Advance !!