500 Internal Server error

Version 1
    This document was generated from CDN thread

    Created by: Will Ashley on 19-07-2012 02:47:04 PM
    I keep getting a 500 Internal Server error when trying to use CUTI.  Any ideas on what is wrong?
     
     

    Subject: RE: 500 Internal Server error
    Replied by: Ting-Hao Chen on 19-07-2012 02:59:18 PM
    Will,
    Were you able to collect the trace from your server?
    Here is the instruction on how to get the trace...

    Howard

    Subject: RE: 500 Internal Server error
    Replied by: Will Ashley on 20-07-2012 02:11:52 PM
    Will,
    Were you able to collect the trace from your server?
    Here is the instruction on how to get the trace...

    Howard

     
    14:02:51.490 |1222,,,VMREST,0,ERROR [http-8443-1] com.cisco.connection.rest.SecurityFilter  - user principal not found
     
     
     

    Subject: RE: 500 Internal Server error
    Replied by: Ting-Hao Chen on 23-07-2012 02:07:03 PM
    Looks like a user setting problem?
    Can you share more on what you are trying to do?
    Which API call were you trying?

    Subject: RE: 500 Internal Server error
    Replied by: Will Ashley on 26-07-2012 01:50:17 PM
    Ok, I fixed the 500 error,

    What we are trying to do it record a message on the phone and send it to another user.  I can record the message, but having trouble with the send part.  I get request was canceled message.  when I try to send it.

    I am using .NET to try and recreate this: (From your Wiki on how to send a message)  But without code examples etc.. you guys make it really hard to figure this stuff out.

    POST /vmrest/messages?userobjectid=84c14db9-7439-4326-a2e2-e516aa192dff HTTP/1.1
    Content-Type: multipart/form-data;boundary=Boundary_1_16617866_1263568442453
    Accept: application/json
    User-Agent: Java/1.6.0_17
    Host: cuc-install-67.cisco.com
    Connection: keep-alive
    Authorization: Basic Y2NtYWRtaW5pc3RyYXRvcjplY3NidWxhYg==
    Content-Length: 731

    \--Boundary_1_16617866_1263568442453
    Content-Type: application/json
    {"Subject":"send message test","ArrivalTime":"0","FromSub":"false"}
    \--Boundary_1_16617866_1263568442453
    Content-Type: application/json

    {"Recipient":{"Type":"TO","Address":
    {"UserGuid":"84c14db9-7439-4326-a2e2-e516aa192dff","DisplayName":"Operator"}
    }}
    \--Boundary_1_16617866_1263568442453
    Content-Type: application/xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><CallControl><op>PLAY</op><resourceType>STREAM</resourceType><resourceId>cf1cb014-6394-4279-
    ab5a-74a6d680e440.wav</resourceId><lastResult>0</lastResult><speed>100</speed><volume>100</volume><startPosition>0</startPosition></CallControl>

    \--Boundary_1_16617866_1263568442453-\-

    Subject: RE: 500 Internal Server error
    Replied by: Will Ashley on 31-07-2012 11:47:19 AM
    Ok, I have it "sending" a message, and it says it did it, but I never see the message in the user's VM.  Where does the message go?

    Is it supposed to show up in the VM box, or does "Send" mean something different.

    Subject: RE: 500 Internal Server error
    Replied by: Ting-Hao Chen on 03-08-2012 05:07:26 PM
    Did you check the response header? It might just return the 200 OK, or 202 meaning "Accepted".

    Howard