WildFly
  1. WildFly
  2. WFLY-1152

SAR MBean String attributes cannot be longer than about 3650 characters

    Details

    • Type: Feature Request Feature Request
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.0.0.Alpha1
    • Component/s: JMX
    • Security Level: Public (Everyone can see)
    • Labels:
    • Similar Issues:
      Show 10 results 

      Description

      I have a SAR. One of the MBean attributes is a String (actually, for my real use-case the value is a Properties object, but due to JIRA AS7-5336, there are other problems, but let's just go with String attribute type, because the same problem I will describe happens with that type, too)

      If the string value is longer than around 3650 characters the beginning of the string is stripped (I can't nail it down to a specific value, but its around that number, give or take 10 characters or so)

      For example, if I have this in jboss-service.xml:

      <attribute name="MyStrAttrib">
      This is a really long string.
      ...[lots of characters here]...
      It has more than 3650
      characters in it.
      </attribute>

      What my MBean setter (setMyStrAttrib(String s)) will be passed is something like "aracters in it." The characters at index 0 through ~3650 are missing, I only have the parts after it.

      In my real example, the reason why the string is so long is that its a Properties string with lots of name/value pairs. I ended up working around AS7-5336 but then I hit this issue.

        Activity

        Hide
        John Mazzitelli
        added a comment -

        see the test.sar attachment for AS7-5343 found here:

        https://issues.jboss.org/secure/attachment/12356150/test.sar

        to replicate this issue as well.

        Show
        John Mazzitelli
        added a comment - see the test.sar attachment for AS7-5343 found here: https://issues.jboss.org/secure/attachment/12356150/test.sar to replicate this issue as well.
        Hide
        RH Bugzilla Integration
        added a comment -

        John Mazzitelli <mazz@redhat.com> made a comment on bug 851268

        I've got some notes on this port work found here on the wiki:

        https://docs.jboss.org/author/display/RHQ/Hosting+RHQ+Server+in+AS7

        Show
        RH Bugzilla Integration
        added a comment - John Mazzitelli <mazz@redhat.com> made a comment on bug 851268 I've got some notes on this port work found here on the wiki: https://docs.jboss.org/author/display/RHQ/Hosting+RHQ+Server+in+AS7
        Hide
        RH Bugzilla Integration
        added a comment -

        John Mazzitelli <mazz@redhat.com> made a comment on bug 851268

        removing all the external bug tracking links - the bugzilla integration to jira is not good:

        I will add "see also" links from this BZ to these:

        https://issues.jboss.org/browse/AS7-5342
        https://issues.jboss.org/browse/AS7-5336
        https://issues.jboss.org/browse/AS7-5321
        https://issues.jboss.org/browse/AS7-5177
        https://issues.jboss.org/browse/AS7-887
        https://issues.jboss.org/browse/AS7-3199

        Show
        RH Bugzilla Integration
        added a comment - John Mazzitelli <mazz@redhat.com> made a comment on bug 851268 removing all the external bug tracking links - the bugzilla integration to jira is not good: I will add "see also" links from this BZ to these: https://issues.jboss.org/browse/AS7-5342 https://issues.jboss.org/browse/AS7-5336 https://issues.jboss.org/browse/AS7-5321 https://issues.jboss.org/browse/AS7-5177 https://issues.jboss.org/browse/AS7-887 https://issues.jboss.org/browse/AS7-3199
        Hide
        Tomaz Cerar
        added a comment -

        can you verify that this is still issue on latest master? AFAIK this was result of bug in jboss-dmr which was fixed.

        Show
        Tomaz Cerar
        added a comment - can you verify that this is still issue on latest master? AFAIK this was result of bug in jboss-dmr which was fixed.

          People

          • Assignee:
            Tomasz Adamski
            Reporter:
            John Mazzitelli
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: