Associating LDAP group name with a role results in CLIScriptException in JON 3.0.0

Solution Verified - Updated -

Issue

  • While associating an LdapGroup name with a Role in a CLI (Command line interface) script, the following exception was encountered:
Exception in thread "main" org.rhq.enterprise.client.script.CLIScriptException: javax.script.ScriptException: <a class="make_room_for_kcs" href="http://sun.org" target="_blank">sun.org</a>.mozilla.javascript.internal.WrappedException: Wrapped javax.ejb.EJBException: [Warning] javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.rhq.core.domain.resource.group.LdapGroup.name (<Unknown source>#43) in <Unknown source> at line number 43

at <a class="make_room_for_kcs" href="http://org.rhq.enterprise.client.com" target="_blank">org.rhq.enterprise.client.com</a>mands.ScriptCommand.executeScriptFile(ScriptCommand.java:270)
at <a class="make_room_for_kcs" href="http://org.rhq.enterprise.client.com" target="_blank">org.rhq.enterprise.client.com</a>mands.ScriptCommand.execute(ScriptCommand.java:101)
at org.rhq.enterprise.client.ClientMain.processArguments(ClientMain.java:519)
at org.rhq.enterprise.client.ClientMain.main(ClientMain.java:106)
  • What is causing the exception?

Environment

  • JBoss Operations Network (JON) 3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.