[Dhis2-devs] Error in analytics table generation

2018-04-26 Thread Jason Pickering
Not exactly sure what is causing this, but this is occurring just at the
end of the analytics tables process. Here is what we see from the GUI:
2018-04-27 08:00:17 Process failed: null
2018-04-27 08:00:17 Applying aggregation levels
2018-04-27 08:00:17 Populating analytics tables
And the error logs

* ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in scheduled
task. (TaskUtils.java [taskScheduler-25])
java.lang.NullPointerException
at
org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion(ConcurrentUtils.java:53)
at
org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.applyAggregationLevels(DefaultAnalyticsTableService.java:242)
at
org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.update(DefaultAnalyticsTableService.java:137)
at
org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator.generateTables(DefaultAnalyticsTableGenerator.java:112)
at
org.hisp.dhis.webapi.controller.ResourceTableController.lambda$analytics$0(ResourceTableController.java:112)
at
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
* INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25 with
TLS: true (EmailMessageSender.java [taskScheduler-10])

Version:2.28Build revision:86937e9
Any idea what this might be caused by?

Regards,
Jason

-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS2 Dashboard Apps

2018-04-26 Thread Martin Van Aken
OK, so it will render the "main" page (as refered in the manifest) as an
iframe there, with clicking on it leading to the "full page" app, correct ?
This being said, looks like something I could test easily.

Martin

On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli 
wrote:

> Hi Martin,
>
> the dashboard widgets/apps, listed under the Apps section in the
> dashboard item selector, are rendered in the same way as before.
> They are loaded in an iframe in a box added to the dashboard grid.
> This is also to ensure existing apps can still work in the new Dashboards
> app.
>
> As for distinguishing between a full screen and a "widget" app, there
> isn't anything in place as far as I know.
>
> One way is to use a responsive layout in your app, to ensure the
> content fits and is usable in both full screen and the small widget
> box.
>
> I didn't work with widget apps, so hopefully someone in the community
> who has done that can help.
>
> Cheers,
>
> On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken
>  wrote:
> > Hi!
> > We've been working with DHIS2 Apps for a while now, and found the general
> > experience (as developers) pretty good with the d2 + React combo.
> Something
> > I could not find info about is how the different kind of apps change,
> > especially the DASHBOARD_WIDGET one - does that means that an app of this
> > kind will be rendered as a box in the main view? If so, how to specify
> the
> > part that should go there vs for example a full sized page after once
> > clicked?
> >
> > Any doc or example on this would be great.
> >
> > As I'm there - thanks to the team there to provide a nice to use
> extension
> > point in the form of webapps - much appreciated!
> >
> > Martin
> >
> > --
> > Martin Van Aken - Freelance Enthusiast Developer
> >
> > Mobile : +32 486 899 652
> >
> > Follow me on Twitter : @martinvanaken
> > Call me on Skype : vanakenm
> > Hang out with me : mar...@joyouscoding.com
> > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> > Company website : www.joyouscoding.com
> >
> > ___
> > Mailing list: https://launchpad.net/~dhis2-devs
> > Post to : dhis2-devs@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~dhis2-devs
> > More help   : https://help.launchpad.net/ListHelp
>
> --
> Edoardo Sabadelli
> DHIS 2
> University of Oslo
> edoa...@dhis2.org
> http://www.dhis2.org
>



-- 
*Martin Van Aken - **Freelance Enthusiast Developer*

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken 
Call me on Skype : vanakenm
Hang out with me : mar...@joyouscoding.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS2 Dashboard Apps

2018-04-26 Thread Edoardo Sabadelli
Hi Martin,

the dashboard widgets/apps, listed under the Apps section in the
dashboard item selector, are rendered in the same way as before.
They are loaded in an iframe in a box added to the dashboard grid.
This is also to ensure existing apps can still work in the new Dashboards app.

As for distinguishing between a full screen and a "widget" app, there
isn't anything in place as far as I know.

One way is to use a responsive layout in your app, to ensure the
content fits and is usable in both full screen and the small widget
box.

I didn't work with widget apps, so hopefully someone in the community
who has done that can help.

Cheers,

On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken
 wrote:
> Hi!
> We've been working with DHIS2 Apps for a while now, and found the general
> experience (as developers) pretty good with the d2 + React combo. Something
> I could not find info about is how the different kind of apps change,
> especially the DASHBOARD_WIDGET one - does that means that an app of this
> kind will be rendered as a box in the main view? If so, how to specify the
> part that should go there vs for example a full sized page after once
> clicked?
>
> Any doc or example on this would be great.
>
> As I'm there - thanks to the team there to provide a nice to use extension
> point in the form of webapps - much appreciated!
>
> Martin
>
> --
> Martin Van Aken - Freelance Enthusiast Developer
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp

-- 
Edoardo Sabadelli
DHIS 2
University of Oslo
edoa...@dhis2.org
http://www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] DHIS2 Dashboard Apps

2018-04-26 Thread Martin Van Aken
Hi!
We've been working with DHIS2 Apps for a while now, and found the general
experience (as developers) pretty good with the d2 + React combo. Something
I could not find info about is how the different kind of apps change,
especially the DASHBOARD_WIDGET one - does that means that an app of this
kind will be rendered as a box in the main view? If so, how to specify the
part that should go there vs for example a full sized page after once
clicked?

Any doc or example on this would be great.

As I'm there - thanks to the team there to provide a nice to use extension
point in the form of webapps - much appreciated!

Martin

-- 
*Martin Van Aken - **Freelance Enthusiast Developer*

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken 
Call me on Skype : vanakenm
Hang out with me : mar...@joyouscoding.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp