Unsolved

This post is more than 5 years old

19 Posts

4803

July 29th, 2009 13:00

InvalidXRIException when connecting to EMC cluster

I get the following exception when I run the RetrieveContent java program:

The us2_armTest1.pea was downloaded and saved in C:\CenteraSDK\Samples directory.

C:\CenteraSDK\Samples>java RetrieveContent

Address of XSystem[snia-xam://centera_vim!128.221.200.60?us2_armTest1.pea]:
Connecting to XSystem(snia-xam://centera_vim!128.221.200.60?us2_armTest1.pea)
XAM Error occured: xam/invalid XRI(1008)
org.snia.xam.InvalidXRIException: xam/invalid XRI
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XSystemImpl. (Unknown Source)
        at org.snia.xam.XAMLibraryObj.connect(Unknown Source)
        at RetrieveContent.main(RetrieveContent.java:103)

2 Intern

 • 

417 Posts

July 30th, 2009 01:00

Please double check that the PEA file is in the same directory as the sample, or prived the full path name.

Have you followed the installation instructions outlined in the release notes? Have you tried using the shXAM community tool with the same XRI?

2 Intern

 • 

417 Posts

July 30th, 2009 09:00

Should your filepath delimiters not be "\" rather than "/"?

Your setup looks OK, but there is definitely something incorrect with the XRI if that error is being thrown. What happens if you do not specify a PEA file i.e. leave off everything from the '?' onwards.

19 Posts

July 30th, 2009 09:00

I redid the installation and am still getting the same error.

Details of my environment are:

Using RetrieveContent.java  on Windows XP.

JDK1.5.0.07

Downloaded and unzipped Centera_SDK_VIM1.0p1_WinDev8.zip   in C:\CenteraXAM\Centera_SDK_XAM1.0p1_WinDev8

Downloaded and unzipped Centera_SDK_XAM1.0p1_WinDev8.zip  in C:\CenteraXAM\Centera_SDK_VIM1.0p1_WinDev8

pea file:  C:\CenteraXAM\Samples\us2_armTest1.pea

Here are my env. variables:

C:\CenteraXAM\Samples>set %PATH%
Environment variable C:\CenteraXAM\Centera_SDK_VIM1.0p1_WinDev8\lib32;C:\Centera
XAM\Centera_SDK_XAM1.0p1_WinDev8\lib32;C:\Perl\bin\;C:\arch.core.5004.6.0.83\bin
;C:\Progra~1\Java\jdk1.5.0_07\bin;C:\Python22;C:\FileNET\IDM;C:\FileNET\Shared;C
:\oracle\ora92\jre\1.4.2\bin\client\;C:\Program Files\Oracle\jre\1.3.1\bin\;C:\P
rogram Files\Oracle\jre\1.1.8\bin\;C:\oracle\ora92\bin\;C:\oracle\ora92\jre\1.4.
2\bin\;C:\PROGRAM FILES\CA\DCS\DMSCRIPTING\;C:\PROGRAM FILES\CA\DCS\CAWIN\;C:\WI
NDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\CAUNINT\BIN;C:\NOTES\;C:\N
OTES\DATA;;C:\Program Files\Netmanage\System;C:\Program Files\NetManage\Windows;
C:\Program Files\Common Files\Compuware;C:\Program Files\Compuware\XPDev\BINW;C:
\Program Files\Rational\ClearCase\bin;C:\Program Files\Rational\common;C:\FileNE
T\FNSW\CLIENT\BIN;C:\FileNET\FNSW\CLIENT\SHOBJ;C:\Program Files\Microsoft SQL Se
rver\80\Tools\BINN;C:\Program Files\Ascent\Bin;C:\Program Files\Java\jdk1.5.0_07
;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;D:\PROGRA~1\Ascent\ImgCtls
\bin;D:\Program not defined

C:\CenteraXAM\Samples>set %CLASSPATH%
Environment variable C:\CenteraXAM\Centera_SDK_XAM1.0p1_WinDev8\lib\XAMLibrary.j
ar;C:\CenteraXAM\Samples;C:\Progra~1\Java\jdk1.5.0_07\bin not defined

C:\CenteraXAM\Samples>set %XAM_VIM_PATH%
Environment variable C:\CenteraXAM\Centera_SDK_VIM1.0p1_WinDev8\lib32 not define
d

Samples Directory Contents:

C:\CenteraXAM\Samples>dir
Volume in drive C has no label.
Volume Serial Number is F8CE-CB22

Directory of C:\CenteraXAM\Samples

07/29/2009  04:05 PM   

          .
07/29/2009  04:05 PM              ..
07/30/2009  11:57 AM             4,188 RetrieveContent.class
07/30/2009  11:56 AM             4,497 RetrieveContent.java
07/29/2009  04:05 PM               294 us2_armTest1.pea
07/29/2009  01:20 PM               294 us2_profile1_rqecw.pea
               4 File(s)          9,273 bytes
               2 Dir(s)   1,112,883,200 bytes free

Console log:

C:\CenteraXAM\Samples>javac RetrieveContent.java

C:\CenteraXAM\Samples>java RetrieveContent
Address of XSystem[snia-xam://centera_vim!128.221.200.60?C://CenteraXAM//Samples
//us2_armTest1.pea]:
Connecting to XSystem(snia-xam://centera_vim!128.221.200.60?C://CenteraXAM//Samp
les//us2_armTest1.pea)
XAM Error occured: xam/invalid XRI(1008)
org.snia.xam.InvalidXRIException: xam/invalid XRI
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XSystemImpl. (Unknown Source)
        at org.snia.xam.XAMLibraryObj.connect(Unknown Source)
        at RetrieveContent.main(RetrieveContent.java:103)

C:\CenteraXAM\Samples>dir
Volume in drive C has no label.
Volume Serial Number is F8CE-CB22

Directory of C:\CenteraXAM\Samples

07/29/2009  04:05 PM   

          .
07/29/2009  04:05 PM              ..
07/30/2009  11:57 AM             4,188 RetrieveContent.class
07/30/2009  11:56 AM             4,497 RetrieveContent.java
07/29/2009  04:05 PM               294 us2_armTest1.pea
07/29/2009  01:20 PM               294 us2_profile1_rqecw.pea
               4 File(s)          9,273 bytes
               2 Dir(s)   1,112,883,200 bytes free

19 Posts

July 30th, 2009 09:00

Thanks for responding.  Tried the suggesstions, but still get same error.  See details below.

Re: Filepath -- I tried with / and \,  same error.

C:\CenteraXAM\Samples>java RetrieveContent
Address of XSystem[snia-xam://centera_vim!128.221.200.60?C:\CenteraXAM\Samples\u
s2_armTest1.pea]:
Connecting to XSystem(snia-xam://centera_vim!128.221.200.60?C:\CenteraXAM\Sample
s\us2_armTest1.pea)
XAM Error occured: xam/invalid XRI(1008)
org.snia.xam.InvalidXRIException: xam/invalid XRI
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XSystemImpl. (Unknown Source)
        at org.snia.xam.XAMLibraryObj.connect(Unknown Source)
        at RetrieveContent.main(RetrieveContent.java:107)

C:\CenteraXAM\Samples>

Re: Leaving off the pea file,  I get the same error

C:\CenteraXAM\Samples>javac RetrieveContent.java

C:\CenteraXAM\Samples>java RetrieveContent
Address of XSystem[snia-xam://centera_vim!128.221.200.60?]:
Connecting to XSystem(snia-xam://centera_vim!128.221.200.60?)
XAM Error occured: xam/invalid XRI(1008)
org.snia.xam.InvalidXRIException: xam/invalid XRI
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XSystemImpl. (Unknown Source)
        at org.snia.xam.XAMLibraryObj.connect(Unknown Source)
        at RetrieveContent.main(RetrieveContent.java:107)

I set the CENTERA_PEA_LOCATON variable, and retried:

C:\CenteraXAM\Samples>set CENTERA_PEA_LOCATION="C:\CenteraXAM\Samples\us2_armTes
t1.pea"

C:\CenteraXAM\Samples>javac RetrieveContent.java

C:\CenteraXAM\Samples>java RetrieveContent
Address of XSystem[snia-xam://centera_vim!128.221.200.60?]:
Connecting to XSystem(snia-xam://centera_vim!128.221.200.60?)
XAM Error occured: xam/invalid XRI(1008)
org.snia.xam.InvalidXRIException: xam/invalid XRI
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XSystemImpl. (Unknown Source)
        at org.snia.xam.XAMLibraryObj.connect(Unknown Source)
        at RetrieveContent.main(RetrieveContent.java:107)

2 Intern

 • 

417 Posts

July 30th, 2009 10:00

Did you modify the RetrieveContent sample and in doing so introduced the bug? It should work "out the box" after you downloaded it, as long as you downloaded the PEA file and put it in the same directory as the executable. You are jumping ahead and adding in additional potential areas of failure by putting the PEA file in a different location.

I notice that you are now using a different default PEA file and directory location in your XRI? Have you downloaded this file and created the directory?

2 Intern

 • 

417 Posts

July 30th, 2009 10:00

You still have a '?' at the end - I said to leave off everything from that character onwards, not everything after it. Can you try that please.

19 Posts

July 30th, 2009 10:00

I had just added some more debugging statements in order to troubleshoot issues so far.  I've reverted back to downloaded version of RetreiveContent.java and am still getting the same error.  The only thing I've added is an xe.printStackTrace() in the XAMException catch block.

Note: The pea file exists in C:\CenteraXAM\Samples directory.

C:\CenteraXAM\Samples>javac RetrieveContent.java

C:\CenteraXAM\Samples>java RetrieveContent
Address of XSystem[snia-xam://centera_vim!128.221.200.60?us2_armTest1.pea]:
Connecting to XSystem(snia-xam://centera_vim!128.221.200.60?us2_armTest1.pea)
XAM Error occured: xam/connection failed(1025)
org.snia.xam.ConnectException: xam/connection failed
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XSystemImpl. (Unknown Source)
        at org.snia.xam.XAMLibraryObj.connect(Unknown Source)
        at RetrieveContent.main(RetrieveContent.java:102)

19 Posts

July 30th, 2009 10:00

Finally getting beyond this excpetion.   Issue was that the in the RetrieveContent.java the connect was being issued with an empty string:

After fixing that, I am now getting a ConnectException:

C:\CenteraXAM\Samples>java RetrieveContent
Address of XSystem[snia-xam://centera_vim!128.221.200.60?C:\CenteraXAM\PEA-Files
\xamconnect.pea]:
Connecting to XSystem(snia-xam://centera_vim!128.221.200.60?C:\CenteraXAM\PEA-Fi
les\xamconnect.pea)
ConnectionExcpetion: xam/connection failed(1025)
org.snia.xam.ConnectException: xam/connection failed
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XAMErrors.throwConvertedException(Unknown Source)
        at org.snia.xam.XSystemImpl. (Unknown Source)
        at org.snia.xam.XAMLibraryObj.connect(Unknown Source)
        at RetrieveContent.main(RetrieveContent.java:109)

2 Intern

 • 

417 Posts

July 31st, 2009 01:00

Paul answered this question in another topic that you posted (your firewall was not open for port 3218 UDP / TCP).

Please DO NOT post the same query in mutliple topics.

19 Posts

July 31st, 2009 05:00

Sorry Paul.  It was a different exception thats why I thought of posting it separately.  Thanks for your help.  I am now able to connect to our centera.

Top