Announcement Announcement Module
Collapse
No announcement yet.
replacing property placeholder error when configuring queue capacity Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • replacing property placeholder error when configuring queue capacity

    When I used property placeholder to configure the capacity of queue channel, SI ran error. I traced the exception track, and found the error came from PointToPointChannelParser.java. In the method 'parseQueueCapacity', the code 'Integer.valueOf(capacity)' went error for the property placeholder had not been replaced in that time.

  • #2
    Are you sure that the property-placeholder is being configured within the same application context?

    Comment


    • #3
      It's a BOOOG.

      Reproduced in sandbox:
      http://jira.springframework.org/browse/INT-570

      Comment


      • #4
        +1 is this fixed in a nightly build?

        Comment


        • #5
          Originally posted by jamesclinton View Post
          +1 is this fixed in a nightly build?
          Yes, it's fixed in latest†, please comment/reopen the issue if you can reproduce it on a nightly after 400 (latest, will do fine).

          Comment


          • #6
            Latest 1.0.1.RELEASE still broke with NumberFormatException problems. There is only 1 option next to latest in the download section...so I'm sure I have the right build.

            Looking at the source here's why it breaks:

            Code:
            private void parseQueueCapacity(BeanDefinitionBuilder builder, Element queueElement) {
            		String capacity = queueElement.getAttribute("capacity");
            		if (StringUtils.hasText(capacity)) {
            
                                    //${xxx} passed to Integer.valueOf
            			builder.addConstructorArgValue(Integer.valueOf(capacity));
            		}
            	}
            I don't seem able to re-open the JIRA issue.
            Last edited by jamesclinton; Feb 5th, 2009, 08:34 AM. Reason: update

            Comment


            • #7
              I'm sorry, I wasn't referring to the latest release, but to the latest nightly. Those are not listed in the download section, but can be downloaded from the build server or S3.

              This isn't actually linked here: http://build.springframework.org/bro...Y-402/artifact so I think we should fix that.

              Something like this for SI: https://build.springframework.org/do...test/artifacts

              For now you can just build from the source, until we get that sorted.

              Comment


              • #8
                Will do. Many thanks.

                Comment


                • #9
                  You can download the latest snapshot builds from here: http://static.springframework.org/do...hp?project=INT. They are also listed as artifacts on the build server.

                  Comment


                  • #10
                    Great. Thanks.

                    404 build worked nicely.
                    Last edited by jamesclinton; Feb 6th, 2009, 04:48 AM.

                    Comment

                    Working...
                    X