nanos.sh NPE if started anywhere other than foam2/

2 views
Skip to first unread message

Joel Hughes

unread,
Dec 14, 2017, 9:17:53 PM12/14/17
to foam-framework-discuss
Was attempting to run nanos.sh.  
Runs fine when executed from foam2/

But when run from the root of my project for example, fails with NPE in Boot.

Starting Nanos Server
Exception in thread "main" java.lang.NullPointerException
        at foam.nanos.boot.Boot.<init>(Boot.java:41)
        at foam.nanos.boot.Boot.main(Boot.java:68)

modified nanos.sh
The cp.txt was copied from foam2. 
java -cp `cat $DIR/../build/cp.txt`:$DIR/../build/exploded-sesad/WEB-INF/lib/foam-1.0-SNAPSHOT.jar -Dfoam.main=main foam.nanos.boot.Boot

If this is isn't complete or externally support, not to worry.  I was only playing with it while trying to better understand the changes to the servlet setup so I can re-write mine to work again.

Joel

Joel Hughes

unread,
Dec 14, 2017, 11:09:10 PM12/14/17
to foam-framework-discuss
Yes, services was it.  I had to move it to foam2/..  I only get an empty page on 8080, but I'm not going to spend any more time on it, so just let this one go. 
Thanks
Reply all
Reply to author
Forward
0 new messages