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/12/27 11:24:04 UTC

DO NOT REPLY [Bug 44142] New: - JMETER function __machineName do not work

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=44142>.
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=44142

           Summary: JMETER function __machineName do not work
           Product: JMeter
           Version: 2.3.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: michael.kless@dm-drogeriemarkt.de


Hello folks,

using function __machineName on WindowsXP with java version "1.4.2_10" do not 
work and writes errors to jmeter.log:

2007/12/27 10:58:49 ERROR - jmeter.threads.JMeterThread:  
java.lang.NullPointerException
	at org.apache.jmeter.functions.MachineName.execute(MachineName.java:66)
	at org.apache.jmeter.engine.util.CompoundVariable.execute
(CompoundVariable.java:128)
	at org.apache.jmeter.engine.util.CompoundVariable.execute
(CompoundVariable.java:97)
	at 
org.apache.jmeter.testelement.property.FunctionProperty.getStringValue
(FunctionProperty.java:85)
	at org.apache.jmeter.testbeans.TestBeanHelper.prepare
(TestBeanHelper.java:70)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:297)
	at java.lang.Thread.run(Unknown Source)


Java-Vesion:
------------
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

We are planing a distributed (Remote-)Database-Test-Plan, and we want to 
prevent sharing conflicts by using the machineName as a part of the database 
tablenames.

Please have a look to the problem.

Thanks in advance,

Michael.

-- 
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 44142] - JMETER function __machineName do not work

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=44142>.
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=44142


sebb@apache.org changed:

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




------- Additional Comments From sebb@apache.org  2008-01-03 07:22 -------
Fixed in SVN: r608515 (parsing) and r608524 (optional varname)


-- 
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 44142] - JMETER function __machineName do not work

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=44142>.
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=44142


sebb@apache.org changed:

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




------- Additional Comments From sebb@apache.org  2008-01-03 06:25 -------
Thanks for confirming that the problem is resolved.

Re-opening as the NPE is not yet fixed.

Note that the documentation *IS* currently correct - it states that the 
parameter is required.

I think it still make sense to make the variable name optional.

-- 
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 44142] - JMETER function __machineName do not work

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=44142>.
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=44142


michael.kless@dm-drogeriemarkt.de changed:

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




------- Additional Comments From michael.kless@dm-drogeriemarkt.de  2008-01-03 06:11 -------
(In reply to comment #2)
> The __machineName function parameter is currently required, so 
> ${__machineName} is not valid syntax - but it should not generate an NPE.
> ${__machineName()} is currently parsed as if there was one parameter - the 
> empty string - which is why that syntax works OK.
> I'll probably make the parameter optional.

Thank you, these hint solves our problem: ${__machineName()} works fine. My 
recommendation: Just correct the documentation of Functions and Variables 
(chapter 19 in ..\jakarta-jmeter-2.3.1\docs\usermanual\functions.html) rather 
than make the parameter optional.

Kind regards,

Michael.

-- 
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 44142] - JMETER function __machineName do not work

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=44142>.
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=44142





------- Additional Comments From sebb@apache.org  2008-01-03 05:26 -------
The __machineName function parameter is currently required, so 
${__machineName} is not valid syntax - but it should not generate an NPE.

${__machineName()} is currently parsed as if there was one parameter - the 
empty string - which is why that syntax works OK.

I'll probably make the parameter optional.

-- 
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 44142] - JMETER function __machineName do not work

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=44142>.
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=44142


sebb@apache.org changed:

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




------- Additional Comments From sebb@apache.org  2008-01-02 17:35 -------
How does the function call look in the test plan?
I've found that ${__machineName} causes the problem, but ${__machineName()} 
and ${__machineName(var)} work fine.

Obviously the NPE needs to be fixed, but hopefully you will find that one of 
the alternatives works for you.

-- 
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