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

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

Related

Unable to connect to Hub & Node in Selenium 4.4.0

We are getting an the below error try.SeleniumSpanExporter","log-time-local": "2022-09-22T13:07:01.425Z","log-time-utc": "2022-09-22T13:07:01.425Z","method": "lambda$export$4"} 13:07:01.425 DEBUG [LocalDistributor.add] - Exception while adding Node http://10.251.155.85:5555 java.io.UncheckedIOException: java.net.ConnectException: connection timed out: /10.251.155.**:5555
Hub Command: java -jar selenium-server-4.0.0.jar hub
O/P-HUB Output
Node Command: java -jar selenium-server-4.4.0.jar node --hub http://10...**:4444/grid/register [Passing the hub IP]
O/P-
C:\Users\Administrator>java -jar C:\apps\relay\webcluster\selenium-server.jar node --publish-events tcp://10.251.155.74:4442 --subscribe-events tcp://10.251.155.74:4443
07:35:34.313 INFO [LogManager$RootLogger.log] - Using the system default encoding
07:35:34.317 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
07:35:34.481 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://10.251.155.74:4442 and tcp://10.251.155.74:4443
07:35:34.565 INFO [UnboundZmqEventBus.<init>] - Sockets created
07:35:35.567 INFO [UnboundZmqEventBus.<init>] - Event bus ready
07:35:35.683 INFO [NodeServer.createHandlers] - Reporting self as: http://10.251.155.85:5555
07:35:35.752 INFO [NodeOptions.getSessionFactories] - Detected 4 available processors
07:35:35.783 INFO [NodeOptions.discoverDrivers] - Discovered 2 driver(s)
07:35:35.821 INFO [NodeOptions.report] - Adding Chrome for {"browserName": "chrome"} 4 times
07:35:35.821 INFO [NodeOptions.report] - Adding Firefox for {"browserName": "firefox"} 4 times
07:35:35.868 INFO [Node.<init>] - Binding additional locator mechanisms: relative, name, id
07:35:36.138 INFO [NodeServer$1.start] - Starting registration process for Node http://10.251.155.85:5555
07:35:36.138 INFO [NodeServer.execute] - Started Selenium node 4.4.0 (revision e5c75ed026a): http://10.251.155.85:5555
07:35:36.169 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
07:35:46.186 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
07:35:56.202 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
I also tried with passing java -jar selenium-server-.jar node --publish-events tcp://:8886 --subscribe-events tcp://:8887 still no luck .

BUILD FAILED with Sencha CMD

I installed Sencha CMD tool in order to build production app. I went through sencha guidelines: http://docs.sencha.com/cmd/5.x/touch/cmd_app.html and upgraded to new version 2.4.
I'm running Sencha Touch 2.4.0.487, Sencha Cmd 5.0.2.270 with Ruby 1.9.3, Compass 1.0.1, Sass 3.4.5 on Windows 8.
Basically I'm trying to build production, but it fails. You can see errors below.
If anyone has any pointers it would be really appreciated.
Sencha Cmd v5.0.2.270
[INF] Processing Build Descriptor : default
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: java.lang.NullPointerException
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
..\www\app\.sencha\app\build-impl.xml:376: The following error occurr
ed while executing this line:
..\www\app\.sencha\app\init-impl.xml:292: com.sencha.exceptions.Basic
Exception: java.lang.NullPointerException
..\www\app>sencha app build testing
Sencha Cmd v5.0.2.270
[INF] Processing Build Descriptor : default
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: java.lang.NullPointerException
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
..\www\app\.sencha\app\build-impl.xml:376: The following error occurr
ed while executing this line:
..\www\app\.sencha\app\init-impl.xml:292: com.sencha.exceptions.Basic
Exception: java.lang.NullPointerException}

sencha run native throws an error

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.

SenchaCMD Error during refresh or build

I have an error with SenchaCMD 4.0.2.67. When I try to run sencha app refresh or sencha app build or sencha ant phonegap-sencha-build on the terminal, I get the following error:
...
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/touch/src
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/app.js
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/app
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/Ux
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/build/temp/production/Inpunkto/sencha-compiler/app
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException
[ERR] at com.sencha.tools.compiler.sources.ReferenceVisitor.processObjectAutoDependencies(Refe
[ERR] renceVisitor.java:303)
[ERR] at com.sencha.tools.compiler.sources.ReferenceVisi
[ERR] tor.processObjectAutoDependencies(ReferenceVisitor.java:303)
[ERR] at org.mozilla.javascript.ast.FunctionNode.visit(Func
[ERR] tionNode.java:421)
[ERR] at com.sencha.tools.comp
[ERR] iler.sources.ReferenceVisitor.processObjectAutoDependencies(ReferenceVisitor.java:303)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcess
[ERR] or.java:128)
[ERR] at org.mozilla.javascript.ast.Block.visit(Block
[ERR] .java:61)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(Inst
[ERR] anceConfigReferenceProcessor.java:131)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferen
[ERR] ceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.java:128)
[ERR] at org.mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStat
[ERR] ement.java:120)
[ERR] at com.sencha.tools.compiler.sou
[ERR] rces.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.java:131)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfigForClass(InstanceConfigReferenceProcessor.java:
[ERR] 179)
[ERR] at org
[ERR] .mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStatement.java:120)
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
/Users/matthias/Sencha/Cmd/4.0.2.67/plugins/touch/2.3/plugin.xml:326: The following error occurred while executing this line:
/path/to/project/senchatouch/projects/inpunkto/.sencha/app/build-impl.xml:367: The following error occurred while executing this line:
/path/to/project/senchatouch/projects/inpunkto/.sencha/app/js-impl.xml:11: com.sencha.exceptions.BasicException
I have a SenchaTouch 2.3.1 app and integrated the newest release of phonegap into it by using the command: sencha phonegap init [AppID].
Can anybody tell my what this error is all about?
it seems like you are building a code created with sencha architect. Please create a separate project using sencha generate app.. command and then copy the contents from this project to newly created project. Make necessary changes whereever needed, such as project name in each file, etc. I think it will work fine after that...

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