Skip to Content
avatar image
Former Member

create repository problem

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 09, 2007 at 05:59 AM

    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>

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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