A amaxco Member Licensed User Longtime User Aug 23, 2017 #1 Hi, The following error occurred when I tried the above library Waiting for debugger to connect... Program started. Error occurred on line: 58 (Main) java.lang.IllegalArgumentException: EventType "javafx.event.EventType@6bb4a9"with parent "EVENT" already exists at javafx.event.EventType.register(EventType.java:186) at javafx.event.EventType.<init>(EventType.java:128) at javafx.event.EventType.<init>(EventType.java:83) at jfxtras.labs.scene.control.gauge.GaugeModel$GaugeModelEvent.<init>(GaugeModel.java:760) at jfxtras.labs.scene.control.gauge.GaugeModel.fireGaugeModelEvent(GaugeModel.java:159) at jfxtras.labs.scene.control.gauge.GaugeModel.setThreshold(GaugeModel.java:333) at jfxtras.labs.scene.control.gauge.Gauge.setThreshold(Gauge.java:633) at anywheresoftware.b4j.agraham.jfxtrascontrols.BatteryWrapper$LcdWrapper.innerInitialize(BatteryWrapper.java:566) at anywheresoftware.b4j.objects.NodeWrapper.Initialize(NodeWrapper.java:76) at b4j.example.main._appstart(main.java:243) 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:497) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:613) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:231) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159) 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:497) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93) at anywheresoftware.b4a.BA.raiseEvent(BA.java:77) at b4j.example.main.start(main.java:38) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326) at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$149(WinApplication.java:191) at java.lang.Thread.run(Thread.java:745)
Hi, The following error occurred when I tried the above library Waiting for debugger to connect... Program started. Error occurred on line: 58 (Main) java.lang.IllegalArgumentException: EventType "javafx.event.EventType@6bb4a9"with parent "EVENT" already exists at javafx.event.EventType.register(EventType.java:186) at javafx.event.EventType.<init>(EventType.java:128) at javafx.event.EventType.<init>(EventType.java:83) at jfxtras.labs.scene.control.gauge.GaugeModel$GaugeModelEvent.<init>(GaugeModel.java:760) at jfxtras.labs.scene.control.gauge.GaugeModel.fireGaugeModelEvent(GaugeModel.java:159) at jfxtras.labs.scene.control.gauge.GaugeModel.setThreshold(GaugeModel.java:333) at jfxtras.labs.scene.control.gauge.Gauge.setThreshold(Gauge.java:633) at anywheresoftware.b4j.agraham.jfxtrascontrols.BatteryWrapper$LcdWrapper.innerInitialize(BatteryWrapper.java:566) at anywheresoftware.b4j.objects.NodeWrapper.Initialize(NodeWrapper.java:76) at b4j.example.main._appstart(main.java:243) 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:497) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:613) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:231) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159) 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:497) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93) at anywheresoftware.b4a.BA.raiseEvent(BA.java:77) at b4j.example.main.start(main.java:38) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326) at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$149(WinApplication.java:191) at java.lang.Thread.run(Thread.java:745)
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2017 #2 Make it easier for us to help you. Post the relevant code. Upvote 0
A amaxco Member Licensed User Longtime User Aug 25, 2017 #3 Erel said: Make it easier for us to help you. Post the relevant code. Click to expand... I am afraid I did not understand what you mean Upvote 0
Erel said: Make it easier for us to help you. Post the relevant code. Click to expand... I am afraid I did not understand what you mean
A amaxco Member Licensed User Longtime User Aug 25, 2017 #4 This error was generated when testing @agraham library https://www.b4x.com/android/forum/threads/jfxtrasgauges-library.35411/#content. I think another member encountered a similar error and his post has not been resolved yet. https://www.b4x.com/android/forum/threads/jfxtrasgaugesdemo-has-some-error.67762/ Upvote 0
This error was generated when testing @agraham library https://www.b4x.com/android/forum/threads/jfxtrasgauges-library.35411/#content. I think another member encountered a similar error and his post has not been resolved yet. https://www.b4x.com/android/forum/threads/jfxtrasgaugesdemo-has-some-error.67762/
Erel B4X founder Staff member Licensed User Longtime User Aug 27, 2017 #5 Use the newer jGuages library: https://www.b4x.com/android/forum/threads/jgauges.70538/ Upvote 0