sencha run native throws an error - sencha-touch

I am fairly new to sencha development. I have installed JDK, Ant, Compass, Sencha Cmd, Sencha SDK, XCode, ios-simulator and Cordova. and I believe that I have all the paths properly set.
I generated an app (Sample01) using sencha cmd. I initialized cordova using "sencha cordova init com.snehca.Sample01 Sample01". If I build using "sencha app build native" (without run option), the app compiles successfully.
However, if I execute "sencha app build -run native", it throws error as follows:
Sencha Cmd v5.0.0.160
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/sencha-compiler/cmd-packages.js
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__core.files
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__manifest
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__override.files
[INF] Appending content to /Sencha/Projects/Sample01/bootstrap.json
[INF] Compressing data with YuiJavascriptCompressor
[INF] Concatenating output to file /Sencha/Projects/Sample01/cordova/www/app.js
[INF] merging resources into /Sencha/Projects/Sample01/cordova/www/resources
[INF] merged 0 resources into /Sencha/Projects/Sample01/cordova/www/resources
[INF] merging resources into /Sencha/Projects/Sample01/cordova/www
[INF] merged 0 resources into /Sencha/Projects/Sample01/cordova/www
[INF] executing compass using system installed ruby runtime
[INF] Copying page resources to /Sencha/Projects/Sample01/cordova/www
[INF] Writing content to /Sencha/Projects/Sample01/cordova/www/app.json
[INF] Writing content to /Sencha/Projects/Sample01/cordova/www/microloader.js
[INF] Appending content to /Sencha/Projects/Sample01/cordova/www/microloader.js
[INF] Building output markup to /Sencha/Projects/Sample01/cordova/www/index.html
[ERR] The following error occurred while executing this line:
/Sencha/Projects/Sample01/.sencha/app/build-impl.xml:427: The following error occurred while executing this line:
/Sencha/Projects/Sample01/.sencha/app/cordova-impl.xml:108: The following error occurred while executing this line:
jar:file:/Users/jpulakhandam/bin/Sencha/Cmd/5.0.0.160/sencha.jar!/com/sencha/ant/antlib.xml:608: shellscript returned: 1

In my env the problem was fixed updating the Android SDK Build Tools, before update I was getting the same error posted and my Android SDK Build Tools rev. was 19.0.3 then I updated to Android SDK Build Tools rev 20 and the problem was fixed.

Related

yarn logs throws an error of "not valid bcfile"

HDP version: 3.1.0.78, using ambari 2.7.3 to install.
yarn version: 3.1.1
The application is finished with failed status.
Here is the complete log:
yarn logs -applicationId application_1565920695836_0005
19/08/16 11:49:57 INFO client.AHSProxy: Connecting to Application History server at dn1003.jja.bigo/10.221.117.44:10300
Not a valid BCFile.
Can not find any log file matching the pattern: [ALL] for the application: application_1565920695836_0005
Can not find the logs for the application: application_1565920695836_0005 with the appOwner: hadoop
Thanks for your reply.
UPDATE:
After using debug with export YARN_ROOT_LOGGER="DEBUG,console", it says "/data1/app-logs/hadoop/logs/application_1566555356033_0034/meta" is not valid bcfile.

How to get get Application Id in submitting Flink jobs into Yarn use command line interface?

my team is building a flink based realtime computation platform. We submit flink job to Yarn.
We create a Process and run commit command use CLI. In order to get yarn application id, we create a thread and parse process output. Application id is used in other methods.
For example, we submit job by this command:
nohup flink run -m yarn-cluster -d -yqu root.default
-ynm BDP_RTC_FLINK_10457_MultiOutputTestFrontEnd -yjm 1024
-yn 2 -ytm 1024 -ys 2
The output is shown below:
2018-10-10 11:21:04 [info] 2018-10-10 11:21:04,629 INFO org.apache.flink.yarn.AbstractYarnClusterDescriptor - Submitting application master application_1536669298614_67675
2018-10-10 11:21:04 [info] 2018-10-10 11:21:04,654 INFO org.apache.hadoop.yarn.client.api.impl.YarnClientImpl - Submitted application application_1536669298614_67675
2018-10-10 11:21:04 [info] 2018-10-10 11:21:04,656 INFO org.apache.flink.yarn.AbstractYarnClusterDescriptor - Deploying cluster, current state ACCEPTED
2018-10-10 11:21:12 [info] 2018-10-10 11:21:12,699 INFO org.apache.flink.yarn.AbstractYarnClusterDescriptor - YARN application has been deployed successfully.
2018-10-10 11:21:12 [info] 2018-10-10 11:21:12,700 INFO org.apache.flink.yarn.AbstractYarnClusterDescriptor - The Flink YARN client has been started in detached mode.
We parse process output and get application id: application_1536669298614_67675.
Are there any other elegant solutions to get application id in our situation?
Maybe you can get the relation between the yarn application and the flink job.
Firstly, list the yarn application.
yarn application -list
Then, you get the application list, and you can list flink job on the yarn application.
./bin/flink list -m yarn-cluster -yid <Yarn Application Id>
By the way, you can use
./bin/flink run -d
not use
nohup

Getting BlazeInfoException in IntelliJ from the Bazel plugin

I just installed the Bazel plugin for IntelliJ, and I keep getting this exception:
com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info failed with exit code: -1
java.util.concurrent.ExecutionException:
com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info failed with exit code: -1
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:502)
[...]
at com.google.idea.blaze.base.async.FutureUtil$Builder.lambda$run$0(FutureUtil.java:93)
[...]
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.google.idea.blaze.base.async.executor.BlazeExecutor$3.call(BlazeExecutor.java:108)
at com.google.idea.blaze.base.async.executor.BlazeExecutor$3.call(BlazeExecutor.java:105)
[...]
Caused by: com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info failed with exit code: -1
at com.google.idea.blaze.base.command.info.BlazeInfoRunnerImpl.runBlazeInfo(BlazeInfoRunnerImpl.java:105)
at com.google.idea.blaze.base.command.info.BlazeInfoRunnerImpl.lambda$runBlazeInfo$2(BlazeInfoRunnerImpl.java:75)
... 6 more
Edit: I am using IntelliJ 2017.3 on MacOS El Capitan 10.11.6, Java JRE 1.8.0, and the Bazel version is 0.8.1-homebrew (the plugin version is 2017.11.20.0.4). I get this error when I try to setup a new Java project (an Hello World with only one class and one BUILD file containing a java_binary similar to this tutorial), and it appears when I click on the Bazel sync button.
The output in the Bazel console is:
Syncing project: Sync (incremental)...
Updating VCS...
Running Bazel info...
Command: info --tool_tag=ijwb:IDEA:community --curses=no --color=no --experimental_ui=no --progress_in_terminal_title=no --
==== TIMING REPORT ====
Sync: 47ms
BazelInfo: 4ms
Timing summary:
BlazeInvocation: 4ms
Sync failed
Command: git diff --name-status --no-renames abc8913346474d12ad45226503438848011929ae
Does anybody have an idea about what is it and/or how to fix it? Thanks!
I found my answer, thanks to this post.
In IntelliJ > Settings > Other Settings > Bazel Settings, the field "Bazel binary location" was empty. For my case, I entered /usr/local/bin/bazel and now it works!

sencha app build native failed. Gives Error : <x-load-properties> does not support the <file> nested element

I am using sencha touch 2.3.1 and cmd 3.1.2. But while creating buid by using command "sencha app build native", it gives error : [ERR] The following error occurred while executing this line:
/path_to_app/.sencha/app/init-impl.xml:62: does not support the nested element
$sencha app build testing
Sencha Cmd v3.1.2.342
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] app-build-impl:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd-in-path:
[INF]
[INF] find-cmd-in-environment:
[INF]
[INF] find-cmd-in-shell:
[INF]
[INF] init-cmd:
[INF] [echo] Using Sencha Cmd from /home/bin/Sencha/Cmd/3.1.2.342 for /path_to_app/build.xml
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[ERR] The following error occurred while executing this line:
/path_to_app/.sencha/app/init-impl.xml:62: <x-load-properties> does not support the <file> nested element
For this version of sencha, for creating build, "st-res" directory is required.which contains AndroidManifest.xml , nimblekit.jar. And also have to make following changes in packager.json file.
"androidAPILevel":"14",
"sdkPath":"/home/.android-sdk-linux" /* path to android-sdk-linux */
I had the same issue so I simply upgraded Sencha on my machine:
$ sudo sencha upgrade
If you'll go for that remember to close and re-open your terminal window. Then when you use the above
command again and you should see something like:
Sencha Cmd v4.0.2.67
[INF] Determining the latest version of Sencha Cmd
[INF] The latest version of Sencha Cmd is 4.0.2.67
[INF] Sencha Cmd 4.0.2.67 is this version.
I hope this will help

Sencha build failed compass process exited with non-zero code 1

I am trying to build my Sencha app at windows OS but getting this error.
I am trying to use sencha command - sencha app build package, but build is failed.
I already installed ant and compass
C:\xampp\htdocs\WhatsUnderMe>sencha app build package
Sencha Cmd v3.1.0.256
[INF]
[INF] init-plugin:
[INF]
[INF] init-plugin:
[INF] Invoking plugin (C:\xampp\htdocs\WhatsUnderMe\.sencha\app\plugin.xml) - supported targets: -before-app-build
[INF]
[INF] -before-app-build:
[INF] Invoking plugin (C:\xampp\htdocs\WhatsUnderMe\.sencha\app\plugin.xml) - supported targets: app-build
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] -before-app-build:
[INF]
[INF] app-build-impl:
[INF]
[INF] package:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd:
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[INF]
[INF] -after-init:
[INF]
[INF] init:
[INF]
[INF] -before-build:
[INF]
[INF] sass:
[INF]
[INF] -before-sass:
[INF]
[INF] -sass:
[INF] executing compass using system installed ruby runtime
NoMethodError on line ["23"] of C: undefined method `empty?' for nil:NilClass
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:293:in `_render'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:240:in `render'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:140:in `block (2 leve
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:139:in `block in comp
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/logger.rb:45:in `red'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:138:in `compile'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:118:in `compile_if_re
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:103:in `block (2 leve
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `each'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `block in run'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:100:in `run'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/update_project.rb:45:in
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/base.rb:18:in `execute'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:19:in `e
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:43:in `per
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:30:in `block in <top (required)>'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `call'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `<top (required)>'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/bin/compass:23:in `load'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/bin/compass:23:in `<main>'
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
[ERR]
[ERR] Total time: 0 seconds
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
[ERR] C:\xampp\htdocs\WhatsUnderMe\.sencha\app\build-impl.xml:223: com.sencha.exceptions.ExProcess: compass process exited with non-zero code
[ERR]
[ERR] Total time: 1 second
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
C:\xampp\htdocs\WhatsUnderMe\.sencha\app\build-impl.xml:223: com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
What can i do to solve it?
I had the same error with Sencha Touch 2.2,Sencha Cmd 3.1.1.270 and Ruby 2.x.
To fix this I uninstalled Ruby 2.x and installed Ruby 1.9.3
http://rubyforge.org/frs/download.php/76798/rubyinstaller-1.9.3-p392.exe
Hope this is helpful for you. Otherwise you should provide more details about the versions you're using. Or you can start using the latest versions like me.
Installing 1.9.3 ruby works for most people. For me it didnt work.
What i did to fix it was creating a new project and copying the touch folder and resources to my current project. After that i could build normally.
In my project I use both version of Ruby simultaneously due to many annoying reasons. Therefore, I hope, that next advise will be helpful for all guys (and girls) who can't remove newer version of Ruby:
You need to install ruby-switch: sudo apt-get install ruby-switch.
Then check current version: ruby -v.
Show list of available versions: ruby-switch --list.
Set older (newer) version as default for now: sudo ruby-switch --set ruby2.2.
Check current version: ruby -v