cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macie...@tiger.com.pl
Subject Error in ParameterSelectorFactory?
Date Wed, 16 May 2001 09:56:37 GMT
On Tomcat4.0b5 fresh CVS copy produces:

ERROR   36503   [cocoon  ] (HttpProcessor[8080][4]): Problem with servlet
org.apache.cocoon.ProcessingException: Exception in Handler:org.apache.cocoon.ProcessingException:
Language Exception:org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 0, column 0: D:\tools\jakarta-tomcat-4.0-b5\work\localhost\cocoon\org\apache\cocoon\www\sitemap_xmap.java:460:
Undefined variable: param
    if (param != null) {
        ^
Line 0, column 0: D:\tools\jakarta-tomcat-4.0-b5\work\localhost\cocoon\org\apache\cocoon\www\sitemap_xmap.java:461:
Undefined variable or class name: param
      String compareToString = param.getParameter ("parameter-selector-test", null);
                               ^

	at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:227)
	at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:153)
	at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:175)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:288)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:442)


Relevant fragment in sitemap_xmap.java:

  private boolean parameterSelect (String pattern, Map objectModel) {
    if (param != null) {
      String compareToString = param.getParameter ("parameter-selector-test", null);
      return compareToString != null && compareToString.equals (pattern);
    }
    return false;
  }

Is it a bug?

Maciek Kaminski
maciejka@tiger.com.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message