Picon
Favicon

[jira] Created: (COCOON3-52) XMLSerializer setup method resets output method to xml

XMLSerializer setup method resets output method to xml
------------------------------------------------------

                 Key: COCOON3-52
                 URL: https://issues.apache.org/jira/browse/COCOON3-52
             Project: Cocoon 3
          Issue Type: Bug
          Components: cocoon-sax
    Affects Versions: 3.0.0-alpha-3
            Reporter: Charles Yates
            Assignee: Cocoon Developers Team

When checking for a null 'method' property in the format Properties object the incorrect key 'format' is
used instead of 'method', returning null.

--

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

Picon
Favicon

[jira] Updated: (COCOON3-52) XMLSerializer setup method resets output method to xml


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

Charles Yates updated COCOON3-52:
---------------------------------

    Attachment: COCOON3-52.txt

> XMLSerializer setup method resets output method to xml
> ------------------------------------------------------
>
>                 Key: COCOON3-52
>                 URL: https://issues.apache.org/jira/browse/COCOON3-52
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-sax
>    Affects Versions: 3.0.0-alpha-3
>            Reporter: Charles Yates
>            Assignee: Cocoon Developers Team
>         Attachments: COCOON3-52.txt
>
>
> When checking for a null 'method' property in the format Properties object the incorrect key 'format' is
used instead of 'method', returning null.

--

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

Picon
Favicon

[jira] Created: (COCOON-2277) NPE in DynamicURLStreamHandlerFactory (Cocoon JNET)

NPE in DynamicURLStreamHandlerFactory (Cocoon JNET)
---------------------------------------------------

                 Key: COCOON-2277
                 URL: https://issues.apache.org/jira/browse/COCOON-2277
             Project: Cocoon
          Issue Type: Bug
          Components: * Cocoon Core, - Servlet service framework
    Affects Versions: 2.2-dev (Current SVN)
            Reporter: Gabriel Gruber
            Priority: Critical

From time to time after more heavy of our cocoon 2.2 based application (which is not yet in production) I am
getting this exception from cocoon jnet. after this exception occurs we have to restart the web
application as this exception keeps coming and noone can do anything with the webapp....

java.lang.NullPointerException
                java.util.LinkedList.remove(LinkedList.java:646)
                java.util.LinkedList.remove(LinkedList.java:360)
                org.apache.cocoon.jnet.DynamicURLStreamHandlerFactory.pop(DynamicURLStreamHandlerFactory.java:30)
                org.apache.cocoon.jnet.URLHandlerFactoryCollector.popUrlHandlerFactories(URLHandlerFactoryCollector.java:57)
                org.apache.cocoon.jnet.URLHandlerFactoryCollector.installURLHandlers(URLHandlerFactoryCollector.java:39)
                sun.reflect.GeneratedMethodAccessor516.invoke(Unknown Source)
                sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                java.lang.reflect.Method.invoke(Method.java:585)
                org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
                org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
                org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
                org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
(Continue reading)

Simone Tripodi | 3 Feb 10:20
Picon
Gravatar

[Cocoon 3] cocoon-sax build error

Hi all guys,
I've some problem in building the cocoon-sax modules using the m2eclipse plugin for eclipse (I'm not using the built-in maven3, but linked my own 2.2.1), the error message I get is:

2/3/10 10:12:52 AM CET: Build error for /cocoon-sax/pom.xml; org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework:spring-context:jar -> duplicate declaration of version 2.5.6 <at> org.apache.cocoon.parent:cocoon-parent:3.0.0-alpha-3-SNAPSHOT, /Users/simone/Documents/workspace-cocoon3/cocoon-root/parent/pom.xml

Do have you experienced the same? If not, which settings I've to take care to avoid it?
Thanks in advance, have a nice day :)
Simo

http://people.apache.org/~simonetripodi/
jira | 3 Feb 11:41
Picon
Favicon

[jira] Subscription: COCOON-open-with-patch

Issue Subscription
Filter: COCOON-open-with-patch (110 issues)
Subscriber: cocoon

Key         Summary
COCOON-2268 To extend the image reader we need to change the visibility to the parameter of the ImageReader
            https://issues.apache.org/jira/browse/COCOON-2268
COCOON-2262 container.refresh() is called before embeddedServlet.init()
            https://issues.apache.org/jira/browse/COCOON-2262
COCOON-2260 wrong parent version in pom of cocoon-flowscript-impl
            https://issues.apache.org/jira/browse/COCOON-2260
COCOON-2259 Memory leak in PoolableProxyHandler
            https://issues.apache.org/jira/browse/COCOON-2259
COCOON-2250 Wrong error message in Element.java (jx:element)
            https://issues.apache.org/jira/browse/COCOON-2250
COCOON-2249 XHTMLSerializer uses entity references &quot; and &apos; which cause JavaScript parse errors
            https://issues.apache.org/jira/browse/COCOON-2249
COCOON-2246 HttpRequest  should handle encoding in getParameter and getParameterValues in the same way
            https://issues.apache.org/jira/browse/COCOON-2246
COCOON-2233 Update archetypes to current trunk artifact versions
            https://issues.apache.org/jira/browse/COCOON-2233
COCOON-2222 Add SaxParser configuration properties
            https://issues.apache.org/jira/browse/COCOON-2222
COCOON-2216 IncludeCacheManager can not perfom parallel includes
            https://issues.apache.org/jira/browse/COCOON-2216
COCOON-2212 jx:attribute does not check name is correct before proceeding
            https://issues.apache.org/jira/browse/COCOON-2212
COCOON-2197 Making the cocoon-auth-block acegi-security-sample work
            https://issues.apache.org/jira/browse/COCOON-2197
COCOON-2173 AbstractCachingProcessingPipeline: Two requests can deadlock each other
            https://issues.apache.org/jira/browse/COCOON-2173
COCOON-2162 [PATCH] Fix for Paginator when accessing out of bounds Pagination page
            https://issues.apache.org/jira/browse/COCOON-2162
COCOON-2137 XSD Schemas for CForms Development
            https://issues.apache.org/jira/browse/COCOON-2137
COCOON-2114 fix sorting in TraversableGenerator
            https://issues.apache.org/jira/browse/COCOON-2114
COCOON-2108 xmodule:flow-attr Does not accept document objects
            https://issues.apache.org/jira/browse/COCOON-2108
COCOON-2104 [PATCH] Add base URI fixup support to XIncludeTransformer
            https://issues.apache.org/jira/browse/COCOON-2104
COCOON-2100 Retrieving mimeType returned by pipeline executed from Flow
            https://issues.apache.org/jira/browse/COCOON-2100
COCOON-2041 WebDAV Returns improper status on PUT
            https://issues.apache.org/jira/browse/COCOON-2041
COCOON-2040 Union widget does not work with booleanfield set as case widget
            https://issues.apache.org/jira/browse/COCOON-2040
COCOON-2037 New DynamicGroup widget
            https://issues.apache.org/jira/browse/COCOON-2037
COCOON-2035 NPE in the sorter of the EnhancedRepeater
            https://issues.apache.org/jira/browse/COCOON-2035
COCOON-2032 [PATCH] Sort order in paginated repeater
            https://issues.apache.org/jira/browse/COCOON-2032
COCOON-2030 submit-on-change doesn't work for a multivaluefield with list-type="checkbox"
            https://issues.apache.org/jira/browse/COCOON-2030
COCOON-2018 Use thread context class loader to load custom binding classes
            https://issues.apache.org/jira/browse/COCOON-2018
COCOON-2017 More output beautification options for serializers
            https://issues.apache.org/jira/browse/COCOON-2017
COCOON-2015 Doctype added twice because root element (html) is inlined
            https://issues.apache.org/jira/browse/COCOON-2015
COCOON-2002 HTML transformer  only works with latin-1 characters
            https://issues.apache.org/jira/browse/COCOON-2002
COCOON-1974 Donating ContextAttributeInputModule
            https://issues.apache.org/jira/browse/COCOON-1974
COCOON-1973 CaptchaValidator: allow case-insensitive matching
            https://issues.apache.org/jira/browse/COCOON-1973
COCOON-1964 Redirects inside a block called via the servlet protocol fail
            https://issues.apache.org/jira/browse/COCOON-1964
COCOON-1963 Add a redirect action to the browser update handler
            https://issues.apache.org/jira/browse/COCOON-1963
COCOON-1960 Pipeline errors for "generator/reader already set" should provide more information
            https://issues.apache.org/jira/browse/COCOON-1960
COCOON-1949 [PATCH] load flowscript from file into specified Rhino context object
            https://issues.apache.org/jira/browse/COCOON-1949
COCOON-1946 [PATCH] - Javaflow Sample errors trying to enhance Javaflow classes and showing cform templates
            https://issues.apache.org/jira/browse/COCOON-1946
COCOON-1943 [Patch] Parameters in blocks-protocol URIs get decoded too early
            https://issues.apache.org/jira/browse/COCOON-1943
COCOON-1932 [PATCH] correct styling of disabled suggestion lists
            https://issues.apache.org/jira/browse/COCOON-1932
COCOON-1929 [PATCH] Reloading classloader in Cocoon 2.2
            https://issues.apache.org/jira/browse/COCOON-1929
COCOON-1917 Request Encoding problem: multipart/form vs. url encoded
            https://issues.apache.org/jira/browse/COCOON-1917
COCOON-1915 Nullable value with additional String or XMLizable in JavaSelectionList
            https://issues.apache.org/jira/browse/COCOON-1915
COCOON-1914 Text as XMLizable in EmptySelectionList
            https://issues.apache.org/jira/browse/COCOON-1914
COCOON-1899 [PATCH] Cocoon XML:DB Implementation should not depend on Xindice
            https://issues.apache.org/jira/browse/COCOON-1899
COCOON-1898 [PATCH] XPatch support for maven-cocoon-deployer-plugin
            https://issues.apache.org/jira/browse/COCOON-1898
COCOON-1893 XML-Binding: Problem creating a new element
            https://issues.apache.org/jira/browse/COCOON-1893
COCOON-1877 [PATCH] Pageable Repeater
            https://issues.apache.org/jira/browse/COCOON-1877
COCOON-1870 Lucene block does not store attributes when instructed so
            https://issues.apache.org/jira/browse/COCOON-1870
COCOON-1846 [PATCH] BooleanField and radio do not send on-value-changed at the rigth time with IE
            https://issues.apache.org/jira/browse/COCOON-1846
COCOON-1843 LDAPTransformer: add-entry tag doesn't work
            https://issues.apache.org/jira/browse/COCOON-1843
COCOON-1842 LDAPTransformer: ClassCastException with Binary fields
            https://issues.apache.org/jira/browse/COCOON-1842
COCOON-1810 [PATCH] JMSEventMessageListener does not work
            https://issues.apache.org/jira/browse/COCOON-1810
COCOON-1807 Workaround for IE Bug in <button>
            https://issues.apache.org/jira/browse/COCOON-1807
COCOON-1794 [PATCH] Propagation of namespaces to a repeaters child bindings and implementation of a
move-node binding
            https://issues.apache.org/jira/browse/COCOON-1794
COCOON-1738 double-listbox problem in repeaters
            https://issues.apache.org/jira/browse/COCOON-1738
COCOON-1726 Implementation of Source that supports conditional GETs
            https://issues.apache.org/jira/browse/COCOON-1726
COCOON-1717 Use custom cache keys for caching uri coplets using input modules.
            https://issues.apache.org/jira/browse/COCOON-1717
COCOON-1697 Allow request parameters to be used in "for (var k in h)" kind of Javascript Loops
            https://issues.apache.org/jira/browse/COCOON-1697
COCOON-1648 Add support for ISO8601 in I18nTransformer and Forms
            https://issues.apache.org/jira/browse/COCOON-1648
COCOON-1618 [PATCH] SoapGenerator/Serializer for Axis Block
            https://issues.apache.org/jira/browse/COCOON-1618
COCOON-1611 [PATCH] Add additonal constructor to FormInstance.java to be able to pass a locale
            https://issues.apache.org/jira/browse/COCOON-1611
COCOON-1603 [PATCH] handling of alternatives in MailTransformer
            https://issues.apache.org/jira/browse/COCOON-1603
COCOON-1573 Improvement SetAttributeJXPathBinding and Contribution SetNodeValueJXPathBinding
            https://issues.apache.org/jira/browse/COCOON-1573
COCOON-1556 [PATCH] Add a JXPathConvertor for conversion betwean beans and Strings
            https://issues.apache.org/jira/browse/COCOON-1556
COCOON-1535 [PATCH] enhancement to {global:} input module: return all sitemap globals
            https://issues.apache.org/jira/browse/COCOON-1535
COCOON-1527 [PATCH] Cache control logic sheets for XSP to override getKey and getValidity
            https://issues.apache.org/jira/browse/COCOON-1527
COCOON-1526 [PATCH] processToDOM returns a read-only DOM
            https://issues.apache.org/jira/browse/COCOON-1526
COCOON-1519 [PATCH] TeeTransformer refactoring
            https://issues.apache.org/jira/browse/COCOON-1519
COCOON-1508 [PATCH] Avalonize TranscoderFactory
            https://issues.apache.org/jira/browse/COCOON-1508
COCOON-1506 [PATCH] Manually specifying a mounted sitemap's context
            https://issues.apache.org/jira/browse/COCOON-1506
COCOON-1488 [PATCH] htmlunit-based testing, needs to be ported to 2.2
            https://issues.apache.org/jira/browse/COCOON-1488
COCOON-1467 ESQL exception handling problem
            https://issues.apache.org/jira/browse/COCOON-1467
COCOON-1439 [poi] vertical text orientation and font cache
            https://issues.apache.org/jira/browse/COCOON-1439
COCOON-1398 New CachingPortletAdapter
            https://issues.apache.org/jira/browse/COCOON-1398
COCOON-1395 [PATCH] Missing ContextAttributeInputModule
            https://issues.apache.org/jira/browse/COCOON-1395
COCOON-1394 [PATCH] Implementation of PortletRequest#getQueryString()
            https://issues.apache.org/jira/browse/COCOON-1394
COCOON-1384 [PATCH] flow redirector should allow explicit 'cocoon:' scheme
            https://issues.apache.org/jira/browse/COCOON-1384
COCOON-1370 [PATCH] proxy block can now use JTidy and handle multipart POST
            https://issues.apache.org/jira/browse/COCOON-1370
COCOON-1368 [PATCH] HTTPRequestTransformer
            https://issues.apache.org/jira/browse/COCOON-1368
COCOON-1362 [PATCH] log4j.xconf should have the same default config as logkit.xconf
            https://issues.apache.org/jira/browse/COCOON-1362
COCOON-1360 [patch] client side validation for CForms
            https://issues.apache.org/jira/browse/COCOON-1360
COCOON-1345 [PATCH] Extract convertors into their own block
            https://issues.apache.org/jira/browse/COCOON-1345
COCOON-1340 [PATCH] lucene block contribution : a AnalyzerManager component
            https://issues.apache.org/jira/browse/COCOON-1340
COCOON-1337 [PATCH] Suggestion for widget population
            https://issues.apache.org/jira/browse/COCOON-1337
COCOON-1336 [PATCH] PortletWindowAspect: hiding portlet mode icons and new feature "force-sizable"
            https://issues.apache.org/jira/browse/COCOON-1336
COCOON-1332 [PATCH] content-length and content-type for portlet ActionRequest
            https://issues.apache.org/jira/browse/COCOON-1332
COCOON-1329 [PATCH] Fix for cocoon.jar bundled in ear common for portal.war and portlet.war
            https://issues.apache.org/jira/browse/COCOON-1329
COCOON-1325 [PATCH] commons-fileupload based multipart parser
            https://issues.apache.org/jira/browse/COCOON-1325
COCOON-1302 [Patch] Word Document Generator
            https://issues.apache.org/jira/browse/COCOON-1302
COCOON-1295 ParallelContentAggregator, multithreaded aggregating
            https://issues.apache.org/jira/browse/COCOON-1295
COCOON-1260 [PATCH] MultipartParser can now handle multipart/mixed
            https://issues.apache.org/jira/browse/COCOON-1260
COCOON-1254 [Patch] OWQLTransformer + RDQLTransformer
            https://issues.apache.org/jira/browse/COCOON-1254
COCOON-1249 [Patch] XMLDBSource should accept scheme://user:pass <at> host:port/path URIs
            https://issues.apache.org/jira/browse/COCOON-1249
COCOON-1232 [PATCH] NEW--ModuleDB Action for ORACLE( auto. increment )
            https://issues.apache.org/jira/browse/COCOON-1232
COCOON-1203 [PATCH] inserver junit testing
            https://issues.apache.org/jira/browse/COCOON-1203
COCOON-1200 [PATCH] XML CSS engine
            https://issues.apache.org/jira/browse/COCOON-1200
COCOON-1185 [PATCH] BerkeleyDBStore
            https://issues.apache.org/jira/browse/COCOON-1185
COCOON-1147 [PATCH] namespace issues with XMLDBTransformer
            https://issues.apache.org/jira/browse/COCOON-1147
COCOON-1125 [PATCH] Updated CastorTransformer + samples
            https://issues.apache.org/jira/browse/COCOON-1125
COCOON-1027 [PATCH] CocoonBean add additional features for reprocessing pipelines and interrupt processing
            https://issues.apache.org/jira/browse/COCOON-1027
COCOON-996  [PATCH] LuceneIndexContentHandler.java produces CLOBs
            https://issues.apache.org/jira/browse/COCOON-996
COCOON-988  [PATCH] StreamGenerator can't handle multipart request parameters correctly
            https://issues.apache.org/jira/browse/COCOON-988
COCOON-881  [PATCH] file upload component for usage with flowscript
            https://issues.apache.org/jira/browse/COCOON-881
COCOON-871  [PATCH] XML posting from SourceWritingTransformer by using an enhanced HTTPClientSource
            https://issues.apache.org/jira/browse/COCOON-871
COCOON-867  [PATCH] wsinclude and htmlinclude transformers
            https://issues.apache.org/jira/browse/COCOON-867
COCOON-865  [PATCH] New ResourceLoadAction
            https://issues.apache.org/jira/browse/COCOON-865
COCOON-844  [PATCH] adding <wd:on-phase> and moving load() and save() to Form.
            https://issues.apache.org/jira/browse/COCOON-844
COCOON-825  [PATCH] Fix Bug: Better handling of CLOB in esql (get-xml) and handling of Oracle 'temporary lobs'
            https://issues.apache.org/jira/browse/COCOON-825
COCOON-719  [PATCH] Support for transactions in SQLTransformer
            https://issues.apache.org/jira/browse/COCOON-719
COCOON-717  [PATCH] Namespace cleanup in HTMLSerializer
            https://issues.apache.org/jira/browse/COCOON-717
COCOON-665  [PATCH] HSSFSerializer Support for FreezePane
            https://issues.apache.org/jira/browse/COCOON-665

You may edit this subscription at:
https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=10311&filterId=12310771

Nico Verwer (JIRA | 4 Feb 10:28
Picon
Favicon

[jira] Created: (COCOON-2278) Make SOAPHelper use https, not just http

Make SOAPHelper use https, not just http
----------------------------------------

                 Key: COCOON-2278
                 URL: https://issues.apache.org/jira/browse/COCOON-2278
             Project: Cocoon
          Issue Type: Improvement
          Components: Blocks: XSP
    Affects Versions: 2.1.11
            Reporter: Nico Verwer

The current SOAPHelper class in the XSP block only speaks http to webservices. With a small addition, it
respects the protocol specified by, e.g., a WSDL file. Many webservices use https, which works with this
patch for the SOAPHelper. Other protocols work if there is a protocol factory configured.

--

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

Nico Verwer (JIRA | 4 Feb 10:30
Picon
Favicon

[jira] Updated: (COCOON-2278) Make SOAPHelper use https, not just http


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

Nico Verwer updated COCOON-2278:
--------------------------------

    Attachment: SOAPHelper.patch

This patch changes the org.apache.cocoon.components.language.markup.xspSOAPHelper so that it uses
the protocol specified in the URL of the webservice.

> Make SOAPHelper use https, not just http
> ----------------------------------------
>
>                 Key: COCOON-2278
>                 URL: https://issues.apache.org/jira/browse/COCOON-2278
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: Blocks: XSP
>    Affects Versions: 2.1.11
>            Reporter: Nico Verwer
>         Attachments: SOAPHelper.patch
>
>
> The current SOAPHelper class in the XSP block only speaks http to webservices. With a small addition, it
respects the protocol specified by, e.g., a WSDL file. Many webservices use https, which works with this
patch for the SOAPHelper. Other protocols work if there is a protocol factory configured.

--

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

Gabriel Gruber | 4 Feb 16:02
Picon

Gabriel Gruber/Workflow is out of office.


I will be out of the office starting  04.02.2010 and will not return until
09.02.2010.

Ich bin bis zum 08.02.2010 auf Urlaub und ab 09.02.2010 wieder für Sie
erreichbar. Bei technischen Fragen zum System Webdesk wenden Sie sich bitte
vertrauensvoll an Hrn. Gutzelnig oder Hrn. Stastny. Bei Fragen zu laufenden
Projekten wenden Sie sich bitte an Hrn. Gutzelnig! In dringenden Fällen
versuchen Sie es auf meinem Handy: +43 - 676 - 3939435!

mit freundlichen Grüssen

Gabriel Gruber

Carsten Ziegeler | 5 Feb 08:16
Picon
Favicon

Re: [VOTE RESULT] Release cocoon-xml 2.0.2

Vadim Gritsenko wrote:
> On Dec 22, 2009, at 2:09 AM, Carsten Ziegeler wrote:
> 
>> Thanks for voting! I'll upload the artifacts asap.
> 
> Hey Carsten,
> 
> Were you able to upload it? All I could find is cocoon-xml-2.0.0 (and with -source jars for some reason in
the BINARIES directory - weird):
> 
>   http://www.apache.org/dist/cocoon/BINARIES/
> 
Ups, yes I was able to upload it to the maven repo:

http://repo2.maven.org/maven2/org/apache/cocoon/cocoon-xml/2.0.2/

but apparently forgot to put it into the dist folder as well....
Will do that asap

Carsten
--

-- 
Carsten Ziegeler
cziegeler <at> apache.org

Reinhard Pötz | 5 Feb 11:11
Picon
Favicon

[jnet] Threading issues

Moving over this thread to dev.

Carsten, any idea what could go wrong here? And, once I asked you why
you used an InheritableThreadLocal instead of a ThreadLocal to store the
list but can't remember. Can you explain it to me again? :-)

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard <at> apache.org
________________________________________________________________________
Picon Favicon
From: Reinhard Pötz <reinhard <at> apache.org>
Subject: Re: HELP needed with latest Cocoon 2.2 (JNET / SSF)
Date: 2010-02-04 19:20:18 GMT
Reinhard Pötz wrote:
> Gabriel Gruber wrote:
>> Hi Joe,
>>
>> well, I don't have a replayable scenario yet (f.i. testcase), but it
>> seems that the exception comes after heavy use of cocoon pages within
>> our application.  
>> I suspect that cocoon:/ protocol usage AND/OR  inheritence of sitemap
>> calling (we "extend" cocoon-forms block to override specific resources)
>> might be the root of problem. But that is only a guess...
>>
>> We are using latest trunk versions of servlet-service-framework and jnet
>> subprojects.  I know that Grek made some changes in cocoon servlet
>> service framework in summer 2009, which went into the 1.2 release, which
>> we are using (since then no changes have been comitted).
>>
>> The problems reported here (exact same problem we have)
>>
>> http://jira.dspace.org/jira/browse/DS-253?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel
> 
> I had a look at the JNet code and haven't found a cause for your
> problems. The list of URLStreamHandlerFactory objects is stored in a
> thread local.
> 
> I propose that you add extensive logging to
> org.apache.cocoon.jnet.URLHandlerFactoryCollector,
> org.apache.cocoon.jnet.DynamicURLStreamHandlerFactory and
> org.apache.cocoon.jnet.URLStreamHandlerFactoryInstaller
> 
> Then create a special logging target for all org.apache.cocoon.jnet
> messages and make sure that you also log the tread ids.
> 
> Then try to reproduce your problems and you should get a hint from the
> logs what could be the cause of empty lists.
> 
> Maybe you can also provide a patch with the logging statements.

It might also be interesting to see, whether the exceptions changes (or
disappears) if you change line 42 of
o.a.c.jnet.DynamicURLStreamHandlerFactory to

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

Steven and I experimented with linked lists today and didn't find a way
to produce a NPE as long as only a single thread accesses it. Those
exceptions only occur in the case of multiple threads modifying it
without synchronization.
So I expect that this change will just lead to an
IndexOutOfBoundException ...

--

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard <at> apache.org
________________________________________________________________________

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


Gmane