Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5588

Switchyard reference throws ClassCastException with IBM java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1, jboss-fuse-6.3
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: SwitchYard
    • Labels:
      None
    • Sprint:
      Sprint 5 - towards ER2
    • Steps to Reproduce:
      Hide

      Start JBoss Fuse and add admin:admin user.

      unzip pax-cdi-switchyard-example.zip
      cd pax-cdi-switchyard-example
      mvn clean install -Pdeploy
      

      Expected behaviour:

      JBossFuse:karaf@root> test:invoke
      Hello mbasovni
      

      Actual behaviour:

      JBossFuse:karaf@root> test:invoke
      Error executing command: com.sun.proxy.$Proxy50 incompatible with java.lang.String
      
      Show
      Start JBoss Fuse and add admin:admin user. unzip pax-cdi-switchyard-example.zip cd pax-cdi-switchyard-example mvn clean install -Pdeploy Expected behaviour: JBossFuse:karaf@root> test:invoke Hello mbasovni Actual behaviour: JBossFuse:karaf@root> test:invoke Error executing command: com.sun.proxy.$Proxy50 incompatible with java.lang. String

      Description

      Switchyard references does not work correctly with IBM java (both 7 and 8). When we invoke a method on a switchyard bean reference proxy object then an exception is thrown:

      java.lang.ClassCastException: com.sun.proxy.$Proxy50 incompatible with java.lang.String
      	at org.jboss.weld.proxies.Greeting$1366014918$Proxy$_$$_WeldClientProxy.greet(Unknown Source)
      	at org.jboss.fuse.qa.DummyServiceImpl.invoke(DummyServiceImpl.java:17)
      ...
      

        Attachments

          Activity

            People

            Assignee:
            tcunning Thomas Cunningham
            Reporter:
            mbasovni Martin Basovnik (Inactive)
            Tester:
            Jan Kasztura Jan Kasztura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: