cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Irv Salisbury <>
Subject Re: More weblogic javaflow woes
Date Fri, 01 Jul 2005 03:41:47 GMT
Looking through the code, I can't understand why, but the useScopes
session attribute seems to be not getting saved.  I simply added the
following test in the handleContinuation method:

        if (userScopes == null){
            getLogger().debug( "Creating new userScopes" );
            userScopes = new HashMap();

and things are working fine.  However, I see "Creating new userScopes"
everytime this method is called in WebLogic.  Can't honestly answer
why, but it seems to be working.  I'll hopefully be able to do a
little more digging tomorrow.


On 6/30/05, Irv Salisbury <> wrote:
> Ok, so now it is all running in Javaflow fine in tomcat.  I go to run
> in weblogic, get pretty far into my app, then get the following:
> java.lang.NullPointerException
>         at;Ljava.util.List;Lorg.apache.cocoon.environment.Redirector;)V(
>         at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(Lorg.apache.cocoon.environment.Environment;Lorg.apache.cocoon.components.treeprocessor.InvokeContext;)Z(
>         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes([Lorg.apache.cocoon.components.treeprocessor.ProcessingNode;Lorg.apache.cocoon.environment.Environment;Lorg.apache.cocoon.components.treeprocessor.InvokeContext;Ljava.lang.String;Ljava.util.Map;)Z(
>         at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(Lorg.apache.cocoon.environment.Environment;Lorg.apache.cocoon.components.treeprocessor.InvokeContext;)Z(
>         at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes([Lorg.apache.cocoon.components.treeprocessor.ProcessingNode;Lorg.apache.cocoon.environment.Environment;Lorg.apache.cocoon.components.treeprocessor.InvokeContext;)Z(
>         at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Lorg.apache.cocoon.environment.Environment;Lorg.apache.cocoon.components.treeprocessor.InvokeContext;)Z(
> I look at that line number and see
>         userScopes.put(method.getDeclaringClass(), flow);
> Looks like method is used right before that and isn't null.  So, it
> seems like userScopes might be null.  It gets obtained as the
> following:
>         HashMap userScopes = (HashMap) session.getAttribute(USER_GLOBAL_SCOPE);
> Any thoughts on this would be great.
> Thanks,
> Irv

View raw message