Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11377

Classloading issue: org.richfaces.application.push.impl.jms.RequestImpl.serializeMessage(Topic, Message) fails

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Final
    • Fix Version/s: 4.1.0.Milestone1
    • Component/s: component-push/poll
    • Labels:
      None
    • Environment:

      JBoss AS 6, HornetQ, Richfaces-4.0.0.Final

    • Steps to Reproduce:
      Hide

      1. In a web application add Push component to a page and start to consume to any Topic by accessing that page.
      2. Create a Serializable class in the web application.
      2. Populate & Publish that Serializable object from an external client to that topic so that the resulting message can be consumed by the Push Component.
      3. you will see JMSException thrown from org.richfaces.application.push.impl.jms.RequestImpl.serializeMessage(Topic, Message)

      Show
      1. In a web application add Push component to a page and start to consume to any Topic by accessing that page. 2. Create a Serializable class in the web application. 2. Populate & Publish that Serializable object from an external client to that topic so that the resulting message can be consumed by the Push Component. 3. you will see JMSException thrown from org.richfaces.application.push.impl.jms.RequestImpl.serializeMessage(Topic, Message)
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Create a jar containing your Serializable class and put that at any upper location in the class-loading hierarchy of your server e.g. jboss-6.0.0.Final/server/default/lib [ if you are using 'default' configuration], everything will be fine.

      Show
      Create a jar containing your Serializable class and put that at any upper location in the class-loading hierarchy of your server e.g. jboss-6.0.0.Final/server/default/lib [ if you are using 'default' configuration], everything will be fine.

      Description

      Classloading issue: org.richfaces.application.push.impl.jms.RequestImpl.serializeMessage(Topic, Message) fails at ObjectMessage-->getObject() to load User defined Serializable Message class.

      Going a bit deeper you will see that ObjectMessage-->getObject() fails to load the class for your message object.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                puspendu.banerjee Puspendu Banerjee
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: