Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1552

NPE when starting a cache with the new configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.1.0.CR1
    • 5.1.0.BETA5
    • Configuration
    • None

      This code:

      ConfigurationBuilder cb = new ConfigurationBuilder();
      cb.transaction().use1PcForAutoCommitTransactions(true)
      .transactionManagerLookup(new DummyTransactionManagerLookup());
      DefaultCacheManager cm = new DefaultCacheManager(cb.build());
      Throws an exception:

      java.lang.NullPointerException
      at org.infinispan.config.ConfigurationValidatingVisitor.visitEvictionType(ConfigurationValidatingVisitor.java:129)
      at org.infinispan.config.DelegatingConfigurationVisitor.visitEvictionType(DelegatingConfigurationVisitor.java:172)
      at org.infinispan.config.Configuration$EvictionType.accept(Configuration.java:2878)
      at org.infinispan.config.Configuration.accept(Configuration.java:1448)
      at org.infinispan.manager.DefaultCacheManager.wireCache(DefaultCacheManager.java:684)
      at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:647)
      at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:543)
      at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:516)
      at org.infinispan.tx.Use1PcForInducedTransactionTest.testNewConfigurationCorrectness(Use1PcForInducedTransactionTest.java:80)

          There are no Sub-Tasks for this issue.

              pmuiratbleepbleep Pete Muir (Inactive)
              mircea.markus Mircea Markus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: