Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-6380

camel-JT400 exception: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.0
    • jboss-fuse-6.3
    • Camel
    • None
    • % %
    • Hide
      • Did not get AS-400 server/simulator so just tested url with some fake values.
      • First install feature camel-jt400 to the Red Hat JBoss Fuse.
      • Unzip the project, build it and deploy in Fuse using command.
        osgi:install -s mvn:com.mycompany/jt400-test/1.0.0-SNAPSHOT
        
      Show
      Did not get AS-400 server/simulator so just tested url with some fake values. First install feature camel-jt400 to the Red Hat JBoss Fuse. Unzip the project, build it and deploy in Fuse using command. osgi:install -s mvn:com.mycompany/jt400-test/1.0.0-SNAPSHOT
    • 7.0 Sprint 1

    Description

      • One of the user is working on camel-JT400 component.
      • camel-jt400 feature is already installed. He gets following error:
        JBossFuse:admin@batch-services-n1> Exception in thread "SpringOsgiExtenderThread-26" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jt400://EQINT:EQINT@<IP>/QSYS.LIB/KLIBPMT.LIB/CBWPSDQ.DTAQ?consumer.delay=1000 due to: There are 15 parameters that couldn't be set on the endpoint consumer. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown consumer parameters=[{backoffMultiplier=0, sendEmptyMessageWhenIdle=false, schedulerProperties=null, initialDelay=1000, backoffIdleThreshold=0, scheduler=null, delay=1000, useFixedDelay=true, pollStrategy=org.apache.camel.impl.DefaultPollingConsumerPollStrategy@5ceb3b5c, startScheduler=true, runLoggingLevel=TRACE, backoffErrorThreshold=0, greedy=false, scheduledExecutorService=null, timeUnit=MILLISECONDS}]
                at org.apache.camel.impl.DefaultEndpoint.configureConsumer(DefaultEndpoint.java:510)
                at org.apache.camel.component.jt400.Jt400Endpoint.createConsumer(Jt400Endpoint.java:92)
                at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:69)
                at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:103)
                at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
                at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3496)
        
      • It seems that this method of DefaultEndpoint class is being executed:
         protected void configureConsumer(Consumer consumer) throws Exception {  
        -------------
                    if (!this.isLenientProperties() && copy.size() > 0) {
                        throw new ResolveEndpointFailedException(this.getEndpointUri(), "There are " + copy.size()
                            + " parameters that couldn't be set on the endpoint consumer."
                            + " Check the uri if the parameters are spelt correctly and that they are properties of the endpoint."
                            + " Unknown consumer parameters=[" + copy + "]");
                    }
                }
        
      • Jt400RouteTest junit testcase provided in camel codebase also doesn't execute completely, as the system property is null so test-case is bypassed.
      • Endpoint Information:
        EQU_Response_DataQ=jt400://EQINT:EQINT@<IP>/QSYS.LIB/KLIBPMT.LIB/CBWPSDQ.DTAQ?consumer.delay=1000
        
      • Route is
          <route id="read-equation-dataq" startupOrder="3">
                                <from uri="{{EQU_Response_DataQ}}" />
                                <setHeader headerName="EventType">
                                        <constant>Equation-to-Sif</constant>
                                </setHeader>
                                <to uri="direct:ProcessEquationResponse" />
                        </route>
        

      Attachments

        Issue Links

          Activity

            People

              acosenti Andrea Cosentino
              rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: