<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Dharmendra,</div><div><br></div><div>We have tried to replicate the issue with running model-client-sample on local network (not localhost) and we have found, that</div><div>there is a problem, when times on server and client machines are not synchronized (e.g., different time-zones setting on server and client machines). </div><div>The difference between times does not <span style="font-size: 12pt;">need to be large, even gap above 60 seconds will cause the problem. Is it possible, that the time on machines in your</span></div><div>environment is not synchronized? </div><div><br></div><div>Here is an example of request from client and response from server. This information can be found in <model-client-sample-dir>/target/client.log.</div><div>The request from client was issued 11:13 while the time on server was only 11:03. However, it does not matter, if the time on client is</div><div>higher or lower than the time on server. Here are the messages:</div><div><br></div><div>=================================================================================</div><div><p style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-family: 'lucida console', sans-serif;">ID: 1</span><br><span style="font-family: 'lucida console', sans-serif;">Address: http://192.168.1.10:8080/midpoint/model/model-3</span><br><span style="font-family: 'lucida console', sans-serif;">Encoding: UTF-8</span><br><span style="font-family: 'lucida console', sans-serif;">Http-Method: POST</span><br><span style="font-family: 'lucida console', sans-serif;">Content-Type: text/xml</span><br><span style="font-family: 'lucida console', sans-serif;">Headers: {Accept=[*/*], SOAPAction=[""]}</span><br><span style="font-family: 'lucida console', sans-serif;">Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="1"><wsse:UsernameToken wsu:Id="UsernameToken-ebac59a1-d4ea-4aa8-9cd4-c8eb3ec4951f"><wsse:Username>administrator</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">PpBDA+pV5p+TryKVDH92lAjLCu4=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">vBUKOnSTDlRxYVP3IiyvOg==</wsse:Nonce><wsu:Created>2014-11-28T10:13:27.108Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><soap:Body><ns8:getObject xmlns:ns10="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3" xmlns:ns11="http://www.w3.org/2000/09/xmldsig#" xmlns:ns12="http://www.w3.org/2001/04/xmlenc#" xmlns:ns13="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:ns14="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3" xmlns:ns15="http://midpoint.evolveum.com/xml/ns/public/common/fault-3" xmlns:ns16="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:ns2="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:ns3="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:ns4="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ns5="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:ns6="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-3" xmlns:ns7="http://midpoint.evolveum.com/xml/ns/model/workflow/process-instance-state-3" xmlns:ns8="http://midpoint.evolveum.com/xml/ns/public/model/model-3" xmlns:ns9="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"><ns8:objectType>ns3:SystemConfigurationType</ns8:objectType><ns8:oid>00000000-0000-0000-0000-000000000001</ns8:oid><ns8:options/></ns8:getObject></soap:Body></soap:Envelope></span><br><span style="font-family: 'lucida console', sans-serif;">--------------------------------------</span><br><span style="font-family: 'lucida console', sans-serif;">2014-11-28 11:13:27,163 [com.evolveum.midpoint.testing.model.client.sample.Main.main()] INFO (o.a.c.s.modelService.modelPort.modelPortType): Inbound Message</span><br><span style="font-family: 'lucida console', sans-serif;">----------------------------</span><br><span style="font-family: 'lucida console', sans-serif;">ID: 1</span><br><span style="font-family: 'lucida console', sans-serif;">Response-Code: 500</span><br><span style="font-family: 'lucida console', sans-serif;">Encoding: UTF-8</span><br><span style="font-family: 'lucida console', sans-serif;">Content-Type: text/xml;charset=UTF-8</span><br><span style="font-family: 'lucida console', sans-serif;">Headers: {connection=[close], Content-Length=[357], content-type=[text/xml;charset=UTF-8], Date=[Fri, 28 Nov 2014 10:03:43 GMT], Server=[Apache-Coyote/1.1]}</span><br><span style="font-family: 'lucida console', sans-serif;">Payload: <?xml version='1.0' encoding='UTF-8'?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:MessageExpired</faultcode><faultstring>The message has expired</faultstring></soap:Fault></soap:Body></soap:Envelope></span><br><span style="font-family: 'lucida console', sans-serif;">--------------------------------------</span></p><p style="margin: 0px;" data-mce-style="margin: 0px;">=================================================================================</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Can you please take a look inside the .log file and tell us, if this is the case? If it is not, can you still provide the messages found in the .log</p><p style="margin: 0px;" data-mce-style="margin: 0px;">(with local times on client and server machines during request), so <span style="font-size: 12pt;">we could further investigate this issue?</span></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Best regards,</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Erik Suta</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Pavol Mederly" <mederly@evolveum.com><br><b>To: </b>midpoint@lists.evolveum.com<br><b>Sent: </b>Wednesday, November 26, 2014 4:51:23 PM<br><b>Subject: </b>Re: [midPoint] Unable to execute Model-client-sample<br><div><br></div><div class="moz-cite-prefix">Hello Dharmendra,<br> <br> invoking SOAP API on remote machine definitely works. I do this quite often.<br> <br> For the time being, I have no idea why it does not work in your case. If I get some idea, I'll write you back.<br> <br> Best regards,<br> Pavol<br> <br></div><blockquote cite="mid:CAKvVWqypcR28LH4ne-ePAjmJA79FGHgvrKUuyTWCJRA4Ea99=w@mail.gmail.com"><div dir="ltr">Hi<div><br></div><div>I tried installing the midpoint on my machine and it worked, similarly i executed model client from my server and it worked there as well.</div><div><br></div><div>I am still not able to execute the client for my remote server, what can be the issue?</div><div>Is it not possible to execute the client from remote machine?</div><div><br></div><div><br></div><div>Regards</div><div>Dharmendra</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 7:12 PM, dharmendra parakh <span dir="ltr"><<a href="mailto:dharm.parakh@gmail.com" target="_blank" data-mce-href="mailto:dharm.parakh@gmail.com">dharm.parakh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0
.8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div dir="ltr">Hi<div><br></div><div>The time was not same but i tried synchronizing it and no luck.</div><div><br></div><div>I will try installing on my local machine or running it on the same server.</div><div><br></div><div>It will be helpful if you can think of any other pointer...</div><div><br></div><div>Thanks</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 6:46 PM, Pavol Mederly <span dir="ltr"><<a href="mailto:mederly@evolveum.com" target="_blank" data-mce-href="mailto:mederly@evolveum.com">mederly@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0
.8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div><div>Hello Dharmendra,<br> <br> I don't know. In my case, everything works (see below).<br> <br> One hint for the moment: are clocks on your local machine and the server synchronized?<br> <br> Also, you could try to install and run midPoint locally and see if that would yield any difference.<br> <br> Best regards,<br> Pavol<br> <br> D:\midpoint\tgit\midpoint\samples\model-client-sample>mvn exec:java -Dexec.mainClass="com.evolveum.midpoint.testing.model.client.sample.Main"<span><br> [INFO] Scanning for projects...<br> [INFO]<br> [INFO] ------------------------------------------------------------------------<br> [INFO] Building midPoint Samples - Model client sample 3.1-SNAPSHOT<br> [INFO] ------------------------------------------------------------------------<br> [INFO]<br> [INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @ model-client-sample ---<br> [WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.<br> </span> Endpoint URL: <a href="http://localhost.:8080/midpoint/model/model-3" target="_blank" data-mce-href="http://localhost.:8080/midpoint/model/model-3">http://localhost.:8080/midpoint/model/model-3</a><br> Got system configuration<br> Got administrator user: 00000000-0000-0000-0000-000000000002<br> Got Sailor role<br> Resources (2)<br> Users (3)<br> Tasks (3)<br> Created user guybrush, OID: 4fe991fb-f3ba-46d2-9c2c-809f84b78308<br> Fetched user guybrush:<br> Users fullName: Guybrush Threepwood<br> Created user lechuck, OID: c0c010c0-d34d-b33f-f00d-11111111ec1e<br> Changed user password<br> Changed user given name<br> Assigned roles<br> Unassigned roles<br> Found 0 requestable roles<br> Deleted user(s)<br> [INFO] ------------------------------------------------------------------------<br> [INFO] BUILD SUCCESS<br> [INFO] ------------------------------------------------------------------------<br> [INFO] Total time: 9.195s<br> [INFO] Finished at: Tue Nov 25 14:12:56 CET 2014<br> [INFO] Final Memory: 40M/361M<br> [INFO] ------------------------------------------------------------------------<br> <br> <br> <br></div><blockquote><div><div><div dir="ltr">Hi<div><br></div><div>I was trying to execute com.evolveum.midpoint.testing.model.client.sample.Main.java</div><div><br></div><div>as specified here: <a href="https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample" target="_blank" data-mce-href="https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample">https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample</a></div><div><br></div><div><br></div><div>- I was able to clean, install and package it correctly, when i try to execute it from command line i get an error: </div><div><br></div><div><br></div><div><br></div><div><div>C:\Users\Dharmendra\git\midpoint\samples\model-client-sample>mvn exec:java -Dexec.mainClass="com.evolveum.midpoint.testing.model.client.sample.Main"</div><div>[INFO] Scanning for projects...</div><div>[INFO]</div><div>[INFO] ------------------------------------------------------------------------</div><div>[INFO] Building midPoint Samples - Model client sample 3.1-SNAPSHOT</div><div>[INFO] ------------------------------------------------------------------------</div><div>[INFO]</div><div>[INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @ model-client-sample ---</div><div>[WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.</div><div>Endpoint URL: <a>http://</a><b><server_ip></b>:8080/midpoint/model/model-3</div></div><div><div>javax.xml.ws.soap.SOAPFaultException: The message has expired</div><div> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:159)</div><div> at com.sun.proxy.$Proxy70.getObject(Unknown Source)</div><div> at com.evolveum.midpoint.testing.model.client.sample.Main.getConfiguration(Main.java:189)</div><div> at com.evolveum.midpoint.testing.model.client.sample.Main.main(Main.java:106)</div><div> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</div><div> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</div><div> at java.lang.reflect.Method.invoke(Method.java:606)</div><div> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)</div><div> at java.lang.Thread.run(Thread.java:745)</div><div>Caused by: org.apache.cxf.binding.soap.SoapFault: The message has expired</div></div><div><br></div><div>Can anybody assist me with this. I am executing the code from my local machine and midpoint is installed on my server which is accessible from my machine.</div><div><br></div><div><br></div><div>Regards</div><div>Dharmendra</div><div><br></div><div><br></div></div><br><fieldset></fieldset><br></div></div><pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank" data-mce-href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank" data-mce-href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre></blockquote><br></div><br> _______________________________________________<br> midPoint mailing list<br> <a href="mailto:midPoint@lists.evolveum.com" target="_blank" data-mce-href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br> <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank" data-mce-href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br> <br></blockquote></div><br></div></div></div></blockquote></div><br></div><br><fieldset class="mimeAttachmentHeader"></fieldset><br><pre>_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank" data-mce-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" target="_blank" data-mce-href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre></blockquote><br><br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>http://lists.evolveum.com/mailman/listinfo/midpoint<br></div><div><br></div></div></body></html>