"Not a personal build" error?

I'm writing a REST plugin to return detailed build info and I'm seeing this exception:

Error has occurred during request processing (Internal Server Error).

Error: org.codehaus.jackson.map.JsonMappingException: Not a personal build (through reference chain: jetbrains.buildServer.server.restcontrib.tcstalker.request.BuildStatus["lastBuilds"]->java.util.ArrayList[0]->jetbrains.buildServer.server.restcontrib.tcstalker.request.BuildInfo["committers"]->jetbrains.buildServer.serverSide.impl.CombinedUserSet["users"]->java.util.HashSet[0]->jetbrains.buildServer.users.impl.SecuredUser["allModifications"]->java.util.ArrayList[0]->jetbrains.buildServer.vcs.impl.DBVcsModification["personalChangeInfo"])

My "lastBuilds" property does the following to grab the last 10 builds:

        for (SFinishedBuild sFinishedBuild : myDataProvider.getServer().getHistory().getEntries(false).subList(0, 9)) {
            buildStatus.lastBuilds.add(new BuildInfo(sFinishedBuild));
        }


I'm not really sure why I'm seeing this.  It seems like a permission problem but I guess I don't understand enough about the TC object model to know how to avoid seeing this...?
1 comment
Comment actions Permalink

Ok, I'm assuming it's because I'm being lazy and just serializing the UserSet<SUser> that I get back which probably tries to write a lot of things that it shouldn't.  I'm going to try a better way to do this.

0

Please sign in to leave a comment.