You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Craig L. Ching" <cc...@mqsoftware.com> on 2008/05/14 21:28:15 UTC

AptServlet error

Hi all,

I keep getting this error since a recent update:

"Exception while parsing APT content:
org.apache.sling.apt.parser.internal.SlingAptParseExceptionImpl: missing
'}' (500)

The requested URL /jcr-explorer/data/demo/browser.html resulted in an
error in org.apache.sling.apt.servlet.SlingAptServlet."

It's spurious at best, sometimes everything works fine.  Is this
something I'm doing wrong?  Or is this maybe a bug I should look at a
bit more closely?  I took a cursory look at it and it seems like I
should not be getting to the Apt servlet for html requests.  Is that
right?  Or maybe someone could shed some light on the apt servlet for
me.

Cheers,
Craig

RE: AptServlet error

Posted by "Craig L. Ching" <cc...@mqsoftware.com>.
> On Wed, May 14, 2008 at 9:28 PM, Craig L. Ching 
> <cc...@mqsoftware.com> wrote:
> > ...I keep getting this error since a recent update:
> >
> > "Exception while parsing APT content:
> > org.apache.sling.apt.parser.internal.SlingAptParseExceptionImpl: 
> > missing '}' (500)
> >
> > The requested URL /jcr-explorer/data/demo/browser.html 
> resulted in an 
> > error in org.apache.sling.apt.servlet.SlingAptServlet."...
> 
> Dunno if you still have this problem - the SlingAptServlet 
> should only be activated if the request extension is 
> ".aptml". It would be interesting to look at the REQUEST_ log
> (https://issues.apache.org/jira/browse/SLING-3) to find out 
> why it is activated in your request.
> 
For the time being, I simply disabled the Apt servlet and parser and
things are working fine.  I'm a bit behind trunk now since I've got the
behavior stabilized ;-)  But when I get a chance I'll get up-to-date,
give it another go and see if I can figure out where things are going
wrong.  I'll do that after I get this search combo-box working in the
browser, then I might actually have something I'm willing to show ;-)

> -Bertrand
> 

Cheers,
Craig 

Re: AptServlet error

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Wed, May 14, 2008 at 9:28 PM, Craig L. Ching <cc...@mqsoftware.com> wrote:
> ...I keep getting this error since a recent update:
>
> "Exception while parsing APT content:
> org.apache.sling.apt.parser.internal.SlingAptParseExceptionImpl: missing
> '}' (500)
>
> The requested URL /jcr-explorer/data/demo/browser.html resulted in an
> error in org.apache.sling.apt.servlet.SlingAptServlet."...

Dunno if you still have this problem - the SlingAptServlet should only
be activated if the request extension is ".aptml". It would be
interesting to look at the REQUEST_ log
(https://issues.apache.org/jira/browse/SLING-3) to find out why it is
activated in your request.

-Bertrand