Generate ZPK

Nov 2, 2010 at 9:45 AM

Hi All,

i will to generate ZPK use command IA but in simulator display  error .
can someone help me .

ZMK under LMK (20E80083F9A237B7) i used console command FK


this is log in hsm simulator
///////////////////////////////////////////////////////
Request: 1234IA20E80083F9A237B7
Parsing header and code of message 1234IA20E80083F9A237B7...
Searching for implementor of IA...
Found implementor ThalesSim.Core.HostCommands.BuildIn.GenerateZPK_IA, instantiating...
Exception while parsing message or creating implementor instance
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\NTG\Thales Simulator\XMLDefs\HostCommands\MultiFormatZMK'.
File name: 'C:\Program Files (x86)\NTG\Thales Simulator\XMLDefs\HostCommands\MultiFormatZMK'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlReader.MoveToContent()
   at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
   at System.Data.DataSet.ReadXml(String fileName)
   at ThalesSim.Core.Message.XML.MessageFields.RecursiveReadXMLFields(String xmlFile)
   at ThalesSim.Core.Message.XML.MessageFields.RecursiveReadXMLFields(String xmlFile)
   at ThalesSim.Core.Message.XML.MessageFields.ReadXMLFields(String xmlFile)
   at ThalesSim.Core.HostCommands.AHostCommand.ReadXMLDefinitions(String fileName)
   at ThalesSim.Core.HostCommands.AHostCommand.ReadXMLDefinitions()
   at ThalesSim.Core.HostCommands.BuildIn.GenerateZPK_IA..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at ThalesSim.Core.ThalesMain.WCMessageArrived(WorkerClient sender, Byte[]& b, Int32 len)
Disconnecting client.
Client disconnected.

///////////////////////////////////////////////

Thanks

IKetutG

Coordinator
Nov 2, 2010 at 9:54 AM

There is a mistake in the XML definition. Open the file /xmldefs/hostcommands/GenerateZPK_IA.xml with notepad or any plain text editor and change the line:

    <IncludeFile>MultiFormatZMK</IncludeFile>

to this:

    <IncludeFile>MultiFormatZMK.xml</IncludeFile>

Nov 2, 2010 at 10:57 AM

Thanks you  now is work .