Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 4.0.0 Final, 4.2.0
    • Fix versions: 4.3.0
    • Components: Remoting & Proxy
    • Labels:
      None

      Description

      It seems autowiring of modules over wirebox doesn't work if is called over the proxy. Not in the proxy itself and also not in the event handler if it is called via

      super.process(argumentCollection=arguments);
      

      Example: an event Handler called by the process method in the proxy

      property name="SessionFacade" inject="sessionStorage@cbstorages";
      

      results in: Could not find the ColdFusion component or interface cbstorages.modelsSessionStorage.

      Second: autowire in the proxy suufers from the same problem (path not found)

      A temporary solution is to manually adding them to `this.mappings` in your `Application.cfc`

      if autowire is not need in the proxy adding the code below to the pseudeo-constructor will work for the module paths in the eventhandler

      getController().getModuleService().loadMappings();`
      

      The problem is the super class's pseduo constructor runs before the sub classes so putting it in your pseduo-constructor is still too late for autowiring in the proxy.

      Comment in Slack from Brad (25-4-2016):
      "The fix for this will be to add it to the base proxy's pseudo constructor before it autowires."

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lmajano Luis Majano
                Reporter:
                Daniel Daniel Schmid
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: