Resource exception for app component

I have used app component “data import” and getting exception for dependent resources from yesterday as follows. when I remove the app component, it works well.

Users/mak/.gradle/wrapper/dists/gradle-4.3.1-bin/7yzdu24db77gi3zukl2a7o0xx/gradle-4.3.1/lib/native-platform-windows-i386-0.14.jar, /Users/mak/.gradle/wrapper/dists/gradle-4.3.1-bin/7yzdu24db77gi3zukl2a7o0xx/gradle-4.3.1/lib/objenesis-1.2.jar, /Users/mak/.gradle/wrapper/dists/gradle-4.3.1-bin/7yzdu24db77gi3zukl2a7o0xx/gradle-4.3.1/lib/reflectasm-1.07-shaded.jar, /Users/mak/.gradle/wrapper/dists/gradle-4.3.1-bin/7yzdu24db77gi3zukl2a7o0xx/gradle-4.3.1/lib/slf4j-api-1.7.10.jar] 2018-06-23 11:39:26,789 INFO [com.haulmont.studio.backend.maven.RemoteMavenRepository] [external_req] Load file content https://dl.bintray.com/cuba-platform/main/de/balvi/cuba/declarativecontrollers/declarativecontrollers-web/0.6.0/declarativecontrollers-web-0.6.0-sources.jar 2018-06-23 11:39:27,518 ERROR [com.haulmont.studio.ui.app.App] Exception occured java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file at com.haulmont.studio.common.StudioFiles.unjar(StudioFiles.java:160) at com.haulmont.studio.backend.BaseSources.loadArtifact(BaseSources.java:240) at com.haulmont.studio.backend.BaseSources.loadModule(BaseSources.java:190) at com.haulmont.studio.backend.BaseSources.access$200(BaseSources.java:47) at com.haulmont.studio.backend.BaseSources$1.run(BaseSources.java:99) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.haulmont.studio.common.StudioExecutors$StudioWrappingExecutorService.lambda$wrapTask$0(StudioExecutors.java:54) at com.haulmont.studio.common.StudioExecutors$StudioWrappingExecutorService.lambda$wrapTask$1(StudioExecutors.java:72) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:225) at java.util.zip.ZipFile.(ZipFile.java:155)

Hi,

the problem is the same as described here: Studio throws java.util.ZipException

Mainly it was a broken dependency of the data-import app component (declarative controllers) which let to that problem.

the problem is fixed since there have been uploaded new binaries for declarative-controllers:0.6.0 (see: https://github.com/balvi/cuba-component-declarative-controllers/issues/9)

If you still face this problems, make sure you removed the application components cache in ~/.haulmont/studio/cache/de.balvi.cuba.declarativecontrollers (remove all content there)

Bye
Mario