Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webmacro crashes after first recompile

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have spent more than 20 trying to figure out this dilema the classpath is
fine (because it works the first time) but when I change the source code
and recompile I get this message.
Any Suggestions?
thanks
Shloime
 
Pragya Prakash
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What message do u get?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pragya Prakash:
What message do u get?

5:14:29 PM resource:WARNING TemplateProvider: Error occured while getting helloWorld.wm
org.webmacro.engine.ParseToolException: Unrecognized directive: set
at org.webmacro.engine.WMParser.parseDirective(WMParser.java:438)
at org.webmacro.engine.WMParser.parseDirective(WMParser.java:298)
at org.webmacro.engine.WMParser.parseBlockImpl(WMParser.java:197)
at org.webmacro.engine.WMParser.parseBlockImpl(WMParser.java:158)
at org.webmacro.engine.WMParser.parseBlock(WMParser.java:142)
at org.webmacro.engine.WMTemplate.parse(WMTemplate.java:134)
at org.webmacro.resource.TemplateProvider.getTemplate(TemplateProvider.java:153)
at org.webmacro.resource.TemplateProvider.load(TemplateProvider.java:113)
at org.webmacro.resource.CachingProvider.get(CachingProvider.java:113)
at org.webmacro.WM.getTemplate(WM.java:196)
at org.webmacro.servlet.WMServlet.getTemplate(WMServlet.java:349)
at HelloWorld_H.handle(HelloWorld_H.java:63)
at org.webmacro.servlet.WMServlet.doRequest(WMServlet.java:249)
at org.webmacro.servlet.WMServlet.doGet(WMServlet.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)
5:14:29 PM servlet:WARNING WebMacro encountered an error while executing a template:
FileTemplate:e:\webmacro\examples\helloWorld.wm: java.lang.NullPointerException
java.lang.NullPointerException
at org.webmacro.engine.WMTemplate.write(WMTemplate.java:201)
at org.webmacro.servlet.WMServlet.execute(WMServlet.java:411)
at org.webmacro.servlet.WMServlet.doRequest(WMServlet.java:255)
at org.webmacro.servlet.WMServlet.doGet(WMServlet.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)
5:14:46 PM servlet:NOTICE stopped: HelloWorld_H@59fd51
5:14:46 PM wm:NOTICE shutting down
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic