HelloWorld Class

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

HelloWorld Class

walido
hi i want to developp a plugin of streaming on xwiki
and i want to know the scripting language  groovy and velocity
so i tried to write the HelloWorld Class
i followed the steps in the xwiki tutorial but i have an error :here is the stacktrace :
[CODE]Error number 4001 in 4: Error while parsing velocity page Main.HelloWorldFromVelocity
Wrapped Exception: Failed to evaluate content with id Hello World From Velocity
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Main.HelloWorldFromVelocity
Wrapped Exception: Failed to evaluate content with id Hello World From Velocity
        at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
        at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
        at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:470)
        at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:365)
        at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
        at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655)
        at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
        at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
        at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
        at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
        at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
        at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68)
        at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
        at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96)
        at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
        at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
        at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
        at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
        at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
        at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
        at org.mortbay.http.HttpServer.service(HttpServer.java:954)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Wrapped Exception:

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'parseGroovyFromPage' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 14001 in 14: Failed compiling groovy script Wrapped Exception: startup failed, script1238667520150.groovy: 1: unexpected token: < @ line 1, column 1.
error

@ Main.HelloWorldFromVelocity1,29? at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:470) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:365) at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655) at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: com.xpn.xwiki.XWikiException: Error number 14001 in 14: Failed compiling groovy script Wrapped Exception: startup failed, script1238667520150.groovy: 1: unexpected token: < @ line 1, column 1.
error

at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.parseGroovyFromString(XWikiGroovyRenderer.java:385) at com.xpn.xwiki.XWiki.parseGroovyFromString(XWiki.java:5792) at com.xpn.xwiki.api.XWiki.parseGroovyFromPage(XWiki.java:2227) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) … 79 more

[/CODE]
did i missed something?
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Asiri Rathnayake
Hi,

Please use something like pastebin (http://pastebin.com/) or tinypaste (
http://tinypaste.com/) when posting stack traces.

Can you post the velocity / groovy code you tried as well.

Thanks.

- Asiri

On Thu, Apr 2, 2009 at 3:54 PM, walido <[hidden email]> wrote:

>
> hi i want to developp a plugin of streaming on xwiki
> and i want to know the scripting language  groovy and velocity
> so i tried to write the HelloWorld Class
> i followed the steps in the xwiki tutorial but i have an error :here is the
> stacktrace :
> [CODE]Error number 4001 in 4: Error while parsing velocity page
> Main.HelloWorldFromVelocity
> Wrapped Exception: Failed to evaluate content with id Hello World From
> Velocity
> com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
> velocity page Main.HelloWorldFromVelocity
> Wrapped Exception: Failed to evaluate content with id Hello World From
> Velocity
>        at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
>        at
> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
>        at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
>        at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
>        at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
>        at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
>        at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:470)
>        at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:365)
>        at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
>        at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>        at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>        at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
>        at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>        at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
>        at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
>        at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
>        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
>        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655)
>        at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
>        at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>        at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>        at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
>        at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>        at
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
>        at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
>        at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
>        at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
>        at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
>        at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>        at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
>        at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>        at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
>        at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
>        at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
>        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
>        at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
>        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
>        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
>        at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
>        at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
>        at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
>        at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>        at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
>        at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68)
>        at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
>        at
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96)
>        at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
>        at
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
>        at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
>        at
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
>        at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
>        at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
>        at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
>        at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
>        at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
>        at org.mortbay.http.HttpServer.service(HttpServer.java:954)
>        at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>        at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
>        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
>        at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
>        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
>
> Wrapped Exception:
>
> org.apache.velocity.exception.MethodInvocationException: Invocation of
> method 'parseGroovyFromPage' in class com.xpn.xwiki.api.XWiki threw
> exception com.xpn.xwiki.XWikiException: Error number 14001 in 14: Failed
> compiling groovy script Wrapped Exception: startup failed,
> script1238667520150.groovy: 1: unexpected token: < @ line 1, column 1.
> error
>
> @ Main.HelloWorldFromVelocity1,29? at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419)
> at
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
> at
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
> at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
> at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
> at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:470)
> at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:365) at
> sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
> at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
> at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at
> com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655) at
> sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
> at
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
> at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
> at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at
> com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
> at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68) at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at
> org.mortbay.http.HttpServer.service(HttpServer.java:954) at
> org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by:
> com.xpn.xwiki.XWikiException: Error number 14001 in 14: Failed compiling
> groovy script Wrapped Exception: startup failed, script1238667520150.groovy:
> 1: unexpected token: < @ line 1, column 1.
> error
>
> at
> com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.parseGroovyFromString(XWikiGroovyRenderer.java:385)
> at com.xpn.xwiki.XWiki.parseGroovyFromString(XWiki.java:5792) at
> com.xpn.xwiki.api.XWiki.parseGroovyFromPage(XWiki.java:2227) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
> … 79 more
>
> [/CODE]
> did i missed something?
> --
> View this message in context:
> http://n2.nabble.com/HelloWorld-Class-tp2574406p2574406.html
> Sent from the XWiki- Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

walido

Hi,
thanks for your fast answer here's the code of the class
(exuse me i don't know how to use the pastebin or tinybin thing)

* Groovy Class #* */

class groovyClass {

def xwiki;
def context;

  void setObjects(xwiki, context) {
    setXWiki(xwiki);
    setContext(context);
  }

  void setXWiki(xwiki) {
    this.xwiki = xwiki;
  }

  void setContext(context) {
    this.context = context;
  }

  String helloWorld() {
    return "Hello World";
  }
}

/* *# */
and the snippet :

#set($groovyObject = $xwiki.parseGroovyFromPage("Groovy.HelloWorldClass"))
$groovyObject.setObjects($xwiki, $context)
$groovyObject.helloWorld()

anyway here's the link to the tutorail that i followed:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyClassHelloWorldTutorial

thanks i really need to developp this plugin
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

vmassol
Administrator
In reply to this post by Asiri Rathnayake

On Apr 2, 2009, at 12:29 PM, Asiri Rathnayake wrote:

> Hi,
>
> Please use something like pastebin (http://pastebin.com/) or  
> tinypaste (
> http://tinypaste.com/) when posting stack traces.

Actually this is not a good idea... pastebin and tinypaste remove  
pastes after a few days.

Thanks
-Vincent

> Can you post the velocity / groovy code you tried as well.
>
> Thanks.
>
> - Asiri
>
> On Thu, Apr 2, 2009 at 3:54 PM, walido  
> <[hidden email]> wrote:
>
>>
>> hi i want to developp a plugin of streaming on xwiki
>> and i want to know the scripting language  groovy and velocity
>> so i tried to write the HelloWorld Class
>> i followed the steps in the xwiki tutorial but i have an  
>> error :here is the
>> stacktrace :
>> [CODE]Error number 4001 in 4: Error while parsing velocity page
>> Main.HelloWorldFromVelocity
>> Wrapped Exception: Failed to evaluate content with id Hello World  
>> From
>> Velocity
>> com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while  
>> parsing
>> velocity page Main.HelloWorldFromVelocity
>> Wrapped Exception: Failed to evaluate content with id Hello World  
>> From
>> Velocity
>>       at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:
>> 114)
>>       at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
>>       at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderText(DefaultXWikiRenderingEngine.java:272)
>>       at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderText(DefaultXWikiRenderingEngine.java:202)
>>       at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderText(DefaultXWikiRenderingEngine.java:170)
>>       at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderDocument(DefaultXWikiRenderingEngine.java:159)
>>       at
>> com
>> .xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
>> 470)
>>       at  
>> com.xpn.xwiki.api.Document.getRenderedContent(Document.java:365)
>>       at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown  
>> Source)
>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown  
>> Source)
>>       at java.lang.reflect.Method.invoke(Unknown Source)
>>       at
>> org.apache.velocity.util.introspection.UberspectImpl
>> $VelMethodImpl.invoke(UberspectImpl.java:295)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>>       at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTReference.render(ASTReference.java:
>> 294)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>>       at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 178)
>>       at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 143)
>>       at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:
>> 108)
>>       at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
>>       at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655)
>>       at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown  
>> Source)
>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown  
>> Source)
>>       at java.lang.reflect.Method.invoke(Unknown Source)
>>       at
>> org.apache.velocity.util.introspection.UberspectImpl
>> $VelMethodImpl.invoke(UberspectImpl.java:295)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>>       at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTReference.render(ASTReference.java:
>> 294)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>>       at
>> org
>> .apache
>> .velocity
>> .runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:
>> 170)
>>       at
>> org
>> .apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
>> 74)
>>       at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
>>       at
>> org
>> .apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
>> 74)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>>       at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
>>       at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>>       at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 178)
>>       at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 143)
>>       at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:
>> 108)
>>       at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
>>       at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
>>       at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
>>       at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
>>       at
>> org
>> .apache
>> .struts
>> .action.RequestProcessor.processActionPerform(RequestProcessor.java:
>> 431)
>>       at
>> org
>> .apache
>> .struts.action.RequestProcessor.process(RequestProcessor.java:236)
>>       at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:
>> 1196)
>>       at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>       at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
>> 428)
>>       at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:830)
>>       at  
>> com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68)
>>       at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>>       at
>> com
>> .xpn
>> .xwiki
>> .wysiwyg
>> .server.filter.ConversionFilter.doFilter(ConversionFilter.java:96)
>>       at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>>       at
>> com
>> .xpn
>> .xwiki
>> .web
>> .SavedRequestRestorerFilter
>> .doFilter(SavedRequestRestorerFilter.java:287)
>>       at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>>       at
>> com
>> .xpn
>> .xwiki
>> .web
>> .SetCharacterEncodingFilter
>> .doFilter(SetCharacterEncodingFilter.java:112)
>>       at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>>       at
>> org
>> .mortbay
>> .jetty
>> .servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:
>> 471)
>>       at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
>> 568)
>>       at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
>>       at
>> org
>> .mortbay
>> .jetty
>> .servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
>>       at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
>>       at org.mortbay.http.HttpServer.service(HttpServer.java:954)
>>       at  
>> org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>>       at
>> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
>>       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:
>> 833)
>>       at
>> org
>> .mortbay.http.SocketListener.handleConnection(SocketListener.java:
>> 244)
>>       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:
>> 357)
>>       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:
>> 534)
>>
>> Wrapped Exception:
>>
>> org.apache.velocity.exception.MethodInvocationException: Invocation  
>> of
>> method 'parseGroovyFromPage' in class com.xpn.xwiki.api.XWiki threw
>> exception com.xpn.xwiki.XWikiException: Error number 14001 in 14:  
>> Failed
>> compiling groovy script Wrapped Exception: startup failed,
>> script1238667520150.groovy: 1: unexpected token: < @ line 1, column  
>> 1.
>> error
>>
>> @ Main.HelloWorldFromVelocity1,29? at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTReference.value(ASTReference.java:
>> 419)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 178)
>> at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 143)
>> at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:
>> 108)
>> at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
>> at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderText(DefaultXWikiRenderingEngine.java:272)
>> at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderText(DefaultXWikiRenderingEngine.java:202)
>> at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderText(DefaultXWikiRenderingEngine.java:170)
>> at
>> com
>> .xpn
>> .xwiki
>> .render
>> .DefaultXWikiRenderingEngine
>> .renderDocument(DefaultXWikiRenderingEngine.java:159)
>> at
>> com
>> .xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
>> 470)
>> at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:365)  
>> at
>> sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
>> java.lang.reflect.Method.invoke(Unknown Source) at
>> org.apache.velocity.util.introspection.UberspectImpl
>> $VelMethodImpl.invoke(UberspectImpl.java:295)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTReference.render(ASTReference.java:
>> 294)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 178)
>> at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 143)
>> at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:
>> 108)
>> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at
>> com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655) at
>> sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
>> java.lang.reflect.Method.invoke(Unknown Source) at
>> org.apache.velocity.util.introspection.UberspectImpl
>> $VelMethodImpl.invoke(UberspectImpl.java:295)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTReference.render(ASTReference.java:
>> 294)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:
>> 170)
>> at  
>> org
>> .apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
>> 74)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
>> at  
>> org
>> .apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
>> 74)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> org
>> .apache
>> .velocity
>> .runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 178)
>> at
>> org
>> .xwiki
>> .velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
>> 143)
>> at
>> com
>> .xpn
>> .xwiki
>> .render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:
>> 108)
>> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at
>> com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at
>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) at
>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at
>> org
>> .apache
>> .struts
>> .action.RequestProcessor.processActionPerform(RequestProcessor.java:
>> 431)
>> at
>> org
>> .apache
>> .struts.action.RequestProcessor.process(RequestProcessor.java:236)
>> at  
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:
>> 1196)
>> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:
>> 414) at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
>> 428) at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:830)
>> at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:
>> 68) at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>> at
>> com
>> .xpn
>> .xwiki
>> .wysiwyg
>> .server.filter.ConversionFilter.doFilter(ConversionFilter.java:96)
>> at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>> at
>> com
>> .xpn
>> .xwiki
>> .web
>> .SavedRequestRestorerFilter
>> .doFilter(SavedRequestRestorerFilter.java:287)
>> at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>> at
>> com
>> .xpn
>> .xwiki
>> .web
>> .SetCharacterEncodingFilter
>> .doFilter(SetCharacterEncodingFilter.java:112)
>> at
>> org.mortbay.jetty.servlet.WebApplicationHandler
>> $CachedChain.doFilter(WebApplicationHandler.java:821)
>> at
>> org
>> .mortbay
>> .jetty
>> .servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:
>> 471)
>> at  
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
>> 568)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at
>> org
>> .mortbay
>> .jetty
>> .servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at
>> org.mortbay.http.HttpServer.service(HttpServer.java:954) at
>> org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at
>> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)  
>> at
>> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at
>> org
>> .mortbay.http.SocketListener.handleConnection(SocketListener.java:
>> 244) at
>> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at
>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)  
>> Caused by:
>> com.xpn.xwiki.XWikiException: Error number 14001 in 14: Failed  
>> compiling
>> groovy script Wrapped Exception: startup failed,  
>> script1238667520150.groovy:
>> 1: unexpected token: < @ line 1, column 1.
>> error
>>
>> at
>> com
>> .xpn
>> .xwiki
>> .render
>> .groovy
>> .XWikiGroovyRenderer.parseGroovyFromString(XWikiGroovyRenderer.java:
>> 385)
>> at com.xpn.xwiki.XWiki.parseGroovyFromString(XWiki.java:5792) at
>> com.xpn.xwiki.api.XWiki.parseGroovyFromPage(XWiki.java:2227) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
>> java.lang.reflect.Method.invoke(Unknown Source) at
>> org.apache.velocity.util.introspection.UberspectImpl
>> $VelMethodImpl.invoke(UberspectImpl.java:295)
>> at
>> org
>> .apache
>> .velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>> … 79 more
>>
>> [/CODE]
>> did i missed something?
>> --
>> View this message in context:
>> http://n2.nabble.com/HelloWorld-Class-tp2574406p2574406.html
>> Sent from the XWiki- Dev mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> devs mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs

_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Asiri Rathnayake
In reply to this post by walido
Hi

On Thu, Apr 2, 2009 at 4:09 PM, walido <[hidden email]> wrote:

>
>
> Hi,
> thanks for your fast answer here's the code of the class
> (exuse me i don't know how to use the pastebin or tinybin thing)
>
> * Groovy Class #* */
>
> class groovyClass {
>
> def xwiki;
> def context;
>
>  void setObjects(xwiki, context) {
>    setXWiki(xwiki);
>    setContext(context);
>  }
>
>  void setXWiki(xwiki) {
>    this.xwiki = xwiki;
>  }
>
>  void setContext(context) {
>    this.context = context;
>  }
>
>  String helloWorld() {
>    return "Hello World";
>  }
> }
>
> /* *# */
> and the snippet :
>
> #set($groovyObject = $xwiki.parseGroovyFromPage("Groovy.HelloWorldClass"))
> $groovyObject.setObjects($xwiki, $context)
> $groovyObject.helloWorld()
>
> anyway here's the link to the tutorail that i followed:
>
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyClassHelloWorldTutorial
>

Just tried this tutorial and it's working fine.

Did you replace "Groovy.HelloWorldClass" with the page name containing your
groovy class code?

- Asiri
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Jerome Velociter
Asiri Rathnayake wrote:

> Hi
>
> On Thu, Apr 2, 2009 at 4:09 PM, walido <[hidden email]> wrote:
>
>>
>> Hi,
>> thanks for your fast answer here's the code of the class
>> (exuse me i don't know how to use the pastebin or tinybin thing)
>>
>> * Groovy Class #* */

Looks like a slash is missing here, it should be:

/* Groovy Class #* */

not

* Groovy Class #* */

Hope this helps,
Jerome.


>>
>> class groovyClass {
>>
>> def xwiki;
>> def context;
>>
>>  void setObjects(xwiki, context) {
>>    setXWiki(xwiki);
>>    setContext(context);
>>  }
>>
>>  void setXWiki(xwiki) {
>>    this.xwiki = xwiki;
>>  }
>>
>>  void setContext(context) {
>>    this.context = context;
>>  }
>>
>>  String helloWorld() {
>>    return "Hello World";
>>  }
>> }
>>
>> /* *# */
>> and the snippet :
>>
>> #set($groovyObject = $xwiki.parseGroovyFromPage("Groovy.HelloWorldClass"))
>> $groovyObject.setObjects($xwiki, $context)
>> $groovyObject.helloWorld()
>>
>> anyway here's the link to the tutorail that i followed:
>>
>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyClassHelloWorldTutorial
>>
>
> Just tried this tutorial and it's working fine.
>
> Did you replace "Groovy.HelloWorldClass" with the page name containing your
> groovy class code?
>
> - Asiri
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs

_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Asiri Rathnayake
In reply to this post by vmassol
>
>
> On Apr 2, 2009, at 12:29 PM, Asiri Rathnayake wrote:
>
> > Hi,
> >
> > Please use something like pastebin (http://pastebin.com/) or
> > tinypaste (
> > http://tinypaste.com/) when posting stack traces.
>
> Actually this is not a good idea... pastebin and tinypaste remove
> pastes after a few days.


Yes, my mistake. Instead only the relevant parts of the stack-trace should
be posted.

Thanks.

- Asiri
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

walido
In reply to this post by walido
Hi,
yes i did
the page name containing my groovy class code is  "Groovy.HelloWorldClass"
and i still got the same error :Error number 4001 in 4: Error while parsing velocity page Main.HelloWorldFromVelocity Wrapped Exception: Failed to evaluate content with id Hello World From Velocity
I don't know what to do

Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Asiri Rathnayake
Hi,

On Thu, Apr 2, 2009 at 4:53 PM, walido <[hidden email]> wrote:

>
> Hi,
> yes i did
> the page name containing my groovy class code is  "Groovy.HelloWorldClass"
> and i still got the same error :Error number 4001 in 4: Error while parsing
> velocity page Main.HelloWorldFromVelocity Wrapped Exception: Failed to


So, to clear myself, your groovy class is in  /Groovy/HelloWorldClass page
(Groovy space, HelloWorldClass page). And your snippet is in
Main/HelloWorldFromVelocity page (Main space, HelloWorldFromVelocity page).

Which version of xwiki are you using? Did you make sure that the page syntax
is XWiki 1.0 ?

Thanks.

- Asiri


> evaluate content with id Hello World From Velocity
> I don't know what to do
>
>
> --
> View this message in context:
> http://n2.nabble.com/HelloWorld-Class-tp2574406p2574606.html
> Sent from the XWiki- Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Asiri Rathnayake
Btw, according to your first email your problem seems to be this:

org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'parseGroovyFromPage' in class com.xpn.xwiki.api.XWiki threw
exception com.xpn.xwiki.XWikiException: Error number 14001 in 14: Failed
compiling groovy script Wrapped Exception: startup failed,
script1238667520150.groovy: 1: unexpected token: < @ line 1, column 1.
error

It appears that there is an opening < (angle bracket) in your groovy source.
But your second email has no such bracket.

- Asiri


On Thu, Apr 2, 2009 at 5:03 PM, Asiri Rathnayake <[hidden email]
> wrote:

> Hi,
>
> On Thu, Apr 2, 2009 at 4:53 PM, walido <[hidden email]>wrote:
>
>>
>> Hi,
>> yes i did
>> the page name containing my groovy class code is  "Groovy.HelloWorldClass"
>> and i still got the same error :Error number 4001 in 4: Error while
>> parsing velocity page Main.HelloWorldFromVelocity Wrapped Exception: Failed
>> to
>
>
> So, to clear myself, your groovy class is in  /Groovy/HelloWorldClass page
> (Groovy space, HelloWorldClass page). And your snippet is in
> Main/HelloWorldFromVelocity page (Main space, HelloWorldFromVelocity page).
>
> Which version of xwiki are you using? Did you make sure that the page
> syntax is XWiki 1.0 ?
>
> Thanks.
>
> - Asiri
>
>
>> evaluate content with id Hello World From Velocity
>> I don't know what to do
>>
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/HelloWorld-Class-tp2574406p2574606.html
>> Sent from the XWiki- Dev mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> devs mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>
>
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

walido
In reply to this post by Asiri Rathnayake
Hi,
yes it's the XWiki 1.0 syntax
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Niels Mayer
In reply to this post by Jerome Velociter
Is there any way to make Xwiki's error messages more developer-friendly...
because one stupid missing character in velocity, in javascript, in groovy,
etc, and the evaluation of the page blows up. Unfortunately, it just dies
with a general error, not even telling you the last line at which it was
still parsing in a sane-state. Sometimes to get things working you have to
resort to commenting out large portions of text just to find where the error
is. Or using "breadcrumbs"
(html, or javascript alert()) to figure out how far it got in the page.

Granted, the biggest help is to have syntax assisted editing -- which at
least prevents mismatched parentheses- and quotation-errors. ... which is
why I use vtl-mode in emacs (velocity template language minor mode) and then
switch between javascript, html, or normal for major-mode... and then just
cut/paste into xwiki.

IMHO, a great future feature is a 'subversion' "publishing bridge" for
xwiki, which would let you checkin/checkout a xwiki file in subversion on
your local workstation (e.g. using emacs built in subversion intfc, or
eclipse's). On the server-end, instead of actually checking in a revision
using 'subversion', an xwiki document would be created (or versioned)
instead.

Niels
http://nielsmayer.com

On Thu, Apr 2, 2009 at 4:04 AM, Jerome Velociter <[hidden email]> wrote:

> Asiri Rathnayake wrote:
> > Hi
> >
> > On Thu, Apr 2, 2009 at 4:09 PM, walido <[hidden email]>
> wrote:
> >
> >>
> >> Hi,
> >> thanks for your fast answer here's the code of the class
> >> (exuse me i don't know how to use the pastebin or tinybin thing)
> >>
> >> * Groovy Class #* */
>
> Looks like a slash is missing here, it should be:
>
> /* Groovy Class #* */
>
> not
>
> * Groovy Class #* */
>
>
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Error messages + SVN feature (was Re: HelloWorld Class)

vmassol
Administrator

On Apr 3, 2009, at 7:36 PM, Niels Mayer wrote:

> Is there any way to make Xwiki's error messages more developer-
> friendly...
> because one stupid missing character in velocity, in javascript, in  
> groovy,
> etc, and the evaluation of the page blows up.

This is partially fixed in xwiki syntax 2.0.

> Unfortunately, it just dies
> with a general error, not even telling you the last line at which it  
> was
> still parsing in a sane-state. Sometimes to get things working you  
> have to
> resort to commenting out large portions of text just to find where  
> the error
> is. Or using "breadcrumbs"
> (html, or javascript alert()) to figure out how far it got in the  
> page.
>
> Granted, the biggest help is to have syntax assisted editing --  
> which at
> least prevents mismatched parentheses- and quotation-errors. ...  
> which is
> why I use vtl-mode in emacs (velocity template language minor mode)  
> and then
> switch between javascript, html, or normal for major-mode... and  
> then just
> cut/paste into xwiki.

or use bespin...

> IMHO, a great future feature is a 'subversion' "publishing bridge" for
> xwiki, which would let you checkin/checkout a xwiki file in  
> subversion on
> your local workstation (e.g. using emacs built in subversion intfc, or
> eclipse's). On the server-end, instead of actually checking in a  
> revision
> using 'subversion', an xwiki document would be created (or versioned)
> instead.

This is a favorite of mine since day 1 but there are issues related to  
it... See the mail archives on  markmail for full details. It's still  
possible to do (with limitations), just that nobody had the courage/
time to work on it.

Thanks
-Vincent

> Niels
> http://nielsmayer.com
>
> On Thu, Apr 2, 2009 at 4:04 AM, Jerome Velociter <[hidden email]>  
> wrote:
>
>> Asiri Rathnayake wrote:
>>> Hi
>>>
>>> On Thu, Apr 2, 2009 at 4:09 PM, walido  
>>> <[hidden email]>
>> wrote:
>>>
>>>>
>>>> Hi,
>>>> thanks for your fast answer here's the code of the class
>>>> (exuse me i don't know how to use the pastebin or tinybin thing)
>>>>
>>>> * Groovy Class #* */
>>
>> Looks like a slash is missing here, it should be:
>>
>> /* Groovy Class #* */
>>
>> not
>>
>> * Groovy Class #* */


_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: HelloWorld Class

Guillaume Lerouge
In reply to this post by Niels Mayer
Hi Niels,

On Fri, Apr 3, 2009 at 7:36 PM, Niels Mayer <[hidden email]> wrote:

> Is there any way to make Xwiki's error messages more developer-friendly...
> because one stupid missing character in velocity, in javascript, in groovy,
> etc, and the evaluation of the page blows up. Unfortunately, it just dies
> with a general error, not even telling you the last line at which it was
> still parsing in a sane-state. Sometimes to get things working you have to
> resort to commenting out large portions of text just to find where the
> error
> is. Or using "breadcrumbs"
> (html, or javascript alert()) to figure out how far it got in the page.
>
> Granted, the biggest help is to have syntax assisted editing -- which at
> least prevents mismatched parentheses- and quotation-errors. ... which is
> why I use vtl-mode in emacs (velocity template language minor mode) and
> then
> switch between javascript, html, or normal for major-mode... and then just
> cut/paste into xwiki.
>
> IMHO, a great future feature is a 'subversion' "publishing bridge" for
> xwiki, which would let you checkin/checkout a xwiki file in subversion on
> your local workstation (e.g. using emacs built in subversion intfc, or
> eclipse's). On the server-end, instead of actually checking in a revision
> using 'subversion', an xwiki document would be created (or versioned)
> instead.


Or you could use XEclipse, which has basically all the features you're
currently asking for + a desktop client if you're not using Eclipse ;-)

http://xeclipse.xwiki.org/xwiki/bin/view/Main/WebHome

Guillaume


> Niels
> http://nielsmayer.com
>
> On Thu, Apr 2, 2009 at 4:04 AM, Jerome Velociter <[hidden email]> wrote:
>
> > Asiri Rathnayake wrote:
> > > Hi
> > >
> > > On Thu, Apr 2, 2009 at 4:09 PM, walido <[hidden email]>
> > wrote:
> > >
> > >>
> > >> Hi,
> > >> thanks for your fast answer here's the code of the class
> > >> (exuse me i don't know how to use the pastebin or tinybin thing)
> > >>
> > >> * Groovy Class #* */
> >
> > Looks like a slash is missing here, it should be:
> >
> > /* Groovy Class #* */
> >
> > not
> >
> > * Groovy Class #* */
> >
> >
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>



--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs