Home Forums Integration Messages Are we doing something wrong here?

Viewing 8 reply threads
  • Author
    Posts
    • #6928
      Rob DudaRob Duda
      Participant

      We have come across something with format-message that we believe is a bug but wanted to ensure that we are not doing something that the framework considers incorrect. The problem occurs when a JSON format message contains a nested collection of messages. The format-message function will throw a class cast exception any time this structure exists.

       

      0
      Attachments:
      You must be logged in to view attached files.
    • #6936
      Owen PondOwen Pond
      Participant

      Just taking a quick look; it looks like you’re adding

      to the “topObject” collection, without it being part of a message definition.

      Let us know if that was the problem.

       

      0
    • #6944
      Rob DudaRob Duda
      Participant

      No, value is part of topObject. I attached the message definition below. I also added the capture of the hints at that part of the code. I don’t know why my formatting above had the white-space stripped out, makes it hard to read.

      0
      Attachments:
      You must be logged in to view attached files.
    • #6953
      Owen PondOwen Pond
      Participant

      When I format the code I still see this…

      And if I just execute the 1st level (message) function the output is this

      Which has a pair in the middle of the resulting transfer object. Is that what you are expecting?

      I’ve attached a screen shot of the formatted code.

       

      0
      Attachments:
      You must be logged in to view attached files.
    • #6963
      Rob DudaRob Duda
      Participant

      The message is intended to reproduce the actual problem we have experienced and was just thrown together so I could post the question. The JSON should look like so:

      If I just tried parse-message on the above JSON and it indeed parses into a TO:

      So why does the framework throw the exception if I try to use format-message?

       

      0
    • #6971
      Rob DudaRob Duda
      Participant

      I do see your point though, here is the correct code for that message but I do end up with the same exception from the framework:

      0
      Attachments:
      You must be logged in to view attached files.
    • #6987
      Owen PondOwen Pond
      Participant

      I was able to produce your expected JSON result using the following message definition

      And consuming it with the following

      I’ll follow up a bit later with more explanation if this code works for you.

      0
    • #7009
      Rob DudaRob Duda
      Participant

      I do not get the same result using your code above. Perhaps the problem is fixed in your version of the product. If that’s the case I’ll have someone work with support to see if there is a hotfix we can get before our next release. November-ish timeframe.

      0
      Attachments:
      You must be logged in to view attached files.
    • #7019
      Owen PondOwen Pond
      Participant

      It turns out that is the case. There was a fix made that would handle this case and is currently included in 7.2

      Support will be able to help you request a hotfix.

      1
Viewing 8 reply threads
  • You must be logged in to reply to this topic.