[midPoint] Unable to execute Model-client-sample

Pavol Mederly mederly at evolveum.com
Wed Nov 26 16:51:23 CET 2014


Hello Dharmendra,

invoking SOAP API on remote machine definitely works. I do this quite often.

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.

Best regards,
Pavol

> Hi
>
> 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.
>
> I am still not able to execute the client for my remote server, what 
> can be the issue?
> Is it not possible to execute the client from remote machine?
>
>
> Regards
> Dharmendra
>
>
> On Tue, Nov 25, 2014 at 7:12 PM, dharmendra parakh 
> <dharm.parakh at gmail.com <mailto:dharm.parakh at gmail.com>> wrote:
>
>     Hi
>
>     The time was not same but i tried synchronizing it and no luck.
>
>     I will try installing on my local machine or running it on the
>     same server.
>
>     It will be helpful if you can think of any other pointer...
>
>     Thanks
>
>
>     On Tue, Nov 25, 2014 at 6:46 PM, Pavol Mederly
>     <mederly at evolveum.com <mailto:mederly at evolveum.com>> wrote:
>
>         Hello Dharmendra,
>
>         I don't know. In my case, everything works (see below).
>
>         One hint for the moment: are clocks on your local machine and
>         the server synchronized?
>
>         Also, you could try to install and run midPoint locally and
>         see if that would yield any difference.
>
>         Best regards,
>         Pavol
>
>         D:\midpoint\tgit\midpoint\samples\model-client-sample>mvn
>         exec:java
>         -Dexec.mainClass="com.evolveum.midpoint.testing.model.client.sample.Main"
>         [INFO] Scanning for projects...
>         [INFO]
>         [INFO]
>         ------------------------------------------------------------------------
>         [INFO] Building midPoint Samples - Model client sample
>         3.1-SNAPSHOT
>         [INFO]
>         ------------------------------------------------------------------------
>         [INFO]
>         [INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @
>         model-client-sample ---
>         [WARNING] Warning: killAfter is now deprecated. Do you need it
>         ? Please comment on MEXEC-6.
>         Endpoint URL: http://localhost.:8080/midpoint/model/model-3
>         Got system configuration
>         Got administrator user: 00000000-0000-0000-0000-000000000002
>         Got Sailor role
>         Resources (2)
>         Users (3)
>         Tasks (3)
>         Created user guybrush, OID: 4fe991fb-f3ba-46d2-9c2c-809f84b78308
>         Fetched user guybrush:
>         Users fullName: Guybrush Threepwood
>         Created user lechuck, OID: c0c010c0-d34d-b33f-f00d-11111111ec1e
>         Changed user password
>         Changed user given name
>         Assigned roles
>         Unassigned roles
>         Found 0 requestable roles
>         Deleted user(s)
>         [INFO]
>         ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESS
>         [INFO]
>         ------------------------------------------------------------------------
>         [INFO] Total time: 9.195s
>         [INFO] Finished at: Tue Nov 25 14:12:56 CET 2014
>         [INFO] Final Memory: 40M/361M
>         [INFO]
>         ------------------------------------------------------------------------
>
>
>
>>         Hi
>>
>>         I was trying to execute
>>         com.evolveum.midpoint.testing.model.client.sample.Main.java
>>
>>         as specified here:
>>         https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample
>>
>>
>>         - I was able to clean, install and package it correctly, when
>>         i try to execute it from command line i get an error:
>>
>>
>>
>>         C:\Users\Dharmendra\git\midpoint\samples\model-client-sample>mvn
>>         exec:java
>>         -Dexec.mainClass="com.evolveum.midpoint.testing.model.client.sample.Main"
>>         [INFO] Scanning for projects...
>>         [INFO]
>>         [INFO]
>>         ------------------------------------------------------------------------
>>         [INFO] Building midPoint Samples - Model client sample
>>         3.1-SNAPSHOT
>>         [INFO]
>>         ------------------------------------------------------------------------
>>         [INFO]
>>         [INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @
>>         model-client-sample ---
>>         [WARNING] Warning: killAfter is now deprecated. Do you need
>>         it ? Please comment on MEXEC-6.
>>         Endpoint URL: http://*<server_ip>*:8080/midpoint/model/model-3
>>         javax.xml.ws.soap.SOAPFaultException: The message has expired
>>                 at
>>         org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:159)
>>                 at com.sun.proxy.$Proxy70.getObject(Unknown Source)
>>                 at
>>         com.evolveum.midpoint.testing.model.client.sample.Main.getConfiguration(Main.java:189)
>>                 at
>>         com.evolveum.midpoint.testing.model.client.sample.Main.main(Main.java:106)
>>                 at
>>         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>                 at
>>         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>                 at
>>         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>                 at java.lang.reflect.Method.invoke(Method.java:606)
>>                 at
>>         org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
>>                 at java.lang.Thread.run(Thread.java:745)
>>         Caused by: org.apache.cxf.binding.soap.SoapFault: The message
>>         has expired
>>
>>         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.
>>
>>
>>         Regards
>>         Dharmendra
>>
>>
>>
>>
>>         _______________________________________________
>>         midPoint mailing list
>>         midPoint at lists.evolveum.com  <mailto:midPoint at lists.evolveum.com>
>>         http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>         _______________________________________________
>         midPoint mailing list
>         midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>         http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

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


More information about the midPoint mailing list