camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jspyeatt <john.pye...@singlewire.com>
Subject org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component
Date Wed, 17 Jun 2015 19:16:59 GMT
I'm using Camel 2.15.2 and suddenly find that context.addRoutes() is throwing
the following exception.

org.apache.camel.FailedToCreateRouteException: Failed to create route
SNMPPoll:udp:172.30.227.153:1.3.6.1.4.1.17491.1.1.2.1.2.201:
Route(SNMPPoll:udp:172.30.227.153:1.3.6.1.4.1.17491.1.1.2.1.... because of
Failed to resolve endpoint:
*snmp://172.30.227.153:161?delay=60000&oids=1.3.6.1.4.1.17491.1.1.2.1.2.201&protocol=udp&retries=2&snmpCommunity=private&snmpVersion=0&type=POLL*
due to: *Could not find a suitable setter for property: oids as there isn't
a setter method with same type: java.lang.String nor type conversion
possible:* No type converter available to convert from type:
java.lang.String to the required type:
org.apache.camel.component.snmp.OIDList with value
1.3.6.1.4.1.17491.1.1.2.1.2.201

The context is already running and looking at the documentation here 
http://camel.apache.org/snmp.html <http://camel.apache.org/snmp.html>   and
everything appears correct.

I'm just using the DefaultCamelContext and trying to do a simple
context.addRoutes(....) call.

Any ideas?



--
View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-FailedToCreateRouteException-Failed-to-create-route-with-SNMP-component-tp5768341.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message