exception after updating from 7.1.0 to 7.1.2
Hi,
We recently made an update of GigaSpaces version without touching the code in classes related to the following exception we get now:
java.lang.IllegalArgumentException: Using EXCLUSIVEREADLOCK modifier without a transaction is illegal.
at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readById(AbstractSpaceProxyActionManager.java:174)
at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readById(AbstractSpaceProxy.java:198)
at com.gigaspaces.internal.client.dcache.AbstractSpaceCache.readById(AbstractSpaceCache.java:620)
at com.mypackage.MyClass.myMethod(...)
We get this at the line:
cachedSpace.readById(AClass.class.getName(), value, value, null, JavaSpace.NOWAIT, TransactionDefinition.ISOLATIONDEFAULT, false, null);
where:
cachedSpace = (ISpaceProxy) new LocalCacheSpaceConfigurer(gigaSpace.getClustered().getSpace()).updateMode(LocalCacheSpaceConfigurer.UpdateMode.PULL).localCache();
where:
@GigaSpaceContext(name = "gigaSpace")
public static GigaSpace gigaSpace;
and
<os-core:space id="space" url="/./appSpace?NOWriteLease=true">
<os-core:properties>
<props>
<prop key="space-config.leasemanager.expirationtime_interval">1000</prop>
<prop key="space-config.engine.cache_policy">1</prop>
</props>
</os-core:properties>
</os-core:space>
<os-core:local-tx-manager id="transactionManager" space="space">
<os-core:renew pool-size="2" duration="1000" round-trip-time="500" />
</os-core:local-tx-manager>
<os-core:giga-space id="gigaSpace" space="space" tx-manager="transactionManager"/>
Is there something we are doing wrong? I didn't intend to use a transaction with the cached space, just the optimistic locking.
The most strange is we didn't see this before updating to 7.1.2
Thanks,
Lucian
This thread was imported from the previous forum.
For your reference, the original is available here