<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000"><br>
Hi Pavol / Ivan -<br>
<br>
I've just tested this with the latest build, and everything is back to 
normal :)<br>
<br>
Thanks for the fix.<br>
<br>
BR/Deepak<br>
<br>
<blockquote style="border: 0px none;" 
cite="mid:5375B314.9060003@evolveum.com" type="cite">
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="mederly@evolveum.com" photoname="Pavol Mederly" 
src="cid:part1.00020609.02060805@trilobytesystems.com" 
name="compose-unknown-contact.jpg" height="25px" width="25px"></div>   <div
 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:mederly@evolveum.com" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Pavol Mederly</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">May 16, 2014 at 
8:41 AM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
    <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>
    
    <br>
  <div>_______________________________________________<br>midPoint 
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br><a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br></div></div>
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="ivan.noris@evolveum.com" photoname="Ivan Noris" 
src="cid:part1.00020609.02060805@trilobytesystems.com" 
name="compose-unknown-contact.jpg" height="25px" width="25px"></div>   <div
 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:ivan.noris@evolveum.com" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Ivan Noris</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">May 15, 2014 at 
10:22 PM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
    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>
    
    <br>
    <div>-- <br>  Ing. Ivan Noris<br>  Senior Identity Management 
Engineer<br>  evolveum.com<br>  
___________________________________________<br>           "Idem per idem
 - semper idem Vix."<br></div>
  <div>_______________________________________________<br>midPoint 
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br><a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br></div></div>
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="dnataraj@trilobytesystems.com" photoname="Deepak 
Natarajan" src="cid:part1.00020609.02060805@trilobytesystems.com" 
name="compose-unknown-contact.jpg" height="25px" width="25px"></div>   <div
 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" 
href="mailto:dnataraj@trilobytesystems.com" style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Deepak Natarajan</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">May 15, 2014 at 
3:36 PM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
  <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" 
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" 
class="moz-txt-link-rfc2396E">"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" 
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" 
class="moz-txt-link-rfc2396E">"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" 
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" 
class="moz-txt-link-rfc2396E">"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" 
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" 
class="moz-txt-link-rfc2396E">"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" 
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" 
class="moz-txt-link-rfc2396E">"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>
</blockquote>
<br>
<div class="moz-signature">-- <br>Deepak Natarajan<br>


<br>


Trilobyte Systems ApS<br>


Falkoner Alle 1, 3<br>


2000 Frederiksberg<br>


Denmark<br>


+45 29375068<br>


<br>


</div>
</body></html>