Bug 57183 - JMSSampler: For input string: "" java.lang.NumberFormatException (for Expiration or Priority fields)
Summary: JMSSampler: For input string: "" java.lang.NumberFormatException (for Expirat...
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: Nightly (Please specify date)
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-04 15:43 UTC by Milamber
Modified: 2014-11-04 16:08 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milamber 2014-11-04 15:43:50 UTC
If the expiration or priority fields are empty, a NFE exception occurs

Related to: Bugzilla Id: 56510

2014/11/04 14:21:57 WARN  - jmeter.protocol.jms.sampler.JMSSampler: For input string: "" java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:504)
	at java.lang.Integer.parseInt(Integer.java:527)
	at org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.java:160)
	at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:431)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258)
	at java.lang.Thread.run(Thread.java:745)
Comment 1 Milamber 2014-11-04 16:03:32 UTC

URL: http://svn.apache.org/r1636619
Log:
JMSSampler: For input string: "" java.lang.NumberFormatException (for Expiration or Priority fields)
- fix the bug
- simply some code arround getPropertyAsString() vs Constant fields for Priority and Expiration
- add documentation for these fields in User Manual (JMS Publisher and JMS Point-to-Point)
- update screenshots
- add time unit in the GUI for expiration field and indicate the range 0-9 for priority level too.
Bugzilla Id: 57183

Modified:
    jmeter/trunk/docs/images/screenshots/jms/JMS_Point-to-Point.png
    jmeter/trunk/docs/images/screenshots/jmspublisher.png
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/Utils.java
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/images/screenshots/jms/JMS_Point-to-Point.png
    jmeter/trunk/xdocs/images/screenshots/jmspublisher.png
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 2 Milamber 2014-11-04 16:08:43 UTC
URL: http://svn.apache.org/r1636625
Log:
Update screenshots in changes for next version 2.12
Bugzilla Id: 57183

Modified:
    jmeter/trunk/docs/images/screenshots/changes/2.12/04_jms_publisher.png
    jmeter/trunk/docs/images/screenshots/changes/2.12/05_jms_point_to_point.png
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/images/screenshots/changes/2.12/04_jms_publisher.png
    jmeter/trunk/xdocs/images/screenshots/changes/2.12/05_jms_point_to_point.png
Comment 3 The ASF infrastructure team 2022-09-24 20:37:58 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3472