Hi All,
I am using NameCache with HibernateCacheStore and perform the CRUD operation.
When i am trying to delete a entry from Cache using NamedCacheInstance.remove(), It throws "not-null property references a null or transient value".
My requirement is to remove the entry only from NameCache and it should not delete the corresponding record in the database table.
<?xml version="1.0"?>
<cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config coherence-cache-config.xsd">
<caching-scheme-mapping>
<!--Entity cache configuration.-->
<cache-mapping>
<cache-name>*</cache-name>
<scheme-name>hibernate-distributed</scheme-name>
<init-params>
<init-param>
<param-name>size-limit</param-name>
<param-value>250M</param-value>
</init-param>
<init-param>
<param-name>expiry-delay</param-name>
<param-value>1m</param-value>
</init-param>
<init-param>
<param-name>write-delay</param-name>
<param-value>10s</param-value>
</init-param>
<init-param>
<param-name>write-batch-factor</param-name>
<param-value>.25</param-value>
</init-param>
<init-param>
<param-name>write-requeue-threshold</param-name>
<param-value>128</param-value>
</init-param>
<init-param>
<param-name>refresh-ahead-factor</param-name>
<param-value>.75</param-value>
</init-param>
</init-params>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>hibernate-distributed</scheme-name>
<service-name>HibernateDistributedCache</service-name>
<!-- <serializer>
<instance>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>dbpof-config.xml</param-value>
</init-param>
</init-params>
</instance>
</serializer> -->
<thread-count>5</thread-count>
<backup-count>1</backup-count>
<backup-count-after-writebehind>0</backup-count-after-writebehind>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<local-scheme>
<high-units>0</high-units>
<unit-calculator>binary</unit-calculator>
<expiry-delay>0</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<miss-cache-scheme>
<local-scheme>
<expiry-delay>0</expiry-delay>
</local-scheme>
</miss-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.tangosol.coherence.hibernate.HibernateCacheStore</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>com.common.model.EmployeeTab</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<write-delay>0</write-delay>
<write-batch-factor>0</write-batch-factor>
<write-requeue-threshold>0</write-requeue-threshold>
<refresh-ahead-factor>0</refresh-ahead-factor>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<invocation-scheme>
<scheme-name>invocation-service</scheme-name>
<service-name>InvocationService</service-name>
<thread-count>5</thread-count>
<autostart>true</autostart>
</invocation-scheme>
</caching-schemes>
</cache-config>
Can any one help me to resolve this?
Thanks & Regards,
Elango