title: WSO2 Governance Registry not publishing Service into WSO2 API Manager
body: <p>On "publish" button click (current service state "Production") I am getting below error in WSO2 Governance Registry console.</p>
  
  <blockquote>
    <p>Failed to invoke aspect: An exception occurred while executing handler chain. APIManager endpoint URL or credentials are not definedAPI Publish might fail**</p>
  </blockquote>
  
  <p>Below is my WSO2 Gov reg configuration as described in this <a href="https://docs.wso2.org/display/AM160/Integrating+with+WSO2+Governance+Registry+Services" rel="nofollow">link</a>.</p>
  
  <pre><code>&lt;state id="Production"&gt;
                  &lt;datamodel&gt;
                      &lt;data name="transitionExecution"&gt;
                          &lt;execution forEvent="Demote" class="org.wso2.carbon.governance.registry.extensions.executors.DemoteActionExecutor"&gt;
                          &lt;/execution&gt;
                          &lt;execution forEvent="Publish" class="org.wso2.carbon.governance.registry.extensions.executors.apistore.ApiStoreExecutor"&gt;
                                  &lt;parameter name="apim.endpoint" value="http://localhost:9763/store"/&gt;
                                  &lt;parameter name="apim.username" value="admin"/&gt;
                                  &lt;parameter name="apim.password" value="admin"/&gt;
                                  &lt;parameter name="default.tier" value="Unlimited"/&gt;
                                  &lt;parameter name="throttlingTier" value="Unlimited,Unlimited,Unlimited,Unlimited,Unlimited"/&gt;
                          &lt;/execution&gt;
                      &lt;/data&gt;
                  &lt;/datamodel&gt;
                  &lt;transition event="Publish" target="Published.to.APIStore"/&gt;
                  &lt;transition event="Demote" target="Testing"/&gt;
              &lt;/state&gt;
              &lt;state id="Published.to.APIStore"&gt;                   
              &lt;/state&gt; 
  </code></pre>
  
  <p><strong>Stack trace:</strong></p>
  
  <blockquote>
    <p>[2014-03-06 15:43:30,623] ERROR {org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil} -  Failed to invoke action Publish of aspect Service
    LifeCycle on resource /_system/governance/branches/production/services/com/w3schools/www/webservices/1.2.0/Temp_Convert_Service. An exception occurred while execut
    ing handler chain. APIManager endpoint URL or credentials are not definedAPI Publish might fail
    org.wso2.carbon.registry.core.exceptions.RegistryException: An exception occurred while executing handler chain. APIManager endpoint URL or credentials are not def
    inedAPI Publish might fail
            at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2814)
            at org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:542)
            at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550)
            at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:384)
            at org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1395)
            at org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil.invokeAspect(InvokeAspectUtil.java:52)
            at org.wso2.carbon.governance.custom.lifecycles.checklist.services.LifecyclesAdminService.invokeAspect(LifecyclesAdminService.java:47)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)</p>
  </blockquote>
  
  <p>Please suggest.</p>