Results 1 to 10 of 10

Thread: sencha build testing >>> java.lang.NullPointerException

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    68
    Vote Rating
    1
      0  

    Default sencha build testing >>> java.lang.NullPointerException

    Hi,

    when I try to create a build I get a NullPointerException. This happens even in a brand new project.

    Here are the steps for testing this:

    Code:
    sencha -sdk /path/to/sencha2.3.1/touch/code/ generate app TestApp aaa
    
    cd aaa
    
    sencha build testing
    Here is the output of the "sencha build testing" command:

    Code:
    Sencha Cmd v5.0.0.160
    [ERR] 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:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:606)
         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:71)
         at com.sencha.command.Sencha.main(Sencha.java:139)
    Sencha CMD: v5.0.0.160
    Java: 1.7.0_55
    Ruby: 1.9.3p484

    Java is OpenJDK 7. Downgrading to OpenJDK 6 didn't change a thing.
    Let me know if you need more info.

    Please post if you have any suggestions or temporary fixes. Thank you.

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    68
    Vote Rating
    1
      0  

    Default

    Is there anybody that has the same problem? Any suggestion or any fix, even temporary?

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    68
    Vote Rating
    1
      0  

    Default

    I have downgraded java to OpenJDK 6 and everything works as supposed. This seems to affect sencha cmd only when coupled with OpenJDK 7 and higher.

  4. #4
    Sencha User
    Join Date
    Aug 2014
    Posts
    13
    Vote Rating
    1
      0  

    Default Same problem

    I have the exact same problem of getting the following exception when performing "sencha build" on the root folder:

    [ERR] java.lang.NullPointerException
    at java.io.File.<init>(Unknown Source)
    at com.sencha.util.FileUtil.readFile(FileUtil.java:158)
    at com.sencha.tools.compiler.jsb.projects.JsbBuilder.processBuild(JsbBuilde
    r.java:29)
    at com.sencha.command.build.JsbCommand.execute(JsbCommand.java:15)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:73)
    at com.sencha.command.Sencha.main(Sencha.java:141)

    And I don't want to downgrade

  5. #5
    Sencha User
    Join Date
    Aug 2012
    Posts
    68
    Vote Rating
    1
      0  

    Default

    Are you also a GNU/Linux user?

  6. #6
    Sencha User
    Join Date
    Aug 2014
    Posts
    13
    Vote Rating
    1
      0  

    Default

    Actually I am a Win7 user... Currently pretty frustrated with Sencha.
    I am using latest sencha cmd 5.0.1 and I have just realized that the "build" command is describe as follows in the help:
    "build - Builds a project from a legacy JSB3 file."
    What should I do if I don't have a jsb3 file? Maybe this is the reason for the exception?
    How should I build my ExtJs 5.0.1 app in cmd 5.0.1?!

  7. #7
    Sencha User
    Join Date
    Feb 2008
    Posts
    63
    Vote Rating
    3
      0  

    Default

    Maybe we should have a poll. What's your experience with Sencha development tools?
    - are you are satisfied?
    - are pretty frustrated? <- that's what I would pick too.

    To build app you can use "sencha app build [ production | testing ] " command.

  8. #8
    Sencha User
    Join Date
    Aug 2014
    Posts
    13
    Vote Rating
    1
      0  

    Default

    So simple... why wasn't it documented in the help I wouldn't know.It finally works, thank you!So I understand you are not recommending using Sencha Cmd for building the app Do you or anyone else have some experience with other tools for building the app for production? How about Grunt?

  9. #9
    Sencha User
    Join Date
    Aug 2012
    Posts
    68
    Vote Rating
    1
      0  

    Default

    Works? How did you manage to fix the issue and with which Java version?

  10. #10
    Sencha User
    Join Date
    Aug 2014
    Posts
    13
    Vote Rating
    1
      1  

    Default

    Instead of "sencha build" I used "sencha app build", that has made all the difference!
    Java 1.7, didn't touch it.

Posting Permissions

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