You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Francesco Chicchiricc�� <il...@apache.org> on 2018/03/21 12:04:37 UTC
Troubles upgrading from 2.20.2 to 2.21.0
Hi all,
in Syncope we have a Camel-based extension, whose initialization has been working fine so far (up until Camel 2.20.2) but fails with the recent Camel 2.21.0.
In particular, the following exception is raised during Syncope Core webapp initialization [1]:
org.apache.camel.RuntimeCamelException: java.util.NoSuchElementException
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.21.0.jar:2.21.0]
at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext.getContext(SyncopeCamelContext.java:75) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
As you can see, the CamelContext is fed with route definitions by the loadContext() method, which parses some XML snippets as [2] for example.
Any idea about why the exception above is raised with 2.21.0?
TIA
Regards.
[1] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java#L75
[2] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/resources/userRoutes.xml
Re: Troubles upgrading from 2.20.2 to 2.21.0
Posted by Francesco Chicchiricc�� <il...@apache.org>.
On 2018/03/21 12:43:25, Claus Ibsen <cl...@gmail.com> wrote:
> Try to debug the code and step through
Ok, I was hoping to narrow a bit the scope of my search, but if you cannot provide any
insight, fine.
For reference, this is the full stacktrace:
15:11:42.271 ERROR org.apache.syncope.core.provisioning.camel.SyncopeCamelContext - While starting Camel context
org.apache.camel.RuntimeCamelException: java.util.NoSuchElementException
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.21.0.jar:2.21.0]
at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext.getContext(SyncopeCamelContext.java:75) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext$$FastClassBySpringCGLIB$$1666155d.invoke(<generated>) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:685) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext$$EnhancerBySpringCGLIB$$e5bfa210.getContext(<generated>) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.apache.syncope.core.provisioning.camel.AbstractCamelProvisioningManager.getConsumer(AbstractCamelProvisioningManager.java:85) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.apache.syncope.core.provisioning.camel.CamelAnyObjectProvisioningManager.create(CamelAnyObjectProvisioningManager.java:51) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.apache.syncope.core.provisioning.camel.CamelAnyObjectProvisioningManager.create(CamelAnyObjectProvisioningManager.java:42) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.apache.syncope.core.provisioning.camel.CamelAnyObjectProvisioningManager.create(CamelAnyObjectProvisioningManager.java:37) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:206) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at com.sun.proxy.$Proxy245.create(Unknown Source) ~[?:?]
at org.apache.syncope.core.logic.AnyObjectLogic.create(AnyObjectLogic.java:117) ~[syncope-core-logic-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.apache.syncope.core.logic.AnyObjectLogic$$FastClassBySpringCGLIB$$31833517.invoke(<generated>) ~[syncope-core-logic-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.apache.syncope.core.logic.LogicInvocationHandler.around(LogicInvocationHandler.java:88) ~[syncope-core-logic-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:643) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:632) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) ~[spring-aop-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.apache.syncope.core.logic.AnyObjectLogic$$EnhancerBySpringCGLIB$$540d2988.create(<generated>) ~[syncope-core-logic-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.apache.syncope.core.rest.cxf.service.AnyObjectServiceImpl.create(AnyObjectServiceImpl.java:68) ~[syncope-core-rest-cxf-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) ~[cxf-core-3.2.3.jar:3.2.3]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[cxf-core-3.2.3.jar:3.2.3]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:192) ~[cxf-rt-frontend-jaxrs-3.2.3.jar:3.2.3]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:103) ~[cxf-rt-frontend-jaxrs-3.2.3.jar:3.2.3]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) ~[cxf-core-3.2.3.jar:3.2.3]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) ~[cxf-core-3.2.3.jar:3.2.3]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) ~[cxf-core-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) ~[cxf-core-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:216) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:301) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:220) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) ~[servlet-api.jar:?]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:276) ~[cxf-rt-transports-http-3.2.3.jar:3.2.3]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.6]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-websocket.jar:9.0.6]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.6]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.apache.syncope.core.spring.security.MustChangePasswordFilter.doFilter(MustChangePasswordFilter.java:68) ~[syncope-core-spring-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.apache.syncope.core.spring.security.JWTAuthenticationFilter.doFilterInternal(JWTAuthenticationFilter.java:110) ~[syncope-core-spring-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) ~[spring-security-web-5.0.3.RELEASE.jar:5.0.3.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) ~[spring-web-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) ~[spring-web-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.6]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) ~[spring-web-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[catalina.jar:9.0.6]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) ~[catalina.jar:9.0.6]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[catalina.jar:9.0.6]
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651) ~[catalina.jar:9.0.6]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) ~[catalina.jar:9.0.6]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[catalina.jar:9.0.6]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:407) ~[tomcat-coyote.jar:9.0.6]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) ~[tomcat-coyote.jar:9.0.6]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754) ~[tomcat-coyote.jar:9.0.6]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376) ~[tomcat-coyote.jar:9.0.6]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-coyote.jar:9.0.6]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_161]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-util.jar:9.0.6]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
Caused by: java.util.NoSuchElementException
at java.util.ArrayList$Itr.next(ArrayList.java:862) ~[?:1.8.0_161]
at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3620) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3492) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3251) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3247) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3270) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3247) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3163) ~[camel-core-2.21.0.jar:2.21.0]
at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133) ~[camel-spring-2.21.0.jar:2.21.0]
> On Wed, Mar 21, 2018 at 1:34 PM, Francesco Chicchiriccò
> <il...@apache.org> wrote:
> > On 2018/03/21 12:16:17, Claus Ibsen <cl...@gmail.com> wrote:
> >> Hi
> >>
> >> I think you should ask the Apache Syncope team as its their
> >> integration with Camel.
> >> It sounds like some classpath problem.
> >
> > Well, I am part of the Syncope team :-)
> >
> > I am asking here because the problem below only occurs after upgrade to Camel 2.21.0.
> >
> > Any more details about the direction in which I should investigate?
> >
> > Regards.
> >
> >> On Wed, Mar 21, 2018 at 1:04 PM, Francesco Chicchiriccò
> >> <il...@apache.org> wrote:
> >> > Hi all,
> >> > in Syncope we have a Camel-based extension, whose initialization has been working fine so far (up until Camel 2.20.2) but fails with the recent Camel 2.21.0.
> >> >
> >> > In particular, the following exception is raised during Syncope Core webapp initialization [1]:
> >> >
> >> > org.apache.camel.RuntimeCamelException: java.util.NoSuchElementException
> >> > at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830) ~[camel-core-2.21.0.jar:2.21.0]
> >> > at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.21.0.jar:2.21.0]
> >> > at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext.getContext(SyncopeCamelContext.java:75) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
> >> >
> >> > As you can see, the CamelContext is fed with route definitions by the loadContext() method, which parses some XML snippets as [2] for example.
> >> >
> >> > Any idea about why the exception above is raised with 2.21.0?
> >> >
> >> > TIA
> >> > Regards.
> >> >
> >> > [1] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java#L75
> >> > [2] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/resources/userRoutes.xml
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>
Re: Troubles upgrading from 2.20.2 to 2.21.0
Posted by Claus Ibsen <cl...@gmail.com>.
Try to debug the code and step through
On Wed, Mar 21, 2018 at 1:34 PM, Francesco Chicchiriccò
<il...@apache.org> wrote:
> On 2018/03/21 12:16:17, Claus Ibsen <cl...@gmail.com> wrote:
>> Hi
>>
>> I think you should ask the Apache Syncope team as its their
>> integration with Camel.
>> It sounds like some classpath problem.
>
> Well, I am part of the Syncope team :-)
>
> I am asking here because the problem below only occurs after upgrade to Camel 2.21.0.
>
> Any more details about the direction in which I should investigate?
>
> Regards.
>
>> On Wed, Mar 21, 2018 at 1:04 PM, Francesco Chicchiriccò
>> <il...@apache.org> wrote:
>> > Hi all,
>> > in Syncope we have a Camel-based extension, whose initialization has been working fine so far (up until Camel 2.20.2) but fails with the recent Camel 2.21.0.
>> >
>> > In particular, the following exception is raised during Syncope Core webapp initialization [1]:
>> >
>> > org.apache.camel.RuntimeCamelException: java.util.NoSuchElementException
>> > at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830) ~[camel-core-2.21.0.jar:2.21.0]
>> > at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.21.0.jar:2.21.0]
>> > at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext.getContext(SyncopeCamelContext.java:75) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
>> >
>> > As you can see, the CamelContext is fed with route definitions by the loadContext() method, which parses some XML snippets as [2] for example.
>> >
>> > Any idea about why the exception above is raised with 2.21.0?
>> >
>> > TIA
>> > Regards.
>> >
>> > [1] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java#L75
>> > [2] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/resources/userRoutes.xml
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Re: Troubles upgrading from 2.20.2 to 2.21.0
Posted by Francesco Chicchiricc�� <il...@apache.org>.
On 2018/03/21 12:16:17, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> I think you should ask the Apache Syncope team as its their
> integration with Camel.
> It sounds like some classpath problem.
Well, I am part of the Syncope team :-)
I am asking here because the problem below only occurs after upgrade to Camel 2.21.0.
Any more details about the direction in which I should investigate?
Regards.
> On Wed, Mar 21, 2018 at 1:04 PM, Francesco Chicchiriccò
> <il...@apache.org> wrote:
> > Hi all,
> > in Syncope we have a Camel-based extension, whose initialization has been working fine so far (up until Camel 2.20.2) but fails with the recent Camel 2.21.0.
> >
> > In particular, the following exception is raised during Syncope Core webapp initialization [1]:
> >
> > org.apache.camel.RuntimeCamelException: java.util.NoSuchElementException
> > at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830) ~[camel-core-2.21.0.jar:2.21.0]
> > at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.21.0.jar:2.21.0]
> > at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext.getContext(SyncopeCamelContext.java:75) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
> >
> > As you can see, the CamelContext is fed with route definitions by the loadContext() method, which parses some XML snippets as [2] for example.
> >
> > Any idea about why the exception above is raised with 2.21.0?
> >
> > TIA
> > Regards.
> >
> > [1] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java#L75
> > [2] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/resources/userRoutes.xml
Re: Troubles upgrading from 2.20.2 to 2.21.0
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
I think you should ask the Apache Syncope team as its their
integration with Camel.
It sounds like some classpath problem.
On Wed, Mar 21, 2018 at 1:04 PM, Francesco Chicchiriccò
<il...@apache.org> wrote:
> Hi all,
> in Syncope we have a Camel-based extension, whose initialization has been working fine so far (up until Camel 2.20.2) but fails with the recent Camel 2.21.0.
>
> In particular, the following exception is raised during Syncope Core webapp initialization [1]:
>
> org.apache.camel.RuntimeCamelException: java.util.NoSuchElementException
> at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830) ~[camel-core-2.21.0.jar:2.21.0]
> at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.21.0.jar:2.21.0]
> at org.apache.syncope.core.provisioning.camel.SyncopeCamelContext.getContext(SyncopeCamelContext.java:75) ~[syncope-ext-camel-provisioning-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
>
> As you can see, the CamelContext is fed with route definitions by the loadContext() method, which parses some XML snippets as [2] for example.
>
> Any idea about why the exception above is raised with 2.21.0?
>
> TIA
> Regards.
>
> [1] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java#L75
> [2] https://github.com/apache/syncope/blob/master/ext/camel/provisioning-camel/src/main/resources/userRoutes.xml
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2