You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Sergio Fernández (JIRA)" <ji...@apache.org> on 2014/01/07 12:15:50 UTC

[jira] [Created] (MARMOTTA-410) KiWi not initialized without netwotk

Sergio Fernández created MARMOTTA-410:
-----------------------------------------

             Summary: KiWi not initialized without netwotk
                 Key: MARMOTTA-410
                 URL: https://issues.apache.org/jira/browse/MARMOTTA-410
             Project: Marmotta
          Issue Type: Bug
          Components: KiWi Triple Store
    Affects Versions: 3.1-incubating
            Reporter: Sergio Fernández
            Assignee: Sebastian Schaffert
            Priority: Minor
             Fix For: 3.2


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

{quote}
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
{quote}

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



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)