1. #1
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default JSbuilder2 error

    JSbuilder2 error


    I'm running JSBuilder2 command line on Windows Vista and Getting the following error..

    It actually builds the '-debug.js' version of the file and then fails to create the minified version. Any ideas?

    Code:
    Loading the 'Test Project' Project
    Loaded 1 Packages
    Building the 'motoui - all' package as 'compiled/test.all-debug.js'
    - There are 12 file include(s).
    - - ../app/overrides/overrides-bugfixes.js
    - - ../app/overrides/overrides-enhancements.js
    - - ../app/overrides/vtypes.js
    - - ../app/forms/config.forms.js
    - - ../app/forms/config.forms.Test.js
    - - ../app/forms/config.forms.Import.js
    - - ../app/layout/config.print.js
    - - ../app/layout/config.NavPanel.js
    - - ../app/layout/config.TaskUIPanel.js
    - - ../app/layout/config.AppHeaderPanel.js
    - - ../app/layout/KRI.languages.English.js
    - - ../app/layout/applayout.js
    Exception in thread "main" java.lang.NullPointerException
            at com.extjs.FileHelper.listFiles(FileHelper.java:103)
            at com.extjs.JSBuilder2.writeHeadersToTargets(JSBuilder2.java:276)
            at com.extjs.JSBuilder2.main(JSBuilder2.java:44)

  2. #2
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    Here is the jsb2 file as well incase i'm doing something wrong there.

    All the files included get put in a SRC directory but that is it.. no build directory and no minification. Hoping someone can see my folly. Thanks!

    Code:
    {
    	projectName: 'Test Project',
    	deployDir: '',
    	licenseText : '',
    	pkgs: [{
    		name: 'test - all',
    		file: 'compiled/test.all.js',
    		fileIncludes: [
    			{text:'overrides-bugfixes.js', path:'../app/overrides/'},
    			{text:'overrides-enhancements.js', path:'../app/overrides/'},
      			{text:'vtypes.js', path:'../app/overrides/'},
      			{text:'config.forms.js', path:'../app/forms/'},
      			{text:'config.forms.Product.js', path:'../app/forms/'},
      			{text:'config.forms.Import.js', path:'../app/forms/'},
      			{text:'config.print.js', path:'../app/layout/'},
      			{text:'config.NavPanel.js', path:'../app/layout/'},
      			{text:'config.TaskUIPanel.js', path:'../app/layout/'},
      			{text:'config.AppHeaderPanel.js', path:'../app/layout/'},
      			{text:'KRI.languages.English.js', path:'../app/layout/'},
      			{text:'applayout.js', path:'../app/layout/'}
    		]		
    	}],
    	resources: [{
            src: '../app/',
            dest: '/src/',
            filters: ".*\\.js"
        }]
    }

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    test.all.js is an unusual name. What happens if you change it to test-all.js?

  4. #4
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    OK I tried that condor but i get the same exact error.. it creates the debug file and then stops.

  5. #5
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    I also tried removing all the included files that had dots in their name with the same result. I also reduced it to just one JS file (tried a few) with the same results..

  6. #6
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    Is anyone using JSBuilder2 successfully? can anyone post a small example file of a working export?

  7. #7
    Ext User
    Join Date
    Jun 2008
    Posts
    2
    Vote Rating
    0
    Shai_Hulud is on a distinguished road

      0  

    Default


    Quote Originally Posted by bhaidaya View Post
    Is anyone using JSBuilder2 successfully? can anyone post a small example file of a working export?
    nop, tryed migrate from JSBuilder 1 to JsBuilder 2, and all i got is

    Code:
    Loading the 'My project' Project
    Loaded 12 Packages
    Building the 'Admin package' package as '/scripts/pkgs/pkg-admin-debug.js' <-- first package
    The filename, directory name, or volume label syntax is incorrect
    Failed to create targets with fileIncludes.
    Building the 'Website All' package as '/scripts/website-compiled-debug.js' <-- resulting package
    This package is built by included dependencies.
    java.io.IOException: The filename, directory name, or volume label syntax is inc
    orrect
            at java.io.WinNTFileSystem.canonicalize0(Native Method)
            at java.io.Win32FileSystem.canonicalize(Unknown Source)
            at java.io.File.getCanonicalPath(Unknown Source)
            at com.extjs.JSBuilder2.createTargetsWithDeps(JSBuilder2.java:237)
            at com.extjs.JSBuilder2.main(JSBuilder2.java:42)
    Failed to create target with package dependencies.
    Exception in thread "main" java.lang.NullPointerException
            at com.extjs.FileHelper.listFiles(FileHelper.java:103)
            at com.extjs.JSBuilder2.writeHeadersToTargets(JSBuilder2.java:276)
            at com.extjs.JSBuilder2.main(JSBuilder2.java:44)
    No clue what shout i do.

  8. #8
    Ext User
    Join Date
    Oct 2009
    Posts
    1
    Vote Rating
    0
    aalpha.org is on a distinguished road

      0  

    Default Re:

    Re:


    Quote Originally Posted by Shai_Hulud View Post
    nop, tryed migrate from JSBuilder 1 to JsBuilder 2, and all i got is

    Code:
    Loading the 'My project' Project
    Loaded 12 Packages
    Building the 'Admin package' package as '/scripts/pkgs/pkg-admin-debug.js' <-- first package
    The filename, directory name, or volume label syntax is incorrect
    Failed to create targets with fileIncludes.
    Building the 'Website All' package as '/scripts/website-compiled-debug.js' <-- resulting package
    This package is built by included dependencies.
    java.io.IOException: The filename, directory name, or volume label syntax is inc
    orrect
            at java.io.WinNTFileSystem.canonicalize0(Native Method)
            at java.io.Win32FileSystem.canonicalize(Unknown Source)
            at java.io.File.getCanonicalPath(Unknown Source)
            at com.extjs.JSBuilder2.createTargetsWithDeps(JSBuilder2.java:237)
            at com.extjs.JSBuilder2.main(JSBuilder2.java:42)
    Failed to create target with package dependencies.
    Exception in thread "main" java.lang.NullPointerException
            at com.extjs.FileHelper.listFiles(FileHelper.java:103)
            at com.extjs.JSBuilder2.writeHeadersToTargets(JSBuilder2.java:276)
            at com.extjs.JSBuilder2.main(JSBuilder2.java:44)
    No clue what shout i do.
    we can do the help which u required
    All Computer & Programming Related Advice From A Expert From LIVEFREELANCER