Quantcast

Any idea why this simple splitter is not working in 2.10-SNAPSHOT

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
I've a very simple route which was working before. The following route works if I comment out the splitter part. But as soon as I add the splitter code to the route it fails. any ideas what I'm doing wrong here ?

any help will be greatly appreciated. thanks.


from("direct:start").
to("https://maps.googleapis.com/maps/api/place/search/json?location=40.446788,-79.950559&radius=500&types=food&sensor=false&key=xxxxxxxxxxxxxxxxxxx")
.unmarshal().json(JsonLibrary.Jackson, GooglePlaceResponseObject.class).split().method(GooglePlaceSplitter.class, "split").to("mock:result");



@JsonIgnoreProperties(ignoreUnknown = true)
public class GooglePlaceResponseObject {
       
        public List<String> getHtml_attibutions() {
                return html_attibutions;
        }

        public void setHtml_attibutions(List<String> html_attibutions) {
                this.html_attibutions = html_attibutions;
        }

        public List<GooglePlaceVO> getResults() {
                return results;
        }

        public void setResults(List<GooglePlaceVO> results) {
                this.results = results;
        }
       
        public void setStatus(String s)
        {
                this.status = s;
        }
       
        public String getStatus()
        {
                return this.status;
        }
       
        private List<String> html_attibutions;
        private List<GooglePlaceVO> results;
        private String status;
       
        public GooglePlaceResponseObject()
        {
                html_attibutions = new ArrayList<String>();
                results = new ArrayList<GooglePlaceVO>();
        }

}


public class GooglePlaceSplitter {

        public List<GooglePlaceVO> split( GooglePlaceResponseObject gpResponse) {
                List<GooglePlaceVO> results = new ArrayList<GooglePlaceVO>();

                if (gpResponse != null) {
                        results.addAll(gpResponse.getResults());
                }

                return results;
        }
}


@JsonIgnoreProperties(ignoreUnknown = true)
public class GooglePlaceVO {
       
        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class Location {
                private double lat;
                private double lon;
               
                public void setLat(double lat) {
                        this.lat = lat;
                }
                public double getLat() {
                        return lat;
                }
                public void setLon(double lon) {
                        this.lon = lon;
                }
                public double getLon() {
                        return lon;
                }
               
                public String toString()
                {
                        StringBuffer buf = new StringBuffer();
                        buf.append("[lat: ").append(lat).append(", lon: ").append(lon).append("]");
                        return buf.toString();
                }
        }
       
        private String name;
        private String icon;
        private String id;
        private double rating;
        private String reference;
        private List<String> types;
        private String vicinity;
       
        public String toString()
        {
                StringBuffer buf = new StringBuffer();
                buf.append("[name: ").append(name).append("] ");
                return buf.toString();
        }
       
        public String getIcon() {
                return icon;
        }
        public void setIcon(String icon) {
                this.icon = icon;
        }
        public String getId() {
                return id;
        }
        public void setId(String id) {
                this.id = id;
        }
        public double getRating() {
                return rating;
        }
        public void setRating(double rating) {

                this.rating = rating;
        }
        public String getReference() {
                return reference;
        }
        public void setReference(String reference) {
                this.reference = reference;
        }
        public List<String> getTypes() {
                return types;
        }
        public void setTypes(List<String> types) {
                this.types = types;
        }
        public String getVicinity() {

                return vicinity;
        }
        public void setVicinity(String vicinity) {

                this.vicinity = vicinity;
        }

}


Exception -


[        http-bio-8080-exec-167] DefaultErrorHandler            ERROR Failed delivery for (MessageId: ID-xxxx-51540-1335888294836-0-3 on ExchangeId: ID-xxxx-51540-1335888294836-0-2). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: xxxx.xxxx.xxxx.GooglePlaceResponseObject@398f573b]
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: xxxx.xxxx.xxxx..GooglePlaceResponseObject@398f573b]
        at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1269)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:282)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:151)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.language.bean.BeanExpression$InvokeProcessor.process(BeanExpression.java:162)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:115)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:124)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.Splitter.createProcessorExchangePairs(Splitter.java:101)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:209)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.Splitter.process(Splitter.java:96)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:333)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:223)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:352)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:324)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:223)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:324)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:186)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:102)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:280)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
        at edu.cmu.sei.rtss.edge.emontageserver.JSONController.makeGooglePlaceCall(JSONController.java:32)[JSONController.class:]
        at edu.cmu.sei.rtss.edge.emontageserver.JSONController.getShopInJSON(JSONController.java:21)[JSONController.class:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_31]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_31]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_31]
        at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_31]
        at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)[servlet-api.jar:]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)[servlet-api.jar:]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[catalina.jar:7.0.26]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)[catalina.jar:7.0.26]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)[catalina.jar:7.0.26]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[catalina.jar:7.0.26]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[catalina.jar:7.0.26]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[catalina.jar:7.0.26]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)[catalina.jar:7.0.26]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.26]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[catalina.jar:7.0.26]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)[tomcat-coyote.jar:7.0.26]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)[tomcat-coyote.jar:7.0.26]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)[tomcat-coyote.jar:7.0.26]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31]
        at java.lang.Thread.run(Thread.java:680)[:1.6.0_31]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

Willem.Jiang
Maybe there are some conflict between camel and tomcat share lib.
Can you double check it?


On Wed May  2 00:02:11 2012, soumya_sd wrote:

> I've a very simple route which was working before. The following route works
> if I comment out the splitter part. But as soon as I add the splitter code
> to the route it fails. any ideas what I'm doing wrong here ?
>
> any help will be greatly appreciated. thanks.
>
>
> from("direct:start").
> to("https://maps.googleapis.com/maps/api/place/search/json?location=40.446788,-79.950559&radius=500&types=food&sensor=false&key=xxxxxxxxxxxxxxxxxxx")
> .unmarshal().json(JsonLibrary.Jackson,
> GooglePlaceResponseObject.class).split().method(GooglePlaceSplitter.class,
> "split").to("mock:result");
>
>
>
> @JsonIgnoreProperties(ignoreUnknown = true)
> public class GooglePlaceResponseObject {
>
> public List<String>  getHtml_attibutions() {
> return html_attibutions;
> }
>
> public void setHtml_attibutions(List<String>  html_attibutions) {
> this.html_attibutions = html_attibutions;
> }
>
> public List<GooglePlaceVO>  getResults() {
> return results;
> }
>
> public void setResults(List<GooglePlaceVO>  results) {
> this.results = results;
> }
>
> public void setStatus(String s)
> {
> this.status = s;
> }
>
> public String getStatus()
> {
> return this.status;
> }
>
> private List<String>  html_attibutions;
> private List<GooglePlaceVO>  results;
> private String status;
>
> public GooglePlaceResponseObject()
> {
> html_attibutions = new ArrayList<String>();
> results = new ArrayList<GooglePlaceVO>();
> }
>
> }
>
>
> public class GooglePlaceSplitter {
>
> public List<GooglePlaceVO>  split( GooglePlaceResponseObject gpResponse) {
> List<GooglePlaceVO>  results = new ArrayList<GooglePlaceVO>();
>
> if (gpResponse != null) {
> results.addAll(gpResponse.getResults());
> }
>
> return results;
> }
> }
>
>
> @JsonIgnoreProperties(ignoreUnknown = true)
> public class GooglePlaceVO {
>
> @JsonIgnoreProperties(ignoreUnknown = true)
> public static class Location {
> private double lat;
> private double lon;
>
> public void setLat(double lat) {
> this.lat = lat;
> }
> public double getLat() {
> return lat;
> }
> public void setLon(double lon) {
> this.lon = lon;
> }
> public double getLon() {
> return lon;
> }
>
> public String toString()
> {
> StringBuffer buf = new StringBuffer();
> buf.append("[lat: ").append(lat).append(", lon:
> ").append(lon).append("]");
> return buf.toString();
> }
> }
>
> private String name;
> private String icon;
> private String id;
> private double rating;
> private String reference;
> private List<String>  types;
> private String vicinity;
>
> public String toString()
> {
> StringBuffer buf = new StringBuffer();
> buf.append("[name: ").append(name).append("] ");
> return buf.toString();
> }
>
> public String getIcon() {
> return icon;
> }
> public void setIcon(String icon) {
> this.icon = icon;
> }
> public String getId() {
> return id;
> }
> public void setId(String id) {
> this.id = id;
> }
> public double getRating() {
> return rating;
> }
> public void setRating(double rating) {
>
> this.rating = rating;
> }
> public String getReference() {
> return reference;
> }
> public void setReference(String reference) {
> this.reference = reference;
> }
> public List<String>  getTypes() {
> return types;
> }
> public void setTypes(List<String>  types) {
> this.types = types;
> }
> public String getVicinity() {
>
> return vicinity;
> }
> public void setVicinity(String vicinity) {
>
> this.vicinity = vicinity;
> }
>
> }
>
>
> Exception -
>
>
> [        http-bio-8080-exec-167] DefaultErrorHandler            ERROR Failed
> delivery for (MessageId: ID-xxxx-51540-1335888294836-0-3 on ExchangeId:
> ID-xxxx-51540-1335888294836-0-2). Exhausted after delivery attempt: 1
> caught: org.apache.camel.CamelExecutionException: Exception occurred during
> execution on the exchange: Exchange[Message:
> xxxx.xxxx.xxxx.GooglePlaceResponseObject@398f573b]
> org.apache.camel.CamelExecutionException: Exception occurred during
> execution on the exchange: Exchange[Message:
> xxxx.xxxx.xxxx..GooglePlaceResponseObject@398f573b]
> at
> org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1269)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:282)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:151)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.language.bean.BeanExpression$InvokeProcessor.process(BeanExpression.java:162)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:115)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:124)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.Splitter.createProcessorExchangePairs(Splitter.java:101)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:209)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.Splitter.process(Splitter.java:96)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:333)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:223)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:352)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:324)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:223)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:324)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.ProducerCache.send(ProducerCache.java:186)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:102)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:280)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
> at
> edu.cmu.sei.rtss.edge.emontageserver.JSONController.makeGooglePlaceCall(JSONController.java:32)[JSONController.class:]
> at
> edu.cmu.sei.rtss.edge.emontageserver.JSONController.getShopInJSON(JSONController.java:21)[JSONController.class:]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_31]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_31]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_31]
> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_31]
> at
> org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)[spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:621)[servlet-api.jar:]
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)[servlet-api.jar:]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[catalina.jar:7.0.26]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)[catalina.jar:7.0.26]
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)[catalina.jar:7.0.26]
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[catalina.jar:7.0.26]
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[catalina.jar:7.0.26]
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[catalina.jar:7.0.26]
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)[catalina.jar:7.0.26]
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.26]
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[catalina.jar:7.0.26]
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)[tomcat-coyote.jar:7.0.26]
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)[tomcat-coyote.jar:7.0.26]
> at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)[tomcat-coyote.jar:7.0.26]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31]
> at java.lang.Thread.run(Thread.java:680)[:1.6.0_31]
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
Willem.Jiang wrote
Maybe there are some conflict between camel and tomcat share lib.
Can you double check it?
Willem, thanks for responding. Can you give me some idea about where should I check for this conflict ?

Thanks again !


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
I found a fix. However, I still don't completely understand it completely.

My assumption was that when the splitResponse() method is invoked by Camel it is passed a GooglePlaceResponseObject. However, looks like that's not the case. Because when I changed the input to splitResponse() to an Exchange object and then get the GooglePlaceResponseObject from the "in body" it works. I even tried annotating the input to splitResponse(@Body GooglePlaceResponseobject) but it still didn't work.


        public List<GooglePlaceVO> splitResponse(Exchange exchange) {
               
                GooglePlaceResponseObject gpResponse = (GooglePlaceResponseObject)exchange.getIn().getBody();

.....
.....
.....
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

Claus Ibsen-2
Hi

Are you sure there is no more stacktrace details?

The caused exception is caught by Camel and recorded on the exchange at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:151)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]

Which is then logged by Tomcat later on. A bit odd it dont log the
caused exception.

As you use SNAPSHOT code, then feel free to modify BeanProcessor.java
around line 151, and do a printStackTrace() etc on the caused
exception to see the cause.

Its related to Camel introspecting the bean, and some error occurs.

Also maybe you need a try .. catch when you use the Camel producer
template to log the caused exception.


On Wed, May 2, 2012 at 11:29 PM, soumya_sd <[hidden email]> wrote:

> I found a fix. However, I still don't completely understand it completely.
>
> My assumption was that when the splitResponse() method is invoked by Camel
> it is passed a GooglePlaceResponseObject. However, looks like that's not the
> case. Because when I changed the input to splitResponse() to an Exchange
> object and then get the GooglePlaceResponseObject from the "in body" it
> works. I even tried annotating the input to splitResponse(@Body
> GooglePlaceResponseobject) but it still didn't work.
>
>
>        public List<GooglePlaceVO> splitResponse(Exchange exchange) {
>
>                GooglePlaceResponseObject gpResponse =
> (GooglePlaceResponseObject)exchange.getIn().getBody();
>
> .....
> .....
> .....
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336p5681688.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
Thank you for responding back. My understanding is that Camel should automatically convert and pass the correct object type to my custom splitter method. Is this correct ?

Claus Ibsen-2 wrote
Hi

Are you sure there is no more stacktrace details?
 
Yes. This is the only stacktrace that I see on tomcat logs.

Claus Ibsen-2 wrote
The caused exception is caught by Camel and recorded on the exchange at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:151)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]

Which is then logged by Tomcat later on. A bit odd it dont log the
caused exception.

As you use SNAPSHOT code, then feel free to modify BeanProcessor.java
around line 151, and do a printStackTrace() etc on the caused
exception to see the cause.

Its related to Camel introspecting the bean, and some error occurs.
 

I thought of doing that but for some reason I cannot make maven to download the SNAPSHOT code along with the build jar. I'm assuming I need to manually download it and then build it locally and tell maven to pick it up the local version instead of the SNAPSHOT version. Or is there an easier way ?


Claus Ibsen-2 wrote
Also maybe you need a try .. catch when you use the Camel producer
template to log the caused exception.
 

I added the following to my producer template but it still doesn't log any exceptions.
                try
                {
                ProducerTemplate template = ctxAware.getCamelContext().createProducerTemplate();
                template.request("direct:start", new MyCustomProcessor());
                }catch(Exception e)
                {
                        e.printStackTrace();
                }



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

Claus Ibsen-2
On Thu, May 3, 2012 at 2:37 PM, soumya_sd <[hidden email]> wrote:
> Thank you for responding back. My understanding is that Camel should
> automatically convert and pass the correct object type to my custom splitter
> method. Is this correct ?
>

Yes it will. And its much likely that the process in Camel that
introspect the bean fails for some unknown reason, and that isnt
logged.

>
> Claus Ibsen-2 wrote
>>
>> Hi
>>
>> Are you sure there is no more stacktrace details?
>>
>>
>>
> Yes. This is the only stacktrace that I see on tomcat logs.
>
>
> Claus Ibsen-2 wrote
>>
>>
>> The caused exception is caught by Camel and recorded on the exchange at
>> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:151)[camel-core-2.10-20120501.123310-101.jar:2.10-SNAPSHOT]
>>
>> Which is then logged by Tomcat later on. A bit odd it dont log the
>> caused exception.
>>
>> As you use SNAPSHOT code, then feel free to modify BeanProcessor.java
>> around line 151, and do a printStackTrace() etc on the caused
>> exception to see the cause.
>>
>> Its related to Camel introspecting the bean, and some error occurs.
>>
>>
>
> I thought of doing that but for some reason I cannot make maven to download
> the SNAPSHOT code along with the build jar. I'm assuming I need to manually
> download it and then build it locally and tell maven to pick it up the local
> version instead of the SNAPSHOT version. Or is there an easier way ?
>

Yes you would need to build from source. There is details here
http://camel.apache.org/building.html

Then from the source root, do a normal build without tests.

Then new SNAPSHOT files is compiled and installed in your local m2 repo.


>
>
> Claus Ibsen-2 wrote
>>
>>
>> Also maybe you need a try .. catch when you use the Camel producer
>> template to log the caused exception.
>>
>
> I added the following to my producer template but it still doesn't log any
> exceptions.
>                try
>                {
>                ProducerTemplate template =
> ctxAware.getCamelContext().createProducerTemplate();
>                template.request("direct:start", new MyCustomProcessor());
>                }catch(Exception e)
>                {
>                        e.printStackTrace();
>                }
>
>

Can you try catch Throwable, just in case a java.lang.Error was thrown instead.


>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336p5683052.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
@Claus -

I added the e.printStackTrace() to BeanProcessor and got the following exception in the logs. Also, I got a bunch of exceptions in the tests while building the camel-core SNAPSHOT. I'm attaching the complete log for your reference.

Thanks.
camel_core_SNAPSHOT_build_log.txt

[         http-bio-8080-exec-96] Tracer                         INFO  ID-xxxxx-49234-1336068763821-0-2 >>> (route1) log[before split the body is ${body}] --> split[BeanExpression[xxxxxx.GooglePlaceSplitter@70a1ce20 method: splitResponse]] <<< Pattern:InOut, Headers:{X-Frame-Options=SAMEORIGIN, Vary=Accept-Language, Server=mafe, breadcrumbId=ID-xxxxx-49234-1336068763821-0-1, Date=Thu, 03 May 2012 18:07:08 GMT, Transfer-Encoding=chunked, CamelHttpMethod=GET, X-XSS-Protection=1; mode=block, CamelHttpResponseCode=200, Content-Type=application/json; charset=UTF-8, Cache-Control=private}, BodyType:xxxxxx.GooglePlaceResponseObject, Body:xxxxxx.GooglePlaceResponseObject@32e6fc3a
java.lang.AbstractMethodError: org.apache.camel.converter.jaxb.FallbackTypeConverter.tryConvertTo(Ljava/lang/Class;Lorg/apache/camel/Exchange;Ljava/lang/Object;)Ljava/lang/Object;
        at org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:287)
        at org.apache.camel.impl.converter.BaseTypeConverterRegistry.tryConvertTo(BaseTypeConverterRegistry.java:191)
        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:78)
        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:47)
        at org.apache.camel.builder.ExpressionBuilder$35.evaluate(ExpressionBuilder.java:840)
        at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
        at org.apache.camel.component.bean.MethodInfo$2.evaluateParameterBinding(MethodInfo.java:510)
        at org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:409)
        at org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:210)
        at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:232)
        at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:162)
        at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:149)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
        at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:73)
        at org.apache.camel.language.bean.BeanExpression$InvokeProcessor.process(BeanExpression.java:162)
        at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:115)
        at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:124)
        at org.apache.camel.processor.Splitter.createProcessorExchangePairs(Splitter.java:101)
        at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:209)
        at org.apache.camel.processor.Splitter.process(Splitter.java:96)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
        at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:333)
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:223)
        at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
        at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
        at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122)
        at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
        at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
        at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:352)
        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:324)
        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:223)
        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:324)
        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:186)
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115)
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:102)
        at org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:280)
        at edu.cmu.sei.rtss.edge.emontageserver.JSONController.makeGooglePlaceCall(JSONController.java:34)
        at edu.cmu.sei.rtss.edge.emontageserver.JSONController.getShopInJSON(JSONController.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 org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
        at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:680)


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
Also, I'm building this on OS-X 10.7.3 with the following version and build of Java.

java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

Claus Ibsen-2
In reply to this post by soumya_sd
Hi

Do you have mixed versions of Camel on the classpath?
Make sure camel-jaxb and camel-core uses the same version.



On Thu, May 3, 2012 at 8:17 PM, soumya_sd <[hidden email]> wrote:

> @Claus -
>
> I added the e.printStackTrace() to BeanProcessor and got the following
> exception in the logs. Also, I got a bunch of exceptions in the tests while
> building the camel-core SNAPSHOT. I'm attaching the complete log for your
> reference.
>
> Thanks.
> http://camel.465427.n5.nabble.com/file/n5683975/camel_core_SNAPSHOT_build_log.txt
> camel_core_SNAPSHOT_build_log.txt
>
> [         http-bio-8080-exec-96] Tracer                         INFO
> ID-xxxxx-49234-1336068763821-0-2 >>> (route1) log[before split the body is
> ${body}] --> split[BeanExpression[xxxxxx.GooglePlaceSplitter@70a1ce20
> method: splitResponse]] <<< Pattern:InOut,
> Headers:{X-Frame-Options=SAMEORIGIN, Vary=Accept-Language, Server=mafe,
> breadcrumbId=ID-xxxxx-49234-1336068763821-0-1, Date=Thu, 03 May 2012
> 18:07:08 GMT, Transfer-Encoding=chunked, CamelHttpMethod=GET,
> X-XSS-Protection=1; mode=block, CamelHttpResponseCode=200,
> Content-Type=application/json; charset=UTF-8, Cache-Control=private},
> BodyType:xxxxxx.GooglePlaceResponseObject,
> Body:xxxxxx.GooglePlaceResponseObject@32e6fc3a
> java.lang.AbstractMethodError:
> org.apache.camel.converter.jaxb.FallbackTypeConverter.tryConvertTo(Ljava/lang/Class;Lorg/apache/camel/Exchange;Ljava/lang/Object;)Ljava/lang/Object;
>        at
> org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:287)
>        at
> org.apache.camel.impl.converter.BaseTypeConverterRegistry.tryConvertTo(BaseTypeConverterRegistry.java:191)
>        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:78)
>        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:47)
>        at
> org.apache.camel.builder.ExpressionBuilder$35.evaluate(ExpressionBuilder.java:840)
>        at
> org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
>        at
> org.apache.camel.component.bean.MethodInfo$2.evaluateParameterBinding(MethodInfo.java:510)
>        at
> org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:409)
>        at
> org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:210)
>        at
> org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:232)
>        at
> org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:162)
>        at
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:149)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
>        at
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:73)
>        at
> org.apache.camel.language.bean.BeanExpression$InvokeProcessor.process(BeanExpression.java:162)
>        at
> org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:115)
>        at
> org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:124)
>        at
> org.apache.camel.processor.Splitter.createProcessorExchangePairs(Splitter.java:101)
>        at
> org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:209)
>        at org.apache.camel.processor.Splitter.process(Splitter.java:96)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
>        at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:333)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:223)
>        at
> org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
>        at
> org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
>        at
> org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122)
>        at
> org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
>        at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
>        at
> org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
>        at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:352)
>        at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:324)
>        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:223)
>        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:324)
>        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:186)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:102)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:280)
>        at
> edu.cmu.sei.rtss.edge.emontageserver.JSONController.makeGooglePlaceCall(JSONController.java:34)
>        at
> edu.cmu.sei.rtss.edge.emontageserver.JSONController.getShopInJSON(JSONController.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
> org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
>        at
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
>        at
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
>        at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
>        at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
>        at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)
>        at
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>        at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>        at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>        at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
>        at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:680)
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336p5683975.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
Claus Ibsen-2 wrote
Hi

Do you have mixed versions of Camel on the classpath?
Make sure camel-jaxb and camel-core uses the same version.

You were correct. I added the following exclusion to my pom.xml and it worked.

                <dependency>
                        <groupId>org.drools</groupId>
                        <artifactId>drools-camel</artifactId>
                        <version>${drools.version}</version>
                        <exclusions>
                       
                                <exclusion>
                                        <artifactId>camel-jaxb</artifactId>                           
             <groupId>org.apache.camel</groupId>
    </exclusion>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

Claus Ibsen-2
On Fri, May 4, 2012 at 8:21 PM, soumya_sd <[hidden email]> wrote:

>
> Claus Ibsen-2 wrote
>>
>> Hi
>>
>> Do you have mixed versions of Camel on the classpath?
>> Make sure camel-jaxb and camel-core uses the same version.
>>
>
>
> You were correct. I added the following exclusion to my pom.xml and it
> worked.
>
>                <dependency>
>                        <groupId>org.drools</groupId>
>                        <artifactId>drools-camel</artifactId>
>                        <version>${drools.version}</version>
>                        <exclusions>
>
>                                <exclusion>
>                                        <artifactId>camel-jaxb</artifactId>
>                                        <groupId>org.apache.camel</groupId>
>                                </exclusion>
>
>

Ah good. Yeah mixing JARs can cause strange issues. Glad you found the solution.


>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336p5686641.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
Claus Ibsen-2 wrote
On Fri, May 4, 2012 at 8:21 PM, soumya_sd <[hidden email]> wrote:
>
> Claus Ibsen-2 wrote
>>
>> Hi
>>
>> Do you have mixed versions of Camel on the classpath?
>> Make sure camel-jaxb and camel-core uses the same version.
>>


I guess Willem did point out the cause to "shared lib". However, it was not clear which shared lib.
Is there is a standard way to avoid these problems in future ? I'm new to Maven. Maybe there is a maven option.

As long as we can see the root cause there is a chance of solving the issue much faster. Or maybe just building from sources is the fastest way to find the root cause ?

Thanks.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

Claus Ibsen-2
On Sat, May 5, 2012 at 1:27 PM, soumya_sd <[hidden email]> wrote:

>
> Claus Ibsen-2 wrote
>>
>> On Fri, May 4, 2012 at 8:21 PM, soumya_sd <soumya_sd@> wrote:
>>>
>>> Claus Ibsen-2 wrote
>>>>
>>>> Hi
>>>>
>>>> Do you have mixed versions of Camel on the classpath?
>>>> Make sure camel-jaxb and camel-core uses the same version.
>>>>
>>
>>
>
>
>
> I guess Willem did point out the cause to "shared lib". However, it was not
> clear which shared lib.
> Is there is a standard way to avoid these problems in future ? I'm new to
> Maven. Maybe there is a maven option.
>
> As long as we can see the root cause there is a chance of solving the issue
> much faster. Or maybe just building from sources is the fastest way to find
> the root cause ?
>

I am not sure why drools-camel requires and uses camel-jaxb ?
Ideally components is isolated and have low dependency on other components.

Also you may want to use the stable 2.9.2 release instead of 2.10
SNAPSHOT. As that is in development.
And is thus not recommended to use for production etc.

That said, we love when people help test the latest code.
So its a good thing when people have free cycles and try out the
SNAPSHOTS, and provide feedback.
Then we can help catch an issues before a release is out.



> Thanks.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336p5687782.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
Claus Ibsen-2 wrote
Also you may want to use the stable 2.9.2 release instead of 2.10
SNAPSHOT. As that is in development.
And is thus not recommended to use for production etc.

That said, we love when people help test the latest code.
So its a good thing when people have free cycles and try out the
SNAPSHOTS, and provide feedback.
Then we can help catch an issues before a release is out.
Claus, I need to use the twitter component which is only available in 2.10. Any idea when you plan to push 2.10 to production ?

Thanks a lot for finding the time to help newbies like me solve these issues.




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

Nestor Urquiza
In reply to this post by Claus Ibsen-2
Hi,

To easily be notified of duplicated classes in the classpath when using Maven read http://thinkinginsoftware.blogspot.com/2012/01/remove-duplicate-classes-agile-way.html

It has helped us a lot in our project which is big. Hopefully it will help you as well.

Best,
-Nestor Urquiza
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

soumya_sd
Nestor Urquiza wrote
To easily be notified of duplicated classes in the classpath when using Maven read http://thinkinginsoftware.blogspot.com/2012/01/remove-duplicate-classes-agile-way.html

It has helped us a lot in our project which is big. Hopefully it will help you as well.
I was thinking about implementing something similar. Thanks for sharing this.

Loading...