cancel
Showing results for 
Search instead for 
Did you mean: 

415 Unsupported Media Type: while initiating process

penusila611621
Champ in-the-making
Champ in-the-making
I am using follwoing url & data through rest but getting 415 Unsupported Media Type error. rest calls to get instance details & task details are working fine. I think my problem is with POST,PUT requests but not GET requsts.

Request: http://localhost:8080/activiti-rest/service/runtime/process-instances
Type: POST

Request body: {
   "processDefinitionKey":"restprocess",
   "businessKey":"m1020",
  "user":"kermit",
}

trying on following technology stack:
jboss 1.6
jdk 1.6
activiti 5.14
tried with firefox & chrome

5 REPLIES 5

ozkan
Champ in-the-making
Champ in-the-making
Try to write username and password in the request properties.

penusila611621
Champ in-the-making
Champ in-the-making
tried with the body as below, but no luck.
{
"processDefinitionKey":"restprocess",
"businessKey":"m1020",
"user":"kermit"
"password":kermit"

}

penusila611621
Champ in-the-making
Champ in-the-making
{
"processDefinitionKey":"restprocess",
"businessKey":"m1020",
"user":"kermit",
"password":"kermit"
}

with comma after username

frederikherema1
Star Contributor
Star Contributor
Don't pass in user and password in the request-body. The userguide clearly states the request-body for that POST and it does not contain any user/pass, hence the 415 response.

Use username and password in a BASIC auth header instead…

penusila611621
Champ in-the-making
Champ in-the-making
thanks frederikheremans. Your answer solved my problem.