|
Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #117238 is a reply to message #117224] |
Sat, 27 December 2008 19:30 |
Eclipse User |
|
|
|
Originally posted by: ifurnadjiev.innoopract.com
Hi Roland,
do you use a custom theme for your application? If yes - did you switch
to CSS-based themeing or you still use the old properties one?
The support for old properties-based themeing will be discontinue in
1.2M4. Search the newsgroup for "[ANN] Properties theming support
discontinued in 1.2 M4" for more details.
Best,
Ivan
Roland Siebert wrote:
> Hi, since last CVS update I'm getting this Exception and I don't what
> is wrong. I think, I don't made any change on my code.
>
> Can anybody explain this?
>
>
> Roland
>
>
> java.lang.IllegalArgumentException: Undefined key:
> 'text.SINGLE.padding' in theme 'RAP Default Theme'
> at org.eclipse.rwt.internal.theme.Theme.getValue(Theme.java:257 )
> at org.eclipse.rwt.internal.theme.Theme.getValue(Theme.java:229 )
> at
> org.eclipse.rwt.internal.theme.AppearancesUtil.substituteMac ros(AppearancesUtil.java:55)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.createAppearance Theme(ThemeManager.java:966)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.registerThemeFil es(ThemeManager.java:758)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.registerResource s(ThemeManager.java:407)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:297)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:33)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
>
> at
> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 01)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:61)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:89)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:50)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:197)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:46 )
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:34)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157)
>
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101)
>
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
> at
> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
> at
> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
>
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
> at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
|
|
|
|
|
|
|
|
|
|
Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #118353 is a reply to message #118343] |
Mon, 12 January 2009 20:14 |
|
Hi,
you're using a custom widget which contributes an obsolete
*.appearances.js file (see [1]). If this is not the upload widget, then
it must be some other custom widget. Please check your plugin.xml files
for extensions of the themeableWidgets extension point.
[1]
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg05026.html
Regards, Ralf
New Yop Javeloper wrote:
> Still No Way!
> Can I have a real help?
>
> this is what i did:
> 1 - downloaded last version on http://eclipse.org of
> a/ eclipse jee for java developper
> b/ pointed it to http://download.eclipse.org/rt/rap/1.2/update/ to have
> the last update of RAP. and installed the target platform.
> c/ imported rap-sandbox-upload-widget.psf from
> :pserver:anonymous@dev.eclipse.org :/cvsroot/rt/org.eclipse.rap/sandbox/org.eclipse.rwt.widgets .upload/
>
> (I'm so sure to have no dependencies problems)
>
> 2 - set a run configuration with the run config wizard:
> a- servlet name : rap
> b- entry Point : default (being the one on the plugin.xml file)
> c- selected all bundles to avoid validation problems
> d- set this : "-os ${target.os} -ws ${target.ws} -arch ${target.arch}
> -nl ${target.nl} -console -consolelog" as program arguments and
> e- this "-Declipse.ignoreApp=true -Dosgi.noShutdown=true" as VM arguments
> f- set "${workspace_loc:org.eclipse.rwt.widgets.upload.demo}" as default
> location (my jre being 1.6.0_07)
> g- \org.eclipse.rwt.widgets.upload.demo for the launch shared file
>
> BUT IT STILL DONT WORK
>
> I STILL HAVE THE SAME STACKTRACE:
>
> osgi> 2009-01-12 16:39:27.992::INFO: Logging to STDERR via
> org.mortbay.log.StdErrLog
> 2009-01-12 16:39:27.102::INFO: jetty-6.1.x
> 2009-01-12 16:39:27.352::INFO: Started SelectChannelConnector@0.0.0.0:4772
> 2009-01-12 16:39:37.610::WARN: /rap
> java.lang.IllegalArgumentException: Undefined key: 'text.SINGLE.padding'
> in theme 'RAP Default Theme'
> at org.eclipse.rwt.internal.theme.Theme.getValue(Theme.java:257 )
> at org.eclipse.rwt.internal.theme.Theme.getValue(Theme.java:229 )
> at
> org.eclipse.rwt.internal.theme.AppearancesUtil.substituteMac ros(AppearancesUtil.java:55)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.createAppearance Theme(ThemeManager.java:966)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.registerThemeFil es(ThemeManager.java:758)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.registerResource s(ThemeManager.java:407)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:297)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:33)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
>
> at
> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 01)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:61)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:89)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:50)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:197)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:46 )
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:34)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157)
>
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101)
>
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
> at
> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:255)
>
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:487)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:362)
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:181)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:726)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:505)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:828)
>
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 211)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 380)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:395)
>
> at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedT hreadPool.java:450)
>
>
>
> is there someone wanting to give me a good help?
>
>
|
|
|
|
Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #118394 is a reply to message #118386] |
Tue, 13 January 2009 13:36 |
|
New Yop Javeloper wrote:
> Hi & thank you!
> I took a look to the upload widget source especially the *.js sources
> and I found what was the error.
>
> There's an error en the
> org.eclipse.rwt.widgets.internal.uploadkit.Upload.appearance s.js file.
> We have in the source code :
>
> return {
> //
> padding :THEME_VALUE("text.SINGLE.padding"),
> //
> };
This is indeed an outdated version. The current version of this file reads:
"upload-field" : {
style : function( states ) {
var tv = new org.eclipse.swt.theme.ThemeValues( states );
return {
border : tv.getCssBorder( "Text", "border" ),
font : tv.getCssFont( "Text", "font" ),
padding : tv.getCssBoxDimensions( "Text", "padding" ),
textColor : states.disabled
? tv.getColor( "widget.graytext" )
: tv.getCssColor( "Text", "color" ),
backgroundColor : tv.getCssColor( "Text", "background-color" )
};
}
}
> that sould be replaced by :
>
> return {
> //
> padding :THEME_VALUE('text.SINGLE.padding'),
> //
> };
No, it should not. You should get the actual version from CVS like Ivan
advised 5 postings before.
> It was just a simple quotes matter, doubles ones in the source having to
> be replaced by single one.
>
> I now have no error at lauching time but when seeked the upload wigets
> brings new problem that is explained here :
> http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg04480.html
> ;
> *.js files are not delivered to the client. I'm now learning more.
>
|
|
|
Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #118408 is a reply to message #118394] |
Tue, 13 January 2009 16:27 |
New Yop Javeloper Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Yes everything works fine now!
it's just this psf file that brang the pain:
===============
<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
<provider id="org.eclipse.team.cvs.core.cvsnature">
<project
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.fileupl oad,org.apache.commons.fileupload,v1_2 "/>
<project
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.io,org. apache.commons.io,v1_3_2 "/>
<project
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload,org.eclipse.rwt.widgets.upload "/>
<project
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload.demo,org.eclipse.rwt.widgets.upload.demo "/>
</provider>
</psf>
===============
Thank You All!
|
|
|
Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #118414 is a reply to message #118408] |
Tue, 13 January 2009 17:39 |
|
Hi,
thanks for pointing this out. I updated the psf file.
Regards, Ralf
New Yop Javeloper wrote:
> Yes everything works fine now!
>
> it's just this psf file that brang the pain:
>
>
> ===============
> <?xml version="1.0" encoding="UTF-8"?>
> <psf version="2.0">
> <provider id="org.eclipse.team.cvs.core.cvsnature">
> <project
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.fileupl oad,org.apache.commons.fileupload,v1_2 "/>
>
> <project
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.io,org. apache.commons.io,v1_3_2 "/>
>
> <project
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload,org.eclipse.rwt.widgets.upload "/>
>
> <project
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload.demo,org.eclipse.rwt.widgets.upload.demo "/>
>
> </provider>
> </psf>
> ===============
>
> Thank You All!
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05625 seconds