Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-366

Not doing autoboxing for primitive types

    XMLWordPrintable

Details

    • Bug
    • Status: Pull Request Sent (View Workflow)
    • Major
    • Resolution: Unresolved
    • 0.1
    • None
    • core
    • None

    Description

      An invocation of a Service who's interface is like this:

      public interface RandomService {

      public int getRandom(int maxNumber);
      }

      Would produce an exception:

      Caused by: org.switchyard.exception.SwitchYardException: Cannot convert from 'java.lang.Integer' to 'int'. No registered Transformer available for transforming from 'java:java.lang.Integer' to 'java:int'. A Transformer must be registered.
      at org.switchyard.internal.DefaultMessage.getContent(DefaultMessage.java:113) [switchyard-runtime-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.component.bean.Invocation.castArg(Invocation.java:91) [switchyard-component-bean-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.component.bean.Invocation.<init>(Invocation.java:58) [switchyard-component-bean-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.component.bean.BeanServiceMetadata.getInvocation(BeanServiceMetadata.java:90) [switchyard-component-bean-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.component.bean.ServiceProxyHandler.handle(ServiceProxyHandler.java:95) [switchyard-component-bean-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.component.bean.ServiceProxyHandler.handleMessage(ServiceProxyHandler.java:77) [switchyard-component-bean-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.internal.DefaultHandlerChain.handleMessage(DefaultHandlerChain.java:115) [switchyard-runtime-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.internal.DefaultHandlerChain.handle(DefaultHandlerChain.java:95) [switchyard-runtime-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.internal.LocalDispatcher.dispatch(LocalExchangeBus.java:72) [switchyard-runtime-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.internal.ExchangeImpl.sendInternal(ExchangeImpl.java:229) [switchyard-runtime-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.internal.ExchangeImpl.send(ExchangeImpl.java:165) [switchyard-runtime-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]
      at org.switchyard.component.bean.ClientProxyBean$ClientProxyInvocationHandler.invoke(ClientProxyBean.java:301) [switchyard-component-bean-0.2.0-SNAPSHOT.jar:0.2.0-SNAPSHOT]

      Attachments

        Activity

          People

            Unassigned Unassigned
            aamonten_jira Alejandro Montenegro (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: