Uploaded image for project: 'Marmotta'
  1. Marmotta
  2. MARMOTTA-410

KiWi not initialized without network

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1-incubating
    • Fix Version/s: 3.2.0
    • Component/s: KiWi Triple Store
    • Labels:
      None

      Description

      During this Christmas break I've doing some work completely offline, when I detected that KiWi cannot correctly initialize without network:

      09:47:58.447 INFO o.a.m.k.l.KiWiLoader - Initializing KiWiLoader for jdbc:postgresql://localhost:5432/marmotta?prepareThreshold=3; user: marmotta, password: *
      09:47:59.429 INFO o.a.m.k.c.KiWiCacheManager - initialised cache manager (single host)
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.simontuffs.onejar.Boot.run(Boot.java:340)
      at com.simontuffs.onejar.Boot.main(Boot.java:166)
      Caused by: java.lang.NullPointerException
      at org.apache.marmotta.kiwi.generator.SnowflakeIDGenerator.getDatacenterId(SnowflakeIDGenerator.java:106)
      at org.apache.marmotta.kiwi.generator.SnowflakeIDGenerator.<init>(SnowflakeIDGenerator.java:66)
      at org.apache.marmotta.kiwi.persistence.KiWiPersistence.initialise(KiWiPersistence.java:121)
      at org.apache.marmotta.kiwi.sail.KiWiStore.initializeInternal(KiWiStore.java:112)
      at org.openrdf.sail.helpers.SailBase.initialize(SailBase.java:154)
      at org.openrdf.repository.sail.SailRepository.initializeInternal(SailRepository.java:97)
      at org.openrdf.repository.base.RepositoryBase.initialize(RepositoryBase.java:37)
      at org.apache.marmotta.kiwi.loader.KiWiLoader.initialize(KiWiLoader.java:457)
      at org.apache.marmotta.kiwi.loader.KiWiLoader.main(KiWiLoader.java:263)
      ... 6 more

      I got the issue working with KiWi Loader, but I'd expect the whole KiWi Triplestore would be affected by such issue.

        Attachments

          Activity

            People

            • Assignee:
              wastl Sebastian Schaffert
              Reporter:
              wikier Sergio Fernández
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified