cancel
Showing results for 
Search instead for 
Did you mean: 

create repository problem

Former Member
0 Kudos

Hi,

I am facing a problem. I am using the code as below and I am getting the exception: Unable to modify database

I am using the java code as below:

CreateRepositoryCommand createRepCmd =

new CreateRepositoryCommand(tutServices.pool);

createRepCmd.setDBMSUserName(dbmsUser);

createRepCmd.setDBMSUserPassword(dbmsPasswd);

createRepCmd.setPort(portNumber);

createRepCmd.setPartition(3);

createRepCmd.setSession(tutServices.serverSessionId);

createRepCmd.setRepositoryIdentifier(targetRepId);

try {

createRepCmd.execute();

System.out.println("Execution of CreateRepositoryCommand successful.");

} catch (CommandException e) {

System.out.println("Failed to execute the CreateRepositoryCommand");

e.printStackTrace();

}

Any pointers as what I am doing wrong?

Thanks,

Neeraj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Neeraj

Check the port number on which u r trying to create Repository. Port numbers should be unique. Mean to say there should not be any other repository on the same port.

Check the sapce on ur server.

check the version , as there should't be any mismatch between versions.

Hope it helps

Regards

Himanshu

<b>Please Mark points for Helpful answer.</b>

Former Member
0 Kudos

Hi Himanshu,

Thanks for the info. The problem is resolved now. It was not the port number but the partition value. Once I changed the partition value from 3 to either 1 or 2, it started working.

Thanks,

Neeraj