You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/07/20 19:47:05 UTC

DO NOT REPLY [Bug 42945] New: - JMeter non-gui appears to require an X server

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42945>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42945

           Summary: JMeter non-gui appears to require an X server
           Product: JMeter
           Version: 2.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: jhenry@ccs.neu.edu


I upgraded my JMeter install on a linux server, which does not normally have X
running. Suddenly, JMeter refuses to start up, giving me the following error:

X connection to localhost:10.0 broken (explicit kill or server shutdown).

Nothing about my tests or the way I invoke the program has changed, so I am not
sure how to proceed. Is this a bug, or is there a new configuration switch that
is not well documented?

Steps to reproduce:

1. unpack JMeter 2.3 RC3
2. bin/jmeter -n -t test.jmx -l log.jtl

Expected result: Test executes

Actual result: Error message

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42945] - JMeter non-gui appears to require an X server

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42945>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42945


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From sebb@apache.org  2007-08-08 15:31 -------
Non-GUI mode should not require a display.

What happens with the previous version of JMeter? Does this work?

What happens if you undefine the DISPLAY variable?

You could try defining the Java property:  java.awt.headless=true and see if 
that helps.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42945] - JMeter non-gui appears to require an X server

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42945>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42945


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From sebb@apache.org  2007-08-10 11:17 -------
I've done some more checks, and been able to reproduce the problem.

It was caused by recent additions of static fields in some classes.

I've fixed it so that the headless error no longer causes problems in non-GUI 
mode - SVN updates: r564697 r564695 r564681.

The next nightly will include the fixes.

Thanks for reporting the problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42945] - JMeter non-gui appears to require an X server

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42945>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42945





------- Additional Comments From jhenry@ccs.neu.edu  2007-08-09 05:34 -------
Both of your suggestions work. 

For what it's worth, JMeter 2.2 has no problem running in non-GUI mode without
taking those measures.

I modified the JMeter startup script to automatically define the headless
property if running in non-GUI mode, which works well enough for me:

for i in "$@"
do
  if [ "$i" == "-n" ];
  then
    ARGS="$ARGS -Djava.awt.headless=true"
  fi
done

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org