This topic has 6 replies, 2 voices, and was last updated 2 weeks, 6 days ago by rohit.mahajan.

  • Author
    Posts
  • #27495
     rohit.mahajan
    Participant

    Hallo,

    I am using OpenAM-6.5.2.2 and amster-6.5.2.2 and followed below steps.
    Stood up am instance in virtual box
    Created new realms say xyz
    created new Authentication tree
    update the setting to have that trees as Authentication tree.
    Export the config.

    Now while importing the config I am getting below error.

    DEBUG [org.codehaus.groovy.tools.shell.InteractiveShellRunner] Work failed: org.forgerock.amster.org.forgerock.openam.sdk.http.ClientErrorException: 400 Bad Request: Data validation failed for the attribute, Identity Types
    org.forgerock.amster.org.forgerock.openam.sdk.http.ClientErrorException: 400 Bad Request: Data validation failed for the attribute, Identity Types
    	at org.forgerock.amster.org.forgerock.openam.sdk.http.DefaultErrorHandler.onClientError(DefaultErrorHandler.java:54)
    	at org.forgerock.amster.org.forgerock.openam.sdk.http.HttpSessionImpl.handleUnsuccessfulResponse(HttpSessionImpl.java:271)
    	at org.forgerock.amster.org.forgerock.openam.sdk.http.HttpSessionImpl.send(HttpSessionImpl.java:169)
    	at org.forgerock.amster.org.forgerock.openam.sdk.http.RequestBuilder.put(RequestBuilder.java:225)
    	at org.forgerock.amster.org.forgerock.openam.sdk.crest.CrestResourceProviderAsync.updateInstance(CrestResourceProviderAsync.java:192)
    	at org.forgerock.amster.org.forgerock.openam.sdk.crest.CrestResourceProviderAsync.update(CrestResourceProviderAsync.java:161)
    	at org.forgerock.amster.org.forgerock.openam.sdk.crest.HttpCrestResourceProvider.update(HttpCrestResourceProvider.java:162)
    	at org.forgerock.amster.org.forgerock.openam.sdk.operations.CrestOperations.update(CrestOperations.java:192)
    	at org.forgerock.amster.org.forgerock.openam.sdk.operations.CrestOperations.update(CrestOperations.java:177)
    	at org.forgerock.openam.amster.loadster.importer.GenericImporter.importEntity(GenericImporter.groovy:55)
    	at org.forgerock.openam.amster.loadster.importer.GenericImporter.importFile(GenericImporter.groovy:33)
    	at org.forgerock.openam.amster.loadster.importer.Importer.importFile(Importer.groovy:254)
    	at org.forgerock.openam.amster.loadster.importer.Importer.access$0(Importer.groovy)
    	at org.forgerock.openam.amster.loadster.importer.Importer$_importRealmsEntities_closure8$_closure16.doCall(Importer.groovy:166)
    	at org.forgerock.openam.amster.loadster.importer.Importer$_importRealmsEntities_closure8$_closure16.call(Importer.groovy)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
    	at org.forgerock.openam.amster.loadster.importer.Importer$_importRealmsEntities_closure8.doCall(Importer.groovy:165)
    	at org.forgerock.openam.amster.loadster.importer.Importer$_importRealmsEntities_closure8.call(Importer.groovy)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2068)
    	at org.forgerock.openam.amster.loadster.importer.Importer.importRealmsEntities(Importer.groovy:160)
    	at org.forgerock.openam.amster.loadster.importer.Importer.importDirectory(Importer.groovy:117)
    	at org.forgerock.openam.amster.loadster.importer.Importer.importEntities(Importer.groovy:106)
    	at org.forgerock.openam.amster.commands.ImportCommand.execute(ImportCommand.groovy:55)
    	at org.codehaus.groovy.tools.shell.Command$execute.call(Unknown Source)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    	at org.codehaus.groovy.tools.shell.Command$execute.call(Unknown Source)
    	at org.codehaus.groovy.tools.shell.Shell.execute(Shell.groovy:104)
    	at org.codehaus.groovy.tools.shell.Groovysh.super$2$execute(Groovysh.groovy)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
    	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132)
    	at org.codehaus.groovy.tools.shell.Groovysh.executeCommand(Groovysh.groovy:259)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:64)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    	at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:158)
    	at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    	at org.forgerock.openam.amster.Main$_addCommandLineWrapping_closure2.doCall(Main.groovy:92)
    	at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at org.codehaus.groovy.runtime.metaclass.ClosureMetaMethod.invoke(ClosureMetaMethod.java:84)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:251)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:71)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    	at org.codehaus.groovy.tools.shell.commands.LoadCommand$_load_closure1.doCall(LoadCommand.groovy:88)
    	at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    	at groovy.lang.Closure.call(Closure.java:414)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForLine(DefaultGroovyMethods.java:5234)
    	at org.codehaus.groovy.runtime.IOGroovyMethods.eachLine(IOGroovyMethods.java:487)
    	at org.codehaus.groovy.runtime.IOGroovyMethods.eachLine(IOGroovyMethods.java:440)
    	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachLine(ResourceGroovyMethods.java:323)
    	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachLine(ResourceGroovyMethods.java:307)
    	at org.codehaus.groovy.runtime.dgm$943.invoke(Unknown Source)
    	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
    	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    	at org.codehaus.groovy.tools.shell.commands.LoadCommand.load(LoadCommand.groovy:84)
    	at org.codehaus.groovy.tools.shell.commands.LoadCommand$load.callCurrent(Unknown Source)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    	at org.codehaus.groovy.tools.shell.commands.LoadCommand.execute(LoadCommand.groovy:73)
    	at org.codehaus.groovy.tools.shell.Command$execute.call(Unknown Source)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    	at org.codehaus.groovy.tools.shell.Shell.execute(Shell.groovy:104)
    	at org.codehaus.groovy.tools.shell.Groovysh.super$2$execute(Groovysh.groovy)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
    	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132)
    	at org.codehaus.groovy.tools.shell.Groovysh.executeCommand(Groovysh.groovy:259)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    	at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:158)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)

    I have verified Authentication.json Identitytype is has as “identityType” : [ “agent”, “user” ]. I never saying this error before.

    • This topic was modified 3 weeks ago by rohit.mahajan.
    • This topic was modified 3 weeks ago by rohit.mahajan. Reason: update amster and openam version
    #27498
     Peter Major
    Moderator

    Are you trying to use amster with –clean import?

    #27499
     rohit.mahajan
    Participant

    Yes

    #27500
     Peter Major
    Moderator

    Do you have identity data stores configured in the affected realm?

    #27501
     rohit.mahajan
    Participant

    Yes it is configured for identity data store in that realm. Also I have Authentication tree which uses LDAPDecisionnode. Will that cause any problem ?

    #27502
     Peter Major
    Moderator

    Hmm, I’ve seen this error occur when the authentication settings are imported before the identity data stores. This may be an import ordering bug in amster.

    #27504
     rohit.mahajan
    Participant

    I don’t know what was the problem, I have deleted local git repository and restored it back which made this work again.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

©2020 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?