[TIMOB-25451] Hyperloop: Android - Error in opening zip file bcel-5.2.jar
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-11-01T16:29:26.000+0000 |
| Affected Version/s | Hyperloop 2.2.1 |
| Fix Version/s | Hyperloop 2.2.2 |
| Components | Hyperloop |
| Labels | Hyperloop, android, java, titanium-cli |
| Reporter | knd_rt@hotmail.com |
| Assignee | Jan Vennemann |
| Created | 2017-10-28T20:26:25.000+0000 |
| Updated | 2017-11-03T13:16:27.000+0000 |
Description
I removed appcelerator, and reinstalled everything
Steps to reproduce
I installed appceletaror, titanium sdk 6.2.2.GA and 6.1.2.GA
Created a new proyect enabling hyperloop
run: appc run -p android --build-only
Project fails to compile
[INFO] Alloy compiled in 2.89789s
[INFO] Alloy compiler completed successfully
[INFO] Starting Hyperloop assembly
[INFO] [Hyperloop] Generating system metabase
[ERROR] hyperloop:generateMetabase: Failed to generated metabase: error: error reading /home/knd/.titanium/plugins/hyperloop/2.2.1/hooks/android/metabase/lib/bcel-5.2.jar; error in opening zip file
I reinstalled hyperloop several times and same result
Hello, Please run "appc run -p android --build-only -l trace" send the log in here.
demoTest]$ appc run -p android --build-only -l trace Appcelerator Command-Line Interface, version 6.2.4 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. 2017-10-28T21:01:19.036Z | TRACE | set environment to {"registry":"https://software.appcelerator.com","baseurl":"https://platform.appcelerator.com"} 2017-10-28T21:01:19.038Z | TRACE | checking credentials for existing session 2017-10-28T21:01:19.253Z | TRACE | Attempting to load session info from config file 2017-10-28T21:01:19.261Z | TRACE | check if session is invalidated 2017-10-28T21:01:19.871Z | TRACE | refresh session expiry to: 1509829279798 2017-10-28T21:01:19.879Z | TRACE | session expiry 1509829279798 false 2017-10-28T21:01:19.882Z | TRACE | Arrow Cloud config file: /home/knd/.acs 2017-10-28T21:01:19.892Z | TRACE | found Arrow Cloud login { mid: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', publishPort: 443, publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', username: 'knd_rt@hotmail.com', cookie: [ 'connect.sid=s%3AxQVLzVS1iiUC-jIyAqNdgyXUH3vv28a3.uM9HBUzOxWCYjTYKMbvVyPS9z%2FSsUVtYU%2FrQMIbCidg; Path=/; Expires=Sat, 11 Nov 2017 03:09:36 GMT; HttpOnly' ], defaultEP: { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com 2017-10-28T21:01:19.895Z | TRACE | Arrow Cloud cookie expiry [ 1510369776000 ] 2017-10-28T21:01:19.895Z | TRACE | session already loaded in opts.session 2017-10-28T21:01:19.899Z | TRACE | getCredentials() session: { "ipaddress": "192.168.22.161", "username": "knd_rt@hotmail.com", "password": "<OMITTED>", "session": "<OMITTED>", "nonce": "<OMITTED>", "environment": { "name": "production", "isProduction": true, "acsBaseUrl": "https://api.cloud.appcelerator.com", "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com", "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com" }, "token": "<OMITTED>", "fingerprint": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "fingerprint_description": "Linux with Mac Address: ", "org_id": 100034869, "expiry": 1509829279798 } 2017-10-28T21:01:19.900Z | TRACE | loading plugins for command "run" 2017-10-28T21:01:19.993Z | TRACE | run search paths: [ "/home/knd/.appcelerator/install/6.2.4/package", "/home/knd/.appcelerator/install/6.2.4/package/node_modules", "/home/knd/demoTest/plugins", "/home/knd/demoTest/node_modules", "/home/knd/node_modules", "/home/node_modules", "/node_modules", "/home/knd/.appcelerator/.npm/lib/node_modules" ] 2017-10-28T21:01:19.994Z | DEBUG | [PLUGIN-LOAD] 0ms /home/knd/.appcelerator/install/6.2.4/package/appc.js 2017-10-28T21:01:20.300Z | DEBUG | [PLUGIN-LOAD] 305ms /home/knd/.appcelerator/install/6.2.4/package/node_modules/appc-cli-titanium/appc.js 2017-10-28T21:01:20.301Z | DEBUG | run plugin: /home/knd/.appcelerator/install/6.2.4/package/node_modules/appc-cli-titanium 2017-10-28T21:01:20.303Z | DEBUG | [PLUGIN-LOAD] 0ms /home/knd/.appcelerator/install/6.2.4/package/node_modules/arrow/appc.js 2017-10-28T21:01:20.305Z | DEBUG | run plugin: /home/knd/.appcelerator/install/6.2.4/package/node_modules/arrow 2017-10-28T21:01:20.309Z | TRACE | plugin "arrow" failed its "when" function check, skipping... 2017-10-28T21:01:20.310Z | TRACE | loading plugin "titanium" for command "run" CLI options via function 2017-10-28T21:01:20.311Z | TRACE | loading plugin "titanium" for command "run" CLI options via array 2017-10-28T21:01:20.314Z | TRACE | executing command "run" with the following plugins: ["titanium"] 2017-10-28T21:01:20.316Z | TRACE | session already loaded in opts.session 2017-10-28T21:01:20.318Z | DEBUG | Titanium Downloads Last Checked: 1509161346401 28/10/2017 16:01:23 Operating System Name = Manjaro Linux Version = 17.0.6 Architecture = 64bit # CPUs = 2 Memory = 8154263552 Node.js Node.js Version = 6.11.4 npm Version = 5.5.1 Titanium CLI CLI Version = 5.0.14 Titanium SDK SDK Version = 6.1.2.GA SDK Path = /home/knd/.titanium/mobilesdk/linux/6.1.2.GA Target Platform = android Command /usr/bin/node /home/knd/.appcelerator/install/6.2.4/package/node_modules/titanium/lib/titanium.js build -p android --build-only -l trace --config-file /tmp/build-1509224480317.json --no-banner --project-dir /home/knd/demoTest [DEBUG] Detecting modules in /home/knd/.titanium/modules [DEBUG] Detected android module: facebook 6.1.0 @ /home/knd/.titanium/modules/android/facebook/6.1.0 [DEBUG] Detected android module: facebook 6.2.0 @ /home/knd/.titanium/modules/android/facebook/6.2.0 [DEBUG] Detected android module: hyperloop 2.2.1 @ /home/knd/.titanium/modules/android/hyperloop/2.2.1 [DEBUG] Detected android module: ti.cloudpush 4.0.3 @ /home/knd/.titanium/modules/android/ti.cloudpush/4.0.3 [DEBUG] Detected android module: ti.map 3.0.1 @ /home/knd/.titanium/modules/android/ti.map/3.0.1 [DEBUG] Detected android module: ti.map 3.3.1 @ /home/knd/.titanium/modules/android/ti.map/3.3.1 [DEBUG] Detected android module: ti.touchid 2.1.0 @ /home/knd/.titanium/modules/android/ti.touchid/2.1.0 [DEBUG] Detected android module: ti.touchid 2.2.0 @ /home/knd/.titanium/modules/android/ti.touchid/2.2.0 [DEBUG] Detected commonjs module: ti.cloud 3.2.11 @ /home/knd/.titanium/modules/commonjs/ti.cloud/3.2.11 [DEBUG] Detected iphone module: hyperloop 2.2.1 @ /home/knd/.titanium/modules/iphone/hyperloop/2.2.1 [DEBUG] Detected windows module: hyperloop 2.2.1 @ /home/knd/.titanium/modules/windows/hyperloop/2.2.1 [DEBUG] Looking for Titanium module id=hyperloop version=latest platform=android deploy-type=development [INFO] Found Titanium module id=hyperloop version=2.2.1 platform=android deploy-type=development path=/home/knd/.titanium/modules/android/hyperloop/2.2.1 [DEBUG] Looking for Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=development [INFO] Found Titanium module id=ti.cloud version=3.2.11 platform=commonjs deploy-type=development path=/home/knd/.titanium/modules/commonjs/ti.cloud/3.2.11 [DEBUG] Detecting plugins in /home/knd/demoTest/plugins [DEBUG] Detected plugin: ti.alloy @ /home/knd/demoTest/plugins/ti.alloy [DEBUG] Detecting plugins in /home/knd/.titanium/plugins [DEBUG] Detected plugin: hyperloop 2.2.1 @ /home/knd/.titanium/plugins/hyperloop/2.2.1 [DEBUG] Looking for Titanium plugin id=ti.alloy version=1.0 [INFO] Found Titanium plugin id=ti.alloy version=1.0 [DEBUG] Looking for Titanium plugin id=hyperloop version=latest [INFO] Found Titanium plugin id=hyperloop version=latest [DEBUG] Titanium SDK Android directory: /home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android [INFO] Deploy type: development [INFO] Building for target: emulator [INFO] Performing build only [INFO] Targeting Android SDK API: 23 [INFO] Building for the following architectures: armeabi-v7a, x86 [INFO] Signing with keystore: /home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/dev_keystore (tidev) [DEBUG] App ID: com.demt [DEBUG] Classname: Demotest [INFO] Debugging disabled [INFO] Profiler disabled [INFO] Forcing rebuild: /home/knd/demoTest/build/android/build-manifest.json does not exist [INFO] Found Alloy app in /home/knd/demoTest/app [INFO] Executing Alloy compile: /usr/bin/node /home/knd/.appcelerator/install/6.2.4/package/node_modules/alloy/bin/alloy compile /home/knd/demoTest/app --config platform=android,version=0,simtype=none,devicefamily=none,deploytype=development,target=emulator [DEBUG] .__ .__ [DEBUG] _____ | | | | ____ ___.__. [DEBUG] \__ \ | | | | / _ < | | [DEBUG] / __ \| |_| |_( <_> )___ | [DEBUG] (____ /____/____/\____// ____| [DEBUG] \/ \/ [DEBUG] Alloy 1.9.14 by Appcelerator. The MVC app framework for Titanium. [DEBUG] [DEBUG] ----- CONFIGURATION ----- [DEBUG] raw config = "platform=android,version=0,simtype=none,devicefamily=none,deploytype=development,target=emulator" [DEBUG] platform = android [DEBUG] version = 0 [DEBUG] simtype = none [DEBUG] devicefamily = none [DEBUG] deploytype = development [DEBUG] target = emulator [DEBUG] project path = /home/knd/demoTest [DEBUG] app path = /home/knd/demoTest/app [DEBUG] [DEBUG] ----- CONFIG.JSON ----- [DEBUG] dependencies = {} [INFO] [config.json] regenerating CFG.js from config.json... [DEBUG] { [DEBUG] "dependencies": {}, [DEBUG] "sourcemap": true, [DEBUG] "autoStyle": false, [DEBUG] "adapters": [ [DEBUG] "localStorage", [DEBUG] "properties", [DEBUG] "sql" [DEBUG] ] [DEBUG] } [DEBUG] [DEBUG] ----- CLEANING RESOURCES ----- [DEBUG] Removing orphaned controllers ... [DEBUG] Removing orphaned models ... [DEBUG] Removing orphaned styles ... [DEBUG] Removing orphaned sync adapters... [DEBUG] Removing orphaned assets and libs... [TRACE] * assets [DEBUG] [DEBUG] ----- BASE RUNTIME FILES ----- [TRACE] SRC_DIR=/home/knd/.appcelerator/install/6.2.4/package/node_modules/alloy/Alloy/lib [TRACE] Copying SRC_DIR/alloy/sync/sql.js --> Resources/android/alloy/sync/sql.js [TRACE] Copying SRC_DIR/alloy/sync/properties.js --> Resources/android/alloy/sync/properties.js [TRACE] Copying SRC_DIR/alloy/sync/localStorage.js --> Resources/android/alloy/sync/localStorage.js [TRACE] Copying SRC_DIR/alloy/controllers/BaseController.js --> Resources/android/alloy/controllers/BaseController.js [TRACE] Copying SRC_DIR/alloy/widget.js --> Resources/android/alloy/widget.js [TRACE] Copying SRC_DIR/alloy/underscore.js --> Resources/android/alloy/underscore.js [TRACE] [TRACE] Generating ../Resources/android/alloy.js [TRACE] SRC_DIR=/home/knd/.appcelerator/install/6.2.4/package/node_modules/alloy/Alloy/common [TRACE] Copying SRC_DIR/constants.js --> Resources/android/alloy/constants.js [TRACE] [TRACE] SRC_DIR=/home/knd/demoTest/app/assets [TRACE] Copying SRC_DIR/android/appicon.png --> Resources/android/appicon.png [TRACE] Copying SRC_DIR/android/default.png --> Resources/android/default.png [TRACE] Creating directory Resources/android/images/res-long-land-mdpi [TRACE] Copying SRC_DIR/android/images/res-long-land-hdpi/default.png --> Resources/android/images/res-long-land-hdpi/default.png [TRACE] Copying SRC_DIR/android/images/res-long-land-ldpi/default.png --> Resources/android/images/res-long-land-ldpi/default.png [TRACE] Copying SRC_DIR/android/images/res-long-land-mdpi/default.png --> Resources/android/images/res-long-land-mdpi/default.png [TRACE] Copying SRC_DIR/android/images/res-long-port-hdpi/default.png --> Resources/android/images/res-long-port-hdpi/default.png [TRACE] Copying SRC_DIR/android/images/res-long-port-ldpi/default.png --> Resources/android/images/res-long-port-ldpi/default.png [TRACE] Copying SRC_DIR/android/images/res-notlong-land-hdpi/default.png --> Resources/android/images/res-notlong-land-hdpi/default.png [TRACE] Copying SRC_DIR/android/images/res-notlong-land-ldpi/default.png --> Resources/android/images/res-notlong-land-ldpi/default.png [TRACE] Copying SRC_DIR/android/images/res-notlong-land-mdpi/default.png --> Resources/android/images/res-notlong-land-mdpi/default.png [TRACE] Copying SRC_DIR/android/images/res-notlong-port-hdpi/default.png --> Resources/android/images/res-notlong-port-hdpi/default.png [TRACE] Copying SRC_DIR/android/images/res-notlong-port-ldpi/default.png --> Resources/android/images/res-notlong-port-ldpi/default.png [TRACE] Copying SRC_DIR/android/images/res-notlong-port-mdpi/default.png --> Resources/android/images/res-notlong-port-mdpi/default.png [TRACE] [DEBUG] [DEBUG] [INFO] ----- MVC GENERATION ----- [INFO] [app.tss] global style processing... [INFO] [global style] writing to cache... [INFO] [index.xml] view processing... [INFO] style: "index.tss" [INFO] view: "index.xml" [INFO] controller: "index.js" [TRACE] - Processing "builtins" module... [TRACE] - Processing "optimizer" module... [TRACE] - Processing "compress" module... [INFO] created: "Resources/android/alloy/controllers/index.js" [DEBUG] map: "build/map/Resources/android/alloy/controllers/index.js.map" [INFO] created: "Resources/android/alloy/styles/index.js" [INFO] [INFO] [app.js] Titanium entry point processing... [TRACE] - Processing "builtins" module... [TRACE] - Processing "optimizer" module... [TRACE] - Processing "compress" module... [INFO] created: "Resources/android/app.js" [DEBUG] map: "build/map/Resources/android/app.js.map" [INFO] [INFO] ----- OPTIMIZING ----- [INFO] - android/alloy.js [TRACE] processing "builtins" module... [TRACE] processing "optimizer" module... [TRACE] processing "compress" module... [INFO] - android/alloy/sync/localStorage.js [TRACE] processing "builtins" module... [TRACE] processing "optimizer" module... [TRACE] processing "compress" module... [INFO] - android/alloy/sync/properties.js [TRACE] processing "builtins" module... [TRACE] processing "optimizer" module... [TRACE] processing "compress" module... [INFO] - android/alloy/sync/sql.js [TRACE] processing "builtins" module... [TRACE] processing "optimizer" module... [TRACE] processing "compress" module... [TRACE] [TRACE] Benchmarking [TRACE] ------------ [TRACE] [0.82771s] TOTAL [INFO] [INFO] Alloy compiled in 0.82771s [INFO] Alloy compiler completed successfully [TRACE] No .aar files to transform [INFO] Starting Hyperloop assembly [TRACE] hyperloop:generateMetabase: Setting initial task state to "created" [TRACE] hyperloop:generateMetabase: Starting task [TRACE] hyperloop:generateMetabase: Changing task state from "created" to "running" [TRACE] hyperloop:generateMetabase: Generating metabase for JARs: /home/knd/Android/Sdk/platforms/android-23/android.jar,/home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/android-support-animated-vector-drawable.jar,/home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/android-support-annotations.jar,/home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/android-support-v4.jar,/home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/android-support-v4-internal_impl.jar,/home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/android-support-v7-appcompat.jar,/home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/android-support-vector-drawable.jar,/home/knd/.titanium/mobilesdk/linux/6.1.2.GA/android/cardview-v7-23.4.0.jar,/home/knd/.titanium/modules/android/hyperloop/2.2.1/lib/dexmaker-1.4.jar,/home/knd/.titanium/modules/android/hyperloop/2.2.1/lib/dexmaker-dx-1.4.jar [INFO] [Hyperloop] Generating system metabase [ERROR] hyperloop:generateMetabase: Failed to generated metabase: error: error reading /home/knd/.titanium/plugins/hyperloop/2.2.1/hooks/android/metabase/lib/bcel-5.2.jar; error in opening zip file 1 error [ERROR] An error occurred during build after 3s 658ms [ERROR] error: error reading /home/knd/.titanium/plugins/hyperloop/2.2.1/hooks/android/metabase/lib/bcel-5.2.jar; error in opening zip file [ERROR] 1 errorThis is a known issue that is been worked on. It happens to some installations due to a corrupt JAR file. As a workaround, replace the file located in
with the JAR attached to this ticket (or downloaded from [here](https://archive.apache.org/dist/commons/bcel/binaries/bcel-5.2.zip)). Thank you!It works! thank you!
I was able to compile and was testing both on Android and iOS and suddenly it just stopped compiling. I had this same issue on Android and it was fixed by replacing this .jar file. Thank you! But... in iOS I still have this error, which doesn't really tell much:
Can you help me?Nevermind, I just deleted 2.2.1 folder and I guess it is using 2.2.0. Now I got back to my old but known "Headers" folder bug but I can compile at least. Sorry for so many comments but I'm a little desperate.
You should open a ticket for IOS with that HL 2.2.1 issue
Issue is not seen with hyperloop 2.2.2. No error opening zip file is seen. Studio Ver: 4.10.0.201709271713 SDK Ver: 6.2.2.GA OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.10-2 Appc CLI: 6.3.0-master.15 Ti CLI Ver: 5.0.14 Alloy Ver: 1.10.6 Node Ver: 7.10.1 Java Ver: 1.8.0_101 Hyperloop: 2.2.2