Creation of child settings object is broken
-------------------------------------------

                 Key: COCOON-2227
                 URL: https://issues.apache.org/jira/browse/COCOON-2227
             Project: Cocoon
          Issue Type: Bug
          Components: * Cocoon Core
    Affects Versions: 2.2-dev (Current SVN)
            Reporter: Grzegorz Kossakowski
             Fix For: 2.2-dev (Current SVN)


It seems that there is a problem with creation of child settings object. To 
reproduce this problem just go to:
core/cocoon-webapp

and then run Cocoon using following command:
mvn jetty:run -Dorg.apache.cocoon.formencoding=UTF-8

Then access:
http://localhost:8888/

and you will get following exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.cocoon.configuration.Settings': Invocation of init method 
failed; nested exception is java.lang.IllegalStateException: This value can 
only be changed for the root settings object.

[...]

Caused by: java.lang.IllegalStateException: This value can only be changed for 
the root settings object.
        at 
org.apache.cocoon.configuration.MutableSettings.checkSubSetting(MutableSettings.java:423)
        at 
org.apache.cocoon.configuration.MutableSettings.setFormEncoding(MutableSettings.java:364)
        at 
org.apache.cocoon.configuration.MutableSettings.configure(MutableSettings.java:151)
        at 
org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor.createSettings(AbstractSettingsBeanFactoryPostProcessor.java:258)
        at 
org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor.init(AbstractSettingsBeanFactoryPostProcessor.java:130)

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

Reply via email to