You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Henri Delebecque <He...@supelec.fr> on 2001/01/19 10:37:28 UTC

strange error message in xsp

Hello,

I'll  try the following example in Xsp:

--------------------------------------------------------------------------------
------------------------------------------
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<xsp:page
  language="java"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>
 <xsp:logic>
  static private int counter = 0;
  private synchronized int count() {
   return counter++;
  }
  }
 </xsp:logic>
 <page>
  <title>First XSP Page</title>
  <p>I've been requested <xsp:expr>count()</xsp:expr> times.</p>
 </page>
</xsp:page>
--------------------------------------------------------------------------------
------------------------------------------

As you notice, I have inserted a wrong closing "}".
The error message of cocoon is very strange:

--------------------------------------------------------------------------------
------------------------------------------
34: Identifier expected.
      public void populateDocument(
            ^
34: 'class' or 'interface' keyword expected.
      public void populateDocument(
             ^
22: class
_urisc._si._delebecq._tomcat._build._tomcat._webapps._cocoon._servlets._myxsp._p
age must be declared abstract. It does not define void
populateDocument(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, org.w3c.dom.Document) from class
org.apache.cocoon.processor.xsp.XSPPage.
    public class _page extends XSPPage {
                 ^
3 errors
--------------------------------------------------------------------------------
------------------------------------------


In fact, my initial problem was more longer, but i reduce it to the minimal
length, to simplify my message.
Is it normal ?
It is not a very clear error message, for a very common mistake !
Best regards

______________________________________________________________
| Henri Delebecque                        delebecq@supelec.fr |
| Webmaster                                                   |
| Supelec                          Tel (33)  01.69.85.14.91   |
| 3 rue Joliot-Curie                                          |
| Plateau de Moulon                 Fax:(33) 01.69.85.12.34   |
| 91190 Gif sur Yvette                                        |
| FRANCE                                                      |
|_____________________________________________________________|