Trying to run FloreantPOS

35 views
Skip to first unread message

Tom Quinn

unread,
Oct 11, 2019, 4:23:52 PM10/11/19
to AjaxSwing Community Support
Hi,
I'm trying to run FloreantPOS on AjaxSwing - not all of the app loads and I get this error:

2019/10/11 21:18:41:421 : main : Initiating new JVMProcess on RMI[8045] -- Params[[floreantpos, 8045, 28720863]]
2019/10/11 21:18:41:863 : RMI TCP Connection(1)-192.168.1.226 : [com.creamtec.ajaxswing.ClientAgentImpl] Initialization complete, instances in JVM = 1
2019/10/11 21:18:43:644 : RMI TCP Connection(1)-192.168.1.226 : [com.creamtec.ajaxswing.ClientAgentImpl$ClientAgentDelegate] Initializing the client, wait = true
2019/10/11 21:18:56:251 : Thread-3 : WARN: Failed to set look and feel or look and feel change not allowed by AjaxSwing (Exception java.lang.RuntimeException, Changing look and feel not allowed, use agent.allowLFChange=true)
java.lang.RuntimeException: Changing look and feel not allowed, use agent.allowLFChange=true
at com.creamtec.ajaxswing.laf.AjaxSwingLookAndFeel.uninitialize(AjaxSwingLookAndFeel.java:66)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:533)
at com.floreantpos.main.Application.setApplicationLook(Application.java:146)
at com.floreantpos.main.Application.start(Application.java:120)
at com.floreantpos.main.Main.main(Main.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.creamtec.ajaxswing.core.ClientAgent.loadAndRun(ClientAgent.java:885)
at com.creamtec.ajaxswing.core.ClientAgent.doRun(ClientAgent.java:838)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.creamtec.ajaxswing.core.AjaxSwingThread.doVoidMethodVoid(AjaxSwingThread.java:179)
at com.creamtec.ajaxswing.core.AjaxSwingThread.run(AjaxSwingThread.java:64)
2019/10/11 21:18:58:650 : RMI TCP Connection(1)-192.168.1.226 : [com.creamtec.ajaxswing.ClientAgentImpl$ClientAgentDelegate] Initialization of client complete
2019/10/11 21:19:00:722 : Thread-3 : [com.creamtec.ajaxswing.ClientAgentImpl$ClientAgentDelegate] Failed to load and run class com.floreantpos.main.Main (Exception java.lang.NoSuchMethodError, org.objectweb.asm.ClassWriter.<init>(Z)V)



The floreantpos code is available online. I'm adding the main jar and all the lib jars to the classpath as the webswing tutorial suggests (webswing isn't suitable for my implementation)

Please help ASAP as I need to get this working for a client.



Server OS: Windows 10 (Will be hosted on 7 eventually)
AjaxSwing version: 4.6.3
JDK version: <unknown>

Yevhen Badorov

unread,
Oct 15, 2019, 8:56:41 AM10/15/19
to AjaxSwing Community Support
Hi Tom,

One of the dependencies that your app is using is conflicting with dependencies that AjaxSwing has. It's the ASM library that is used by hibernate. Your app has a very old version of ASM that was released 14 years ago.
The only way to fix it is to update library versions in your app.

Let me know if you have any questions

Best regards,
AjaxSwing team
Reply all
Reply to author
Forward
0 new messages