[camel-weather] Failed to create Producer for endpoint: Endpoint[weather://...]. Reason: java.lang.IllegalStateException: Got the unexpected value '' for the geolocation

Solution Verified - Updated -

Issue

Any calls using the camel-weather component with no location attribute defined fail with

2018-09-17 09:49:19,678 | ERROR | ExtenderThread-2 | ContextLoaderListener            | 210 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.jboss.qe.camel.components.weather-test, config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[weather://foo?appid=...]. Reason: java.lang.IllegalStateException: Got the unexpected value '' for the geolocation

Environment

  • Red Hat Fuse
    • 7.0
    • 6.x
  • Camel
  • camel-weather component without a location attribute set

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content