[gatein-issues] [JBoss JIRA] (GTNPORTAL-1936) WSRP Producer: Custom policy in wsrp-producer-config.xml leads to IllegalArgumentException at restart

Chris Laprun (Resolved) (JIRA) jira-events at lists.jboss.org
Thu Nov 10 17:14:45 EST 2011


     [ https://issues.jboss.org/browse/GTNPORTAL-1936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Laprun resolved GTNPORTAL-1936.
-------------------------------------

    Resolution: Done

    
> WSRP Producer: Custom policy in wsrp-producer-config.xml leads to IllegalArgumentException at restart
> -----------------------------------------------------------------------------------------------------
>
>                 Key: GTNPORTAL-1936
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-1936
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: WSRP integration
>    Affects Versions: 3.1.0-GA
>         Environment: EPP 5.1, WSRP
>            Reporter: Christoph Hennes
>            Assignee: Chris Laprun
>
> If a custom policy class is used in wsrp-producer-config.xml and the producer is initially created with these settings an exception is thrown after restart:
> IllegalArgumentException: Couldn't instantiate policy class 
> at org.gatein.wsrp.producer.config.impl.ProducerRegistrationRequirementsImpl.reloadPolicyFrom(ProducerRegistrationRequirementsImpl.java:393)
> The reason for this seems to be the RegistrationPolicyWrapper which is used as wrapper for the custom policy. The next startup time JBoss tries to create an instance of the wrapper:
> ProducerRegistrationRequirementsImpl:
>  RegistrationPolicy policy = (RegistrationPolicy)policyClass.newInstance();
> But the RegistrationPolicyWrapper does not have a default constructor. I think that the wrapper should not be persisted at all and just be added transiently.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list