Thanks to all the people who have responded to this thread,
Note: Apologize for the long text, but i have tried to explain the error in detail.
The error is still not resolved. Rather i am seeing some strange WM behaviour after trying to implement some of the suggestions given.
Option1:- The edidata is an object datatype. I do a tracePipeline as the first step in the service. I can see the edidata in the server log after running the FTP service. It is shown as ‘java.io.BufferedInputStream@3faef5’. The next step after streamToBytes is bytestoString and after that i have wm.b2b.edi:convertToValues which returns an error saying “Cannot have null node definition”. The input to convertToValues has a string mapping to edidata object variable and i have also specified the complete namespace of the EDI schema for the EDIffschema variable. The EDI string is visible in the server log.
To debug the service, I do a savePipelineToFile, run the FilePolling service. After this i disable the savePipelineToFile and enable the restorePipelineFromFile. After stepping through i dont see the edidata in the results Panel which is very surprising, (the filename is same in both the services).
So instead of using savePipelineToFile i use just the savePipeline service giving some $name value. Run FilePolling, disable service and enable restorePipeline service and now after stepping thru i see the edidata variable populated as ‘java.io.BufferedInputStream’. Notice the missing address info in edidata. So the step streamToBytes fails saying ClassCastException, this is because it is expecting a Stream but restorePipeline returns a string edidata instead of an object edidata.
This looks to me like a very serious WM bug, i will be really grateful if somebody can respond to this or can log a service request with webMethods.
Option2:- RMG had suggested to use contentStream as the input variable, but that doesnt work. I dont see this variable getting populated in the pipeline.
Please let me know if you are seeing the same error at your end and if you have a resolution to the same.