Monday, January 26, 2015

Property “Name” of Server with original name “_sample” is invalid. The property value is duplicated.

I was writing some scripts using WebLogic Scripting Tool (WLST) to automagically create a domain, and I experienced this exception in the dumpStack():

Property "Name" of Server with original name "_sample" is invalid. The property value is duplicated.

You may experience this error when you attempt to create a managed server that already exists, especially if you have read an existing template.

In my case, I was building an Oracle Access Manager (OAM) domain and referenced the oracle.oam_ds_11.1.2.0.0_template.jar template. This template defines a managed server, "oam_server1". In my logic, I was trying to create a managed server with the same name, thus the exception was being thrown.


As a workaround, you can do the following:

  • In your script logic, reference the pre-existing managed server and manipulate it,
  • Name your new managed server something else, or
  • Remove the reference to whatever domain template you may be using.

3 comments:

  1. Not exactly the subject you were writing about, but maybe you can give me a hint. I'm trying to do pretty much the same you did, using wlst to create an Oracle Access Manager. My wlst-script runs through fine, domain is created, andmin- and managed server start up. However I'm facing the issue, that when I try to access ...:7001/oamconsole, I'm corretly redirected to the 14100-port, but then instead of getting the login screen with username and password , i'm getting the loginscreen with an error message "System error. Please re-try your action. If you continue to get this error, please contact the Administrator." and in the logs some null pointer exceptions.
    If I create the domain through config.sh everything runs fine.
    Can you post the wlst-script you were using?

    ReplyDelete
    Replies
    1. Use the WLST command configToScript() to output the domain you created using config.sh. Then, compare that output to your hand-written script.

      Delete
  2. You should be able to dictate certain conditions such as your expense, deposit, billing, reporting, and building preferences. The property management company should supply you with a detailed list of relevant information such as records, documents as well as any actions you need to take.Katy Property Management

    ReplyDelete