JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-2964

MuleMessage does not serialize attachments

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.4.3, 2.0.0-RC2
  • Fix Version/s: Bug Backlog
  • Component/s: Core: (other)
  • Labels:
    • 20-messages
  • User impact:
    High
  • Effort points:
    2
  • Log Output:
    Hide
    org.mule.umo.transformer.TransformerException: java.io.NotSerializableException: javax.activation.DataHandler (org.apache.commons.lang.SerializationException)
    at org.mule.transformers.simple.SerializableToByteArray.transform(SerializableToByteArray.java:79)
    at org.mule.transformers.simple.ObjectToByteArray.transform(ObjectToByteArray.java:45)
    at org.mule.transformers.AbstractEventAwareTransformer.doTransform(AbstractEventAwareTransformer.java:40)
    at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:250)
    at org.mule.impl.MuleMessageTestCase.testAttachmentPersistence(MuleMessageTestCase.java:39)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:175)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:120)
    at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:155)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    Show
    org.mule.umo.transformer.TransformerException: java.io.NotSerializableException: javax.activation.DataHandler (org.apache.commons.lang.SerializationException) at org.mule.transformers.simple.SerializableToByteArray.transform(SerializableToByteArray.java:79) at org.mule.transformers.simple.ObjectToByteArray.transform(ObjectToByteArray.java:45) at org.mule.transformers.AbstractEventAwareTransformer.doTransform(AbstractEventAwareTransformer.java:40) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:250) at org.mule.impl.MuleMessageTestCase.testAttachmentPersistence(MuleMessageTestCase.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:175) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:155) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225)
  • Similar Issues:
    None

Description

Trying to persist a message with attachments fails since the attachment handlers are not properly serialized, for good reason: they are not Serializable.
May need to replace them with their respective class names and reflectively recreate them on deserialization.

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MULE-2962 Misleading OptionalDataException in MuleEvent.unmarshallTransformers

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Holger Hoffstaette added a comment - 04/Feb/08 05:37 AM

Added failing test to MuleMessageTestcase.
Odd observation: apparently two messages are not "equal" any more after deserialization, even though their contents are..??

Show
Holger Hoffstaette added a comment - 04/Feb/08 05:37 AM Added failing test to MuleMessageTestcase. Odd observation: apparently two messages are not "equal" any more after deserialization, even though their contents are..??

People

  • Assignee:
    Unassigned
    Reporter:
    Holger Hoffstaette
Vote (0)
Watch (0)

Dates

  • Created:
    04/Feb/08 05:25 AM
    Updated:
    12/Nov/08 08:59 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.