java.util.zip.ZipException: error in opening zip file

Appcelerator JIRA | Mauro Parra-Miranda | 5 years ago
  1. 0

    h4. Problem Description I create Titanium Mobile Module project using studio. And try to make it. Got an error. h4. Actual Results The default module is not building just out of the box h4. Expected Results The default module compiling without any issues. h4. Test Case 1. Create a new mobile module for Android. 2. Set NDK 3. Build h4. Extra info When compiling the module, you got this: {code} Buildfile: build.xml init: process.annotations: generate.rhino.bindings: [java] java.util.zip.ZipException: error in opening zip file [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Caused by: java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] ... 34 more [java] --- Nested Exception --- [java] java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Java Result: -1 generate.rhino.idswitch: [echo] Generating IDs for /media/additional/projects/app_celertor_work_space/android_module/build/generated/java/module_id/AndroidModuleBootstrap.java generate.v8.bindings: [java] java.util.zip.ZipException: error in opening zip file [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Caused by: java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] ... 34 more [java] --- Nested Exception --- [java] java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Java Result: -1 generate.bindings: pre.compile: ndk.build: [exec] jni/Android.mk:24: warning: overriding commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:24: warning: ignoring old commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:27: warning: overriding commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/BootstrapJS.cpp' [exec] jni/Android.mk:27: warning: ignoring old commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/BootstrapJS.cpp' [exec] Compile++ thumb : module_id <= AndroidModuleBootstrap.cpp [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:9:36: error: module_id.ExampleProxy.h: No such file or directory [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:10:43: error: module_id.AndroidModuleModule.h: No such file or directory [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:14: warning: declaration 'struct titanium::bindings::BindEntry' does not declare anything [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf: In static member function 'static titanium::bindings::BindEntry* AndroidModuleBindings::lookupGeneratedInit(const char*, unsigned int)': [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:16: error: '::module_id' has not been declared [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:16: error: '::module_id' has not been declared [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:17: error: '::module_id' has not been declared [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:17: error: '::module_id' has not been declared [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:18: error: too many initializers for 'titanium::bindings::BindEntry' [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:18: error: too many initializers for 'titanium::bindings::BindEntry' [exec] make: *** [/media/additional/projects/app_celertor_work_space/android_module/build/generated/obj/local/armeabi/objs/module_id/__/AndroidModuleBootstrap.o] Error 1 BUILD FAILED /home/dima/.titanium/mobilesdk/linux/2.0.1.GA2/module/android/build.xml:228: exec returned: 2 Total time: 1 second {code} h4. Workaround 1. After creating your module, if you don't rename your Workspace to something without spaces, you will need to move your project to a directory without spaces. 2. Once you moved it, just type: ant and will automatically build. Right now, with Ti Studio, I created a new module, edit the build.properties to add the ndk: {code} titanium.platform=/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.GA2/android android.platform=/Users/mpmiranda/Downloads/android-sdk-macosx/platforms/android-8 google.apis=/Users/mpmiranda/Downloads/android-sdk-macosx/add-ons/addon-google_apis-google_inc_-8 android.ndk=/Users/mpmiranda/Downloads/android-ndk-r7c and then, move it to my Desktop directory, then just run ant and works just fine. {code}

    Appcelerator JIRA | 5 years ago | Mauro Parra-Miranda
    java.util.zip.ZipException: error in opening zip file
  2. 0

    h4. Problem Description I create Titanium Mobile Module project using studio. And try to make it. Got an error. h4. Actual Results The default module is not building just out of the box h4. Expected Results The default module compiling without any issues. h4. Test Case 1. Create a new mobile module for Android. 2. Set NDK 3. Build h4. Extra info When compiling the module, you got this: {code} Buildfile: build.xml init: process.annotations: generate.rhino.bindings: [java] java.util.zip.ZipException: error in opening zip file [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Caused by: java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] ... 34 more [java] --- Nested Exception --- [java] java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Java Result: -1 generate.rhino.idswitch: [echo] Generating IDs for /media/additional/projects/app_celertor_work_space/android_module/build/generated/java/module_id/AndroidModuleBootstrap.java generate.v8.bindings: [java] java.util.zip.ZipException: error in opening zip file [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Caused by: java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] ... 34 more [java] --- Nested Exception --- [java] java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [java] at java.util.jar.JarFile.<init>(JarFile.java:135) [java] at java.util.jar.JarFile.<init>(JarFile.java:99) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285) [java] at org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Java Result: -1 generate.bindings: pre.compile: ndk.build: [exec] jni/Android.mk:24: warning: overriding commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:24: warning: ignoring old commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.cpp' [exec] jni/Android.mk:27: warning: overriding commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/BootstrapJS.cpp' [exec] jni/Android.mk:27: warning: ignoring old commands for target `/media/additional/projects/app_celertor_work_space/android_module/build/generated/BootstrapJS.cpp' [exec] Compile++ thumb : module_id <= AndroidModuleBootstrap.cpp [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:9:36: error: module_id.ExampleProxy.h: No such file or directory [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:10:43: error: module_id.AndroidModuleModule.h: No such file or directory [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:14: warning: declaration 'struct titanium::bindings::BindEntry' does not declare anything [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf: In static member function 'static titanium::bindings::BindEntry* AndroidModuleBindings::lookupGeneratedInit(const char*, unsigned int)': [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:16: error: '::module_id' has not been declared [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:16: error: '::module_id' has not been declared [exec] In file included from jni/../AndroidModuleBootstrap.cpp:17: [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:17: error: '::module_id' has not been declared [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:17: error: '::module_id' has not been declared [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:18: error: too many initializers for 'titanium::bindings::BindEntry' [exec] /media/additional/projects/app_celertor_work_space/android_module/build/generated/KrollGeneratedBindings.gperf:18: error: too many initializers for 'titanium::bindings::BindEntry' [exec] make: *** [/media/additional/projects/app_celertor_work_space/android_module/build/generated/obj/local/armeabi/objs/module_id/__/AndroidModuleBootstrap.o] Error 1 BUILD FAILED /home/dima/.titanium/mobilesdk/linux/2.0.1.GA2/module/android/build.xml:228: exec returned: 2 Total time: 1 second {code} h4. Workaround 1. After creating your module, if you don't rename your Workspace to something without spaces, you will need to move your project to a directory without spaces. 2. Once you moved it, just type: ant and will automatically build. Right now, with Ti Studio, I created a new module, edit the build.properties to add the ndk: {code} titanium.platform=/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.GA2/android android.platform=/Users/mpmiranda/Downloads/android-sdk-macosx/platforms/android-8 google.apis=/Users/mpmiranda/Downloads/android-sdk-macosx/add-ons/addon-google_apis-google_inc_-8 android.ndk=/Users/mpmiranda/Downloads/android-ndk-r7c and then, move it to my Desktop directory, then just run ant and works just fine. {code}

    Appcelerator JIRA | 5 years ago | Mauro Parra-Miranda
    java.util.zip.ZipException: error in opening zip file
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    error in opening zip file

    Google Groups | 5 years ago | André Nishimura
    java.util.zip.ZipException: error in opening zip file

  1. cesarnog 291 times, last 1 month ago
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.zip.ZipException

    error in opening zip file

    at java.util.zip.ZipFile.open()
  2. Java RT
    JarFile.<init>
    1. java.util.zip.ZipFile.open(Native Method)
    2. java.util.zip.ZipFile.<init>(ZipFile.java:127)
    3. java.util.jar.JarFile.<init>(JarFile.java:135)
    4. java.util.jar.JarFile.<init>(JarFile.java:99)
    4 frames
  3. org.appcelerator.kroll
    KrollBindingGenerator.main
    1. org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.loadTitaniumBindings(KrollBindingGenerator.java:285)
    2. org.appcelerator.kroll.annotations.generator.KrollBindingGenerator.main(KrollBindingGenerator.java:391)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    2. org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    3. org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
    4. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
    5. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
    6. org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
    7. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    7 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  7. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    4. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    4 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  9. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    4. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    4 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  11. Ant
    Main.startAnt
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:357)
    4. org.apache.tools.ant.Target.performTasks(Target.java:385)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    6. org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    8. org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    9. org.apache.tools.ant.Main.runBuild(Main.java:758)
    10. org.apache.tools.ant.Main.startAnt(Main.java:217)
    10 frames
  12. Apache Ant Launcher
    Launcher.main
    1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    2 frames