Skip to content

panic and not being able to resolve redirects #103

@kdar

Description

@kdar

Just by running the booking application and logging in, stderr prints out

ERROR 2013/03/11 09:00:27 results.go:273: Couldn't resolve redirect: couldn't find method

and I get a panic in the browser

/home/outroot/dev/go-projects/src/github.com/robfig/revel/controller.go:126 (0x4405cd)
    com/robfig/revel.handleInvocationPanic: c.Response.Out.Write(debug.Stack())
/home/outroot/dev/go-projects/src/github.com/robfig/revel/controller.go:69 (0x459909)
    com/robfig/revel.func.017: handleInvocationPanic(c, err)
/home/outroot/dev/go/src/pkg/runtime/panic.c:228 (0x415611)
    panic: reflect·call(d->fn, (byte*)d->args, d->siz);
/home/outroot/dev/go/src/pkg/runtime/panic.c:479 (0x415d53)
    panicstring: runtime·panic(err);
/home/outroot/dev/go/src/pkg/runtime/hashmap.c:1050 (0x40be2f)
    mapassign1: runtime·panicstring("assignment to entry in nil map");
/home/outroot/dev/go-projects/src/github.com/robfig/revel/results.go:76 (0x449d29)
    com/robfig/revel.ErrorResult.Apply: r.RenderArgs["RunMode"] = RunMode
/home/outroot/dev/go-projects/src/github.com/robfig/revel/results.go:274 (0x44b1db)
    com/robfig/revel.(*RedirectToActionResult).Apply: ErrorResult{Error: err}.Apply(req, resp)
/home/outroot/dev/go-projects/src/github.com/robfig/revel/controller.go:115 (0x4404a2)
    com/robfig/revel.(*Controller).Invoke: c.Result.Apply(c.Request, c.Response)
/home/outroot/dev/go-projects/src/github.com/robfig/revel/server.go:107 (0x45158a)
    com/robfig/revel.handleInternal: controller.Invoke(appControllerPtr, method, actualArgs)
/home/outroot/dev/go-projects/src/github.com/robfig/revel/server.go:31 (0x45069f)
    com/robfig/revel.handle: handleInternal(w, r, nil)
/home/outroot/dev/go/src/pkg/net/http/server.go:926 (0x4db8be)
    HandlerFunc.ServeHTTP: f(w, r)
/home/outroot/dev/go/src/pkg/net/http/server.go:1291 (0x4dd24c)
    serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/home/outroot/dev/go/src/pkg/net/http/server.go:873 (0x4db575)
    (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/home/outroot/dev/go/src/pkg/runtime/proc.c:1160 (0x418e80)
    goexit: runtime·goexit(void)

this happens in my applications as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions