Start a Conversation

Unsolved

This post is more than 5 years old

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

15 Posts

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.

15 Posts

August 9th, 2011 09:00

I've tested with a few servers and pea files:

                //"snia-xam://centera_vim!128.221.200.121?C:\\cluster4\\us5profile3_rdqecw.pea";
                //"snia-xam://centera_vim!128.221.200.122?C:\\cluster4\\us5profile3_rdqecw.pea";
                //"snia-xam://centera_vim!128.221.200.123?C:\\cluster4\\us5profile3_rdqecw.pea";
                //"snia-xam://centera_vim!128.221.200.120?C:\\cluster4\\us5profile2_rdqew.pea";
                //"snia-xam://centera_vim!128.221.200.121?C:\\cluster4\\us5profile2_rdqew.pea";
                //"snia-xam://centera_vim!128.221.200.122?C:\\cluster4\\us5profile2_rdqew.pea";
                //"snia-xam://centera_vim!128.221.200.123?C:\\cluster4\\us5profile2_rdqew.pea";
                //"snia-xam://centera_vim!128.221.200.120?C:\\cluster4\\us5profile1_rdqeDcw.pea";
                //"snia-xam://centera_vim!128.221.200.121?C:\\cluster4\\us5profile1_rdqeDcw.pea";
                //"snia-xam://centera_vim!128.221.200.122?C:\\cluster4\\us5profile1_rdqeDcw.pea";
                //"snia-xam://centera_vim!128.221.200.123?C:\\cluster4\\us5profile1_rdqeDcw.pea";
                  //"snia-xam://centera_vim!128.221.200.60?C:\\cluster3\\xamconnect.pea"; -DENIED
                  //"snia-xam://centera_vim!128.221.200.61?C:\\cluster3\\xamconnect.pea";
                  //"snia-xam://centera_vim!128.221.200.63?C:\\cluster3\\xamconnect.pea";

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

15 Posts

August 9th, 2011 14:00

I got the following print out from the XAMVerify

----------------- XAMVerify test results -------------------
XSYSTEM CONNECTIVITY CHECK
   snia-xam://centera_vim!128.221.200.180?C:\\cluster1\\emea2_profile1_rdqeDcw.pea       is available
XSYSTEM INFORMATION
   XSystemID:     EMC Centera, ID# dcc803aa-1dd1-11b2-b86e-e5430f58fcc6
   CentraStar:          4.0.0-2293-937-20439
   Available Capacity:     18,82 GB
   Total Free Capacity:     26,82 GB
   Granules:
      Read allowed:          true
      WriteSystem allowed:     true
      WriteApplication allowed:     true
      Delete allowed:          true
      Create allowed:          true
      Job allowed:          true
      Retention-Event allowed:     true
      Hold allowed:          false
Writing the file 1
Error writing file 1.
Exception: com.emc.centera/FP_OPERATION_NOT_ALLOWED.
**************************************************************
***************** End of XAMVerify log ****************
**************************************************************

15 Posts

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

Time:           Tue Aug 09 17:01:09 EDT 2011
Tool Version:      1.0.9
XAM Version:     1.0.0

2 Intern

 • 

417 Posts

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.

15 Posts

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

2 Intern

 • 

417 Posts

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.

2 Intern

 • 

417 Posts

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.

15 Posts

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.

No Events found!

Top