[infinispan-issues] [JBoss JIRA] (ISPN-1502) Configuration TransactionType missing autocommit setter
Galder Zamarreño (Commented) (JIRA)
jira-events at lists.jboss.org
Fri Nov 18 09:10:42 EST 2011
[ https://issues.jboss.org/browse/ISPN-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643959#comment-12643959 ]
Galder Zamarreño commented on ISPN-1502:
----------------------------------------
There's no setter needed. You can assing @XmlAttribute to the attribute itself. Anyway, I (kinda) fixed this already... ISPN-1529
> Configuration TransactionType missing autocommit setter
> -------------------------------------------------------
>
> Key: ISPN-1502
> URL: https://issues.jboss.org/browse/ISPN-1502
> Project: Infinispan
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 5.1.0.BETA3
> Reporter: Aaron Douglas
> Assignee: Galder Zamarreño
> Fix For: 5.1.0.BETA5
>
>
> I am attempting to use the following XML in my configuration:
> {code}
> <transaction transactionMode="TRANSACTIONAL" autoCommit="true"/>
> {code}
> But am receiving the message:
> {code}
> Caused by: java.io.IOException: The property has a getter "public java.lang.Boolean org.infinispan.config.Configuration$TransactionType.isAutoCommit()" but no setter. For unmarshalling, please define setters. (Or if this is a collection property, make sure that the getter returns a collection instance.)
> at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:263) [infinispan-core-5.1.0.BETA3.jar:]
> at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:281) [infinispan-core-5.1.0.BETA3.jar:]
> at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:133) [infinispan-core-5.1.0.BETA3.jar:]
> at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:109) [infinispan-core-5.1.0.BETA3.jar:]
> at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:253) [infinispan-core-5.1.0.BETA3.jar:]
> at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:239) [infinispan-core-5.1.0.BETA3.jar:]
> at org.hibernate.search.infinispan.CacheManagerServiceProvider.start(CacheManagerServiceProvider.java:94) [hibernate-search-infinispan-3.4.1.Final.jar:]
> ... 52 more
> {code}
> It appears the setter is missing the word "set" in front of it.
> {code}
> @Override
> public TransactionConfig autoCommit(boolean enabled) {
> testImmutability("autoCommit");
> this.autoCommit = enabled;
> return this;
> }
> {code}
--
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 infinispan-issues
mailing list