Unable to install app

Hi Devs

I get a NullPointerException when trying to install an app zip file. Has anyone seen this error before?

Any idea what could cause this?

java.lang.NullPointerException: entry

at java.util.zip.ZipFile.getInputStream(ZipFile.java:346)

at org.hisp.dhis.appmanager.DefaultAppManager.installApp(DefaultAppManager.java:201)

at org.hisp.dhis.webapi.controller.AppController.installApp(AppController.java:150)

at org.hisp.dhis.webapi.controller.AppController$$FastClassBySpringCGLIB$$45556959.invoke()

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)

at org.hisp.dhis.webapi.controller.AppController$$EnhancerBySpringCGLIB$$3fe60449.installApp()

About DHIS 2

Version:
2.27
Build revision:
bd3a0ff
Build date:
2018-05-04 12:03

Kind regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

Haven’t seen that before, are you sure the zip file is OK (not damaged) ? are you uploading through the UI?

···

On Tue, May 15, 2018 at 6:31 PM, Pooben Dass pooben@hisp.org wrote:

Hi Devs

I get a NullPointerException when trying to install an app zip file. Has anyone seen this error before?

Any idea what could cause this?

java.lang.NullPointerException: entry

at java.util.zip.ZipFile.getInputStream(ZipFile.java:346)

at org.hisp.dhis.appmanager.DefaultAppManager.installApp(DefaultAppManager.java:201)

at org.hisp.dhis.webapi.controller.AppController.installApp(AppController.java:150)

at org.hisp.dhis.webapi.controller.AppController$$FastClassBySpringCGLIB$$45556959.invoke()

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)

at org.hisp.dhis.webapi.controller.AppController$$EnhancerBySpringCGLIB$$3fe60449.installApp()

About DHIS 2

Version:
2.27
Build revision:
bd3a0ff
Build date:
2018-05-04 12:03

Kind regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


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

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Morton

Please don’t bother with this issue … I found the error of my ways :slight_smile:

I was zipping up the project folder and the manifest file was within the folder and not on the root.

Thanks for the help

Kind regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

···

On Wed, May 16, 2018 at 7:24 AM, Morten Olav Hansen morten@dhis2.org wrote:

Haven’t seen that before, are you sure the zip file is OK (not damaged) ? are you uploading through the UI?

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, May 15, 2018 at 6:31 PM, Pooben Dass pooben@hisp.org wrote:

Hi Devs

I get a NullPointerException when trying to install an app zip file. Has anyone seen this error before?

Any idea what could cause this?

java.lang.NullPointerException: entry

at java.util.zip.ZipFile.getInputStream(ZipFile.java:346)

at org.hisp.dhis.appmanager.DefaultAppManager.installApp(DefaultAppManager.java:201)

at org.hisp.dhis.webapi.controller.AppController.installApp(AppController.java:150)

at org.hisp.dhis.webapi.controller.AppController$$FastClassBySpringCGLIB$$45556959.invoke()

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)

at org.hisp.dhis.webapi.controller.AppController$$EnhancerBySpringCGLIB$$3fe60449.installApp()

About DHIS 2

Version:
2.27
Build revision:
bd3a0ff
Build date:
2018-05-04 12:03

Kind regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


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

Ok :wink: good it works now

···

On Wed, May 16, 2018 at 3:01 PM, Pooben Dass pooben@hisp.org wrote:

Hi Morton

Please don’t bother with this issue … I found the error of my ways :slight_smile:

I was zipping up the project folder and the manifest file was within the folder and not on the root.

Thanks for the help

Kind regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, May 16, 2018 at 7:24 AM, Morten Olav Hansen morten@dhis2.org wrote:

Haven’t seen that before, are you sure the zip file is OK (not damaged) ? are you uploading through the UI?

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, May 15, 2018 at 6:31 PM, Pooben Dass pooben@hisp.org wrote:

Hi Devs

I get a NullPointerException when trying to install an app zip file. Has anyone seen this error before?

Any idea what could cause this?

java.lang.NullPointerException: entry

at java.util.zip.ZipFile.getInputStream(ZipFile.java:346)

at org.hisp.dhis.appmanager.DefaultAppManager.installApp(DefaultAppManager.java:201)

at org.hisp.dhis.webapi.controller.AppController.installApp(AppController.java:150)

at org.hisp.dhis.webapi.controller.AppController$$FastClassBySpringCGLIB$$45556959.invoke()

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)

at org.hisp.dhis.webapi.controller.AppController$$EnhancerBySpringCGLIB$$3fe60449.installApp()

About DHIS 2

Version:
2.27
Build revision:
bd3a0ff
Build date:
2018-05-04 12:03

Kind regards

Pooben

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


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