[29 May 14:43:16 Relations-debug] ERROR *** Exception occured in application init. WebDSL application will not run correctly. ***
java.lang.NullPointerException
	at utils.GlobalInit._initAction_0(GlobalInit.java:56)
	at utils.GlobalInit.initActions(GlobalInit.java:70)
	at utils.GlobalInit.load(GlobalInit.java:35)
	at utils.DispatchServlet.tryLoadGlobalsAndPerformInit(DispatchServlet.java:13)
	at utils.DispatchServlet.init(DispatchServlet.java:23)
	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:865)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

caused by

section  data

  init
  {
    var pP1 : PP ;
    var person1 : Person ;
    var issue1 : Issue ;
    var person2 : Person ;
    var project1 : Project ;
    pP1.person := person1;
    pP1.project := project1;
    person1.name := "Person A";
    issue1.name := "Issue 1";
    issue1.title := "Some Title";
    person2.name := "Person B";
    project1.name := "Project 1";
    pP1.save();
    person1.save();
    issue1.save();
    person2.save();
    project1.save();
  }

There are no error messages in the editor.

What is the error here?

Submitted by Daco Harkes on 29 May 2015 at 14:47

On 29 May 2015 at 15:04 Danny Groenewegen commented:

The variables are not initialized, create entity object instances using

var pP1 := PP{};
var person1 := Person{ name := "test" };

On 29 May 2015 at 15:23 Daco Harkes commented:

Ah, right. Issue can be closed.


On 29 May 2015 at 15:24 Danny Groenewegen closed this issue.

Log in to post comments