Results 1 to 7 of 7

Thread: SerializationFailedException

  1. #1
    Join Date
    Jun 2011
    Posts
    29

    Default SerializationFailedException

    I have the following configuration for the global error channel:
    <si:channel id="errorChannel">
    <si:queue capacity="1" />
    <si:interceptors>
    <ref bean="GlobalErrChnlMsgInterceptor" />
    </si:interceptors>
    </si:channel>

    When a message fails to deserialize(due to changes in class/any other problem) I get an ErrorMessage in post send of the interceptor configured. The ErrorMessage carries a throwable(SerializationFailedException) which is not an instance of MessagingException.

    Hence I am not able to identify the message which failed.

    Can anyone advise?

  2. #2
    Join Date
    Jun 2011
    Posts
    29

    Default

    Will this be fixed in the next release?
    Is there a workaround I can apply?

  3. #3
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,842

    Default

    Can you provide more of your configuration as well as the stacktrace. I'm specifically interested in where the serialization exception is occurring.

    Thanks,
    Mark

  4. #4
    Join Date
    Jun 2011
    Posts
    29

    Default

    Mark the exception occurs when
    Here is my queue and publsub channels configuration:
    <si:channel id="EntityUpdatedEventQ">
    <si:queue message-store="DispacthUpdatedEventMsgStore" capacity="10" />
    </si:channel>

    <si:chain input-channel="EntityUpdatedEventQ" output-channel="EntityUpdatedEventPubSubChnl">
    <sioller fixed-rate="30000" max-messages-per-poll="1">
    <si:transactional transaction-manager="txManager" />
    </sioller>
    <si:filter ref="GlobalMsgSelector" />
    </si:chain>


    The error occurs when the poller picks a message and tries to deserialize it. The class with which the message was created was moved to a different package. Hence deserialization fails.
    The exception is given to the error channel interceptor as ErrorMessage.

    Please let me know if you need more details.

  5. #5
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,842

    Default

    Can you please create a JIRA? We can wrap the exception that occurs within the poller if necessary.

    Also, when posting code excerpts be sure to use the [ CODE ] [ /CODE ] tags (without spaces).

  6. #6
    Join Date
    Jun 2011
    Posts
    29

    Default

    thanks Mark.
    I have already created one yesterday. Here it is https://jira.springsource.org/browse/INT-2139
    Last edited by ravikr02; Sep 22nd, 2011 at 11:02 PM.

  7. #7
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    645

    Default

    Nevertheless, can you show your stacktrace?

    Artem Bilan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •