Dale LaBossiere created EDGENT-249:
--------------------------------------

             Summary: DevelopmentProvider on PI gets NPE
                 Key: EDGENT-249
                 URL: https://issues.apache.org/jira/browse/EDGENT-249
             Project: Edgent
          Issue Type: Bug
          Components: Console, Runtime
            Reporter: Dale LaBossiere


A user contacted me about a NPE they were getting when starting an app that 
uses the DevelopmentProvider on a Raspberry PI.  The code runs fine on a non-PI 
system.  They said it was a vintage 24Aug copy of the code.

The NPE was occurring in ServerUtil.getTopDirFilePath() on the line:
        return jarFile.getParentFile().getParentFile().getParentFile();

Don't know what ServerUtil.getPath() is returning on the PI but it didn't 
satisfy the expectations above.  They were going to try to get me additional 
output (the path returned by getPath()) but I haven't heard back yet.

The edgent java8 release image was installed on the PI as demonstrated by the 
successful workaround I was able to give them to get them going:

Workaround: add a JVM system property when you launch your app:   
   -Dedgent.test.top.dir.file.path=<root-of-the-edgent-java8-dir> 
e.g.,
  -Dedgent.test.top.dir.file.path=/edgent/java8



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to