Project: talendesb
Issue TESB-7126: Routes which start with configuring of errorHandler fail with exception being deployed into runtime
Routes which are assembled with free cErrorHandler component cannot be deployed into runtime. It cause next exception: {noformat} 20:50:19,924 | ERROR | pool-14-thread-6 | er.internal.JobExecutorFactory$1 35 | 208 - org.talend.esb.job.controller - 5.2.0.SNAPSHOT | Uncaught exception in job executor thread: java.lang.NoSuchMethodError: unifiedplatform_520.testerrorhandlerdeployment_0_1.TestErrorHandlerDeployment$1.errorHandler(Lorg/apache/camel/builder/ErrorHandlerBuilder;)Lorg/apache/camel/builder/RouteBuilder; at unifiedplatform_520.testerrorhandlerdeployment_0_1.TestErrorHandlerDeployment$1.configure(TestErrorHandlerDeployment.java:71) at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:322) at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:276) at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:262) at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:628) at org.apache.camel.main.MainSupport.postProcessCamelContext(MainSupport.java:437) at org.apache.camel.main.MainSupport.postProcessContext(MainSupport.java:386) at unifiedplatform_520.testerrorhandlerdeployment_0_1.TestErrorHandlerDeployment.doStart(TestErrorHandlerDeployment.java:138) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) at org.apache.camel.main.MainSupport.run(MainSupport.java:141) at unifiedplatform_520.testerrorhandlerdeployment_0_1.TestErrorHandlerDeployment.runJobInTOS(TestErrorHandlerDeployment.java:282) at org.talend.esb.job.controller.internal.RouteAdapter.run(RouteAdapter.java:78)[208:org.talend.esb.job.controller:5.2.0.SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_30] at java.lang.Thread.run(Thread.java:662)[:1.6.0_30] {noformat} However the same route can be started in studio normally. Example of route: |route_which_cause_exception_being_deployed_in_runtime.png| Example of generated code: {noformat}	public RouteBuilder route() {	return new RouteBuilder() {	public void configure() throws Exception {	errorHandler(loggingErrorHandler().logName(	"SpecialLoggingHandlerName"))	;	from(uriMap.get("cMessagingEndpoint_1"))	.routeId("cMessagingEndpoint_1")	.process(new org.apache.camel.Processor() {	public void process(	org.apache.camel.Exchange exchange)	throws Exception {	throw new RuntimeException(	"This is test exception!");	}	}).id("cProcessor_1");	}	};	} {noformat} Route items exported from studio and kar file are attached.
Story points: 1