[midPoint] Unable to execute Model-client-sample

Pavol Mederly mederly at evolveum.com
Tue Nov 25 14:16:18 CET 2014


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
> http://lists.evolveum.com/mailman/listinfo/midpoint

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


More information about the midPoint mailing list