org.mule.api.MuleRuntimeException: Failed to evaluate XPath expression: "/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()"

MuleSoft JIRA | Jason Brittain | 7 years ago
  1. 0

    When I run a JUnit test (from Eclipse) that invokes my iBean, I get the following exception: org.mule.api.MuleRuntimeException: Failed to evaluate XPath expression: "/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()" at org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.evaluate(AbstractXPathExpressionEvaluator.java:93) at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:170) at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:147) at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:109) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.handlerReturnAnnotation(IntegrationBeanInvocationHandler.java:271) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:199) at $Proxy13.translate(Unknown Source) at org.mule.ibeans.test.dialectizer.DialectizerTest.testTranslate(DialectizerTest.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266) at junit.framework.TestSuite.runTest(TestSuite.java:232) [snip] Caused by: java.lang.IllegalArgumentException: XML DOM type "class org.mule.transport.http.ReleasingInputStream" is currently not supported at org.mule.module.xml.expression.XPathExpressionEvaluator.createXPath(XPathExpressionEvaluator.java:50) at org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.getXPath(AbstractXPathExpressionEvaluator.java:124) at org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.evaluate(AbstractXPathExpressionEvaluator.java:70) ... 28 more Here is the source of my iBean: package org.mule.ibeans.dialectizer; import org.mule.ibeans.api.client.Call; @Usage("Use this iBean to translate text from one \"dialect\" to another via the Dialectizer web service. " + "You can translate your text to any of the following dialects: redneck, jive, cockney, elmer fudd, " + "swedish chef, moron, pig latin, and hacker. Use the DIALECT enumeration to choose.") public interface DialectizerIBean { public static enum DIALECT { REDNECK("redneck"), JIVE("jive"), COCKNEY("cockney"), ELMER_FUDD("fudd"), SWEDISH_CHEF("bork"), MORON("moron"), PIG_LATIN("piglatin"), HACKER("hckr"); private String value; private DIALECT(String value) { this.value = value; } public String toString() { return value; } } /** * By default the method will return HTML. */ @ReturnType public static final Class DEFAULT_RETURN_TYPE = String.class; /** * Initialize the bean for use. */ @State public void init(); /** * Initialize the bean for use. * * @param returnType the default return type to use when the method has a variable Type T return type */ @State public void init(@ReturnType Class returnType); /** * Translate some text into the specified dialect. * * @param text - the text to translate. * @param dialect - the dialect to translate it into. * @return the translated text. */ @Call(uri = "http://www.rinkworks.com/dialect/dialectt.cgi") @Return("xpath:/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()") public <T> T translate(@PayloadParam("text") String text, @PayloadParam("dialect") String dialect) throws CallException; } And, here is the source of the test: package org.mule.ibeans.test.dialectizer; import org.mule.ibeans.api.client.IntegrationBean; import org.mule.ibeans.dialectizer.DialectizerIBean; import org.mule.ibeans.dialectizer.DialectizerIBean.DIALECT; import org.mule.ibeans.test.AbstractIBeansTestCase; public class DialectizerTest extends AbstractIBeansTestCase { @IntegrationBean private DialectizerIBean dialectizer; @Override protected void doSetUp() throws Exception { dialectizer.init(); } public void testTranslate() throws Exception { String text = dialectizer.translate("Its one small step for man, one giant leap for mankind!", DIALECT.JIVE.toString()); assertNotNull(text); System.out.println(text); } } It doesn't seem to matter which xpath expression I use, the same exception happens. Commenting out the @Return makes the test run fine, but it returns the whole web page (with the successfully translated text on it) instead of just the translated text I want to return.

    MuleSoft JIRA | 7 years ago | Jason Brittain
    org.mule.api.MuleRuntimeException: Failed to evaluate XPath expression: "/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()"
  2. 0

    When I run a JUnit test (from Eclipse) that invokes my iBean, I get the following exception: org.mule.api.MuleRuntimeException: Failed to evaluate XPath expression: "/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()" at org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.evaluate(AbstractXPathExpressionEvaluator.java:93) at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:170) at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:147) at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:109) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.handlerReturnAnnotation(IntegrationBeanInvocationHandler.java:271) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:199) at $Proxy13.translate(Unknown Source) at org.mule.ibeans.test.dialectizer.DialectizerTest.testTranslate(DialectizerTest.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266) at junit.framework.TestSuite.runTest(TestSuite.java:232) [snip] Caused by: java.lang.IllegalArgumentException: XML DOM type "class org.mule.transport.http.ReleasingInputStream" is currently not supported at org.mule.module.xml.expression.XPathExpressionEvaluator.createXPath(XPathExpressionEvaluator.java:50) at org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.getXPath(AbstractXPathExpressionEvaluator.java:124) at org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.evaluate(AbstractXPathExpressionEvaluator.java:70) ... 28 more Here is the source of my iBean: package org.mule.ibeans.dialectizer; import org.mule.ibeans.api.client.Call; @Usage("Use this iBean to translate text from one \"dialect\" to another via the Dialectizer web service. " + "You can translate your text to any of the following dialects: redneck, jive, cockney, elmer fudd, " + "swedish chef, moron, pig latin, and hacker. Use the DIALECT enumeration to choose.") public interface DialectizerIBean { public static enum DIALECT { REDNECK("redneck"), JIVE("jive"), COCKNEY("cockney"), ELMER_FUDD("fudd"), SWEDISH_CHEF("bork"), MORON("moron"), PIG_LATIN("piglatin"), HACKER("hckr"); private String value; private DIALECT(String value) { this.value = value; } public String toString() { return value; } } /** * By default the method will return HTML. */ @ReturnType public static final Class DEFAULT_RETURN_TYPE = String.class; /** * Initialize the bean for use. */ @State public void init(); /** * Initialize the bean for use. * * @param returnType the default return type to use when the method has a variable Type T return type */ @State public void init(@ReturnType Class returnType); /** * Translate some text into the specified dialect. * * @param text - the text to translate. * @param dialect - the dialect to translate it into. * @return the translated text. */ @Call(uri = "http://www.rinkworks.com/dialect/dialectt.cgi") @Return("xpath:/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()") public <T> T translate(@PayloadParam("text") String text, @PayloadParam("dialect") String dialect) throws CallException; } And, here is the source of the test: package org.mule.ibeans.test.dialectizer; import org.mule.ibeans.api.client.IntegrationBean; import org.mule.ibeans.dialectizer.DialectizerIBean; import org.mule.ibeans.dialectizer.DialectizerIBean.DIALECT; import org.mule.ibeans.test.AbstractIBeansTestCase; public class DialectizerTest extends AbstractIBeansTestCase { @IntegrationBean private DialectizerIBean dialectizer; @Override protected void doSetUp() throws Exception { dialectizer.init(); } public void testTranslate() throws Exception { String text = dialectizer.translate("Its one small step for man, one giant leap for mankind!", DIALECT.JIVE.toString()); assertNotNull(text); System.out.println(text); } } It doesn't seem to matter which xpath expression I use, the same exception happens. Commenting out the @Return makes the test run fine, but it returns the whole web page (with the successfully translated text on it) instead of just the translated text I want to return.

    MuleSoft JIRA | 7 years ago | Jason Brittain
    org.mule.api.MuleRuntimeException: Failed to evaluate XPath expression: "/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()"
  3. 0

    Steps to reproduce: # Install the most recent mule standalone 3.0.1 snapshot # Set MULE_HOME # Copy the examples/bookstore zip file to the $MULE_HOME/apps directory # Start mule # Go to http://localhost:8083/bookstore/ and enter '1984' in the title field and hit submit. I get the following error in the mule console and no book returned: INFO 2010-11-08 16:37:08,509 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: Application directory check interval: 5000 ERROR 2010-11-08 16:45:48,498 [640632851@qtp-1205434602-0] org.mortbay.log: /bookstore/ javax.xml.ws.soap.SOAPFaultException: Failed to lookup beans of type interface org.mule.api.transport.Connector from the Spring registry (org.mule.api.MuleRuntimeException) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141) at $Proxy48.getBooks(Unknown Source) at org.apache.jsp.catalog_jsp._jspService(org.apache.jsp.catalog_jsp:103) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:500) at org.mortbay.jetty.servlet.DefaultServlet.doPost(DefaultServlet.java:533) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.mule.transport.service.TransportFactoryException: Failed to lookup beans of type interface org.mule.api.transport.Connector from the Spring registry (org.mule.api.MuleRuntimeException) at org.mule.endpoint.AbstractEndpointBuilder.getConnector(AbstractEndpointBuilder.java:595) at org.mule.endpoint.AbstractEndpointBuilder.getDefaultConnector(AbstractEndpointBuilder.java:412) at org.mule.endpoint.AbstractEndpointBuilder.getConnector(AbstractEndpointBuilder.java:407) at org.mule.endpoint.AbstractEndpointBuilder.doBuildOutboundEndpoint(AbstractEndpointBuilder.java:237) at org.mule.endpoint.AbstractEndpointBuilder.buildOutboundEndpoint(AbstractEndpointBuilder.java:113) at org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:89) at org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:65) at org.mule.module.cxf.transport.MuleUniversalConduit.getEndpoint(MuleUniversalConduit.java:237) at org.mule.module.cxf.transport.MuleUniversalConduit.prepare(MuleUniversalConduit.java:213) at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121) ... 36 more Caused by: org.mule.api.MuleRuntimeException: Failed to lookup beans of type interface org.mule.api.transport.Connector from the Spring registry at org.mule.config.spring.SpringRegistry.lookupByType(SpringRegistry.java:183) at org.mule.config.spring.SpringRegistry.lookupObjects(SpringRegistry.java:169) at org.mule.registry.AbstractRegistryBroker.lookupObjects(AbstractRegistryBroker.java:126) at org.mule.registry.MuleRegistryHelper.lookupObjects(MuleRegistryHelper.java:609) at org.mule.transport.service.TransportFactory.getConnectorByProtocol(TransportFactory.java:163) at org.mule.endpoint.AbstractEndpointBuilder.getConnector(AbstractEndpointBuilder.java:585) ... 51 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ref:HttpUrlCustomerRequests.75': Cannot resolve reference to bean 'HttpUrlCustomerRequests' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HttpUrlCustomerRequests': Cannot create inner bean '(inner bean)' of type [org.mule.module.scripting.transformer.ScriptTransformer] while setting bean property 'messageProcessors' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.module.scripting.component.Scriptable] while setting bean property 'script'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Invocation of init method failed; nested exception is org.mule.api.lifecycle.InitialisationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script67.groovy: 13: unable to resolve class Customer @ line 13, column 25.Script67.groovy: 14: unable to resolve class CustomerQuoteRequest @ line 14, column 26. 2 errors at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:757) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:125) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:993) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:885) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getNonSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:771) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:667) at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:500) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:388) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140) at org.mule.config.spring.SpringRegistry.lookupByType(SpringRegistry.java:177) ... 56 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HttpUrlCustomerRequests': Cannot create inner bean '(inner bean)' of type [org.mule.module.scripting.transformer.ScriptTransformer] while setting bean property 'messageProcessors' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.module.scripting.component.Scriptable] while setting bean property 'script'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Invocation of init method failed; nested exception is org.mule.api.lifecycle.InitialisationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script67.groovy: 13: unable to resolve class Customer @ line 13, column 25.Script67.groovy: 14: unable to resolve class CustomerQuoteRequest @ line 14, column 26. 2 errors at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:125) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:355) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 69 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.module.scripting.component.Scriptable] while setting bean property 'script'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Invocation of init method failed; nested exception is org.mule.api.lifecycle.InitialisationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script67.groovy: 13: unable to resolve class Customer @ line 13, column 25.Script67.groovy: 14: unable to resolve class CustomerQuoteRequest @ line 14, column 26. 2 errors at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:125) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 79 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Invocation of init method failed; nested exception is org.mule.api.lifecycle.InitialisationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script67.groovy: 13: unable to resolve class Customer @ line 13, column 25.Script67.groovy: 14: unable to resolve class CustomerQuoteRequest @ line 14, column 26. 2 errors at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) ... 85 more Caused by: org.mule.api.lifecycle.InitialisationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script67.groovy: 13: unable to resolve class Customer @ line 13, column 25.Script67.groovy: 14: unable to resolve class CustomerQuoteRequest @ line 14, column 26. 2 errors at org.mule.module.scripting.component.Scriptable.initialise(Scriptable.java:166) at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) ... 88 more Caused by: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script67.groovy: 13: unable to resolve class Customer @ line 13, column 25.Script67.groovy: 14: unable to resolve class CustomerQuoteRequest @ line 14, column 26. 2 errors at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:145) at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:150) at org.mule.module.scripting.component.Scriptable.initialise(Scriptable.java:162) ... 94 more Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script67.groovy: 13: unable to resolve class Customer @ line 13, column 25.Script67.groovy: 14: unable to resolve class CustomerQuoteRequest @ line 14, column 26. 2 errors at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:835) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:513) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:489) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:466) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:279) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:250) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:245) at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getScriptClass(GroovyScriptEngineImpl.java:335) at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:137) ... 96 more

    MuleSoft JIRA | 6 years ago | Daniel Zapata
    javax.xml.ws.soap.SOAPFaultException: Failed to lookup beans of type interface org.mule.api.transport.Connector from the Spring registry (org.mule.api.MuleRuntimeException)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Possible memory Leak

    GitHub | 5 years ago | dougbass
    org.mule.api.MuleRuntimeException: An exception occurred while invoking message processor "DefaultMessageProcessorChain '(inner iterating chain) of 'jiraService' processor chain' [ DefaultJavaComponent{jiraService.commponent.176227620}, CustomFieldRenameTransformer{this=1c7883df, name='CustomFieldRenameTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='_/_'}, sourceTypes=[]}, IssueTypeTransformer{this=2c19b413, name='IssueTypeTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='_/_'}, sourceTypes=[]}, IssuePriorityTransformer{this=4b7d6203, name='IssuePriorityTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='_/_'}, sourceTypes=[]}, org.mule.api.processor.LoggerMessageProcessor@7fea15f2, org.mule.module.jira.config.CreateIssueMessageProcessor@61470479, org.mule.routing.requestreply.ReplyToPropertyRequestReplyReplier ]" for asynchronously.
  6. 0

    Mule : Queuemanager is null

    Stack Overflow | 2 years ago | Shanky_Gupta
    org.mule.api.MuleRuntimeException: The required object/property "queueManager" is null

    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.MuleRuntimeException

      Failed to evaluate XPath expression: "/html/body/hr[1]/p/table/tr[1]/td[1]/p/text()"

      at org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.evaluate()
    2. XML Extensions
      AbstractXPathExpressionEvaluator.evaluate
      1. org.mule.module.xml.expression.AbstractXPathExpressionEvaluator.evaluate(AbstractXPathExpressionEvaluator.java:93)
      1 frame
    3. Mule Core
      DefaultExpressionManager.evaluate
      1. org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:170)
      2. org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:147)
      3. org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:109)
      3 frames
    4. org.mule.ibeans
      IntegrationBeanInvocationHandler.invoke
      1. org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.handlerReturnAnnotation(IntegrationBeanInvocationHandler.java:271)
      2. org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:199)
      2 frames
    5. Unknown
      $Proxy13.translate
      1. $Proxy13.translate(Unknown Source)
      1 frame
    6. org.mule.ibeans
      DialectizerTest.testTranslate
      1. org.mule.ibeans.test.dialectizer.DialectizerTest.testTranslate(DialectizerTest.java:21)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. JUnit
      TestCase.runBare
      1. junit.framework.TestCase.runTest(TestCase.java:168)
      2. junit.framework.TestCase.runBare(TestCase.java:134)
      2 frames
    9. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.runBare
      1. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287)
      1 frame
    10. JUnit
      TestCase.run
      1. junit.framework.TestResult$1.protect(TestResult.java:110)
      2. junit.framework.TestResult.runProtected(TestResult.java:128)
      3. junit.framework.TestResult.run(TestResult.java:113)
      4. junit.framework.TestCase.run(TestCase.java:124)
      4 frames
    11. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.run
      1. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266)
      1 frame
    12. JUnit
      TestSuite.runTest
      1. junit.framework.TestSuite.runTest(TestSuite.java:232)
      1 frame