Stardog 1.1 stopped working for me

0 views
Skip to first unread message

László Török

unread,
Feb 26, 2013, 2:09:22 PM2/26/13
to sta...@clarkparsia.com
Hi,

I had a running Stardog 1.1.3 on my machine and it now won't start.

com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting constructor, java.lang.AssertionError: 2!=0
  at com.clarkparsia.stardog.StardogKernel.<init>(Unknown Source)
  at com.clarkparsia.stardog.StardogKernel.class(Unknown Source)
  while locating com.clarkparsia.stardog.StardogKernel

1 error

What might be the issue?

Thanks,

Laszlo


--
László Török

Mike Grove

unread,
Feb 26, 2013, 2:26:09 PM2/26/13
to stardog
It's hard to say with an incomplete stack trace and no information about what you changed.  

A likely issue would be something related to the classpath; Guice cannot find one of the dependencies of the kernel and is not able to initialize it and therefore start the server.

Cheers,

Mike




--
László Török

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
 
 

László Török

unread,
Feb 26, 2013, 2:31:45 PM2/26/13
to Stardog

Problem solved.
It seems that the db was left in an inconsistent state after my computer crashed. Deleting the db seems to have fixed the issue.

Sent from my phone

Mike Grove

unread,
Feb 26, 2013, 2:37:39 PM2/26/13
to stardog
On Tue, Feb 26, 2013 at 2:31 PM, László Török <ltor...@gmail.com> wrote:

Problem solved.
It seems that the db was left in an inconsistent state after my computer crashed. Deleting the db seems to have fixed the issue.

Which database was messed up, and were you writing to it when the computer crashed?

Cheers,

Mike
 

Sent from my phone

On Feb 26, 2013 8:09 PM, "László Török" <ltor...@gmail.com> wrote:
Hi,

I had a running Stardog 1.1.3 on my machine and it now won't start.

com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting constructor, java.lang.AssertionError: 2!=0
  at com.clarkparsia.stardog.StardogKernel.<init>(Unknown Source)
  at com.clarkparsia.stardog.StardogKernel.class(Unknown Source)
  while locating com.clarkparsia.stardog.StardogKernel

1 error

What might be the issue?

Thanks,

Laszlo


--
László Török

László Török

unread,
Feb 26, 2013, 2:47:14 PM2/26/13
to Stardog

I'm afraid I can't tell. I had two test databases with a few thousand triples.
I was not writing any of them, I had to restart my computer without properly shutting down stardog for another reason.
Laszlo

Sent from my phone

Mike Grove

unread,
Feb 26, 2013, 2:48:41 PM2/26/13
to stardog
Do you have the original problematic database(s) still available?  I'd like to look at the index and try to diagnose what could have happened.

Thanks.

Mike

ehsan....@gmail.com

unread,
Dec 28, 2013, 7:52:45 AM12/28/13
to sta...@clarkparsia.com
I've had the same problem, my computer crashed and stardom is not starting. Here's the stack:
Guice provision errors:

1) Error injecting constructor, com.complexible.stardog.security.StardogSecurityException: Error initializing the security index.
  at com.complexible.stardog.security.shiro.StardogRealmURI.<init>(StardogRealmURI.java:96)
  at com.complexible.stardog.security.shiro.StardogRealmURI.class(StardogRealmURI.java:96)
  while locating com.complexible.stardog.security.shiro.StardogRealmURI
  at com.complexible.stardog.security.index.SecurityModule.configure(SecurityModule.java:91)
  while locating org.apache.shiro.realm.Realm
    for parameter 1 at com.complexible.stardog.StardogKernel.<init>(StardogKernel.java:195)
  at com.complexible.stardog.StardogKernel.class(StardogKernel.java:195)
  while locating com.complexible.stardog.StardogKernel
Caused by: com.complexible.stardog.security.StardogSecurityException: Error initializing the security index.
at com.complexible.stardog.security.shiro.StardogRealmURI.createIndexForTheFirstTime(StardogRealmURI.java:319)
at com.complexible.stardog.security.shiro.StardogRealmURI.initializeSecurityIndex(StardogRealmURI.java:244)
at com.complexible.stardog.security.shiro.StardogRealmURI.<init>(StardogRealmURI.java:109)
at com.complexible.stardog.security.shiro.StardogRealmURI.<init>(StardogRealmURI.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:85)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
at com.complexible.stardog.protocols.server.StardogServer.start(StardogServer.java:80)
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:135)
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:42)
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
at com.complexible.stardog.cli.admin.CLI.main(CLI.java:230)
Caused by: com.complexible.stardog.security.PersistenceManagerException: Inconsistent index size: 662 != 661
at com.complexible.stardog.security.shiro.StardogRealmURI.createIndexForTheFirstTime(StardogRealmURI.java:282)
... 38 more
Caused by: com.complexible.stardog.index.IndexException: Inconsistent index size: 662 != 661
at com.complexible.stardog.index.AbstractIndexData.verifySizes(AbstractIndexData.java:231)
at com.complexible.stardog.index.AbstractIndexData.update(AbstractIndexData.java:286)
at com.complexible.stardog.index.SingletonIndexData.updateDirect(SingletonIndexData.java:78)
at com.complexible.stardog.index.SingletonIndexData.update(SingletonIndexData.java:73)
at com.complexible.stardog.index.IndexWriterImpl.prepare(IndexWriterImpl.java:160)
at com.complexible.stardog.index.IndexWriterImpl.commit(IndexWriterImpl.java:175)
at com.complexible.stardog.security.shiro.StardogRealmURI.createIndexForTheFirstTime(StardogRealmURI.java:279)
... 38 more

2) Error injecting constructor, java.lang.NullPointerException
  at com.complexible.stardog.security.shiro.StardogRealmURI.<init>(StardogRealmURI.java:96)
  at com.complexible.stardog.security.shiro.StardogRealmURI.class(StardogRealmURI.java:96)
  while locating com.complexible.stardog.security.shiro.StardogRealmURI
    for parameter 3 at com.complexible.stardog.security.impl.SecureSystemSecurityManagerImpl.<init>(SecureSystemSecurityManagerImpl.java:81)
  while locating com.complexible.stardog.security.impl.SecureSystemSecurityManagerImpl
  at com.complexible.stardog.security.index.SecurityModule.configure(SecurityModule.java:97)
  while locating com.complexible.stardog.security.SecureSystemSecurityManager<org.openrdf.model.URI>
    for parameter 0 at com.complexible.stardog.security.impl.StardogSecurityManagerImpl.<init>(StardogSecurityManagerImpl.java:76)
  while locating com.complexible.stardog.security.impl.StardogSecurityManagerImpl
  at com.complexible.stardog.security.index.SecurityModule.configure(SecurityModule.java:99)
  while locating com.complexible.stardog.security.StardogSecurityManager
    for parameter 5 at com.complexible.stardog.StardogKernel.<init>(StardogKernel.java:195)
  at com.complexible.stardog.StardogKernel.class(StardogKernel.java:195)
  while locating com.complexible.stardog.StardogKernel
Caused by: java.lang.NullPointerException
at com.complexible.stardog.index.disk.btree.impl.BPlusTreeImpl.getStartPageID(BPlusTreeImpl.java:448)
at com.complexible.stardog.index.disk.btree.impl.BPlusTreeImpl.iterator(BPlusTreeImpl.java:558)
at com.complexible.stardog.index.disk.btree.impl.BPlusTreeImpl.iterator(BPlusTreeImpl.java:442)
at com.complexible.stardog.index.AbstractNaryIndex.iterator(AbstractNaryIndex.java:79)
at com.complexible.stardog.index.IteratorBuilder$ContextFirstTernaryBuilder.build(IteratorBuilder.java:655)
at com.complexible.stardog.index.IteratorBuilder.iterator(IteratorBuilder.java:183)
at com.complexible.stardog.security.shiro.StardogRealmURI.getSecurityIndexVersion(StardogRealmURI.java:342)
at com.complexible.stardog.security.shiro.StardogRealmURI.initializeSecurityIndex(StardogRealmURI.java:243)
at com.complexible.stardog.security.shiro.StardogRealmURI.<init>(StardogRealmURI.java:109)
at com.complexible.stardog.security.shiro.StardogRealmURI.<init>(StardogRealmURI.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:85)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
at com.complexible.stardog.protocols.server.StardogServer.start(StardogServer.java:80)
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:135)
at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:42)
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
at com.complexible.stardog.cli.admin.CLI.main(CLI.java:230)

2 errors

Mike Grove

unread,
Dec 30, 2013, 7:34:11 AM12/30/13
to stardog
On Sat, Dec 28, 2013 at 7:52 AM, <ehsan....@gmail.com> wrote:
I've had the same problem, my computer crashed and stardom is not starting. Here's the stack:
Guice provision errors:

Try rebuilding the database from the source data.

The upcoming 2.1 release includes some repair utilities that will make this easier in the future.

Cheers,

Mike
 
Reply all
Reply to author
Forward
0 new messages