I'm getting following errors when I connect zipkin into elasticsearch 7.14.1 and 7.7.1. it is wrokig fine with elasticsearch 6
elasticsearch-7.12.1, elasticsearch-7.14.1
ERROR: cannot load service names: Request processing failed; nested exception is
java.lang.IllegalStateException: response for update-template failed: {"error":
{"root_cause":[{"type":"invalid_index_template_exception","reason":"index_template
[zipkin:span_template] invalid, cause [Validation Failed: 1: index_pattern [zipkin:span-]
must not contain a
':';]"}],"type":"invalid_index_template_exception","reason":"index_template
[zipkin:span_template] invalid, cause [Validation Failed: 1: index_pattern [zipkin:span-]
must not contain a ':';]"},"status":400}
elasticsearch-7.0.0, elasticsearch-7.7.1
ERROR: cannot load service names: Request processing failed; nested exception is
java.lang.IllegalStateException: response for update-template failed: {"error":{"root_cause":
[{"type":"illegal_argument_exception","reason":"Setting index.mapper.dynamic was removed after
version 6.0.0"}],"type":"illegal_argument_exception","reason":"Setting index.mapper.dynamic
was removed after version 6.0.0"},"status":400}
I' using zipkin 2.11.7
any guidance would be appreciated
Related
I have cluster "ABC". Now I moved the Application to "XYZ" Cluster. And I changed all configuration file with Clsuter "XYZ". Now when I trying to deploy application then getting below error:
o.s.v.c.l.SecretLeaseEventPublisher$LoggingErrorListener - - [RequestedSecret [path='bass/orchestrator/sit', mode=ROTATE]] Lease [leaseId='null', leaseDuration=PT0S, renewable=false] Cannot login using Kubernetes: invalid role name "bass-reader-prod-nezbleu"; nested exception is org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request
org.springframework.vault.authentication.VaultLoginException: Cannot login using Kubernetes: invalid role name "Xyz123"; nested exception is org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request
at org.springframework.vault.authentication.VaultLoginException.create(VaultLoginException.java:64)
at org.springframework.vault.authentication.KubernetesAuthentication.login(KubernetesAuthentication.java:107)
at org.springframework.vault.authentication.LifecycleAwareS
I am working a SPring-MVC project where I am trying to set the cookie. I am using Tomcat7, And I have already set the cookie processor in context.xml to Rfc6265CookieProcessor. Currently I am getting the following error.
Error log :
HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value
type Exception report
message Request processing failed; nested exception is java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:979)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
Cookie values to be set : The spaces are not actually there, got them while reformatting in IntelliJ to get them in one paragraph :
s.d774b7c6eabba92fce3edbed8a9b003b,
s.bdf5f951e4ab858aac87fb182439f57f,
s.e77bd0cd86b4af86c4a550ec11d71d4c,
s.431334e112350c9d545f7a44cbcc530d,
s.6e6057e5483b538cf9c6daf2934fd825,
s.ea2438094c8631123fab3bf3efb7ec17,
s.e17b1d9dd1b9702ca8c9e95d30906dd5, s .3f 3 c8f3fc19597025ef87dafc0fb277a, s .5531
b742d6e12717f4071818b5861bd2, s .420811998d
b14d0a68dd9e3d3c04849f, s.d8ed1aa3b0a2e513d449a96182898160, s.f3b5784d6e777032c6b7576e7d824af0, s .69
bc19557e43fcfa83816f427b60a09d, s .5677087e bc57003436c55f49fceff5cb, s .5f
a872b3e84fd69618534940034e1adb, s.fe4184c9b925ddf04def79c0c55392ca, s .74e4438d 05f 267
c48297a0c66a7dbeba, s .95e c071a356cf1998d809267006725db, s .9 b72a01cfda4509833c1f0c7bf2afdac, s .5240f
10897d 2f 96f 49d 0328 a2521519c, s .518 cd1d749fbba6540424874d64c5443
Character 44 (comma) is not valid in a cookie value.
See https://www.rfc-editor.org/rfc/rfc6265 for more details.
The solution for me was to change the version of Tomcat, I was working with 8.5 and I was getting the character error in cookie value, I changed to Tomcat 9 and the problem continued, finally with Tomcat 7 it was solved. The most logical option is to replace the commas in the cookie values, but if you want to quickly fix the problem locally and keep working you might consider switching from Tomcat.
I am using Apache Camel mail to read emails from an account. But for a particular mail, it is stuck over there and throws an exception as "Unable to read BODYSTRUCTURE" . It also does not mark the mail as read. Any mail received after that are not read by the camel service.
317422 [Camel (emailToEWSContext) thread #0 - imaps://outlook.office365.com] WARN org.apache.camel.component.mail.MailConsumer - Caused by: [org.apache.camel.RuntimeCamelException - Failed to extract body due to: Unable to load BODYSTRUCTURE. Exchange: Exchange[][MailMessage#0x55f69873]. Message: com.sun.mail.imap.IMAPMessage#7a97bfa9]
org.apache.camel.RuntimeCamelException: Failed to extract body due to: Unable to load BODYSTRUCTURE. Exchange: Exchange[][MailMessage#0x55f69873]. Message: com.sun.mail.imap.IMAPMessage#7a97bfa9 at org.apache.camel.component.mail.MailBinding.extractBodyFromMail(MailBinding.java:275)
We have a scheduled invoicing service, where we send invoices to customers' email.
asynchronousMailService.sendMail {
multipart true
to emailTo.split("[,;]")
bcc bccString
from fromString
subject subjectString
html view:'/email/invoiceEmailTemplate',
model: [companyName: companyName, customerFirstName: order.customer.firstName,
xeroInvoiceId: invoice.invoiceNumber, invoiceTotal: order.totalAmount,
invoiceUrl: invoiceUrl,
currencyCode: invoice.currencyCode, dueDate: invoice.dueDate]
attachBytes invoice.invoiceNumber+".pdf" , 'application/pdf', invoiceBytes
}
Causing this error:
2016-03-09 18:22:23,073 [quartzScheduler_Worker-10] ERROR listeners.ExceptionPrinterJobListener - Exception occurred in job: Grails Job
org.quartz.JobExecutionException: java.lang.NullPointerException [See nested exception: java.lang.NullPointerException]
at grails.plugins.quartz.GrailsJobFactory$GrailsJob.execute(GrailsJobFactory.java:111)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.NullPointerException
at java.net.URI$Parser.parse(URI.java:3023)
at java.net.URI.<init>(URI.java:595)
at grails.plugin.mail.MailMessageContentRenderer$PageRenderRequestCreator.createInstance(MailMessageContentRenderer.groovy:198)
at grails.plugin.mail.MailMessageContentRenderer$RenderEnvironment.init(MailMessageContentRenderer.groovy:147)
at grails.plugin.mail.MailMessageContentRenderer$RenderEnvironment.with(MailMessageContentRenderer.groovy:178)
at grails.plugin.mail.MailMessageContentRenderer.render(MailMessageContentRenderer.groovy:63)
at grails.plugin.asyncmail.AsynchronousMailMessageBuilder.doRender(AsynchronousMailMessageBuilder.groovy:281)
at grails.plugin.asyncmail.AsynchronousMailMessageBuilder.html(AsynchronousMailMessageBuilder.groovy:267)
at com.mycompany.thirdparty.InvoiceService$_emailInvoiceToCustomer_closure5.doCall(InvoiceService.groovy:118)
at grails.plugin.asyncmail.AsynchronousMailService.sendAsynchronousMail(AsynchronousMailService.groovy:21)
at AsynchronousMailGrailsPlugin$_configureSendMail_closure9.doCall(AsynchronousMailGrailsPlugin.groovy:132)
at com.mycompany.thirdparty.InvoiceService.emailInvoiceToCustomer(InvoiceService.groovy:112)
at com.mycompany.thirdparty.InvoiceService$_createInvoice_closure2.doCall(InvoiceService.groovy:47)
at grails.plugin.multitenant.core.MultiTenantService$_doWithTenantId_closure1_closure2.doCall(MultiTenantService.groovy:32)
at grails.plugin.hibernatehijacker.template.HibernateTemplates$_withTransaction_closure1.doCall(HibernateTemplates.groovy:39)
at grails.plugin.hibernatehijacker.template.HibernateTemplates.withTransaction(HibernateTemplates.groovy:37)
at grails.plugin.multitenant.core.MultiTenantService$_doWithTenantId_closure1.doCall(MultiTenantService.groovy:31)
at grails.plugin.hibernatehijacker.template.HibernateTemplates$_withNewSession_closure2.doCall(HibernateTemplates.groovy:65)
at grails.plugin.hibernatehijacker.template.HibernateTemplates.withNewSession(HibernateTemplates.groovy:57)
at grails.plugin.multitenant.core.MultiTenantService.doWithTenantId(MultiTenantService.groovy:30)
at grails.plugin.multitenant.singledb.MtSingleDbPluginSupport$_createWithTenantIdMethod_closure2.doCall(MtSingleDbPluginSupport.groovy:141)
at com.mycompany.thirdparty.InvoiceService.createInvoice(InvoiceService.groovy:38)
at com.mycompany.thirdparty.InvoiceJob.execute(InvoiceJob.groovy:13)
at grails.plugins.quartz.GrailsJobFactory$GrailsJob.execute(GrailsJobFactory.java:102)
The above error logs only happen in production server and I have no success in replicating on my local machine and dev server.
Any ideas?
I answered that question once here: Grails Mail service not working with guartz scheduler in war mode
It's the AsyncMail unable to get the server's URL. The simplest thing is to configure it via the grails.serverURL config property.
forgive the title of this question, I wasn't even sure how to phrase it. My issue is that I'm working on a legacy camel project and want to move it forward from camel 2.9.2 to camel 2.13.2. The legacy project uses ant, not maven, and it has a bunch of camel (and other) jars in it (many of which it doesn't actually need, from what I can gather) but in any case it does work. I created a maven build file (pom.xml) and tried to recreate the necessary dependencies so that I could download the appropriate versions for camel-2.13.2. It builds fine. However, when I deploy it, when I start up I get an error on a xsd validator which was previously working fine in the old version. I do not see any other errors in my log.
Apologies, but it's a long stacktrace:
09/10/2014 13:11 ERROR [main] (?:?) - &&& CamelManager exception
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route EFileBatchRequestValidate at: >>> DoTry[[To[properties:{{validator.efilebatch.TRACSEFileBatch}}], To[properties:{{queue.efilebatch.request.validatedtracsxsd}}], DoCatch[ null -> [To[exceptionResponseProcessor], To[properties:{{queue.efilebatch.request.rejected}}], To[properties:{{queue.efilebatch.response}}]]]]] <<< in route: Route(EFileBatchRequestValidate)[[From[properties:{{queue.ef... because of Failed to resolve endpoint: properties://%7B%7Bvalidator.efilebatch.TRACSEFileBatch%7D%7D due to: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:318)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:217)
at org.apache.camel.spring.Main.doStart(Main.java:157)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.main.MainSupport.run(MainSupport.java:147)
at gov.nmcourts.camelvm.CamelManager.start(Unknown Source)
at gov.nmcourts.camelvm.CamelManager.main(Unknown Source)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route EFileBatchRequestValidate at: >>> DoTry[[To[properties:{{validator.efilebatch.TRACSEFileBatch}}], To[properties:{{queue.efilebatch.request.validatedtracsxsd}}], DoCatch[ null -> [To[exceptionResponseProcessor], To[properties:{{queue.efilebatch.request.rejected}}], To[properties:{{queue.efilebatch.response}}]]]]] <<< in route: Route(EFileBatchRequestValidate)[[From[properties:{{queue.ef... because of Failed to resolve endpoint: properties://%7B%7Bvalidator.efilebatch.TRACSEFileBatch%7D%7D due to: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:910)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:175)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:780)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2068)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1816)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1683)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1651)
at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:254)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
... 13 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: properties://%7B%7Bvalidator.efilebatch.TRACSEFileBatch%7D%7D due to: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:534)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:190)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
at org.apache.camel.model.ProcessorDefinition.createProcessor(ProcessorDefinition.java:459)
at org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:428)
at org.apache.camel.model.TryDefinition.createProcessor(TryDefinition.java:73)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:499)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:212)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:907)
... 22 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:534)
at org.apache.camel.component.properties.PropertiesComponent.createEndpoint(PropertiesComponent.java:113)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:514)
... 34 more
Caused by: java.lang.IllegalArgumentException: protocol = http host = null
at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:170)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:926)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
at org.apache.camel.util.ResourceHelper.resolveResourceAsInputStream(ResourceHelper.java:118)
at org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:87)
at org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.getInputUri(DefaultLSResourceResolver.java:108)
at org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.<init>(DefaultLSResourceResolver.java:101)
at org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.<init>(DefaultLSResourceResolver.java:88)
at org.apache.camel.component.validator.DefaultLSResourceResolver.resolveResource(DefaultLSResourceResolver.java:85)
at com.sun.org.apache.xerces.internal.util.DOMEntityResolverWrapper.resolveEntity(DOMEntityResolverWrapper.java:109)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1070)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:659)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.resolveSchemaSource(XSDHandler.java:2105)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.java:1088)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:620)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:616)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:574)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:540)
at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:252)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:627)
at org.apache.camel.processor.validation.ValidatingProcessor.createSchema(ValidatingProcessor.java:364)
at org.apache.camel.processor.validation.ValidatingProcessor.loadSchema(ValidatingProcessor.java:187)
at org.apache.camel.component.validator.ValidatorComponent.createEndpoint(ValidatorComponent.java:60)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:514)
... 37 more
Exception in thread "main" java.lang.RuntimeException: Problem launching or running Camel
at gov.nmcourts.camelvm.CamelManager.main(Unknown Source)
Caused by: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route EFileBatchRequestValidate at: >>> DoTry[[To[properties:{{validator.efilebatch.TRACSEFileBatch}}], To[properties:{{queue.efilebatch.request.validatedtracsxsd}}], DoCatch[ null -> [To[exceptionResponseProcessor], To[properties:{{queue.efilebatch.request.rejected}}], To[properties:{{queue.efilebatch.response}}]]]]] <<< in route: Route(EFileBatchRequestValidate)[[From[properties:{{queue.ef... because of Failed to resolve endpoint: properties://%7B%7Bvalidator.efilebatch.TRACSEFileBatch%7D%7D due to: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:318)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:217)
at org.apache.camel.spring.Main.doStart(Main.java:157)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.main.MainSupport.run(MainSupport.java:147)
at gov.nmcourts.camelvm.CamelManager.start(Unknown Source)
... 1 more
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route EFileBatchRequestValidate at: >>> DoTry[[To[properties:{{validator.efilebatch.TRACSEFileBatch}}], To[properties:{{queue.efilebatch.request.validatedtracsxsd}}], DoCatch[ null -> [To[exceptionResponseProcessor], To[properties:{{queue.efilebatch.request.rejected}}], To[properties:{{queue.efilebatch.response}}]]]]] <<< in route: Route(EFileBatchRequestValidate)[[From[properties:{{queue.ef... because of Failed to resolve endpoint: properties://%7B%7Bvalidator.efilebatch.TRACSEFileBatch%7D%7D due to: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:910)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:175)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:780)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2068)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1816)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1683)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1651)
at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:254)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
... 13 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: properties://%7B%7Bvalidator.efilebatch.TRACSEFileBatch%7D%7D due to: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:534)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:190)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
at org.apache.camel.model.ProcessorDefinition.createProcessor(ProcessorDefinition.java:459)
at org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:428)
at org.apache.camel.model.TryDefinition.createProcessor(TryDefinition.java:73)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:499)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:212)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:907)
... 22 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd due to: protocol = http host = null
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:534)
at org.apache.camel.component.properties.PropertiesComponent.createEndpoint(PropertiesComponent.java:113)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:514)
... 34 more
Caused by: java.lang.IllegalArgumentException: protocol = http host = null
at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:170)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:926)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
at org.apache.camel.util.ResourceHelper.resolveResourceAsInputStream(ResourceHelper.java:118)
at org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:87)
at org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.getInputUri(DefaultLSResourceResolver.java:108)
at org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.<init>(DefaultLSResourceResolver.java:101)
at org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.<init>(DefaultLSResourceResolver.java:88)
at org.apache.camel.component.validator.DefaultLSResourceResolver.resolveResource(DefaultLSResourceResolver.java:85)
at com.sun.org.apache.xerces.internal.util.DOMEntityResolverWrapper.resolveEntity(DOMEntityResolverWrapper.java:109)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1070)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:659)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.resolveSchemaSource(XSDHandler.java:2105)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.java:1088)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:620)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:616)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:574)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:540)
at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:252)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:627)
at org.apache.camel.processor.validation.ValidatingProcessor.createSchema(ValidatingProcessor.java:364)
at org.apache.camel.processor.validation.ValidatingProcessor.loadSchema(ValidatingProcessor.java:187)
at org.apache.camel.component.validator.ValidatorComponent.createEndpoint(ValidatorComponent.java:60)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:514)
... 37 more
I have not changed the route from when it worked. I only changed jar files/versions/dependencies/etc. (and also upgraded from java-1.6 to java 1.7). The route looks something like:
... etc
<doTry>
<to id="tracsValidator" uri="properties:{{validator.efilebatch.TRACSEFileBatch}}" />
<to uri="properties:{{queue.efilebatch.request.validatedtracsxsd}}" />
<doCatch>
... etc
where the validator property is defined as:
validator.efilebatch.TRACSEFileBatch=validator://http://tomcat-test:8080/ecitationinternal/xsd/Odyssey/current/NM/NMEFileBatch.xsd
I am able to reach the host and URL in question from the box. From the command line, I can issue a wget and retrieve the xsd file successfully. The xsd file has not changed from the previous (working) version, either. Googling and poking and prodding haven't led me to a solution thus far. Suggestions welcome.