[
https://issues.jboss.org/browse/ISPN-1502?page=com.atlassian.jira.plugin....
]
Manik Surtani updated ISPN-1502:
--------------------------------
Assignee: Pete Muir (was: Manik Surtani)
Assigning this to you, Pete. I presume this issue will be obsolete once ISPN-1065 is in?
If so, feel free to close this issue as out of date.
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: Pete Muir
Fix For: 5.1.0.BETA4
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