Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1782

Client returns FalconWebException instead of the expected error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.9
    • client, scheduler
    • None

    Description

      dataqa@lda01:~$ falcon entity -type process -schedule -name ProcessMultipleClustersTest -properties falcon.scheduler:native
      ERROR: Bad Request;ua1/Entity schedule failed for process: ProcessMultipleClustersTest
      
      

      Although server logs conatin the following stack trace :

      2016-01-27 12:39:38,948 ERROR - [904889633@qtp-690339675-6 - b34cec09-f533-495c-92e1-a927948aef7b:dataqa:POST//entities/schedule/process/ProcessMultipleClustersTest] ~ Entity schedule failed for process: ProcessMultipleClustersTest (AbstractSchedulableEntityManager:105)
      org.apache.falcon.FalconException: Entity ProcessMultipleClustersTest is already scheduled on configured workflow engine.
              at org.apache.falcon.workflow.WorkflowEngineFactory.getWorkflowEngine(WorkflowEngineFactory.java:93)
              at org.apache.falcon.resource.AbstractSchedulableEntityManager.scheduleInternal(AbstractSchedulableEntityManager.java:103)
              at org.apache.falcon.resource.AbstractSchedulableEntityManager.schedule(AbstractSchedulableEntityManager.java:82)
              at org.apache.falcon.resource.SchedulableEntityManager.schedule(SchedulableEntityManager.java:175)
              at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
              at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
      
      

      Prism logs say the following :

      2016-01-27 12:39:38,948 ERROR - [904889633@qtp-690339675-6 - b34cec09-f533-495c-92e1-a927948aef7b:dataqa:POST//entities/schedule/process/ProcessMultipleClustersTest] ~ Unable to schedule workflow (AbstractSchedulableEntityManager:85)
      org.apache.falcon.FalconWebException
              at org.apache.falcon.FalconWebException.newAPIException(FalconWebException.java:62)
              at org.apache.falcon.FalconWebException.newAPIException(FalconWebException.java:54)
              at org.apache.falcon.resource.AbstractSchedulableEntityManager.scheduleInternal(AbstractSchedulableEntityManager.java:106)
              at org.apache.falcon.resource.AbstractSchedulableEntityManager.schedule(AbstractSchedulableEntityManager.java:82)
              at org.apache.falcon.resource.SchedulableEntityManager.schedule(SchedulableEntityManager.java:175)
              at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
      

      Attachments

        Activity

          People

            praveen Praveen Rachabattuni
            pragya.mittal Pragya Mittal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: