pwillworth
11 years agoOccasional Contributor
testrunner.sh trying to find a DISPLAY
I am trying to migrate from SoapUI 4.5.1 to 5.1.1 in a Red Had Linux environment so our new license files will work, and encountering a problem.
When I run the same headless testrunner.sh command I used to:
/opt/SoapUI-Pro-5.1.1/bin/testrunner.sh -r -j -f/IBM/cruise/builds/CSvcBilling-WSP/testresults/soapui/CSvcBilling -Pdphost=dpbuild01 -PHermesConfigPath=/opt/SoapUI-Pro-5.1.1/hermesJMS/cfg test/soapui/CSvcBillingServiceV2-soapui-project.xml
I get an error and the process just hangs there:
================================
=
= SOAPUI_HOME = /opt/SoapUI-Pro-5.1.1
=
================================
SoapUI Pro 5.1.1 TestCase Runner
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(Unknown Source)
at javax.swing.SwingUtilities.getSharedOwnerFrame(Unknown Source)
at javax.swing.JOptionPane.getRootFrame(Unknown Source)
at javax.swing.JOptionPane.getFrameForComponent(Unknown Source)
at com.jp.protection.gui.dialogs.LicenseErrorDialog.<init>(LicenseErrorDialog.java:49)
at com.jp.protection.gui.dialogs.DefaultLicenseAdapter.<init>(DefaultLicenseAdapter.java:56)
at com.jp.protection.pub.launch.ProtectionLauncher.initLicenseListener(ProtectionLauncher.java:128)
at com.jp.protection.pub.launch.HeadlessProtectionLauncher.init(HeadlessProtectionLauncher.java:189)
at com.jp.protection.pub.launch.ProtectionLauncher.init(ProtectionLauncher.java:113)
at com.eviware.soapui.impl.protection.SoapuiProtectionSupport.a(SourceFile:235)
at com.eviware.soapui.impl.protection.SoapuiProtectionSupport.<init>(SourceFile:73)
at com.eviware.soapui.impl.protection.SoapuiProtectionSupport.<init>(SourceFile:61)
at com.eviware.soapui.impl.protection.ProtectionLicense.checkLicenseExpired(SourceFile:169)
at com.eviware.soapui.LicenseHandling.a(SourceFile:88)
at com.eviware.soapui.SoapUIProTestCaseRunner.init(SourceFile:67)
at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:62)
If I set up X-forwarding and a DISPLAY variable for it, everything runs fine, but no window comes up. I have already opened up SoapUI earlier and applied my new license file.
Is there some way to avoid this error so I can run my test suites unattended in a headless environment like I have been doing?
When I run the same headless testrunner.sh command I used to:
/opt/SoapUI-Pro-5.1.1/bin/testrunner.sh -r -j -f/IBM/cruise/builds/CSvcBilling-WSP/testresults/soapui/CSvcBilling -Pdphost=dpbuild01 -PHermesConfigPath=/opt/SoapUI-Pro-5.1.1/hermesJMS/cfg test/soapui/CSvcBillingServiceV2-soapui-project.xml
I get an error and the process just hangs there:
================================
=
= SOAPUI_HOME = /opt/SoapUI-Pro-5.1.1
=
================================
SoapUI Pro 5.1.1 TestCase Runner
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(Unknown Source)
at javax.swing.SwingUtilities.getSharedOwnerFrame(Unknown Source)
at javax.swing.JOptionPane.getRootFrame(Unknown Source)
at javax.swing.JOptionPane.getFrameForComponent(Unknown Source)
at com.jp.protection.gui.dialogs.LicenseErrorDialog.<init>(LicenseErrorDialog.java:49)
at com.jp.protection.gui.dialogs.DefaultLicenseAdapter.<init>(DefaultLicenseAdapter.java:56)
at com.jp.protection.pub.launch.ProtectionLauncher.initLicenseListener(ProtectionLauncher.java:128)
at com.jp.protection.pub.launch.HeadlessProtectionLauncher.init(HeadlessProtectionLauncher.java:189)
at com.jp.protection.pub.launch.ProtectionLauncher.init(ProtectionLauncher.java:113)
at com.eviware.soapui.impl.protection.SoapuiProtectionSupport.a(SourceFile:235)
at com.eviware.soapui.impl.protection.SoapuiProtectionSupport.<init>(SourceFile:73)
at com.eviware.soapui.impl.protection.SoapuiProtectionSupport.<init>(SourceFile:61)
at com.eviware.soapui.impl.protection.ProtectionLicense.checkLicenseExpired(SourceFile:169)
at com.eviware.soapui.LicenseHandling.a(SourceFile:88)
at com.eviware.soapui.SoapUIProTestCaseRunner.init(SourceFile:67)
at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:62)
If I set up X-forwarding and a DISPLAY variable for it, everything runs fine, but no window comes up. I have already opened up SoapUI earlier and applied my new license file.
Is there some way to avoid this error so I can run my test suites unattended in a headless environment like I have been doing?