Problem in setting up Client Simulator

66 views
Skip to first unread message

Alex

unread,
Jun 7, 2016, 1:56:31 PM6/7/16
to jPOS Users
Hi All, 

I am trying to set up client simulator.

I followed the steps given at http://jpos.org/blog/2013/07/setting-up-the-client-simulator/ and then executed the tasks gradlew installApp

when i execute q2.bat i am getting the following error

<log realm="client-simulator" at="2016-06-07T19:45:52.221" lifespan="92ms">
  <error>
    <exception name="org.jpos.simulator.TestRunner.getPersist()Lorg/jdom/Element;">
    java.lang.NoSuchMethodError: org.jpos.simulator.TestRunner.getPersist()Lorg/jdom/Element;
at org.jpos.simulator.TestRunner.initBSH(TestRunner.java:314)
at org.jpos.simulator.TestRunner.run(TestRunner.java:70)
at java.lang.Thread.run(Unknown Source)
    </exception>
  </error>
</log>

I am not sure why this error occurs, am i missing any steps ?

Regards,
Alex

Alejandro Revilla

unread,
Jun 7, 2016, 4:27:05 PM6/7/16
to jPOS Users
Looks like you're running off an old JVM. Try upgrading to 1.8.

--

Alex

unread,
Jun 8, 2016, 2:19:41 AM6/8/16
to jPOS Users

Hi Alejandro,

i am running on Java 1.8. 64bit machine. 

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

Regards,
Alex

chhil

unread,
Jun 8, 2016, 3:44:31 AM6/8/16
to jPOS Users

I could reproduce your error.
You need to use a newer client sim instead of the one referenced in  http://jpos.org/blog/2013/07/setting-up-the-client-simulator/ 

I tried by adding the following to the dependencies and it worked.

compile group:'org.jpos.ee', name:'jposee-client-simulator', version:'2.2.1-SNAPSHOT'


-chhil

Alex

unread,
Jun 8, 2016, 2:24:24 PM6/8/16
to jPOS Users
Hi Chhil,

Got it working, thanks for your help.

Regards,
Alex
Reply all
Reply to author
Forward
0 new messages