Problem NoClassDefFoundError: javafx/embed/swing/JFXPanel running gui mode with docker image

1,118 views
Skip to first unread message

javier.da...@gmail.com

unread,
Jul 26, 2017, 10:37:46 AM7/26/17
to codename-taurus
I am running gui mode in taurus docker image. but I get this error

2017-07-25 22:54:36,939 WARN o.a.j.v.ViewResultsFullVisualizer: Error loading result renderer: org.apache.jmeter.visualizers.RenderInBrowser
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_131]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_131]
at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.createComboRender(ViewResultsFullVisualizer.java:364) [ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.createLeftPanel(ViewResultsFullVisualizer.java:332) [ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.init(ViewResultsFullVisualizer.java:253) [ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.<init>(ViewResultsFullVisualizer.java:154) [ApacheJMeter_components.jar:3.2 r1790748]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_131]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [?:1.8.0_131]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.8.0_131]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [?:1.8.0_131]
at java.lang.Class.newInstance(Class.java:442) [?:1.8.0_131]
at org.apache.jmeter.gui.GuiPackage.getGuiFromCache(GuiPackage.java:399) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.getGui(GuiPackage.java:245) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.getGui(GuiPackage.java:216) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:145) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:121) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:113) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:517) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:194) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:230) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.JMeter.startGui(JMeter.java:390) [ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.JMeter.start(JMeter.java:519) [ApacheJMeter_core.jar:3.2 r1790748]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at org.apache.jmeter.NewDriver.main(NewDriver.java:248) [ApacheJMeter.jar:3.2 r1790748]
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_131]
... 27 more

it loooks like something is missing ini java configuration. 

Andrey Pokhilko

unread,
Jul 26, 2017, 11:09:25 AM7/26/17
to codenam...@googlegroups.com

But there's no gui in Docker, so it won't open GUI for you...

--

Andrey


On 07/26/2017 05:37 PM, javier.da...@gmail.com wrote:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/406e4b5d-5eb5-4665-8af1-770595d9191a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Javier Santos

unread,
Jul 26, 2017, 11:43:41 AM7/26/17
to codename-taurus, Andrey....@contractor.ca.com
Hi Andrey 

Well there are several option to use Gui with docker, example sharing X11 socket or using  VNC.

Maybe taurus Image doesn't have support to that, and I understand. But I thing the error I got is cause by something is missing with javafx. 

Thanks for you reply.  

Javier Santos

unread,
Jul 26, 2017, 1:03:47 PM7/26/17
to codename-taurus
I have a mistake in the subject .  

I forgot to say that I want running jmeter in gui mode with taurus into docker image

Andrey Pokhilko

unread,
Jul 27, 2017, 4:02:52 AM7/27/17
to codenam...@googlegroups.com

There is no way to use Taurus Docker image with JMeter GUI, sorry.

--

Andrey


On 07/26/2017 08:03 PM, Javier Santos wrote:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages