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

Cannot get WidgetImplementationFactory (NoSuchMethodException)

    XMLWordPrintableJSON

Details

    Description

      The following exception is thrown when trying to get a WidgetImplementationFactory from the ModelFactoryExtensionPoint:

      Caused by: java.lang.NoSuchMethodException: org.apache.tuscany.sca.implementation.widget.WidgetImplementationFactory.newInstance()
      at java.lang.Class.throwNoSuchMethodException(Class.java:283)
      at java.lang.Class.getMethod(Class.java:825)
      at org.apache.tuscany.sca.extensibility.ServiceDiscovery.newFactoryClassInstance(ServiceDiscovery.java:165)
      at org.apache.tuscany.sca.contribution.DefaultModelFactoryExtensionPoint.getFactory(DefaultModelFactoryExtensionPoint.java:118)

      I tried newing a WidgetImplementationFactory myself and then adding it the ModelFactoryExtensionPoint. However, the factory does not appear to get cached (seems to be due to the fact that WidgetImplementationFactory does not implement any interface and extends directly from Object)

      Attachments

        Activity

          People

            lresende Luciano Resende
            makandre@ca.ibm.com Andrew Mak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: