cancel
Showing results for 
Search instead for 
Did you mean: 

Login Failed Using Java API

Former Member
0 Kudos

Hi,

I am unable to login into the MDM 5.5 SP4 (5.5.34.46) respository using Java API (MDM4J Ver5.5.33.13).

Please note that I have problem with this version of MDM only. I doubt that this login faliure may be due to the compatibality issue of the Java API and MDM.

Here is the sample code:

CatalogData catalogData = new CatalogData();

if(catalogData.Login("mdmserver1",2345,"Admin","Admin",2,5,0,"cataloglog.txt")

!= RC.RC_OK)

{

catalogData = null;

}

if (catalogData == null) {

System.out.println("can't create catalog data>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");

}

When I run this code the following messages are logged into the cataloglog.txt:

"

2007/03/11 19:54:19.031 main Connect

2007/03/11 19:54:19.078 main Connect failed: rc=-2147352562

2007/03/11 19:54:19.078 main Connect, 0x8002000e

2007/03/11 19:54:19.078 main Unable to connect to server mdmserver1, user Admin, port 2345, status -2147352562

"

I would really appreciate the prompt responses.

Regards,

-


Shahid Nadeem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shahid,

Yep, it is the version problem only. Get MDM4J for 5.5.34.46 and try it again.

Regards,

Mausam

Answers (2)

Answers (2)

Former Member
0 Kudos

Perhaps for future versions of the JAVA API more detailed error messages would be nice

for example: "API version differ from Server" instead of 0x8002000e

Former Member
0 Kudos

Error 8002000e means "File failed a crc check".

I'd therefore start diagnosing by aligning the API and server versions.