Hi,
I'm getting nullpointerexception when flow is rendering the first jsp in the start state.
My model object in the flow is Car.
On the start of the flow I'm presenting a form which captures engine information.Code:public class Car implements Serializable { private Long id; private Engine engine; private Wheels wheels; private Body body; //getter and setters }
When the flow starts to render this view, it throws following exceptionCode:<form:form method = "post" modelAttribute = "car"> Select engine: <form:input path="engine.engineType"/> //rest of the form..... </form:form>
Code:Caused by: ognl.OgnlException: source is null for getProperty(null, "engineType") at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1652) at ognl.ASTProperty.getValueBody(ASTProperty.java:92) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.getValueBody(ASTChain.java:109) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at org.springframework.binding.expression.ognl.OgnlExpression.getValue(OgnlExpression.java:85)


Reply With Quote