Results 1 to 3 of 3

Thread: Ext app builds fail with NullPointerException

  1. #1
    Sencha Premium User
    Join Date
    Jun 2012
    Posts
    48

    Default Ext app builds fail with NullPointerException

    I get NPE errors when building a brand new app generated from fresh installations of Cmd 6.2.1 and ExtJS 6.2.0. This is on a CentOS7 x64 OS. The error log is:

    Sencha Cmd 6.2.1.29 - Crash report
    ================================================
    An error occurred while executing the following command: build

    Diagnostic information:
    =======================
    app.archivePath : archive/${build.id}
    app.bootstrap.base : /home/bart/git/artmanager/applications
    app.bootstrap.css : bootstrap.css
    app.bootstrap.manifest : ${build.id}.json
    app.bootstrap.microloader : bootstrap.js
    app.builds.classic.sass.generated.src : classic/sass/save
    app.builds.classic.sass.generated.var : classic/sass/save.scss
    app.builds.classic.theme : theme-triton
    app.builds.classic.toolkit : classic
    app.builds.modern.sass.generated.src : modern/sass/save
    app.builds.modern.sass.generated.var : modern/sass/save.scss
    app.builds.modern.theme : theme-triton
    app.builds.modern.toolkit : modern
    app.cache.deltas : ${build.id}/deltas
    app.cache.enable : false
    app.classic.js.0.path : /home/bart/git/artmanager/applications/ext/build/ext-all-rtl-debug.js
    app.classic.js.length : 1
    app.classpath : app,${toolkit.name}/src
    app.classpath.0 : app
    app.classpath.1 : ${toolkit.name}/src
    app.classpath.length : 2
    app.cmd.version : 6.2.1.29
    app.config.dir : /home/bart/git/artmanager/applications/.sencha/app
    app.cordova.cache.enable : false
    app.cordova.config.id : com.domain.ArtManager
    app.cordova.config.name : ArtManager
    app.cordova.config.path : /home/bart/git/artmanager/applications/cordova
    app.cordova.config.target :
    app.cordova.config.verbose : false
    app.cordova.js.0.path : cordova.js
    app.cordova.js.0.priority : 1000
    app.cordova.js.0.remote : true
    app.cordova.js.length : 1
    app.cordova.microloader : /home/bart/git/artmanager/applications/.sencha/app/Microloader.js
    app.cordova.output.appCache.enable : false
    app.cordova.output.base : /home/bart/git/artmanager/applications/cordova/www
    app.cordova.output.manifest : ${build.id}.json
    app.cordova.output.page : index.html
    app.development.watch.delay : 250
    app.dir : /home/bart/git/artmanager/applications
    app.fashion.inliner.enable : false
    app.framework : ext
    app.framework.version : 6.2.1.167
    app.id : 672193ed-3cb1-44bb-9981-4cfc57622ffe
    app.indexHtmlPath : index.html
    app.loader.cache : false
    app.loader.cacheParam : _dc
    app.modern.js.0.path : /home/bart/git/artmanager/applications/ext/build/ext-modern-all-debug.js
    app.modern.js.length : 1
    app.name : ArtManager
    app.output.appCache.enable : false
    app.output.base : /home/bart/git/artmanager/applications/build/${build.environment}/ArtManager
    app.output.js : ${build.id}/app.js
    app.output.manifest : ${build.id}.json
    app.output.microloader.enable : true
    app.output.page : index.html
    app.output.resources.path : ${build.id}/resources
    app.output.resources.shared : resources
    app.overrides : overrides,${toolkit.name}/overrides
    app.overrides.0 : overrides
    app.overrides.1 : ${toolkit.name}/overrides
    app.overrides.length : 2
    app.phonegap.cache.enable : false
    app.phonegap.config.id : com.domain.ArtManager
    app.phonegap.config.name : ArtManager
    app.phonegap.config.path : /home/bart/git/artmanager/applications/phonegap
    app.phonegap.config.remote : false
    app.phonegap.config.verbose : false
    app.phonegap.js.0.path : cordova.js
    app.phonegap.js.0.priority : 1000
    app.phonegap.js.0.remote : true
    app.phonegap.js.length : 1
    app.phonegap.microloader : /home/bart/git/artmanager/applications/.sencha/app/Microloader.js
    app.phonegap.output.appCache.enable : false
    app.phonegap.output.base : /home/bart/git/artmanager/applications/phonegap/www
    app.phonegap.output.manifest : ${build.id}.json
    app.phonegap.output.page : index.html
    app.production.cache.enable : true
    app.production.compressor.type : yui
    app.production.loader.cache : ${build.timestamp}
    app.production.output.appCache.enable : true
    app.production.output.appCache.path : cache.appcache
    app.resource.paths :
    app.sass.dynamic : true
    app.sass.etc : sass/etc/all.scss,${toolkit.name}/sass/etc/all.scss
    app.sass.etc.0 : sass/etc/all.scss
    app.sass.etc.1 : ${toolkit.name}/sass/etc/all.scss
    app.sass.etc.length : 2
    app.sass.namespace : ArtManager
    app.sass.src : sass/src,${toolkit.name}/sass/src
    app.sass.src.0 : sass/src
    app.sass.src.1 : ${toolkit.name}/sass/src
    app.sass.src.length : 2
    app.sass.var : sass/var/all.scss,sass/var,${toolkit.name}/sass/var
    app.sass.var.0 : sass/var/all.scss
    app.sass.var.1 : sass/var
    app.sass.var.2 : ${toolkit.name}/sass/var
    app.sass.var.length : 3
    app.slicer.cache.enable : false
    app.slicer.js.0.isWidgetManifest : true
    app.slicer.js.0.path : /home/bart/git/artmanager/applications/sass/example/custom.js
    app.slicer.js.length : 1
    app.slicer.output.appCache.enable : false
    app.version : 1.0.0.0
    buildenvironment.dir : /home/bart/git/artmanager/applications
    buildenvironment.load.dir : /home/bart/git/artmanager/applications
    cmd.config.dir : /home/bart/bin/Sencha/Cmd/6.2.1.29
    cmd.dir : /home/bart/bin/Sencha/Cmd/6.2.1.29
    cmd.framework.minver : 5.5.0
    cmd.framework.version : 99.99
    cmd.jvm.args : -Xms128m -Xmx1024m -Dapple.awt.UIElement=true
    cmd.merge.tool.args.araxis : -wait -merge -3 -a1 {base} {user} {generated} {out}
    cmd.merge.tool.args.kdiff3 : {base} {user} {generated} -o {out}
    cmd.merge.tool.args.p4merge : {base} {user} {generated} {out}
    cmd.merge.tool.args.smartsync : {user} {generated} {base}
    cmd.merge.tool.args.sourcegear : --merge --result={out} {user} {base} {generated}
    cmd.merge.tool.args.tortoise : -base:{base} -theirs:{generated} -mine:{user} -merged:{out}
    cmd.minver : 3.0.0.0
    cmd.platform : linux-x64
    cmd.unicode.escapes : /home/bart/bin/Sencha/Cmd/6.2.1.29/unicode-escapes.json
    cmd.version : 6.2.1.29
    cmd.web.port : 1841
    config.skipDownload : true
    config.skipInherit : false
    ext.license.name : commercial
    framework.build.dir : ${package.output.base}
    framework.classpath : ${package.dir}/src
    framework.cmd.minver : 6.2.1.29
    framework.cmd.version : 6.2.1.29
    framework.compatVersion : 6.2.0
    framework.config.dir : /home/bart/bin/Sencha/Cmd/6.2.1.29/plugins/ext/current
    framework.creator : Sencha
    framework.detailedDescription : Sencha Ext JS JavaScript Framework
    framework.dir : /home/bart/git/artmanager/applications/ext
    framework.example.apps : admin-dashboard,executive-dashboard,feed-viewer,kitchensink,calendar,classic/desktop,classic/ticket-app,classic/portal,classic/simple-tasks,classic/responsive-app,classic/aria,modern/addressbook,modern/blackberry,modern/energy,modern/stockapp,modern/states,modern/geocongress,modern/oreilly
    framework.example.apps.0 : admin-dashboard
    framework.example.apps.1 : executive-dashboard
    framework.example.apps.10 : classic/aria
    framework.example.apps.11 : modern/addressbook
    framework.example.apps.12 : modern/blackberry
    framework.example.apps.13 : modern/energy
    framework.example.apps.14 : modern/stockapp
    framework.example.apps.15 : modern/states
    framework.example.apps.16 : modern/geocongress
    framework.example.apps.17 : modern/oreilly
    framework.example.apps.2 : feed-viewer
    framework.example.apps.3 : kitchensink
    framework.example.apps.4 : calendar
    framework.example.apps.5 : classic/desktop
    framework.example.apps.6 : classic/ticket-app
    framework.example.apps.7 : classic/portal
    framework.example.apps.8 : classic/simple-tasks
    framework.example.apps.9 : classic/responsive-app
    framework.example.apps.length : 18
    framework.example.path : examples,templates
    framework.example.path.0 : examples
    framework.example.path.1 : templates
    framework.example.path.length : 2
    framework.format : 1
    framework.isV5 : true
    framework.isV6 : true
    framework.name : ext
    framework.namespace : Ext
    framework.output : ${package.dir}/build
    framework.overrides : ${package.dir}/overrides
    framework.packages.dir : /home/bart/git/artmanager/applications/ext/packages/,/home/bart/git/artmanager/applications/ext/${toolkit.name}
    framework.resource.paths : resources
    framework.resource.paths.0 : resources
    framework.resource.paths.length : 1
    framework.sass.etc : ${package.dir}/sass/etc/all.scss
    framework.sass.fashion : true
    framework.sass.namespace : Ext
    framework.sass.src : ${package.dir}/sass/src
    framework.sass.var : ${package.dir}/sass/var
    framework.subpkgs : classic/classic,modern/modern,packages/charts,packages/amf,packages/soap,packages/ux,packages/google,packages/legacy,packages/font-awesome,packages/font-pictos,packages/font-ext
    framework.subpkgs.0 : classic/classic
    framework.subpkgs.1 : modern/modern
    framework.subpkgs.10 : packages/font-ext
    framework.subpkgs.2 : packages/charts
    framework.subpkgs.3 : packages/amf
    framework.subpkgs.4 : packages/soap
    framework.subpkgs.5 : packages/ux
    framework.subpkgs.6 : packages/google
    framework.subpkgs.7 : packages/legacy
    framework.subpkgs.8 : packages/font-awesome
    framework.subpkgs.9 : packages/font-pictos
    framework.subpkgs.length : 11
    framework.summary : Ext JS
    framework.type : framework
    framework.version : 6.2.1.167
    inspector.address : http://localhost:1839/
    package.sass.dynamic : true
    repo.local.dir : /home/bart/bin/Sencha/Cmd/repo
    system.java.net.useSystemProxies : true
    workspace.build.dir : /home/bart/git/artmanager/applications/build
    workspace.cmd.version : 6.2.1.29
    workspace.config.dir : /home/bart/git/artmanager/applications/.sencha/workspace
    workspace.dir : /home/bart/git/artmanager/applications
    workspace.frameworks.ext.path : /home/bart/git/artmanager/applications/ext
    workspace.frameworks.ext.version : 6.2.1.167
    workspace.packages.dir : /home/bart/git/artmanager/applications/packages/local,/home/bart/git/artmanager/applications/packages
    workspace.packages.extract : /home/bart/git/artmanager/applications/packages/remote
    workspace.theme.dir : /home/bart/git/artmanager/applications/packages/local,/home/bart/git/artmanager/applications/packages/${args.themeName}

    Exception information:
    =======================
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:277)
    at com.sencha.util.FileUtil.readFile(FileUtil.java:158)
    at com.sencha.tools.compiler.jsb.projects.JsbBuilder.processBuild(JsbBuilder.java:29)
    at com.sencha.command.build.JsbCommand.execute(JsbCommand.java:15)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
    at com.sencha.cli.Command.dispatch(Command.java:43)
    at com.sencha.cli.Commands.dispatch(Commands.java:64)
    at com.sencha.command.Sencha.dispatch(Sencha.java:79)
    at com.sencha.command.Sencha.main(Sencha.java:147)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
    at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

  2. #2
    Sencha Premium User
    Join Date
    Jun 2012
    Posts
    48

    Default

    It looks like there are several files missing after running 'sencha generate app'. So far, all of the view files are missing: Main.js and List.js.

    After putzing around some more, I think this is a bug with Sencha Cmd 6.2.1.29, which is what is available from the support download as the latest version or when you run 'sencha upgrade'. Generated app scaffolds are incomplete. I had a previous Cmd version, 6.2.0.103, and it works fine.

  3. #3

    Default

    Could you let me know the process you are using to generate the app in the first place? Are you receiving any errors at that point? Are you able to browse to the app?


    Kevin Jackson
    Sencha Support Team

Similar Threads

  1. Sencha Architect native builds fail with "Cannot find file: /native/app.js"
    By howellzify in forum Sencha Architect 3.x: Bugs
    Replies: 0
    Last Post: 23 Nov 2014, 3:59 PM
  2. [FIXED] NullPointerException in 3.0.0.230
    By olegtaranenko in forum Sencha Cmd
    Replies: 4
    Last Post: 30 Oct 2012, 5:43 AM
  3. NullPointerException in ScatterSeries
    By akush2007 in forum Sencha GXT Q&A
    Replies: 1
    Last Post: 25 Sep 2012, 9:30 PM
  4. GroupingView: NullPointerException
    By esag_dk in forum Sencha GXT Bugs
    Replies: 0
    Last Post: 16 Sep 2012, 11:52 PM
  5. Switched to GWT 220 (GXT 223) -> NullPointerException
    By Eich in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 23 Mar 2011, 12:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •