cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dauben, Oliver" <Oliver.Dau...@Dresdner-Bank.com>
Subject session validator action bug ? was: RE: Help: C2 - Java exception
Date Thu, 01 Jan 1970 00:00:00 GMT
Date: Wed, 8 Aug 2001 12:26:01 +0200 
Return-Receipt-To: "Dauben, Oliver" <Oliver.Dauben@Dresdner-Bank.com>
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="iso-8859-1"

/* this posting affects the session validator action */



no, wait... sorry for the confusion (if any) ! ignore my prior posting.

both old and new are necessary (single param versus set based validation) :)

i studied the code on my way home last night and finally found "the real
issue" (suggest code change as posted below).

martin: do you agree ?

cheers from frankfurt [DE],


oLiVeR

.
.
.

// read global parameter settings
    boolean reloadable = Constants.DESCRIPTOR_RELOADABLE_DEFAULT;
    if (this.settings.containsKey("reloadable"))
        reloadable = Boolean.getBoolean((String)
this.settings.get("reloadable"));

remove this <--   String valsetstr = (String)
this.settings.get("validate-set");
remove this <--   String valstr = (String) this.settings.get("validate");

        try {
            Configuration conf = this.getConfiguration (
                    parameters.getParameter ("descriptor", (String)
this.settings.get("descriptor")),
            parameters.getParameterAsBoolean("reloadable",reloadable));

insert -->   String valstr = parameters.getParameter ("validate", (String)
settings.get("validate",""));
insert -->   String valsetstr = parameters.getParameter ("validate-set",
(String) settings.get("validate-set",""));

remove this <--   valstr = parameters.getParameter ("validate", valstr);
remove this <--   valsetstr = parameters.getParameter ("validate-set",
valsetstr);

            Configuration[] desc = conf.getChildren ("parameter");
            Configuration[] csets = conf.getChildren ("constraint-set");
            HashMap actionMap = new HashMap ();

            /*
             * old obsoleted method
             */
.
.
.
              



-----Original Message-----
From: Dauben, Oliver [mailto:Oliver.Dauben@Dresdner-Bank.com]
Sent: Mittwoch, 8. August 2001 00:00
To: 'cocoon-users@xml.apache.org'
Cc: 'martin.man@seznam.cz'
Subject: RE: Help: C2 - Java exception 


spent a day or something searching for the 42th workaround but the thuth is
in the code:

line 96 to 132 ('old obsolete method') has not been commented out from the
sources. as a result, the 'new set-based-method' looks like dead code to me.

shame on me i read the code four or five times without seeing what jumping
right into my face ;)

i suggest to remove the old but still active stuff asap.

hth and rfc...

cheers,


oLiVeR


-----Original Message-----
From: Matteo Villa [mailto:mv@prosolutions.de]
Sent: Dienstag, 7. August 2001 09:45
To: cocoon-users@xml.apache.org
Subject: Help: C2 - Java exception 


Hi everybody,

I want to emulate the example "protected" on C2 (latest CVS downloaded
on 20010806).
The example itself breaks after login (Donald Ball) with
----
java.lang.NullPointerException
 at
org.apache.cocoon.acting.SessionValidatorAction.act(SessionValidatorAction.j
ava:136)

 at
org.apache.cocoon.www.protected_.sitemap_xmap.wildcardMatchN6A(sitemap_xmap.
java:584)

 at
org.apache.cocoon.www.protected_.sitemap_xmap.process(sitemap_xmap.java:336)

 at
org.apache.cocoon.www.protected_.sitemap_xmap.process(sitemap_xmap.java:282)

 at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
 at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN21E(sitemap_xmap.java:2871)

 at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2340)
 at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2279)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:507)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

 at java.lang.Thread.run(Thread.java:484)
----
===> See also attached Cocoon.log <===

Background Infos:
C2 on WNT SP 6 with Tomcat 3.3
Oracle 8.1.5 EE on NT
Web Server is IIS 4.x
Connectivity to Oracle works

Question is: what's wrong ?

Could anyone help me ? I need the Validation stuff to work !!!!

Another info: I got this error also with previous CVS of C2. I noticed
the source has been changed exactly at that point
(SessionValidatorAction.java:136). But still the effect (error) remains.
Maybe I am doing something wrong ?

Thanks in advance!
Cheers
Matteo Villa

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message