org.mule.api.lifecycle.InitialisationException: Service not set, this service has not been initialized properly.

MuleSoft JIRA | Victor Bonillo | 5 years ago
  1. 0

    See configuration posted here. When you send a message to a flow containing a WSProxyService component, it throws an exception. This does not fail on Mule startup, but when the first message is received. The weird part is that this will NOT fail when using a service with identical configuration. Steps to reproduce: 1) Deploy the app. 2) Send message to http://0.0.0.0:8090/service/MyProxy. Curling it like this should be enough: curl http://0.0.0.0:8090/service/MyProxy 3) You will get this message: ERROR 2011-11-03 13:19:04,594 [HttpConnector.receiver.09] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Service not set, this service has not been initialized properly. Code : MULE_ERROR-71999 -------------------------------------------------------------------------------- Exception stack is: 1. Service not set, this service has not been initialized properly. (org.mule.api.lifecycle.InitialisationException) org.mule.module.cxf.WSProxyService:254 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/lifecycle/InitialisationException.html) -------------------------------------------------------------------------------- Root Exception stack trace: org.mule.api.lifecycle.InitialisationException: Service not set, this service has not been initialized properly. at org.mule.module.cxf.WSProxyService.initialise(WSProxyService.java:254) at org.mule.module.cxf.WSProxyService.onCall(WSProxyService.java:113) at org.mule.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:50) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** Also, you will get this line in the HTTP response: Component that caused exception is: DefaultJavaComponent{MyProxy.commponent.726841077}. Message payload is of type: String 4) Stop mule. 5) Comment the "MyProxy" flow, uncomment the "MyProxy" service. 6) Start Mule 7) Send message to http://0.0.0.0:8090/service/MyProxy. Curling it like this should be enough: curl http://0.0.0.0:8090/service/MyProxy 8) This time, no errors are displayed.

    MuleSoft JIRA | 5 years ago | Victor Bonillo
    org.mule.api.lifecycle.InitialisationException: Service not set, this service has not been initialized properly.
  2. 0

    See configuration posted here. When you send a message to a flow containing a WSProxyService component, it throws an exception. This does not fail on Mule startup, but when the first message is received. The weird part is that this will NOT fail when using a service with identical configuration. Steps to reproduce: 1) Deploy the app. 2) Send message to http://0.0.0.0:8090/service/MyProxy. Curling it like this should be enough: curl http://0.0.0.0:8090/service/MyProxy 3) You will get this message: ERROR 2011-11-03 13:19:04,594 [HttpConnector.receiver.09] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Service not set, this service has not been initialized properly. Code : MULE_ERROR-71999 -------------------------------------------------------------------------------- Exception stack is: 1. Service not set, this service has not been initialized properly. (org.mule.api.lifecycle.InitialisationException) org.mule.module.cxf.WSProxyService:254 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/lifecycle/InitialisationException.html) -------------------------------------------------------------------------------- Root Exception stack trace: org.mule.api.lifecycle.InitialisationException: Service not set, this service has not been initialized properly. at org.mule.module.cxf.WSProxyService.initialise(WSProxyService.java:254) at org.mule.module.cxf.WSProxyService.onCall(WSProxyService.java:113) at org.mule.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:50) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** Also, you will get this line in the HTTP response: Component that caused exception is: DefaultJavaComponent{MyProxy.commponent.726841077}. Message payload is of type: String 4) Stop mule. 5) Comment the "MyProxy" flow, uncomment the "MyProxy" service. 6) Start Mule 7) Send message to http://0.0.0.0:8090/service/MyProxy. Curling it like this should be enough: curl http://0.0.0.0:8090/service/MyProxy 8) This time, no errors are displayed.

    MuleSoft JIRA | 5 years ago | Victor Bonillo
    org.mule.api.lifecycle.InitialisationException: Service not set, this service has not been initialized properly.
  3. 0

    How to mock a Java component within Mule Flow using MUnit

    Stack Overflow | 2 years ago
    org.mule.api.lifecycle.InitialisationException: Component has not been initialized properly, no flow constuct.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [mule-dev] Simple RESTful example with Mule 3.0.1 - Ian Smith - org.codehaus.mule.dev - MarkMail

    markmail.org | 1 year ago
    org.mule.api.lifecycle.InitialisationException: Failed to invoke lifecycle phase "initialise" on object: JsonToObject{this=6910b640, name='_JsonToDynaBean', ignoreBadInput=false, returnClass=SimpleDataType{type=org.apache.commons.beanutils.DynaBean, mimeType='*/*'}, sourceTypes=[SimpleDataType{type=java.io.Reader, mimeType='*/*'}, SimpleDataType{type=java.net.URL, mimeType='*/*'}, SimpleDataType{type=java.io.File, mimeType='*/*'}, SimpleDataType{type=java.lang.String, mimeType='*/*'}, SimpleDataType{type=java.io.InputStream, mimeType='*/*'}, SimpleDataType{type=[B, mimeType='*/*'}]} (org.mule.api.lifecycle.LifecycleException)
  6. 0

    [mule-dev] Simple RESTful example with Mule 3.0.1 - Ian Smith - org.codehaus.mule.dev - MarkMail

    markmail.org | 1 year ago
    org.mule.api.lifecycle.InitialisationException: Failed to invoke lifecycle phase "initialise" on object: JsonToObject{this=6910b640, name='_JsonToDynaBean', ignoreBadInput=false, returnClass=SimpleDataType{type=org.apache.commons.beanutils.DynaBean, mimeType='*/*'}, sourceTypes=[SimpleDataType{type=java.io.Reader, mimeType='*/*'}, SimpleDataType{type=java.net.URL, mimeType='*/*'}, SimpleDataType{type=java.io.File, mimeType='*/*'}, SimpleDataType{type=java.lang.String, mimeType='*/*'}, SimpleDataType{type=java.io.InputStream, mimeType='*/*'}, SimpleDataType{type=[B, mimeType='*/*'}]} (org.mule.api.lifecycle.LifecycleException) (org.mule.api.lifecycle.InitialisationExc eption) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:54) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101) at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:47) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:79)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.mule.api.lifecycle.InitialisationException

      Service not set, this service has not been initialized properly.

      at org.mule.module.cxf.WSProxyService.initialise()
    2. CXF Module
      WSProxyService.onCall
      1. org.mule.module.cxf.WSProxyService.initialise(WSProxyService.java:254)
      2. org.mule.module.cxf.WSProxyService.onCall(WSProxyService.java:113)
      2 frames
    3. Mule Core
      CallableEntryPointResolver.invoke
      1. org.mule.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:50)
      1 frame