java.lang.IllegalStateException: This connector has not yet been initialised: workaround

MuleSoft JIRA | Scott Clasen | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using mule/spring based configuration, I am attempting to workaround MULE-3241 by subclassing ProcessConnector. I placed the jar with this connector in $MULE_HOME/lib/user When attempting to use the <custom-connector> tag to configure the connector... <custom-connector name="jbpmConnector" class="com.xxx.ProcesssConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </custom-connector> I get RROR 2008-07-15 13:55:07,379 [WrapperListener_start_runner] org.mule.config.spring.parsers.generic.MuleOrphanDefinitionParser: could not load class: com.xxx.ProcesssConnectorWorkaround java.lang.ClassNotFoundException: com.xxx.ProcesssConnectorWorkaround at org.mule.util.ClassUtils.loadClass(ClassUtils.java:271) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getBeanClassFromAttribute(AbstractMuleBeanDefinitionParser.java:356) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getClassInternal(AbstractMuleBeanDefinitionParser.java:318) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:253) If I configure a spring bean that loads the connector like so... <spring:bean id="workaround" class="com.xxx.ProcessConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </spring:bean> The class is loaded properly, but I get the following since the connector doesnt seem to participate in the proper lifecycle using this configuration method... .ProcessConnectorWorkaround: Registering listener: fromBPMS on endpointUri: bpm://* ERROR 2008-07-15 13:58:58,902 [WrapperListener_start_runner] org.mule.MuleServer: ******************************************************************************** Message : Failed to register listener fromBPMS on endpoint bpm://* Type : org.mule.api.model.ModelException Code : MULE_ERROR-101047 JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html ******************************************************************************** Exception stack is: 1. This connector has not yet been initialised: workaround (java.lang.IllegalStateException) org.mule.transport.AbstractConnector:2040 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html) 2. Failed to register listener fromBPMS on endpoint bpm://* (org.mule.api.model.ModelException) org.mule.service.AbstractService:616 (http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html) ******************************************************************************** Root Exception stack trace: java.lang.IllegalStateException: This connector has not yet been initialised: workaround at org.mule.transport.AbstractConnector.getServiceDescriptor(AbstractConnector.java:2040)

    MuleSoft JIRA | 9 years ago | Scott Clasen
    java.lang.IllegalStateException: This connector has not yet been initialised: workaround
  2. 0

    Using mule/spring based configuration, I am attempting to workaround MULE-3241 by subclassing ProcessConnector. I placed the jar with this connector in $MULE_HOME/lib/user When attempting to use the <custom-connector> tag to configure the connector... <custom-connector name="jbpmConnector" class="com.xxx.ProcesssConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </custom-connector> I get RROR 2008-07-15 13:55:07,379 [WrapperListener_start_runner] org.mule.config.spring.parsers.generic.MuleOrphanDefinitionParser: could not load class: com.xxx.ProcesssConnectorWorkaround java.lang.ClassNotFoundException: com.xxx.ProcesssConnectorWorkaround at org.mule.util.ClassUtils.loadClass(ClassUtils.java:271) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getBeanClassFromAttribute(AbstractMuleBeanDefinitionParser.java:356) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getClassInternal(AbstractMuleBeanDefinitionParser.java:318) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:253) If I configure a spring bean that loads the connector like so... <spring:bean id="workaround" class="com.xxx.ProcessConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </spring:bean> The class is loaded properly, but I get the following since the connector doesnt seem to participate in the proper lifecycle using this configuration method... .ProcessConnectorWorkaround: Registering listener: fromBPMS on endpointUri: bpm://* ERROR 2008-07-15 13:58:58,902 [WrapperListener_start_runner] org.mule.MuleServer: ******************************************************************************** Message : Failed to register listener fromBPMS on endpoint bpm://* Type : org.mule.api.model.ModelException Code : MULE_ERROR-101047 JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html ******************************************************************************** Exception stack is: 1. This connector has not yet been initialised: workaround (java.lang.IllegalStateException) org.mule.transport.AbstractConnector:2040 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html) 2. Failed to register listener fromBPMS on endpoint bpm://* (org.mule.api.model.ModelException) org.mule.service.AbstractService:616 (http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html) ******************************************************************************** Root Exception stack trace: java.lang.IllegalStateException: This connector has not yet been initialised: workaround at org.mule.transport.AbstractConnector.getServiceDescriptor(AbstractConnector.java:2040)

    MuleSoft JIRA | 9 years ago | Scott Clasen
    java.lang.IllegalStateException: This connector has not yet been initialised: workaround

    Root Cause Analysis

    1. java.lang.IllegalStateException

      This connector has not yet been initialised: workaround

      at org.mule.transport.AbstractConnector.getServiceDescriptor()
    2. Mule Core
      AbstractConnector.getServiceDescriptor
      1. org.mule.transport.AbstractConnector.getServiceDescriptor(AbstractConnector.java:2040)
      1 frame