You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Will Sheppard (JIRA)" <ji...@apache.org> on 2010/08/17 11:05:16 UTC

[jira] Updated: (COCOON-2299) Links to "Edit this documentation" on http://cocoon.apache.org/ are all broken

     [ https://issues.apache.org/jira/browse/COCOON-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Sheppard updated COCOON-2299:
----------------------------------

    Description: 
The Cocoon documentation is in a terrible state of disrepair.
There are many errors and dead links throughout the cocoon documentation.

The main link on this page to Bugzilla is broken, meaning that people looking here for a way to make changes to the documentation reach a dead end: http://cocoon.apache.org/2.0/howto/howto-bugzilla.html
In fact, it looks like that page is part of a very part of the site: http://cocoon.apache.org/2.0/ - which has a different left-hand menu than the front page.

The "View, Edit or comment" link at the bottom of this page is also dead: http://cocoon.apache.org/

In addition, the link to "Mailing lists" on this page is broken: http://projects.apache.org/projects/cocoon.html
Although I know the mailing lists are still active.


  was:
The Cocoon documentation is in a terrible state of disrepair.
There are many errors and dead links throughout the cocoon documentation.

The main link on this page to Bugzilla is broken, meaning that people looking here for a way to make changes to the documentation reach a dead end: http://cocoon.apache.org/2.0/howto/howto-bugzilla.html

The "View, Edit or comment" link at the bottom of this page is also dead: http://cocoon.apache.org/

In addition, the link to "Mailing lists" on this page is broken: http://projects.apache.org/projects/cocoon.html
Although I know the mailing lists are still active.



> Links to "Edit this documentation" on http://cocoon.apache.org/ are all broken
> ------------------------------------------------------------------------------
>
>                 Key: COCOON-2299
>                 URL: https://issues.apache.org/jira/browse/COCOON-2299
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Documentation
>            Reporter: Will Sheppard
>
> The Cocoon documentation is in a terrible state of disrepair.
> There are many errors and dead links throughout the cocoon documentation.
> The main link on this page to Bugzilla is broken, meaning that people looking here for a way to make changes to the documentation reach a dead end: http://cocoon.apache.org/2.0/howto/howto-bugzilla.html
> In fact, it looks like that page is part of a very part of the site: http://cocoon.apache.org/2.0/ - which has a different left-hand menu than the front page.
> The "View, Edit or comment" link at the bottom of this page is also dead: http://cocoon.apache.org/
> In addition, the link to "Mailing lists" on this page is broken: http://projects.apache.org/projects/cocoon.html
> Although I know the mailing lists are still active.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[C22] _editor_url not set and NPE in DynamicURLStreamHandlerFactory

Posted by Hugh Sparks <hu...@csparks.com>.
I had a simple cocoon forms application that crashed
occasionally but not reproducibly with an NPE exception:

    java.lang.NullPointerException
        java.util.LinkedList.remove(LinkedList.java:808)
        java.util.LinkedList.remove(LinkedList.java:374)
        org.apache.cocoon.jnet.DynamicURLStreamHandlerFactory
           .pop(DynamicURLStreamHandlerFactory.java:30)
        org.apache.cocoon.jnet.URLHandlerFactoryCollector
            .popUrlHandlerFactories(URLHandlerFactoryCollector.java:58)
    [...]

I had another apparently unrelated problem where the client
browser would sometimes report that "_editor_url is not set".
This occurred after the browser's page cache had been cleared, but
it would stop occurring on subsequent visits to my cforms application.

Both problems were resolved when I applied a fix suggested
by Reinhard Pötz on the mailing list in February 2010:

    http://tinyurl.com/24599z4

And most recently discussed on JIRA:

    https://issues.apache.org/jira/browse/COCOON-2277

Perhaps this fix hides some deeper issue, but all the published
samples seem to work fine with the change. If nothing better can
be suggested (it's been nearly a year), I think it would be nice if
it were committed to the trunk.

********************

For those who'd like to evaluate this fix, here's a quick summary:

In the directory:

    Cocoon22\subprojects\cocoon-jnet\src\main\java\org\apache\cocoon\jnet

In the file:

    DynamicURLStreamHandlerFactory.java

Edit line 41 so it reads:

    list = Collections.synchronizedList(new LinkedList<URLStreamHandlerFactory>()) ;

Here's the modified code in context:

OLD:

    if (list == null) {
        list = new LinkedList<URLStreamHandlerFactory>();
        FACTORIES.set(list);
    }

NEW:

    if (list == null) {
        list = Collections.synchronizedList(new LinkedList<URLStreamHandlerFactory>()) ;
        FACTORIES.set(list);
    }

It's also necessary to import Collections:

    import java.util.Collections;

Thanks,

-Hugh Sparks