Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove integer conversion in JmsListenerContainerParser [SPR-10986] #15614

Closed
spring-projects-issues opened this issue Oct 14, 2013 · 0 comments
Assignees
Labels
in: messaging Issues in messaging modules (jms, messaging) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Oct 14, 2013

Joakim Recht opened SPR-10986 and commented

#14187 fixed the jms schema to allow non-integer values in xml. However, the namespace parser still converts the input to Integer for pre-fetch and receive-timeout. This means that you cannot use EL or property placeholders to configure the value:

Caused by: java.lang.NumberFormatException: For input string: "#{1*1000}"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:481)
	at java.lang.Integer.<init>(Integer.java:677)
	at org.springframework.jms.config.JmsListenerContainerParser.parseContainer(JmsListenerContainerParser.java:157)
	at org.springframework.jms.config.AbstractListenerContainerParser.parseListener(AbstractListenerContainerParser.java:146)

Affects: 3.2.4

Referenced from: commits ccafccb, d48b9b1

Backported to: 3.2.6

@spring-projects-issues spring-projects-issues added type: bug A general bug in: messaging Issues in messaging modules (jms, messaging) status: backported An issue that has been backported to maintenance branches labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.0 GA milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants