Dojo plugin throws error when running the installation script

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Dojo plugin throws error when running the installation script

scryan
I tried to run the installation script on a new installation of the dojo plugin.  I am running grails 1.3.6 with dojo plugin version 1.4.3.7 and running the script

grails install-custom-dojo

I get the following error

Creating custom dojo css build.
 ...
Error executing script InstallCustomDojo: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
        at grails.converters.JSON.parse(JSON.java:289)
        at _DojoTasks_groovy$_run_closure2.doCall(_DojoTasks_groovy:45)
        at _DojoTasks_groovy$_run_closure4.doCall(_DojoTasks_groovy:72)
        at InstallCustomDojo$_run_closure1.doCall(InstallCustomDojo:7)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        ... 10 more
Caused by: org.codehaus.groovy.grails.web.json.JSONException: Missing value. at character 2 of {[:]}
        at grails.converters.JSON.parse(JSON.java:280)
        ... 14 more
--- Nested Exception ---
org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
        at grails.converters.JSON.parse(JSON.java:289)
        at _DojoTasks_groovy$_run_closure2.doCall(_DojoTasks_groovy:45)
        at _DojoTasks_groovy$_run_closure4.doCall(_DojoTasks_groovy:72)
        at InstallCustomDojo$_run_closure1.doCall(InstallCustomDojo:7)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: org.codehaus.groovy.grails.web.json.JSONException: Missing value. at character 2 of {[:]}
        at grails.converters.JSON.parse(JSON.java:280)
        ... 14 more
Error executing script InstallCustomDojo: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Dojo plugin throws error when running the installation script

Rob Meidal
Please post what you have in your dojo.profile setting.

Rob

On Feb 16, 2011, at 8:19 AM, Scott Ryan wrote:

> I tried to run the installation script on a new installation of the dojo plugin.  I am running grails 1.3.6 with dojo plugin version 1.4.3.7 and running the script
>
> grails install-custom-dojo
>
> I get the following error
>
> Creating custom dojo css build.
> ...
> Error executing script InstallCustomDojo: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
> org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
> at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
> at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
> at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
> at gant.Gant.withBuildListeners(Gant.groovy:427)
> at gant.Gant.this$2$withBuildListeners(Gant.groovy)
> at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
> at gant.Gant.dispatch(Gant.groovy:415)
> at gant.Gant.this$2$dispatch(Gant.groovy)
> at gant.Gant.invokeMethod(Gant.groovy)
> at gant.Gant.executeTargets(Gant.groovy:590)
> at gant.Gant.executeTargets(Gant.groovy:589)
> Caused by: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
> at grails.converters.JSON.parse(JSON.java:289)
> at _DojoTasks_groovy$_run_closure2.doCall(_DojoTasks_groovy:45)
> at _DojoTasks_groovy$_run_closure4.doCall(_DojoTasks_groovy:72)
> at InstallCustomDojo$_run_closure1.doCall(InstallCustomDojo:7)
> at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
> ... 10 more
> Caused by: org.codehaus.groovy.grails.web.json.JSONException: Missing value. at character 2 of {[:]}
> at grails.converters.JSON.parse(JSON.java:280)
> ... 14 more
> --- Nested Exception ---
> org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
> at grails.converters.JSON.parse(JSON.java:289)
> at _DojoTasks_groovy$_run_closure2.doCall(_DojoTasks_groovy:45)
> at _DojoTasks_groovy$_run_closure4.doCall(_DojoTasks_groovy:72)
> at InstallCustomDojo$_run_closure1.doCall(InstallCustomDojo:7)
> at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
> at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
> at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
> at gant.Gant.withBuildListeners(Gant.groovy:427)
> at gant.Gant.this$2$withBuildListeners(Gant.groovy)
> at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
> at gant.Gant.dispatch(Gant.groovy:415)
> at gant.Gant.this$2$dispatch(Gant.groovy)
> at gant.Gant.invokeMethod(Gant.groovy)
> at gant.Gant.executeTargets(Gant.groovy:590)
> at gant.Gant.executeTargets(Gant.groovy:589)
> Caused by: org.codehaus.groovy.grails.web.json.JSONException: Missing value. at character 2 of {[:]}
> at grails.converters.JSON.parse(JSON.java:280)
> ... 14 more
> Error executing script InstallCustomDojo: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Dojo plugin throws error when running the installation script

israel ariel
i having the same problems. here is what is in dojo.profile.js

var profile = (function(){
        var testResourceRe = /^dojo\/tests\//,

                copyOnly = function(filename, mid){
                        var list = {
                                "dojo/dojo.profile":1,
                                "dojo/package.json":1,
                                "dojo/OpenAjax":1,
                                "dojo/tests":1,
                                // these are test modules that are not intended to ever be built
                                "dojo/tests/_base/loader/requirejs/requirejs-setup":1,
                                "dojo/tests/_base/loader/requirejs/dataMain":1,
                                "dojo/tests/_base/loader/requirejs/depoverlap":1,
                                "dojo/tests/_base/loader/requirejs/simple-tests":1,
                                "dojo/tests/_base/loader/requirejs/relative/relative-tests":1,
                                "dojo/tests/_base/loader/requirejs/exports/exports-tests":1
                        };
                        return (mid in list) || /^dojo\/_base\/config\w+$/.test(mid) || (/^dojo\/resources\//.test(mid) && !/\.css$/.test(filename)) || /(png|jpg|jpeg|gif|tiff)$/.test(filename);
                };

        return {
                resourceTags:{
                        test: function(filename, mid){
                                return testResourceRe.test(mid) || mid=="dojo/tests" || mid=="dojo/robot" || mid=="dojo/robotx";
                        },

                        copyOnly: function(filename, mid){
                                return copyOnly(filename, mid);
                        },

                        amd: function(filename, mid){
                                return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
                        }
                },

                trees:[
                        [".", ".", /(\/\.)|(~$)/]
                ]
        };
})();
Reply | Threaded
Open this post in threaded view
|

Re: Dojo plugin throws error when running the installation script

israel ariel
In reply to this post by Rob Meidal
actually my error is:

Creating Custom Dojo CSS build file...
| Error org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
| Error at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
| Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
| Error at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
| Error at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
| Error at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194)
| Error at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:616)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
| Error at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:616)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
| Error at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:616)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
| Error at gant.Gant.withBuildListeners(Gant.groovy:427)
| Error at gant.Gant.this$2$withBuildListeners(Gant.groovy)
| Error at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
| Error at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
| Error at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
| Error at gant.Gant.dispatch(Gant.groovy:415)
| Error at gant.Gant.this$2$dispatch(Gant.groovy)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:616)
| Error at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
| Error at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
| Error at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082)
| Error at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106)
| Error at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
| Error at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:729)
| Error at gant.Gant.invokeMethod(Gant.groovy)
| Error at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source)
| Error at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
| Error at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source)
| Error at gant.Gant.executeTargets(Gant.groovy:591)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:616)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
| Error at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
| Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:57)
| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
| Error at gant.Gant.executeTargets(Gant.groovy:590)
| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:769)
| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:567)
| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:466)
| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:417)
| Error at org.grails.ide.api.impl.GrailsConnectorImpl.executeCommand(GrailsConnectorImpl.java:156)
| Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.run(GrailsProcess.java:130)
| Error at org.grails.ide.eclipse.longrunning.process.GrailsProcess.main(GrailsProcess.java:93)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:616)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
| Error Caused by: org.codehaus.groovy.grails.web.converters.exceptions.ConverterException: Error parsing JSON
| Error at grails.converters.JSON.parse(JSON.java:290)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:616)
| Error at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
| Error at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
| Error at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:130)
| Error at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)
| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
| Error at _DojoTasks_groovy$_run_closure3.doCall(_DojoTasks_groovy:60)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)