[ https://issues.apache.org/jira/browse/NIFI-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andre updated NIFI-1154: ------------------------ Fix Version/s: 0.7.1 > testResizeImage fails under certain conditions > ----------------------------------------------- > > Key: NIFI-1154 > URL: https://issues.apache.org/jira/browse/NIFI-1154 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions > Environment: windows client. ssh'ed into linux box. DISPLAY set, but > no X Server > Reporter: Tony Kurc > Priority: Minor > Fix For: 1.1.0, 0.7.1 > > > {noformat} > Running org.apache.nifi.processors.image.TestResizeImage > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.202 sec <<< > FAILURE! - in org.apache.nifi.processors.image.TestResizeImage > testResize(org.apache.nifi.processors.image.TestResizeImage) Time elapsed: > 2.202 sec <<< FAILURE! > java.lang.AssertionError: java.awt.AWTError: Can't connect to X11 window > server using 'localhost:10.0' as the value of the DISPLAY variable. > at > org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:227) > at > org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:186) > at > org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:181) > at > org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:176) > at > org.apache.nifi.util.StandardProcessorTestRunner.run(StandardProcessorTestRunner.java:171) > at > org.apache.nifi.processors.image.TestResizeImage.testResize(TestResizeImage.java:44) > Caused by: java.awt.AWTError: Can't connect to X11 window server using > 'localhost:10.0' as the value of the DISPLAY variable. > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > at > sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65) > at > sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115) > at java.security.AccessController.doPrivileged(Native Method) > at > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:264) > at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102) > at > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81) > at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:264) > at java.awt.Toolkit$2.run(Toolkit.java:860) > at java.awt.Toolkit$2.run(Toolkit.java:855) > at java.security.AccessController.doPrivileged(Native Method) > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854) > at java.awt.Image.getScaledInstance(Image.java:178) > at > org.apache.nifi.processors.image.ResizeImage$1.process(ResizeImage.java:171) > at > org.apache.nifi.util.MockProcessSession.write(MockProcessSession.java:667) > at > org.apache.nifi.util.MockProcessSession.write(MockProcessSession.java:59) > at > org.apache.nifi.processors.image.ResizeImage.onTrigger(ResizeImage.java:152) > at > org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) > at > org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:277) > at > org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:271) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Results : > Failed tests: > TestResizeImage.testResize:44 java.awt.AWTError: Can't connect to X11 > window server using 'localhost:10.0' as the value of the DISPLAY variable. > {noformat} > test succeeds after an unset of DISPLAY -- This message was sent by Atlassian JIRA (v6.3.4#6332)