On 12 November 2015 at 08:07, Stephen Cameron <[email protected]>
wrote:

> So yes, it was something silly on my part. I had the getApplicationTenancy
> method behaving as a property getter and it should (I guess) have been
> marked as @Programmatic. Adding that annotation has fixed the problem, the
> null pointer exception was due to there being no ObjectAdapter being found
> for the tenancy pojo, at line 1408 in
> org.apache.isis.core.runtime.system.persistence.PersistenceSession.java.
>
>
I've added some code so in the future a similar error would provide a
better error message.



> As to whether people should be protected from such silliness, that is a
> design decision.
>
> I still don't have a satisfactory debugging setup in Eclipse, tried a few
> approaches but none working satisfactorily yet. I want to use a Eclipse
> Dynamic Web Project facet over a maven webapp basically, so if anyone has
> this as their standard setup I'd be pleased to hear
>
>
Although I don't use Eclipse now, when I did I never touched the dynamic
web project stuff.  Far easier just to use our org.apache.isis.WebServer to
run the app in an embedded jetty.  This allows debug with no particular
magical configuration required at all.

see the screencast at [1], 3 minutes in.

The screenshot for IntelliJ at [2] shows the main parameters, should be
easy to fill in equivalent dialog in Eclipse.

HTH
Dan

[1] http://isis.apache.org/guides/cg.html#_screencast
[2] http://isis.apache.org/guides/cg.html#_running_the_app




> Steve
>
>

Reply via email to