ImportDomainSecurity command fails with error "java.lang.IllegalArgumentException: Parent.....has no reference to child....".
book
Article ID: KB0087682
calendar_today
Updated On:
Products
Versions
TIBCO Runtime Agent MUI JA
-
Not Applicable
-
Description
Resolution: Description: ============ ImportDomainSecurity command fails with the following error: ******************* 2012 Jan 31 16:24:21:530 GMT +1 Error [ImportDomainSecurity] AESDKJ-0000 [main] java.lang.IllegalArgumentException: Parent "AdministratorModelImpl=com.tibco.pof.administrator.model.AdministratorModel=67a9a965_133d1c4c174_-7f6c0ae16dbc" has no reference to child "GroupingConsoleDescriptorImpl=BwManualWork=5b493914_133d1cecbfb_-7fbd0ae16dbc" expected to find URI *******************
Symptoms: ========= When using ImportDomainSecurity as below, the following error occurs:
./ImportDomainSecurity -domain test -user admin -pw admin -file "~/test/roledata.xml" ******************* 2012 Jan 31 16:24:21:530 GMT +1 Error [ImportDomainSecurity] AESDKJ-0000 [main] java.lang.IllegalArgumentException: Parent "AdministratorModelImpl=com.tibco.pof.administrator.model.AdministratorModel=67a9a965_133d1c4c174_-7f6c0ae16dbc" has no reference to child "GroupingConsoleDescriptorImpl=BwManualWork=5b493914_133d1cecbfb_-7fbd0ae16dbc" expected to find URI........................... at com.tibco.pof.entity.AbstractChildEntity.onStore(AbstractChildEntity.java:263) at com.tibco.pof.administrator.model.impl.TabDescriptorImpl.onStore(TabDescriptorImpl.java:125) at com.tibco.pof.entitystore.AbstractEntityTransaction.validate(AbstractEntityTransaction.java:283) at com.tibco.pof.entitystore.AbstractEntityTransaction.a(AbstractEntityTransaction.java:689) at com.tibco.pof.entitystore.AbstractEntityTransaction.commit(AbstractEntityTransaction.java:676) at com.tibco.pof.entity.impl.MutableDomainChildFactory.commit(MutableDomainChildFactory.java:462) at com.tibco.pof.entity.impl.MutableDomainChildFactory.commitWithDestroy(MutableDomainChildFactory.java:469) at com.tibco.pof.admindomain.impl.MutableAdminDomainImpl.commitAndDestroy(MutableAdminDomainImpl.java:519) at com.tibco.pof.util.ImportDomainSecurity.doImport(ImportDomainSecurity.java:312) at com.tibco.pof.util.ImportDomainSecurity.main(ImportDomainSecurity.java:210)
2012 Jan 31 17:22:56:487 GMT +1 Error [ImportDomainSecurity] AESDKJ-0000 [main] org.xml.sax.SAXParseException: The element type "accessControlList" must be terminated by the matching end-tag "</accessControlList>". at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.tibco.pof.util.ImportDomainSecurity.doImport(ImportDomainSecurity.java:250) at com.tibco.pof.util.ImportDomainSecurity.main(ImportDomainSecurity.java:210) *******************
Cause: ====== This error occurs because ACLs are being imported for roles and membership that does not exist in the domain.
Workaround: ========== Use the ImportDomainSecurity cmd with "-noACLs" option. Note that this command will not import ACLs so permissions have to be set for each user from Admin the GUI. For example:
ImportDomainSecurity -domain test -user admin -pw admin -file "~/test/roledata.xml" -noACLs
Issue/Introduction
ImportDomainSecurity command fails with error "java.lang.IllegalArgumentException: Parent.....has no reference to child....".