FitNesse on realease 6.1

174 views
Skip to first unread message

Pedro Pozzi Ferreira

unread,
Nov 9, 2018, 1:56:51 PM11/9/18
to iDempiere
Hi community!

I was working with a clean instalation of the branch 6.1 using maven and Java 10 from Oracle.
It was evertything working fine, until I decide to use FitNesse to do some tests. I've followed all the steps on the wiki:


But, when I clicked on the test button, I was confronted with the following error:

Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: fitnesse/client/FitServerServletInvoker has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)


Then I decided to Update the fitnesse jar file in the fitnesse directory inside the iDempiere workspace. I've downloaded the latest release of FitNesse (20180127), available in the following link:


Well, I renamed the jar to "fitnesse.jar" and runned the service. The FitNesse application runned well, but when I tried to run the "Two Minute Exampe test" it showed me the following error:

Error SLiM server died before Header Message could be read.

And, the fitnesse/src/fitnesse.responders.run/SocketDealer.java was broken. It appears to be because the SocketDealer.class, SocketSeeker.class, and SocketDone.class no longer exists in the new versions of FitNesse.





Right now I'm working to fix that by reading the change logs of FitNesse. Have any of you guys got familliars errors before, or have some idea of an easier way to fix that?


Regards,

Pedro.

Hiep Lq

unread,
Nov 10, 2018, 4:53:57 AM11/10/18
to idem...@googlegroups.com
i'm not test but maybe you try bellow change

at step "Start the idempiere fitnesse server"
go to jdk tab and choose jdk10


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/a6cb854d-db97-4d57-a8fe-872dc11ec7b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam

Pedro Pozzi Ferreira

unread,
Nov 12, 2018, 7:47:19 AM11/12/18
to iDempiere
Greetings Hiep!

The entire workspace is already in JDK 10



I'm reading the FitNesse changelogs trying to figure out the changes between version

20110923 and  20180127, because the jar  20180127 worked in JDK 10, but it brokes the SocketDealer.java class


Att,
Pedro Pozzi Ferreira.

Reply all
Reply to author
Forward
0 new messages