[gatein-issues] [JBoss JIRA] Assigned: (GTNPORTAL-1936) WSRP Producer: Custom policy in wsrp-producer-config.xml leads to IllegalArgumentException at restart
Chris Laprun (JIRA)
jira-events at lists.jboss.org
Thu Sep 8 06:14:29 EDT 2011
[ https://issues.jboss.org/browse/GTNPORTAL-1936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Laprun reassigned GTNPORTAL-1936:
---------------------------------------
Assignee: Chris Laprun
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list