[ 
https://issues.apache.org/jira/browse/LENS-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lavkesh Lahngir updated LENS-1252:
----------------------------------
    Issue Type: Sub-task  (was: Bug)
        Parent: LENS-1265

> Scheduler's getJobDefinition api is giving response status 500, if accept 
> media type is "application/xml"
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: LENS-1252
>                 URL: https://issues.apache.org/jira/browse/LENS-1252
>             Project: Apache Lens
>          Issue Type: Sub-task
>            Reporter: Archana H
>            Assignee: Lavkesh Lahngir
>
> xml:
> {CODE}
> 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
> {CODE}
> json:
> {CODE}
> 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"
> }
> {CODE}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to