mq
  1. mq
  2. MQ-6

ClassCastException in ConnectionFactoryAdapter when creating TopicConnection under OC4J

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: not determined
    • Component/s: mq-ra
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      I've been trying to deploy the openMQ resource adapter to OC4J 10.1.3. After
      some effort the addapter seems to deploy allright, but when a web app tries to
      access a TopicConnection from the adapter via JNDI I consitently get a
      ClassCastException on line 282 of ConnectionFactory Addapter (in
      _allocateTopicConnection()). I'll attatch a full stack trace. I guess it's
      something to do with OC4Js connection pool handling mechanisms, even though I've
      set the connection pool to none.

      1. classcast.log
        4 kB
        soupdragon
      2. config.txt
        2 kB
        soupdragon
      3. MessageListener.java
        3 kB
        soupdragon

        Activity

        Hide
        soupdragon added a comment -

        Created an attachment (id=1)
        Stack trace of exception

        Show
        soupdragon added a comment - Created an attachment (id=1) Stack trace of exception
        Hide
        soupdragon added a comment -

        Created an attachment (id=2)
        OC4J Resource addapter configuration stuff

        Show
        soupdragon added a comment - Created an attachment (id=2) OC4J Resource addapter configuration stuff
        Hide
        soupdragon added a comment -

        Created an attachment (id=3)
        Listener class I'm using to test deployment

        Show
        soupdragon added a comment - Created an attachment (id=3) Listener class I'm using to test deployment
        Hide
        soupdragon added a comment -

        Fix misspelt class name in title

        Show
        soupdragon added a comment - Fix misspelt class name in title
        Hide
        nigeldeakin added a comment -

        Exclude from 4.5 since this is not a requirement for Glassfish 3.1.

        Possible workarounds are to use the GenericJMSRA resource adapter
        https://genericjmsra.dev.java.net/
        or the JMSJCA resource adapter
        https://jmsjca.dev.java.net/

        Both RAs will work with Open Message Queue and are in principle intended to be
        deployable in a variety of application servers, though I don't know the exact
        status of support for OC4J.

        Show
        nigeldeakin added a comment - Exclude from 4.5 since this is not a requirement for Glassfish 3.1. Possible workarounds are to use the GenericJMSRA resource adapter https://genericjmsra.dev.java.net/ or the JMSJCA resource adapter https://jmsjca.dev.java.net/ Both RAs will work with Open Message Queue and are in principle intended to be deployable in a variety of application servers, though I don't know the exact status of support for OC4J.
        Hide
        nigeldeakin added a comment -

        Reassign issue to nigeldeakin

        Show
        nigeldeakin added a comment - Reassign issue to nigeldeakin

          People

          • Assignee:
            Unassigned
            Reporter:
            soupdragon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: