Unsolved
This post is more than 5 years old
15 Posts
0
2528
August 8th, 2011 12:00
XStream Problem
Hey guys I am having trouble with XStreams. I am using the .NET WRAPPER (test harness 10. Import) and having 2 problems that are probably related:
1) When i try to import a file that is very small (9 bytes) i am recieving the following message on the XStream_Close(handle) method.
xam/xstream corrupted
1024
2) When I try to import a very large file The following message happens on the XStream_Write() method.
xam/invalid parameter
1003
Any help would be greatly appreciated!
George
No Events found!
Gkerber
15 Posts
0
August 9th, 2011 08:00
I am currently using the following connection string:
"snia-xam://centera_vim!128.221.200.180?C:\\cluster1\\emea2_profile1_rdqeDcw.pea";
I will be testing the code with other servers and pea files here shortly.
Gkerber
15 Posts
0
August 9th, 2011 09:00
I've tested with a few servers and pea files:
each time when we try to close the import stream it throws a xam\xstream(1024) corrupt error which tries to close the xset which throws a xam\xset corrupt(1023) error
Gkerber
15 Posts
0
August 9th, 2011 14:00
I got the following print out from the XAMVerify
Gkerber
15 Posts
0
August 10th, 2011 11:00
Any insight, or suggestions for test to run would be very helpful.
could it be the version?
in the XAMVerifyLog i am getting this
gstuartemc
2 Intern
•
417 Posts
0
August 13th, 2011 05:00
Are you trying to Import an XStream of an Export of a Legacy Clip i.e. one created using the Centera SDK rather than the XAM SDK? This was only fixed recently and you appear to be using an old version.
Gkerber
15 Posts
0
August 15th, 2011 12:00
I don't believe so:
I am trying to import a simple(9bytes) text file, using the XAMSDK .NET WRAPPER
I select 10 (import)
Then I type in the import file.
The version number I gave was part of the XAMVerify.jar logs
In the Path I have the following version of XAM.dll 1.0.103.0
gstuartemc
2 Intern
•
417 Posts
0
August 15th, 2011 14:00
I don't believe that you understand the purpose of XStream Import, so I will explain.
You say "import a text file", but the only thing that can be used as an Import XStream is the output from a previously generated Export XStream of an existing XSet. The bug I referred to is when the exiting XSet was actually a legacy Centera SDK clip rather than an XSet created using XAM.
If you are looking to write a simple text file into an XSet you should be looking at XSet write code / tests.
gstuartemc
2 Intern
•
417 Posts
0
August 15th, 2011 14:00
Look at the code in the Test Harness for the XSet create test. It creates an XSet and some fields, one of which is an XStream. That is how content gets written to the Centera using XAM (the wrapper calls the underlying XStream Write API as documented in the XAM C API Guide).
Import and Export are specifically for moving content between XSystems and retaining the XUID. They are not used for normal reading and writing operations.
Gkerber
15 Posts
0
August 15th, 2011 14:00
Sorry for the confusion:
So I Don't
1)Create an XSet
2)OpenImportXStream
3) write the bytes in the file
4) commit and close?
That seemed pretty straight forward.
You said I should use the "XSet write code"
which functions are used to write bytes to an xset?
Thanks for your help.