PDA

View Full Version : themer skeleton-config broken in 3.1 beta



jwendel
27 Feb 2014, 9:47 AM
I run the command:


themer.sh -generateConfig skeleton-config.theme
themer.sh skeleton-config.theme
Then I get:


com.sencha.gxt.themebuilder.config.shared.WrongTypeException: String can't be used as an object (approx line: 360, approx column: 18, approx path: theme.details.grid.group.border)



border = "util.border('solid' '#000000', 0, 0, 1)"
Thre are 2 problems with this line. First it's surrounded by quotes, plus the comma is missing after 'solid'. So the line should be (I believe:

border = util.border('solid', '#000000', 0, 0, 1)


Then if I run the themer again, I get another error still, but I'm uncertain how to fix this one.


template generation startedtemplate generation complete
image generation started
generating icons
notifyListeners
image generation complete
compile started
bootstrap class path not set in conjunction with -source 1.6
Error on line -1 in null
compile complete
capture started
loading page /var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/index.html
Thu Feb 27 11:43:42 GMT-600 2014 com.sencha.gxt.themebuilder.slicer.client.SliceTheme
SEVERE: Fatal error trying to collect data on job com.sencha.gxt.themebuilder.slicer.client.job.tabs.TabPanelScrollerJob@18bcom.google.gwt.core.client.JavaScriptException: (TypeError)
line: 1508
sourceId: 164402992
sourceURL: file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html
stack: TypeError: 'null' is not an object (evaluating 'a.offsetWidth')
at Ff (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:1508)
at xdb (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:3214)
at ldb (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:3694)
at yFb (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:3148)
at kKb (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:3900)
at mKb (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:4144)
at uAb (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:4141)
at Zd (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:3617)
at Qd (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:3040)
at be (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:4135)
at Xd (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:793)
at xd (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:1759)
at Bd (file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:3637)
at file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:2963
at file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:2962
at file:///var/folders/xl/v8c052vj6ss2cllcz6v8b1jw0000gp/T/temp7443707848597164591.3/sliceme/D427495AA6BC2F298A6B3D5E4D0D1577.cache.html:2987
stackArray: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
__gwt$exception: <skipped>: 'null' is not an object (evaluating 'a.offsetWidth')
at Unknown.TypeError: 'null' is not an object(@-1)
at Unknown.Ff(file@1508)
at Unknown.xdb(file@3214)
at Unknown.ldb(file@3694)
at Unknown.yFb(file@3148)
at Unknown.kKb(file@3900)
at Unknown.mKb(file@4144)
at Unknown.uAb(file@4141)
at Unknown.Zd(file@3617)
at Unknown.Qd(file@3040)
at Unknown.be(file@4135)
at Unknown.Xd(file@793)
at Unknown.xd(file@1759)
at Unknown.Bd(file@3637)
at Unknown.anonymous(file@2963)
at Unknown.anonymous(file@2962)
at Unknown.anonymous(file@2987)


failed to render widgets within 30 sec.


error with capture
java.lang.RuntimeException: Error with phantomJS:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
at com.sencha.gxt.themebuilder.ThemeSlicer.capture(ThemeSlicer.groovy:51)
at com.sencha.gxt.themebuilder.ThemeSlicer$capture.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure5.doCall(ThemeBuilder.groovy:109)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure5.doCall(ThemeBuilder.groovy)
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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at com.sencha.gxt.themebuilder.ThemeBuilder$__clinit__closure8.doCall(ThemeBuilder.groovy:28)
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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:848)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:164)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(ScriptBytecodeAdapter.java:570)
at com.sencha.gxt.themebuilder.ThemeBuilder.main(ThemeBuilder.groovy:107)

Colin Alworth
27 Feb 2014, 10:24 AM
Yes, for the time being it cannot actually generate a real theme - there aren't enough non-useless values in there for it to actually generate Java/HTML/CSS for us. Instead, it mostly serves as a reference for what each property does.

We will improve this for the final 3.1 release so that it generates something runnable, though as it is just filled with sample values I can promise it will be even uglier than what quick-start currently is ;).

If memory serves (and your log seems to confirm) the particular issue is to do with some of the tab values. Try updating the tabpanel {...} settings to use reasonable values instead of all "" and 0, and this issue may be resolved.

VasanthM
22 Mar 2017, 10:41 AM
Hi,

Please look into the below error.

D:\Sencha\GenerateTheme\gxt-4.0.3-20170306\themebuilder\bin>themer.bat neptune.theme
template generation started
template generation complete
image generation started
generating icons
Win version: 0x1db10106 = 498139398 (Windows Vista)
image generation complete
compile started
compile complete
capture started
loading page C:/Users\vmurugan\AppData\Local\Temp\temp7056433542591690347.4/sliceme/index.html
Failed to load page

error with capture
java.lang.RuntimeException: Error with phantomJS:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorS
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244)
at com.sencha.gxt.themebuilder.ThemeSlicer.capture(ThemeSlicer.groovy:46)
at com.sencha.gxt.themebuilder.ThemeSlicer$capture.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:114)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure6.doCall(ThemeBuilder.groovy:121)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure6.doCall(ThemeBuilder.groovy)
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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:114)
at com.sencha.gxt.themebuilder.ThemeBuilder$__clinit__closure10.doCall(ThemeBuilder.groovy:23)
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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:914)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:897)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:166)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(ScriptBytecodeAdapter.java:572)
at com.sencha.gxt.themebuilder.ThemeBuilder.main(ThemeBuilder.groovy:119)

Could you please provide the solution for this issue.

Rergards,
Vasanth