Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1252

Scheduler's getJobDefinition api is giving response status 500, if accept media type is "application/xml"

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.6
    • server
    • None

    Description

      xml:

      16 > GET http://192.168.138.252:9999/lensapi/scheduler/jobs/3a77f190-7656-499f-9a39-62e6ffce9044?sessionid=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22%3F%3E%3ClensSessionHandle%3E%3CpublicId%3E1d79103e-b9d0-4f88-9de3-03f865c0d04f%3C%2FpublicId%3E%3CsecretId%3E3c0ca72c-6e63-47b9-96b8-9e5f571be700%3C%2FsecretId%3E%3C%2FlensSessionHandle%3E
      16 > accept: application/xml
      16 > connection: keep-alive
      16 > host: 192.168.138.252:9999
      16 > user-agent: Jersey/2.22.1 (HttpUrlConnection 1.8.0_91)
      
      02 Aug 2016 10:40:20 [] [grizzly-http-server-7] INFO  org.apache.lens.server.LensServer.request - 16 * Server responded with a response on thread grizzly-http-server-7
      16 < 500
      16 < Content-Type: application/xml
      HTTP 500 Internal Server Error
      

      json:

      19 > GET http://192.168.138.252:9999/lensapi/scheduler/jobs/3a77f190-7656-499f-9a39-62e6ffce9044?sessionid=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22%3F%3E%3ClensSessionHandle%3E%3CpublicId%3E148b2164-69af-40a5-a5e3-55caa8f1c5f8%3C%2FpublicId%3E%3CsecretId%3E3659ed3d-776c-4301-a0d1-b988cf91962d%3C%2FsecretId%3E%3C%2FlensSessionHandle%3E
      19 > accept: application/json
      19 > connection: keep-alive
      19 > host: 192.168.138.252:9999
      19 > user-agent: Jersey/2.22.1 (HttpUrlConnection 1.8.0_91)
      
      02 Aug 2016 10:45:07 [] [grizzly-http-server-2] INFO  org.apache.lens.server.LensServer.request - 19 * Server responded with a response on thread grizzly-http-server-2
      19 < 200
      19 < Content-Type: application/json
      {
         "name" : "job1",
         "execution" : {
            "session" : {
               "db" : "exp"
            },
            "query" : {
               "query" : "cube select id,name from sample_dim where name != 'first'"
            }
         },
         "trigger" : {
            "frequency" : {
               "enum" : "DAILY"
            }
         },
         "start_time" : "2016-07-01T00:00:00.000+05:30",
         "end_time" : "2016-07-02T00:00:00.000+05:30"
      }
      

      Attachments

        Issue Links

          Activity

            People

              lavkesh Lavkesh Lahngir
              archana.h Archana H
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: