DO NOT REPLY [Bug 22985] New: - CookieManager.addCookieFromHeader NumberFormatException

2003-09-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22985

CookieManager.addCookieFromHeader NumberFormatException

   Summary: CookieManager.addCookieFromHeader NumberFormatException
   Product: JMeter
   Version: 1.9.1
  Platform: Sun
OS/Version: Solaris
Status: NEW
  Severity: Critical
  Priority: Other
 Component: HTTP
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I am running a load test against a Oracle 9iAS application server with a 
Struts front end and BC4J back end.  As the test runs the following error 
message appears several times in the log files:

09/08/2003 8:19:01 AM WARN  - jmeter.protocol.http.sampler.HTTPSampler: For 
input string: "" java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.text.DigitList.getLong(Unknown Source)
at java.text.DecimalFormat.parse(Unknown Source)
at java.text.SimpleDateFormat.subParse(Unknown Source)
at java.text.SimpleDateFormat.parse(Unknown Source)
at java.text.DateFormat.parse(Unknown Source)
at 
org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader
(CookieManager.java:361)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSampler.saveConnectionCookies
(HTTPSampler.java:1085)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:962)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:445)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:277)
at java.lang.Thread.run(Unknown Source)

-- Also I am getting:

09/08/2003 8:03:12 AM WARN  - jmeter.protocol.http.sampler.HTTPSampler: For 
input string: "0907E2.0907E" java.lang.NumberFormatException: For input 
string: "0907E2.0907E"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at java.text.DigitList.getDouble(Unknown Source)
at java.text.DecimalFormat.parse(Unknown Source)
at java.text.SimpleDateFormat.subParse(Unknown Source)
at java.text.SimpleDateFormat.parse(Unknown Source)
at java.text.DateFormat.parse(Unknown Source)
at 
org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader
(CookieManager.java:361)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSampler.saveConnectionCookies
(HTTPSampler.java:1085)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:962)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:445)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:277)
at java.lang.Thread.run(Unknown Source)

I checked the source distribution and the exception is being raised from the 
following spot in the code (lines 293-299 of CookieManager.java):
  String key = nvp.substring(0,index);
  if (key.equalsIgnoreCase("expires")) {
try {
  String expires = nvp.substring(index+1);
  Date date = dateFormat.parse(expires);
  newCookie.setExpires(date.getTime());
} catch (ParseException pe) {}

This may be able to be fixed by either selectively catching the 
NumberFormatException or just catching Exception, since it appears that when 
there is an error you would like to do nothing.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22985] - CookieManager.addCookieFromHeader NumberFormatException

2003-09-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22985

CookieManager.addCookieFromHeader NumberFormatException





--- Additional Comments From [EMAIL PROTECTED]  2003-09-08 15:26 ---
I modified the copy of the source that I downloaded to catch 
NumberFormatException, but I am still recieving the following error message:

09/08/2003 10:44:22 AM WARN  - jmeter.protocol.http.sampler.HTTPSampler: -1 
java.lang.ArrayIndexOutOfBoundsException: -1
  at java.text.DigitList.append(Unknown Source)
  at java.text.DecimalFormat.subparse(Unknown Source)
  at java.text.DecimalFormat.parse(Unknown Source)
  at java.text.SimpleDateFormat.subParse(Unknown Source)
  at java.text.SimpleDateFormat.parse(Unknown Source)
  at java.text.DateFormat.parse(Unknown Source)
  at org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader
(CookieManager.java:361)
  at org.apache.jmeter.protocol.http.sampler.HTTPSampler.saveConnectionCookies
(HTTPSampler.java:1085)
  at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:962)
  at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample
(HTTPSampler.java:445)
  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:277)
  at java.lang.Thread.run(Unknown Source)

It appears the ParseException does not cover all possible parsing failures.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 23000] New: - I get Out of Memory error when running a JMX file that is 14 MB.

2003-09-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23000

I get Out of Memory error when running a JMX file that is 14 MB.

   Summary: I get Out of Memory error when running a JMX file that
is 14 MB.
   Product: JMeter
   Version: 1.9.1
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: HTTP
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I run JMeter from Ant.

When it reaches a Jmeter script (14 MB), it gives an out of memory error and 
dies, but it does not alert me to this. When I view the Jmeter report, I see 
that fewer samplers were run that I had expected, and that was when I 
investigated and found out about the out of memory error.

I increased the memory using the command line -- up to 512, but it was still 
giving me the same error.

Is there a limit to the size of JMeter script that can be run? If so, what is 
it?

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 23006] New: - Loop controller always executes once even when loop count is zero

2003-09-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23006

Loop controller always executes once even when loop count is zero

   Summary: Loop controller always executes once even when loop
count is zero
   Product: JMeter
   Version: 1.9.1
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Main
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Create a new thread group and add a View Results Tree as child to the thread 
group.  Create a Loop Controller as child to the thread group.  For the Loop 
Controller, set Loop Count to 0 and make sure the forever checkbox is 
unchecked.  Add an HTTP Get request as a child to the loop controller.  

Now run the test plan.  Notice that the HTTP Get request is executed for the 
first iteration of the thread group.  Subsequent iterations of the thread 
group do not invoke the loop controller's get request.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 23008] New: - Conditional Logic Controller needed

2003-09-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23008

Conditional Logic Controller needed

   Summary: Conditional Logic Controller needed
   Product: JMeter
   Version: 1.9.1
  Platform: All
OS/Version: All
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Main
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


A conditional logic controller is needed to allow for decision making at 
runtime based on regex result data stored in variables.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 23007] New: - HTTP Request Sampler should support variables in path field

2003-09-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23007

HTTP Request Sampler should support variables in path field

   Summary: HTTP Request Sampler should support variables in path
field
   Product: JMeter
   Version: 1.9.1
  Platform: All
OS/Version: All
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Main
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The HTTP Request Sampler should support variables in the path field.  This 
would allow for simple generation of dynamic URLs.  This solves certain 
problems which the current HTTP URL Re-Writing feature currently does not 
adequately address.

http://foo.com/38ds8dajsd/a.zip

could be dynamically generated by setting the path field to:

http://foo.com/${session_id}/a.zip

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]