<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Deepak,<br>
<br>
it's a bug in our parsing of XML files (a recently-added feature).
I'll have a look at it.<br>
<br>
As a temporary workaround, you can simply delete whole
<fetchResult> element, it is not necessary to be imported.<br>
<br>
Best regards,<br>
Pavol<br>
<br>
</div>
<blockquote cite="mid:537521FF.9070001@evolveum.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Deepak,<br>
<br>
I have just encountered the same behaviour, when editing resource
using Resource - (resource) - Edit / Save.<br>
<br>
Can you please try to edit the resource using Configuration tab,
i.e. "debug pages"?<br>
<br>
Regards,<br>
Ivan<br>
<br>
<div class="moz-cite-prefix">On 05/15/2014 03:36 PM, Deepak
Natarajan wrote:<br>
</div>
<blockquote cite="mid:5374C2F3.2000809@trilobytesystems.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
Hi -<br>
<br>
I am using the latest build (git-v2.3devel-2036-g56e2b3a).<br>
<br>
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 :<br>
<br>
Validation error: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'clazz'. One of '{<a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>:class}'
is expected.: Validation error: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'clazz'. One of '{<a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>:class}'
is expected.<br>
<br>
Validation error: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'clazz'. One of '{<a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>:class}'
is expected.<br>
Cause:<br>
<br>
cvc-complex-type.2.4.a: Invalid content was found starting with
element 'clazz'. One of '{<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>:class}'
is expected.<br>
[ HIDE ERROR STACK ]<br>
<br>
org.xml.sax.SAXParseException; cvc-complex-type.2.4.a: Invalid
content was found starting with element 'clazz'. One of '{<a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>:class}'
is expected.<br>
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(Unknown
Source)<br>
at
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(Unknown
Source)<br>
at
com.evolveum.midpoint.common.validator.Validator.validateSchema(Validator.java:429)<br>
at
com.evolveum.midpoint.common.validator.Validator.validateObjectInternal(Validator.java:330)<br>
at
com.evolveum.midpoint.common.validator.Validator.validateObject(Validator.java:318)<br>
at
com.evolveum.midpoint.web.page.PageBase.validateObject(PageBase.java:612)<br>
at
com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit.savePerformed(PageResourceEdit.java:215)<br>
at
com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit.access$500(PageResourceEdit.java:71)<br>
at
com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit$6.onSubmit(PageResourceEdit.java:167)<br>
at
org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:116)<br>
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:179)<br>
at
org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)<br>
at
org.apache.wicket.markup.html.form.Form.process(Form.java:938)<br>
at
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)<br>
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156)<br>
at
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123)<br>
at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:626)<br>
at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)<br>
at java.lang.reflect.Method.invoke(Unknown Source)<br>
at
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)<br>
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)<br>
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)<br>
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)<br>
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)<br>
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)<br>
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)<br>
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)<br>
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)<br>
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)<br>
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)<br>
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)<br>
<br>
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. <br>
<br>
I notice MPT has added this to the resource I imported :<br>
<fetchResult><br>
<operation>com.evolveum.midpoint.provisioning.api.ProvisioningService.getObject</operation><br>
<status>success</status><br>
<params><br>
<entry key="oid"><br>
<paramValue>29593a6a-019b-4bc9-8749-7bad43b9572b</paramValue><br>
</entry><br>
<entry key="type"><br>
<unknownJavaObject><br>
<clazz>java.lang.Class</clazz><br>
<toString>class
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType</toString><br>
</unknownJavaObject><br>
</entry><br>
<entry key="options"/><br>
</params><br>
<span style="font-weight: bold;"> <context></span><br
style="font-weight: bold;">
<span style="font-weight: bold;"> <entry
key="implementationClass"></span><br style="font-weight:
bold;">
<span style="font-weight: bold;">
<unknownJavaObject></span><br style="font-weight: bold;">
<span style="font-weight: bold;">
<clazz>java.lang.Class</clazz></span><br
style="font-weight: bold;">
<span style="font-weight: bold;">
<toString>class
com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl</toString></span><br
style="font-weight: bold;">
<span style="font-weight: bold;">
</unknownJavaObject></span><br style="font-weight:
bold;">
<span style="font-weight: bold;"> </entry></span><br
style="font-weight: bold;">
<span style="font-weight: bold;"> </context></span><br>
<token>1000000000000000756</token><br>
<partialResults><br>
<operation>com.evolveum.midpoint.repo.api.RepositoryService.getVersion</operation><br>
<status>success</status><br>
<params><br>
<entry key="oid"><br>
<paramValue>29593a6a-019b-4bc9-8749-7bad43b9572b</paramValue><br>
</entry><br>
<entry key="type"><br>
<paramValue>com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType</paramValue><br>
</entry><br>
</params><br>
<token>1000000000000000757</token><br>
</partialResults><br>
</fetchResult><br>
<operationalState><br>
<lastAvailabilityStatus>up</lastAvailabilityStatus><br>
</operationalState><br>
<br>
I am also encountering another (more urgent problem) that lead
to the above.<br>
<br>
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.<br>
<br>
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.<br>
<br>
Thanks for any help!<br>
<br>
<div class="moz-signature">-- <br>
Deepak Natarajan<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Ivan Noris
Senior Identity Management Engineer
evolveum.com
___________________________________________
"Idem per idem - semper idem Vix."
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>