Skip to Content
avatar image
Former Member

Java-API error while loading repository

Hi All,

I am getting following error when I am trying to Load repository using Java API:

com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: The specified MDM repository was not found on the server

at com.sap.mdm.commands.CreateRepositorySessionCommand.executeImpl(CreateRepositorySessionCommand.java:79)

at com.sap.mdm.commands.AbstractCommandBase.execute(AbstractCommandBase.java:77)

at LoadRepository.main(LoadRepository.java:76)

Caused by: com.sap.mdm.internal.protocol.manual.ServerException: The specified MDM repository was not found on the server

at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:119)

at com.sap.mdm.commands.CreateRepositorySessionCommand.executeImpl(CreateRepositorySessionCommand.java:74)

... 2 more

I have

RepositoryIdentifier reposId = new RepositoryIdentifier("REPOSITORYNAME", "SERVER", DBMSType.MS_SQL);

CreateRepositorySessionCommand sessionCommand = new CreateRepositorySessionCommand(connections);

sessionCommand.setRepositoryIdentifier(reposId);

System.out.println("ServerName"+reposId.getDBMS());

try {

sessionCommand.execute();

} catch (CommandException e) {

e.printStackTrace();

return;

}

I placed System.out.println just before try method.. Its working.. I am able to see repository,server names as required.. dont know where the issue is.....It seems sessionCommand.execute () is unable to execute..

Any suggestions?

Thanks

Rajeev

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 18, 2010 at 06:07 AM

    Hi Rajeev.

    How did you instantiate the "connections" object. It looks like the MDM repository name and the MDM Server name is not mentioned

    correctly while creating connection. Can you check that?

    Regards

    Bala

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Rajeev,

      As per your error details you unable to recognize MDM Jar file Java Package

      i would suggest put all MDM jar file in Java bin folder and specify Java Class path in environment variables and run java prg through Java bin folder

      also in java coding mention Host name as you computer name by right clicking on my computer->Properties->Computer Name

      Hope above mention point will resolve your issue

      Thanks,

      Jignesh Patel