commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: [jelly-jface] viewer problem
Date Mon, 03 Nov 2003 19:24:26 GMT
My best bet would be an incompatibility of the SWT library being used 
and the swt library. It tries to find a constructor of 
org.eclipse.jface.viewers.TableViewer with a param int. Try using javap 
to check that....

Paul


Dominik Zalewski wrote:
> 
> Hi,
> 
> 	I tried to use jelly-jface, but encountered problem with TreeViewer
> construction. My jelly code looks like:
> 
> 
> 	<applicationWindow var="app" title="${title}">
> 
> 		<treeViewer var="offerTree"/>
> 	</applicationWindow>
> 
> But unfortunately at runtime i get:   
> 
>  [java] 7737 [main] DEBUG org.apache.commons.jelly.impl.TagScript  -
> Caught exception: org.apache.commons.jelly.JellyTagException:
> null:-1:-1: <null> org.eclipse.jface.viewers.TableViewer.<init>(int)
>     [java] org.apache.commons.jelly.JellyTagException: null:-1:-1:
> <null> org.eclipse.jface.viewers.TableViewer.<init>(int)
>     [java]      at
> org.apache.commons.jelly.tags.swt.WidgetTag.createWidget(WidgetTag.java:302)
>     [java]      at
> org.apache.commons.jelly.tags.jface.ViewerTag.newInstance(ViewerTag.java:113)
>     [java]      at
> org.apache.commons.jelly.tags.core.UseBeanTag.doTag(UseBeanTag.java:124)
>     [java]      at
> org.apache.commons.jelly.tags.swt.WidgetTag.doTag(WidgetTag.java:157)
>     [java]      at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     [java]      at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>     [java]      at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>     [java]      at
> org.apache.commons.jelly.tags.core.UseBeanTag.doTag(UseBeanTag.java:128)
>     [java]      at
> org.apache.commons.jelly.tags.jface.window.ApplicationWindowTag.doTag(ApplicationWindowTag.java:110)
>     [java]      at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     [java]      at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>     [java]      at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>     [java]      at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:91)
>     [java]      at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     [java]      at
> org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:634)
>     [java]      at
> org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:540)
>     [java]      at termit.console.ui.Main.main(Main.java:34)
>     [java] Caused by: java.lang.NoSuchMethodException:
> org.eclipse.jface.viewers.TableViewer.<init>(int)
>     [java]      at java.lang.Class.getConstructor0(Class.java:1769)
>     [java]      at java.lang.Class.getConstructor(Class.java:1002)
>     [java]      at
> org.apache.commons.jelly.tags.swt.WidgetTag.createWidget(WidgetTag.java:279)
>     [java]      ... 16 more
>     [java] Root cause
>     [java] java.lang.NoSuchMethodException:
> org.eclipse.jface.viewers.TableViewer.<init>(int)
>     [java]      at java.lang.Class.getConstructor0(Class.java:1769)
>     [java]      at java.lang.Class.getConstructor(Class.java:1002)
>     [java]      at
> org.apache.commons.jelly.tags.swt.WidgetTag.createWidget(WidgetTag.java:279)
>     [java]      at
> org.apache.commons.jelly.tags.jface.ViewerTag.newInstance(ViewerTag.java:113)
>     [java]      at
> org.apache.commons.jelly.tags.core.UseBeanTag.doTag(UseBeanTag.java:124)
>     [java]      at
> org.apache.commons.jelly.tags.swt.WidgetTag.doTag(WidgetTag.java:157)
>     [java]      at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     [java]      at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>     [java]      at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>     [java]      at
> org.apache.commons.jelly.tags.core.UseBeanTag.doTag(UseBeanTag.java:128)
>     [java]      at
> org.apache.commons.jelly.tags.jface.window.ApplicationWindowTag.doTag(ApplicationWindowTag.java:110)
>     [java]      at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     [java]      at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>     [java]      at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>     [java]      at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:91)
>     [java]      at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     [java]      at
> org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:634)
>     [java]      at
> org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:540)
>     [java]      at termit.console.ui.Main.main(Main.java:34)
> 
> 
> Anybody could help me figure out, why?
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message