on 07-03-2008 8:17 AM
Hi all,
I am doing some MDM Java Development I can connect to Repository and List the names. But when I try to creation a session using any command the execute statement always gives the below exception.
I already tried tconfirmed the Java API versions and server versions are matching.
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.CreateUserSessionCommand.execute(CreateUserSessionCommand.java:101)
at com.sap.bunge.Connect.main(Connect.java:73)
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:112)
at com.sap.mdm.commands.CreateUserSessionCommand.execute(CreateUserSessionCommand.java:96)
... 1 more
Exception in thread "main"
Any help would be really great
Regards,
Vivek
Hi,
Verify your code with the code given below. Could you please give your sample code so that we can try to make out why it is giving the error.
ConnectionAccessor simpleConnection = SimpleConnectionFactory.getInstance(connection);
RepositoryIdentifier repIdentifier = new RepositoryIdentifier(repository, connection, dbmsType);
RegionProperties regionProperties = new RegionProperties();
regionProperties.setLocale(Locale.ENGLISH);
regionProperties.setName("English [US]");
regionProperties.setRegionCode("engUSA");
.
CreateUserSessionCommand createUserSessionCommand = new CreateUserSessionCommand(simpleConnection);
createUserSessionCommand.setRepositoryIdentifier(repIdentifier);
createUserSessionCommand.setDataRegion(regionProperties);
createUserSessionCommand.execute();
session = createUserSessionCommand.getUserSession();
Regards,
Jitesh Talreja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.