[midPoint] Error in console when editing and saving resource.

Ivan Noris ivan.noris at evolveum.com
Thu May 15 22:22:23 CEST 2014


Hi Deepak,

I have just encountered the same behaviour, when editing resource using
Resource - (resource) - Edit / Save.

Can you please try to edit the resource using Configuration tab, i.e.
"debug pages"?

Regards,
Ivan

On 05/15/2014 03:36 PM, Deepak Natarajan wrote:
>
> Hi -
>
> I am using the latest build (git-v2.3devel-2036-g56e2b3a).
>
> After I import a resouce (an AD resource in my case), when I try to
> edit the resource and save it, I get the following error in the Admin UI :
>
> Validation error: cvc-complex-type.2.4.a: Invalid content was found
> starting with element 'clazz'. One of
> '{"http://midpoint.evolveum.com/xml/ns/public/common/common-3":class}'
> is expected.: Validation error: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'clazz'. One of
> '{"http://midpoint.evolveum.com/xml/ns/public/common/common-3":class}'
> is expected.
>
>  Validation error: cvc-complex-type.2.4.a: Invalid content was found
> starting with element 'clazz'. One of
> '{"http://midpoint.evolveum.com/xml/ns/public/common/common-3":class}'
> is expected.
> Cause:
>
> cvc-complex-type.2.4.a: Invalid content was found starting with
> element 'clazz'. One of
> '{"http://midpoint.evolveum.com/xml/ns/public/common/common-3":class}'
> is expected.
> [ HIDE ERROR STACK ]
>
> org.xml.sax.SAXParseException; cvc-complex-type.2.4.a: Invalid content
> was found starting with element 'clazz'. One of
> '{"http://midpoint.evolveum.com/xml/ns/public/common/common-3":class}'
> is expected.
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(Unknown
> Source)
> at
> com.evolveum.midpoint.common.validator.Validator.validateSchema(Validator.java:429)
> at
> com.evolveum.midpoint.common.validator.Validator.validateObjectInternal(Validator.java:330)
> at
> com.evolveum.midpoint.common.validator.Validator.validateObject(Validator.java:318)
> at
> com.evolveum.midpoint.web.page.PageBase.validateObject(PageBase.java:612)
> at
> com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit.savePerformed(PageResourceEdit.java:215)
> at
> com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit.access$500(PageResourceEdit.java:71)
> at
> com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit$6.onSubmit(PageResourceEdit.java:167)
> at
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:116)
> at
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:179)
> at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
> at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
> at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
> at
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156)
> at
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123)
> at
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:626)
> at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
>
> I have not edited anything actually - just click on "Edit Resource"
> and then Save. When I do a Test Connection on the Resource everything
> seems to be fine - green.
>
> I notice MPT has added this to the resource I imported :
>    <fetchResult>
>      
> <operation>com.evolveum.midpoint.provisioning.api.ProvisioningService.getObject</operation>
>       <status>success</status>
>       <params>
>          <entry key="oid">
>             <paramValue>29593a6a-019b-4bc9-8749-7bad43b9572b</paramValue>
>          </entry>
>          <entry key="type">
>             <unknownJavaObject>
>                <clazz>java.lang.Class</clazz>
>                <toString>class
> com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType</toString>
>             </unknownJavaObject>
>          </entry>
>          <entry key="options"/>
>       </params>
>       <context>
>          <entry key="implementationClass">
>             <unknownJavaObject>
>                <clazz>java.lang.Class</clazz>
>                <toString>class
> com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl</toString>
>             </unknownJavaObject>
>          </entry>
>       </context>
>       <token>1000000000000000756</token>
>       <partialResults>
>         
> <operation>com.evolveum.midpoint.repo.api.RepositoryService.getVersion</operation>
>          <status>success</status>
>          <params>
>             <entry key="oid">
>               
> <paramValue>29593a6a-019b-4bc9-8749-7bad43b9572b</paramValue>
>             </entry>
>             <entry key="type">
>               
> <paramValue>com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType</paramValue>
>             </entry>
>          </params>
>          <token>1000000000000000757</token>
>       </partialResults>
>    </fetchResult>
>    <operationalState>
>       <lastAvailabilityStatus>up</lastAvailabilityStatus>
>    </operationalState>
>
> I am also encountering another (more urgent problem) that lead to the
> above.
>
> I am adding a custom attribute departmentNumber to the
> AccountObjectClass schema section in the AD resource. Usually I import
> the resource, it reports the error saying "departmentNumber" was
> absent from the schema obtained from AD, and then I manually edit, add
> and save the resource configuration without any issue.
>
> Now, when I do the same, I am unable to save the resource anymore
> because it complains about the stack trace embedded in the resource
> configuration text.
>
> Thanks for any help!
>
> -- 
> Deepak Natarajan
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer
  evolveum.com
  ___________________________________________
           "Idem per idem - semper idem Vix."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20140515/a9d86b0c/attachment.htm>


More information about the midPoint mailing list