New HTML page as Rythm template does nothing

20 views
Skip to first unread message

Harshdeep S Jawanda

unread,
Jun 30, 2014, 3:42:55 AM6/30/14
to Rythm Engine
I just got this HTML page http://pastebin.com/y7Grqwrj as a template from a designer and the first thing I tried to do was to render this as a Rythm template (simply by renaming it to base-new.tmpl and calling from an existing servlet).

What happens is that when I type in the url for this page (which is http://localhost:8080/new), nothing happens. The browser's spinner keeps spinning, the console doesn't show any errors/exceptions and the page never gets generated.

I've tried this multiple times, and only once did I get to see the original HTML page, every other time browser just sits there, waiting (timed it for over 4.5 mins). Using Rythm with Objectify 5.0 and GAE 1.8.8 on Mac OS X 10.9.3.

Every other URL uses the older template and works properly.

--
Regards,
Harshdeep S Jawanda

green

unread,
Jun 30, 2014, 4:27:19 PM6/30/14
to Rythm Engine
Where did you put that file? Can you share your spring configuration file? Which spring rythm plugin are you using?



--
You received this message because you are subscribed to the Google Groups "rythmengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rythmengine...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Harshdeep S Jawanda

unread,
Jul 4, 2014, 7:36:26 AM7/4/14
to green, Rythm Engine

The new HTML file (called base-new.tmpl) is in the same directory (parent directory of WEB-INF) as the file that was serving as the old basic/root template file (base.tmpl). The (unchanged) Rythm configuration file is at http://pastebin.com/7WpU0KZ9

The plan was to gradually convert this new HTML file to a Rythm template. But when I try to output just this HTML file, there is no response: no error, no exception, nothing. The browser ultimately just times out. The GAE devserver indicates nothing on the console.

Every other file (based on the older template) works fine, the new "template" doesn't. Even after removing all Rythm commands (reverting it back to pure HTML) the new template will generate static/plain HTML only 1 time out of 10 tries. The other nine times nothing happens.

This doesn't make any sense. I am using 1.0.1-SNAPSHOT.

Harshdeep S Jawanda

unread,
Jul 4, 2014, 8:00:58 AM7/4/14
to Rythm Engine
I am going to test this for a few more times, but it looks like if I (literally) let the devserver sit around for a while doing nothing, then the template works. Here's how it went last time:
  1. Started GAE devserver
  2. Refreshed http://localhost:8080/new (this is the URL for the new template). No result --- browser's spinner kept going.
  3. Checked / (old template, called from an extending file) and /new2 (old template called straight). Both worked.
  4. Refreshed /new, same result as before
  5. Waited 5-10 mins and tried /new again, this time the page was generated within 10 seconds (including I think compilation).

Is there anything that causes Rythm to not pick up/compile the new template immediately? Does Rythm cache results? What's going on. I'll try this a few more times to see if I can repeat this pattern.

Reply all
Reply to author
Forward
0 new messages