Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1663

Unhelpful exception when user forgets to put @Remotable on Java service interface when it is wired to a WSDL interface (or used over WS binding).

    XMLWordPrintableJSON

Details

    Description

      Unhelpful exception when user forgets to put @Remotable on Java service interface when it is wired to a WSDL interface (or used over WS binding).

      If I had a Java impl with an @Service pointing to a Java interface on which I forget the @Remotable annotation, and for which I had exposed the service via the WS binding with an <interface.wsdl> in SCDL I ended up with:

      java.lang.NullPointerException
      at org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceUtil.findMethod(JavaInterfaceUtil.java:52)
      at org.apache.tuscany.sca.implementation.java.invocation.JavaComponentInfo.createTargetInvoker(JavaComponentInfo.java:388)
      at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationProvider.createInvoker(JavaImplementationProvider.java:132)
      at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.addImplementationInterceptor(CompositeActivatorImpl.java:510)
      at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createWires(CompositeActivatorImpl.java:385)
      at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.createRuntimeWires(CompositeActivatorImpl.java:269)
      at org.apache.tuscany.sca.core.runtime.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:578)
      at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain$DomainCompositeHelper.addComposite(EmbeddedSCADomain.java:124)

      Attachments

        Activity

          People

            rfeng Zhaohui Feng
            rashmihunt Rashmi Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: