Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1-incubating
-
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.