Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving Survey Error #41

Open
rodavelino opened this issue Aug 3, 2012 · 1 comment
Open

Saving Survey Error #41

rodavelino opened this issue Aug 3, 2012 · 1 comment

Comments

@rodavelino
Copy link
Member

When I edit a survey and try to save it, it says:

Problem with saving survey. Original error: error

The log shows the following:

@6b03ga1pn
Internal Server Error (500) for request POST /surveyManager/saveSurvey

Execution exception (In /app/controllers/SurveyManager.java around line 67)
NullPointerException occured : Try to read userAdmin on null object models.NdgUser (controllers.SurveyManager.saveSurvey, line 67)

play.exceptions.JavaExecutionException: Try to read userAdmin on null object models.NdgUser (controllers.SurveyManager.saveSurvey, line 67)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:229)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.NullPointerException: Try to read userAdmin on null object models.NdgUser (controllers.SurveyManager.saveSurvey, line 67)
at play.classloading.enhancers.PropertiesEnhancer$FieldAccessor.invokeReadProperty(PropertiesEnhancer.java:202)
at controllers.SurveyManager.saveSurvey(SurveyManager.java:67)
at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:546)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:500)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:476)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:471)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:159)
... 1 more

@leGeddy
Copy link

leGeddy commented Nov 20, 2012

I get different error messages but the one that comes up the most is:

Internal Server Error (500) for request POST /surveyManager/saveSurvey

Execution exception (In /app/controllers/deserializer/QuestionObjectFactory.java around line 62)
LazyInitializationException occured : failed to lazily initialize a collection of role: models.Category.questionCollection, no session or session was closed

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants