Re: get 500 Internal Server Error when Create/edit profile filter

236 views
Skip to first unread message

Andrew Shvayka

unread,
Oct 13, 2015, 6:08:46 AM10/13/15
to ke xie, Kaa project
I assume you have fixed the problem. If not - please attach logs and we will take a look.

Thanks,
Andrew

On Tue, Oct 13, 2015 at 11:48 AM, ke xie <keevi...@gmail.com> wrote:
I make a mistake


On Tuesday, October 13, 2015 at 1:56:54 PM UTC+8, ke xie wrote:
call:
curl -v -S -u devuser:devuser123 -X POST -H 'Content-Type: application/json' -d'{"applicationId":"110","schemaId":"130","endpointGroupId":"120","majorVersion":"1","minorVersion":"0","description":"Test Profile Filter","body":"true","status":"INACTIVE"}' "http://localhost:8080/kaaAdmin/rest/api/profileFilter
result :
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'devuser'
> POST /kaaAdmin/rest/api/profileFilter HTTP/1.1
> Authorization: Basic ZGV2dXNlcjpkZXZ1c2VyMTIz
> User-Agent: curl/7.35.0
> Host: localhost:8080
> Accept: */*
> Content-Type: application/json
> Content-Length: 172
* upload completely sent off: 172 out of 172 bytes
< HTTP/1.1 500 Server Error
< Set-Cookie: JSESSIONID=m1tqe0nlqkemv57bdsan1ug8;Path=/
< Content-Type: text/html; charset=ISO-8859-1
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Length: 14089
< Connection: close
* Server Jetty(9.2.2.v20140723) is not blacklisted
< Server: Jetty(9.2.2.v20140723)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /kaaAdmin/rest/api/profileFilter. Reason:
<pre>    Server Error</pre></p><h3>Caused by:</h3><pre>org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:973)




 
my profile filter records is:
call:
curl -v -S -u devuser:devuser123 -X GET "http://localhost:8080/kaaAdmin/rest/api/profileFilterRecords?endpointGroupId=120&includeDeprecated=true" | python -mjson.tool
result :
[
    {
        "activeProfileFilter": {
            "activatedTime": 1442325864717,
            "activatedUsername": "admin",
            "applicationId": "110",
            "body": "true",
            "createdTime": 1442325864702,
            "createdUsername": null,
            "deactivatedTime": 0,
            "deactivatedUsername": null,
            "description": null,
            "endpointCount": 0,
            "endpointGroupId": "120",
            "id": "140",
            "lastModifyTime": 1442325864702,
            "majorVersion": 1,
            "minorVersion": 0,
            "modifiedUsername": null,
            "schemaId": "130",
            "sequenceNumber": 1,
            "status": "ACTIVE",
            "version": 1
        },
        "inactiveProfileFilter": null
    },
    {
        "activeProfileFilter": {
            "activatedTime": 1444701139879,
            "activatedUsername": "devuser",
            "applicationId": "110",
            "body": "true",
            "createdTime": 1444701139873,
            "createdUsername": null,
            "deactivatedTime": 0,
            "deactivatedUsername": null,
            "description": null,
            "endpointCount": 0,
            "endpointGroupId": "120",
            "id": "460",
            "lastModifyTime": 1444701139873,
            "majorVersion": 2,
            "minorVersion": 0,
            "modifiedUsername": null,
            "schemaId": "450",
            "sequenceNumber": 1,
            "status": "ACTIVE",
            "version": 1
        },
        "inactiveProfileFilter": null
    }
]


anyone can help ?
thanks

--
You received this message because you are subscribed to the Google Groups "Kaa project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaaproject+...@googlegroups.com.
Visit this group at http://groups.google.com/group/kaaproject.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaaproject/bf1f1d49-6fe4-4927-9d1f-626ca1786e7a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

ke xie

unread,
Oct 13, 2015, 8:51:27 PM10/13/15
to Kaa project, keevi...@gmail.com
thanks I have fixed it . 

Pooja reddy0893

unread,
Dec 5, 2018, 8:04:55 AM12/5/18
to Kaa project
Can you let me know how you have resolved the issue?

Pooja reddy0893

unread,
Dec 5, 2018, 8:05:26 AM12/5/18
to Kaa project

Actually,Even iam facing with the same issue..
Reply all
Reply to author
Forward
0 new messages