[JBoss JIRA] (ISPN-5552) Cannot start persistence cache: CacheException
by Veli Cris (JIRA)
[ https://issues.jboss.org/browse/ISPN-5552?page=com.atlassian.jira.plugin.... ]
Veli Cris edited comment on ISPN-5552 at 6/16/15 10:01 AM:
-----------------------------------------------------------
Hi Tristan, you are absolutely right. This is not actually an issue, I managed to use infinispan cache store with Datasources (jndi).
I have another question and I don't know where to ask: Is there any possibility to store data column as simple String and not as Serializable object in database?
was (Author: vlcvlc):
Hi Tristan you are absolutely right. This is not actually an issue, I managed to use infinispan cache store with Datasources (jndi).
I have another question and I don't know where to ask: Is there any possibility to store data column as simple String and not as Serializable object in database?
> Cannot start persistence cache: CacheException
> ----------------------------------------------
>
> Key: ISPN-5552
> URL: https://issues.jboss.org/browse/ISPN-5552
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 6.0.3.Final
> Environment: WildFly 8.2.0 / Linux
> Reporter: Veli Cris
>
> Hi,
> I have the following configuration for persistence cache (MySQL) and when I try to start the cache I get CacheException error. Basically what I want is to save the records from cache called 'mycache' in MySQL table called 'bean.bean_session'. Thank you.
> org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration config = builder.persistence()
> .addStore(JdbcBinaryStoreConfigurationBuilder.class)
> .fetchPersistentState(false)
> .ignoreModifications(false)
> .purgeOnStartup(false)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("bean_session")
> .idColumnName("id").idColumnType("INT(11)")
> .dataColumnName("string").dataColumnType("TEXT")
> .timestampColumnName("timestamp").timestampColumnType("TIMESTAMP")
> .connectionPool()
> .connectionUrl("jdbc:mysql://localhost:3306/bean")
> .username("root").password("1234567")
> .driverClass("com.mysql.jdbc.Driver").build();
> DefaultCacheManager manager = new DefaultCacheManager();
> manager.defineConfiguration("mycache", config);
> Cache cache = manager.getCache("mycache");
> cache.put("1", "1");
> cache.put("2", "2");
> cache.put("3", "3");
> cache.start();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5534) CreateCacheCommand doesn't properly wait for the cache to stabilize
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-5534?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-5534:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> CreateCacheCommand doesn't properly wait for the cache to stabilize
> -------------------------------------------------------------------
>
> Key: ISPN-5534
> URL: https://issues.jboss.org/browse/ISPN-5534
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 7.2.2.Final, 8.0.0.Alpha1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Blocker
> Labels: testsuite_stability
> Fix For: 8.0.0.Alpha2
>
>
> Because of ISPN-5533, {{CreateCacheCommand.perform()}} waits for the cache to stabilize with a certain number of members. However, the wait condition is wrong: it will exit the loop when either the number of members is correct *or* there is no rebalance in progress.
> {code}
> while (stm.getCacheTopology().getMembers().size() != expectedSize && stm.getCacheTopology().getPendingCH() != null) {
> {code}
> should be
> {code}
> while (stm.getCacheTopology().getMembers().size() != expectedSize || stm.getCacheTopology().getPendingCH() != null) {
> {code}
> Combined with ISPN-5533, this is causing random failures in the M/R tests, e.g.
> {noformat}
> 23:17:45,353 ERROR (testng-DistributedFourNodesMapReduceTest:) [UnitTestTestNGListener] Test testInvokeMapReduceOnAllKeysWithResultCache(org.infinispan.distexec.mapreduce.DistributedFourNodesMapReduceTest) failed.
> java.lang.AssertionError: key 'community' does not have count 2 but 4
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.infinispan.distexec.mapreduce.BaseWordCountMapReduceTest.verifyResults(BaseWordCountMapReduceTest.java:256)
> at org.infinispan.distexec.mapreduce.BaseWordCountMapReduceTest.verifyResults(BaseWordCountMapReduceTest.java:380)
> at org.infinispan.distexec.mapreduce.BaseWordCountMapReduceTest.testInvokeMapReduceOnAllKeysWithResultCache(BaseWordCountMapReduceTest.java:175)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5551) Infinispan AS modules artifact should include JBoss Marshalling
by Sanne Grinovero (JIRA)
[ https://issues.jboss.org/browse/ISPN-5551?page=com.atlassian.jira.plugin.... ]
Sanne Grinovero commented on ISPN-5551:
---------------------------------------
As long as the container provided JBMAR is compatible with the Infinispan integration code - and all nodes consistently use the same version of JBMAR - I don't see why it would be a problem?
Is it because another module is using a different version?
> Infinispan AS modules artifact should include JBoss Marshalling
> ---------------------------------------------------------------
>
> Key: ISPN-5551
> URL: https://issues.jboss.org/browse/ISPN-5551
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 7.2.2.Final
> Reporter: Horia Chiorean
> Assignee: Tristan Tarrant
> Fix For: 8.0.0.Alpha2, 7.2.3.Final, 8.0.0.Final
>
>
> Infinispan 7 provides the following Maven artifact:
> {code:xml}
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-as-embedded-modules</artifactId>
> <type>zip</type>
> </dependency>
> {code}
> which can be used (and is used by ModeShape) when running in a JBoss AS instance.
> However, this artifact does not contain the version of JBoss Marshalling that a particular version of Infinspan requires but rather picks up the {{main}} version which is available in the container:
> {code:xml}
> <module name="org.jboss.marshalling"/>
> <module name="org.jboss.marshalling.river" services="import"/>
> {code}
> Because of this, when deploying Infinispan 7.2.x in Wildfly 8.2.0, Infinispan will pick up the version of marshalling delivered by Wildfly (1.4.9.Final instead of 1.4.10.Final) causing class cast exceptions like:
> {code:java}
> Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.jboss.marshalling.Externalizer
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1012)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1256)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
> at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
> at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:135) [infinispan-commons.jar:7.2.0.Final]
> at org.infinispan.marshall.core.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:101) [infinispan-core.jar:7.2.0.Final]
> at org.infinispan.commons.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:80) [infinispan-commons.jar:7.2.0.Final]
> at org.infinispan.marshall.core.MarshalledEntryImpl.unmarshall(MarshalledEntryImpl.java:114) [infinispan-core.jar:7.2.0.Final]
> ... 162 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5552) Cannot start persistence cache: CacheException
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5552?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant resolved ISPN-5552.
-----------------------------------
Resolution: Won't Fix
> Cannot start persistence cache: CacheException
> ----------------------------------------------
>
> Key: ISPN-5552
> URL: https://issues.jboss.org/browse/ISPN-5552
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 6.0.3.Final
> Environment: WildFly 8.2.0 / Linux
> Reporter: Veli Cris
>
> Hi,
> I have the following configuration for persistence cache (MySQL) and when I try to start the cache I get CacheException error. Basically what I want is to save the records from cache called 'mycache' in MySQL table called 'bean.bean_session'. Thank you.
> org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration config = builder.persistence()
> .addStore(JdbcBinaryStoreConfigurationBuilder.class)
> .fetchPersistentState(false)
> .ignoreModifications(false)
> .purgeOnStartup(false)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("bean_session")
> .idColumnName("id").idColumnType("INT(11)")
> .dataColumnName("string").dataColumnType("TEXT")
> .timestampColumnName("timestamp").timestampColumnType("TIMESTAMP")
> .connectionPool()
> .connectionUrl("jdbc:mysql://localhost:3306/bean")
> .username("root").password("1234567")
> .driverClass("com.mysql.jdbc.Driver").build();
> DefaultCacheManager manager = new DefaultCacheManager();
> manager.defineConfiguration("mycache", config);
> Cache cache = manager.getCache("mycache");
> cache.put("1", "1");
> cache.put("2", "2");
> cache.put("3", "3");
> cache.start();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5552) Cannot start persistence cache: CacheException
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5552?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant commented on ISPN-5552:
---------------------------------------
The version of Infinispan included in WildFly does not package the c3p0 module which is needed by our connection pool code, you should use the ManagedConnection which delegates the pooling to an application-server-provided data source.
> Cannot start persistence cache: CacheException
> ----------------------------------------------
>
> Key: ISPN-5552
> URL: https://issues.jboss.org/browse/ISPN-5552
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 6.0.3.Final
> Environment: WildFly 8.2.0 / Linux
> Reporter: Veli Cris
>
> Hi,
> I have the following configuration for persistence cache (MySQL) and when I try to start the cache I get CacheException error. Basically what I want is to save the records from cache called 'mycache' in MySQL table called 'bean.bean_session'. Thank you.
> org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration config = builder.persistence()
> .addStore(JdbcBinaryStoreConfigurationBuilder.class)
> .fetchPersistentState(false)
> .ignoreModifications(false)
> .purgeOnStartup(false)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("bean_session")
> .idColumnName("id").idColumnType("INT(11)")
> .dataColumnName("string").dataColumnType("TEXT")
> .timestampColumnName("timestamp").timestampColumnType("TIMESTAMP")
> .connectionPool()
> .connectionUrl("jdbc:mysql://localhost:3306/bean")
> .username("root").password("1234567")
> .driverClass("com.mysql.jdbc.Driver").build();
> DefaultCacheManager manager = new DefaultCacheManager();
> manager.defineConfiguration("mycache", config);
> Cache cache = manager.getCache("mycache");
> cache.put("1", "1");
> cache.put("2", "2");
> cache.put("3", "3");
> cache.start();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5552) Cannot start persistence cache: CacheException
by Veli Cris (JIRA)
[ https://issues.jboss.org/browse/ISPN-5552?page=com.atlassian.jira.plugin.... ]
Veli Cris commented on ISPN-5552:
---------------------------------
Caused by: java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource from [Module "org.infinispan.cachestore.jdbc:main" from local module loader @7dd9578a (finder: local module finder @48026592 (roots: /usr/local/wildfly-8.2.0/modules,/usr/local/wildfly-8.2.0/modules/system/layers/base/.overlays/base-8.2.0.Final-patch,/usr/local/wildfly-8.2.0/modules/system/layers/base))]
> Cannot start persistence cache: CacheException
> ----------------------------------------------
>
> Key: ISPN-5552
> URL: https://issues.jboss.org/browse/ISPN-5552
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 6.0.3.Final
> Environment: WildFly 8.2.0 / Linux
> Reporter: Veli Cris
>
> Hi,
> I have the following configuration for persistence cache (MySQL) and when I try to start the cache I get CacheException error. Basically what I want is to save the records from cache called 'mycache' in MySQL table called 'bean.bean_session'. Thank you.
> org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration config = builder.persistence()
> .addStore(JdbcBinaryStoreConfigurationBuilder.class)
> .fetchPersistentState(false)
> .ignoreModifications(false)
> .purgeOnStartup(false)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("bean_session")
> .idColumnName("id").idColumnType("INT(11)")
> .dataColumnName("string").dataColumnType("TEXT")
> .timestampColumnName("timestamp").timestampColumnType("TIMESTAMP")
> .connectionPool()
> .connectionUrl("jdbc:mysql://localhost:3306/bean")
> .username("root").password("1234567")
> .driverClass("com.mysql.jdbc.Driver").build();
> DefaultCacheManager manager = new DefaultCacheManager();
> manager.defineConfiguration("mycache", config);
> Cache cache = manager.getCache("mycache");
> cache.put("1", "1");
> cache.put("2", "2");
> cache.put("3", "3");
> cache.start();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5552) Cannot start persistence cache: CacheException
by Veli Cris (JIRA)
[ https://issues.jboss.org/browse/ISPN-5552?page=com.atlassian.jira.plugin.... ]
Veli Cris commented on ISPN-5552:
---------------------------------
Of course, after I will succeed how to enable stack trace logging for infinispan.
> Cannot start persistence cache: CacheException
> ----------------------------------------------
>
> Key: ISPN-5552
> URL: https://issues.jboss.org/browse/ISPN-5552
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 6.0.3.Final
> Environment: WildFly 8.2.0 / Linux
> Reporter: Veli Cris
>
> Hi,
> I have the following configuration for persistence cache (MySQL) and when I try to start the cache I get CacheException error. Basically what I want is to save the records from cache called 'mycache' in MySQL table called 'bean.bean_session'. Thank you.
> org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration config = builder.persistence()
> .addStore(JdbcBinaryStoreConfigurationBuilder.class)
> .fetchPersistentState(false)
> .ignoreModifications(false)
> .purgeOnStartup(false)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("bean_session")
> .idColumnName("id").idColumnType("INT(11)")
> .dataColumnName("string").dataColumnType("TEXT")
> .timestampColumnName("timestamp").timestampColumnType("TIMESTAMP")
> .connectionPool()
> .connectionUrl("jdbc:mysql://localhost:3306/bean")
> .username("root").password("1234567")
> .driverClass("com.mysql.jdbc.Driver").build();
> DefaultCacheManager manager = new DefaultCacheManager();
> manager.defineConfiguration("mycache", config);
> Cache cache = manager.getCache("mycache");
> cache.put("1", "1");
> cache.put("2", "2");
> cache.put("3", "3");
> cache.start();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5552) Cannot start persistence cache: CacheException
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5552?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant commented on ISPN-5552:
---------------------------------------
Can we have a more complete stack trace: if the persistence manager fails to start it is because of a deeper reason.
> Cannot start persistence cache: CacheException
> ----------------------------------------------
>
> Key: ISPN-5552
> URL: https://issues.jboss.org/browse/ISPN-5552
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 6.0.3.Final
> Environment: WildFly 8.2.0 / Linux
> Reporter: Veli Cris
>
> Hi,
> I have the following configuration for persistence cache (MySQL) and when I try to start the cache I get CacheException error. Basically what I want is to save the records from cache called 'mycache' in MySQL table called 'bean.bean_session'. Thank you.
> org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration config = builder.persistence()
> .addStore(JdbcBinaryStoreConfigurationBuilder.class)
> .fetchPersistentState(false)
> .ignoreModifications(false)
> .purgeOnStartup(false)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("bean_session")
> .idColumnName("id").idColumnType("INT(11)")
> .dataColumnName("string").dataColumnType("TEXT")
> .timestampColumnName("timestamp").timestampColumnType("TIMESTAMP")
> .connectionPool()
> .connectionUrl("jdbc:mysql://localhost:3306/bean")
> .username("root").password("1234567")
> .driverClass("com.mysql.jdbc.Driver").build();
> DefaultCacheManager manager = new DefaultCacheManager();
> manager.defineConfiguration("mycache", config);
> Cache cache = manager.getCache("mycache");
> cache.put("1", "1");
> cache.put("2", "2");
> cache.put("3", "3");
> cache.start();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5552) Cannot start persistence cache: CacheException
by Veli Cris (JIRA)
Veli Cris created ISPN-5552:
-------------------------------
Summary: Cannot start persistence cache: CacheException
Key: ISPN-5552
URL: https://issues.jboss.org/browse/ISPN-5552
Project: Infinispan
Issue Type: Bug
Affects Versions: 6.0.3.Final
Environment: WildFly 8.2.0 / Linux
Reporter: Veli Cris
Hi,
I have the following configuration for persistence cache (MySQL) and when I try to start the cache I get CacheException error. Basically what I want is to save the records from cache called 'mycache' in MySQL table called 'bean.bean_session'. Thank you.
org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.start() on object of type PersistenceManagerImpl
ConfigurationBuilder builder = new ConfigurationBuilder();
Configuration config = builder.persistence()
.addStore(JdbcBinaryStoreConfigurationBuilder.class)
.fetchPersistentState(false)
.ignoreModifications(false)
.purgeOnStartup(false)
.table()
.dropOnExit(true)
.createOnStart(true)
.tableNamePrefix("bean_session")
.idColumnName("id").idColumnType("INT(11)")
.dataColumnName("string").dataColumnType("TEXT")
.timestampColumnName("timestamp").timestampColumnType("TIMESTAMP")
.connectionPool()
.connectionUrl("jdbc:mysql://localhost:3306/bean")
.username("root").password("1234567")
.driverClass("com.mysql.jdbc.Driver").build();
DefaultCacheManager manager = new DefaultCacheManager();
manager.defineConfiguration("mycache", config);
Cache cache = manager.getCache("mycache");
cache.put("1", "1");
cache.put("2", "2");
cache.put("3", "3");
cache.start();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (ISPN-5526) Replication: The DELTA_WRITE flag should force a remote get during state transfer
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/ISPN-5526?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on ISPN-5526:
-----------------------------------------------
baranowb <bbaranow(a)redhat.com> changed the Status of [bug 1228780|https://bugzilla.redhat.com/show_bug.cgi?id=1228780] from ASSIGNED to MODIFIED
> Replication: The DELTA_WRITE flag should force a remote get during state transfer
> ---------------------------------------------------------------------------------
>
> Key: ISPN-5526
> URL: https://issues.jboss.org/browse/ISPN-5526
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 5.2.10.Final
> Reporter: Dennis Reed
> Assignee: Ryan Emerson
> Priority: Critical
> Fix For: 5.2.13.Final
>
>
> Same issue as ISPN-3184, but for repl caches in Infinispan 5.2.x.
> (ISPN-3184 only fixed dist caches, since repl uses the same code in 5.3+).
> AtomicHashMap and FineGrainedAtomicHashMap, as well as custom DeltaAware implementations, use PutKeyValueCommands with the DELTA_WRITE flag to execute incremental updates. These commands need the previous value of the entry in order to work.
> If a node is joining and it receives a PutKeyValueCommand with the DELTA_WRITE flag before it has received the value of the affected key, it should do a remote get to retrieve the previous value and apply the change on top of that value, just like we do for conditional commands. Not doing so leads to data loss.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months