java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Scott Clasen,
  • 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)
    via by Scott Clasen,
    • java.lang.IllegalStateException: This connector has not yet been initialised: workaround at org.mule.transport.AbstractConnector.getServiceDescriptor(AbstractConnector.java:2040)
    No Bugmate found.