edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dale LaBossiere (JIRA)" <j...@apache.org>
Subject [jira] [Created] (EDGENT-249) DevelopmentProvider on PI gets NPE
Date Mon, 12 Sep 2016 19:39:21 GMT
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:   

This message was sent by Atlassian JIRA

View raw message