You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gerald Kallas <ca...@mailbox.org> on 2020/09/28 18:33:19 UTC

json-validator full error message

Dear all,

I've tried the json-validator. When an error occurs it is shown only

"JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-12-4]"

I there an option to get a more qualified error message (e.g. what's wrong in the JSON document)?

Best
Gerald

Re: json-validator full error message

Posted by Gerald Kallas <ca...@mailbox.org.INVALID>.
I've created the JIRA ticket

https://issues.apache.org/jira/browse/CAMEL-15663

for the improvement.

> Claus Ibsen <cl...@gmail.com> hat am 28.09.2020 21:14 geschrieben:
> 
>  
> You can do an onException(JsonValidationException) and then output
> some more details from that exception.
> 
> But yeah out of the box, then it should likely report some more
> details, you can create a JIRA.
> And are welcome to work on a PR
> 
> On Mon, Sep 28, 2020 at 9:12 PM Gerald Kallas <ca...@mailbox.org> wrote:
> >
> > Hi,
> >
> > I'm using Camel 3.4.4.
> >
> > The full blown error stack is
> >
> > org.apache.camel.component.jsonvalidator.JsonValidationException: JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-13-2]
> >         at org.apache.camel.component.jsonvalidator.DefaultJsonValidationErrorHandler.handleErrors(DefaultJsonValidationErrorHandler.java:30)
> >         at org.apache.camel.component.jsonvalidator.JsonValidatorEndpoint.onExchange(JsonValidatorEndpoint.java:120)
> >         at org.apache.camel.support.ProcessorEndpoint$1.process(ProcessorEndpoint.java:63)
> >         at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:67)
> >         at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:168)
> >         at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:395)
> >         at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
> >         at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
> >         at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286)
> >         at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
> >         at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:40)
> >         at org.apache.camel.http.common.CamelServlet.doService(CamelServlet.java:214)
> >         at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:80)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> >         at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
> >         at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
> >         at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:64)
> >         at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> >         at org.ops4j.pax.web.service.undertow.internal.Context$1.lambda$wrap$0(Context.java:614)
> >         at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
> >         at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
> >         at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
> >         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >         at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
> >         at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
> >         at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> >         at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
> >         at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
> >         at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> >         at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
> >         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >         at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
> >         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
> >         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
> >         at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
> >         at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
> >         at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
> >         at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)
> >         at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
> >         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> >         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> >         at java.base/java.lang.Thread.run(Unknown Source)
> >
> > Best
> > Gerald
> >
> > > Claus Ibsen <cl...@gmail.com> hat am 28.09.2020 20:58 geschrieben:
> > >
> > >
> > > Hi
> > >
> > > What version of Camel do you use?
> > >
> > > The exception has some details, but I guess the default toString does
> > > not output any of that
> > > https://github.com/apache/camel/blob/master/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidationException.java
> > >
> > >
> > > On Mon, Sep 28, 2020 at 8:33 PM Gerald Kallas <ca...@mailbox.org> wrote:
> > > >
> > > > Dear all,
> > > >
> > > > I've tried the json-validator. When an error occurs it is shown only
> > > >
> > > > "JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-12-4]"
> > > >
> > > > I there an option to get a more qualified error message (e.g. what's wrong in the JSON document)?
> > > >
> > > > Best
> > > > Gerald
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > http://davsclaus.com @davsclaus
> > > Camel in Action 2: https://www.manning.com/ibsen2
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Re: json-validator full error message

Posted by Gerald Kallas <ca...@mailbox.org>.
Tx Claus, will do so.

> Claus Ibsen <cl...@gmail.com> hat am 28.09.2020 21:14 geschrieben:
> 
>  
> You can do an onException(JsonValidationException) and then output
> some more details from that exception.
> 
> But yeah out of the box, then it should likely report some more
> details, you can create a JIRA.
> And are welcome to work on a PR
> 
> On Mon, Sep 28, 2020 at 9:12 PM Gerald Kallas <ca...@mailbox.org> wrote:
> >
> > Hi,
> >
> > I'm using Camel 3.4.4.
> >
> > The full blown error stack is
> >
> > org.apache.camel.component.jsonvalidator.JsonValidationException: JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-13-2]
> >         at org.apache.camel.component.jsonvalidator.DefaultJsonValidationErrorHandler.handleErrors(DefaultJsonValidationErrorHandler.java:30)
> >         at org.apache.camel.component.jsonvalidator.JsonValidatorEndpoint.onExchange(JsonValidatorEndpoint.java:120)
> >         at org.apache.camel.support.ProcessorEndpoint$1.process(ProcessorEndpoint.java:63)
> >         at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:67)
> >         at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:168)
> >         at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:395)
> >         at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
> >         at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
> >         at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
> >         at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286)
> >         at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
> >         at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:40)
> >         at org.apache.camel.http.common.CamelServlet.doService(CamelServlet.java:214)
> >         at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:80)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> >         at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
> >         at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
> >         at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:64)
> >         at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> >         at org.ops4j.pax.web.service.undertow.internal.Context$1.lambda$wrap$0(Context.java:614)
> >         at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
> >         at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
> >         at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
> >         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >         at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
> >         at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
> >         at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> >         at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
> >         at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
> >         at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> >         at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
> >         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >         at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
> >         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
> >         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
> >         at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
> >         at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
> >         at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
> >         at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
> >         at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)
> >         at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
> >         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> >         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> >         at java.base/java.lang.Thread.run(Unknown Source)
> >
> > Best
> > Gerald
> >
> > > Claus Ibsen <cl...@gmail.com> hat am 28.09.2020 20:58 geschrieben:
> > >
> > >
> > > Hi
> > >
> > > What version of Camel do you use?
> > >
> > > The exception has some details, but I guess the default toString does
> > > not output any of that
> > > https://github.com/apache/camel/blob/master/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidationException.java
> > >
> > >
> > > On Mon, Sep 28, 2020 at 8:33 PM Gerald Kallas <ca...@mailbox.org> wrote:
> > > >
> > > > Dear all,
> > > >
> > > > I've tried the json-validator. When an error occurs it is shown only
> > > >
> > > > "JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-12-4]"
> > > >
> > > > I there an option to get a more qualified error message (e.g. what's wrong in the JSON document)?
> > > >
> > > > Best
> > > > Gerald
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > http://davsclaus.com @davsclaus
> > > Camel in Action 2: https://www.manning.com/ibsen2
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Re: json-validator full error message

Posted by Claus Ibsen <cl...@gmail.com>.
You can do an onException(JsonValidationException) and then output
some more details from that exception.

But yeah out of the box, then it should likely report some more
details, you can create a JIRA.
And are welcome to work on a PR

On Mon, Sep 28, 2020 at 9:12 PM Gerald Kallas <ca...@mailbox.org> wrote:
>
> Hi,
>
> I'm using Camel 3.4.4.
>
> The full blown error stack is
>
> org.apache.camel.component.jsonvalidator.JsonValidationException: JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-13-2]
>         at org.apache.camel.component.jsonvalidator.DefaultJsonValidationErrorHandler.handleErrors(DefaultJsonValidationErrorHandler.java:30)
>         at org.apache.camel.component.jsonvalidator.JsonValidatorEndpoint.onExchange(JsonValidatorEndpoint.java:120)
>         at org.apache.camel.support.ProcessorEndpoint$1.process(ProcessorEndpoint.java:63)
>         at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:67)
>         at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:168)
>         at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:395)
>         at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
>         at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
>         at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286)
>         at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
>         at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:40)
>         at org.apache.camel.http.common.CamelServlet.doService(CamelServlet.java:214)
>         at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:80)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>         at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
>         at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
>         at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:64)
>         at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
>         at org.ops4j.pax.web.service.undertow.internal.Context$1.lambda$wrap$0(Context.java:614)
>         at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
>         at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
>         at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>         at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
>         at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
>         at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
>         at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
>         at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
>         at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
>         at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>         at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)
>         at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
>         at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
>         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
>         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
>         at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
>         at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
>         at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
>         at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
>         at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
>         at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)
>         at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
>         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.base/java.lang.Thread.run(Unknown Source)
>
> Best
> Gerald
>
> > Claus Ibsen <cl...@gmail.com> hat am 28.09.2020 20:58 geschrieben:
> >
> >
> > Hi
> >
> > What version of Camel do you use?
> >
> > The exception has some details, but I guess the default toString does
> > not output any of that
> > https://github.com/apache/camel/blob/master/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidationException.java
> >
> >
> > On Mon, Sep 28, 2020 at 8:33 PM Gerald Kallas <ca...@mailbox.org> wrote:
> > >
> > > Dear all,
> > >
> > > I've tried the json-validator. When an error occurs it is shown only
> > >
> > > "JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-12-4]"
> > >
> > > I there an option to get a more qualified error message (e.g. what's wrong in the JSON document)?
> > >
> > > Best
> > > Gerald
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: json-validator full error message

Posted by Gerald Kallas <ca...@mailbox.org>.
Hi,

I'm using Camel 3.4.4.

The full blown error stack is

org.apache.camel.component.jsonvalidator.JsonValidationException: JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-13-2]
	at org.apache.camel.component.jsonvalidator.DefaultJsonValidationErrorHandler.handleErrors(DefaultJsonValidationErrorHandler.java:30)
	at org.apache.camel.component.jsonvalidator.JsonValidatorEndpoint.onExchange(JsonValidatorEndpoint.java:120)
	at org.apache.camel.support.ProcessorEndpoint$1.process(ProcessorEndpoint.java:63)
	at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:67)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:168)
	at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:395)
	at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
	at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286)
	at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
	at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:40)
	at org.apache.camel.http.common.CamelServlet.doService(CamelServlet.java:214)
	at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
	at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:64)
	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
	at org.ops4j.pax.web.service.undertow.internal.Context$1.lambda$wrap$0(Context.java:614)
	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
	at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
	at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
	at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)
	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
	at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)
	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Best
Gerald

> Claus Ibsen <cl...@gmail.com> hat am 28.09.2020 20:58 geschrieben:
> 
>  
> Hi
> 
> What version of Camel do you use?
> 
> The exception has some details, but I guess the default toString does
> not output any of that
> https://github.com/apache/camel/blob/master/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidationException.java
> 
> 
> On Mon, Sep 28, 2020 at 8:33 PM Gerald Kallas <ca...@mailbox.org> wrote:
> >
> > Dear all,
> >
> > I've tried the json-validator. When an error occurs it is shown only
> >
> > "JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-12-4]"
> >
> > I there an option to get a more qualified error message (e.g. what's wrong in the JSON document)?
> >
> > Best
> > Gerald
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Re: json-validator full error message

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

What version of Camel do you use?

The exception has some details, but I guess the default toString does
not output any of that
https://github.com/apache/camel/blob/master/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidationException.java


On Mon, Sep 28, 2020 at 8:33 PM Gerald Kallas <ca...@mailbox.org> wrote:
>
> Dear all,
>
> I've tried the json-validator. When an error occurs it is shown only
>
> "JSON validation error with 1 errors. Exchange[ID-700bc59e90f0-1601310667823-12-4]"
>
> I there an option to get a more qualified error message (e.g. what's wrong in the JSON document)?
>
> Best
> Gerald



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2