nokiadatagathering / ndg-ng

4.04 up to 5.11 versions of the server
5 stars 6 forks source link

Save survey error #72

Closed IanLawrence closed 11 years ago

IanLawrence commented 11 years ago

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

Execution exception (In /app/controllers/deserializer/CategoryObjectFactory.java around line 42) NullPointerException occured : null

play.exceptions.JavaExecutionException at play.mvc.ActionInvoker.invoke(ActionInvoker.java:237) at Invocation.HTTP Request(Play!) Caused by: java.lang.NullPointerException at controllers.deserializer.CategoryObjectFactory.instantiate(CategoryObjectFactory.java:42) at flexjson.ObjectBinder.bind(ObjectBinder.java:86) at flexjson.ObjectBinder.bindIntoCollection(ObjectBinder.java:101) at flexjson.factories.ClassLocatorObjectFactory.instantiate(ClassLocatorObjectFactory.java:29) at flexjson.ObjectBinder.bind(ObjectBinder.java:86) at flexjson.ObjectBinder.bindIntoObject(ObjectBinder.java:139) at controllers.deserializer.SurveyObjectFactory.bind(SurveyObjectFactory.java:70) at controllers.deserializer.SurveyObjectFactory.instantiate(SurveyObjectFactory.java:57) at flexjson.ObjectBinder.bind(ObjectBinder.java:86) at flexjson.ObjectBinder.bind(ObjectBinder.java:65) at flexjson.JSONDeserializer.deserialize(JSONDeserializer.java:211) at controllers.logic.SurveyJsonTransformer.saveSurvey(SurveyJsonTransformer.java:92) at controllers.SurveyManager.saveSurvey(SurveyManager.java:67) at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161) ... 1 more

IanLawrence commented 11 years ago

seems to have mutated to this now

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

Execution exception (In /app/controllers/deserializer/CategoryObjectFactory.java around line 42) IllegalStateException occured : An entity copy was already assigned to a different entity.

IanLawrence commented 11 years ago

Fixed by implementing the save refresh