You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Marc Boorshtein <mb...@gmail.com> on 2013/12/27 17:28:05 UTC
ApacheDS fails to start after unclean shutdown
If I start and stop ApacheDS cleanly then I have no issues. But if
ApacheDS is shutdown abruptly (ie the jvm crashes) I can't re-start it with
the following Exception:
Exception in thread "main"
org.apache.directory.api.ldap.model.exception.LdapOtherException:
java.lang.Integer cannot be cast to java.lang.Long
at
org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
at
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1820)
at
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1248)
at com.tremolosecurity.server.MyVDServer.startServer(MyVDServer.java:269)
at com.tremolosecurity.server.Server.startMyVD(Server.java:376)
at com.tremolosecurity.server.Server.startServices(Server.java:357)
at com.tremolosecurity.server.Server.main(Server.java:585)
Caused by:
org.apache.directory.api.ldap.model.exception.LdapOtherException:
java.lang.Integer cannot be cast to java.lang.Long
at
org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
at
org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.addContextPartition(DefaultPartitionNexus.java:841)
at
org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.doInit(DefaultPartitionNexus.java:218)
at
org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
... 6 more
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast
to java.lang.Long
at
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.<init>(JdbmTable.java:166)
at
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.initTables(JdbmIndex.java:219)
at
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.init(JdbmIndex.java:170)
at
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.convertAndInit(JdbmPartition.java:453)
at
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.setupSystemIndices(AbstractBTreePartition.java:353)
at
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.doInit(AbstractBTreePartition.java:519)
at
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.doInit(JdbmPartition.java:153)
at
org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
... 9 more
Should I open a bug?
Thanks
Marc
Re: ApacheDS fails to start after unclean shutdown
Posted by Marc Boorshtein <mb...@gmail.com>.
> I know this is not a good news, but I hope to be able to get a working
> solution in the next two weeks. If so, we will immediately issue a release.
>
> That's pretty much where we are atm, and I'm sorry for that...
>
>
Emmanuel,
No worries and thanks for the quick update. I have a workaround, since
MyVD is 100% virtual I just blow away the instance directory on each start
so I'm OK. I'll look for the update when its available.
Thanks
Marc
Re: ApacheDS fails to start after unclean shutdown
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/27/13 5:58 PM, Marc Boorshtein a écrit :
> On Fri, Dec 27, 2013 at 11:57 AM, Emmanuel Lécharny <el...@gmail.com>wrote:
>
>> Le 12/27/13 5:28 PM, Marc Boorshtein a écrit :
>>> If I start and stop ApacheDS cleanly then I have no issues. But if
>>> ApacheDS is shutdown abruptly (ie the jvm crashes) I can't re-start it
>> with
>>> the following Exception:
>> Which version of ApacheDS ?
>>
>>
> 2.0.0M15
>
Ok, so the last one. This is a real problem with the current backend we
are using, and we are working on ficing it by simply replacing the
backend. I have spent an huge amount of time trying to add transaction
support, journal, etc in JDBM, to no avail...
At this point, the solution is to switch to Mavibot, but it's not ready
yet : we need to finish the transaction support in it, something I'm
currently working on. The storage itself is already working, we have
tested it, it's even faster than JDBM, but with no transaction support,
we won't have atomic updates in the backed (which means that if we have
a crash in the middle of an operation, the index may be in a wrong
state, with some index pointng to an entry which does not exist yet...).
I know this is not a good news, but I hope to be able to get a working
solution in the next two weeks. If so, we will immediately issue a release.
That's pretty much where we are atm, and I'm sorry for that...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: ApacheDS fails to start after unclean shutdown
Posted by Marc Boorshtein <mb...@gmail.com>.
On Fri, Dec 27, 2013 at 11:57 AM, Emmanuel Lécharny <el...@gmail.com>wrote:
> Le 12/27/13 5:28 PM, Marc Boorshtein a écrit :
> > If I start and stop ApacheDS cleanly then I have no issues. But if
> > ApacheDS is shutdown abruptly (ie the jvm crashes) I can't re-start it
> with
> > the following Exception:
>
> Which version of ApacheDS ?
>
>
2.0.0M15
Re: ApacheDS fails to start after unclean shutdown
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/27/13 5:28 PM, Marc Boorshtein a écrit :
> If I start and stop ApacheDS cleanly then I have no issues. But if
> ApacheDS is shutdown abruptly (ie the jvm crashes) I can't re-start it with
> the following Exception:
Which version of ApacheDS ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: ApacheDS fails to start after unclean shutdown
Posted by Kiran Ayyagari <ka...@apache.org>.
I think this was already fixed in the trunk.
On Fri, Dec 27, 2013 at 9:58 PM, Marc Boorshtein <mb...@gmail.com>wrote:
> If I start and stop ApacheDS cleanly then I have no issues. But if
> ApacheDS is shutdown abruptly (ie the jvm crashes) I can't re-start it with
> the following Exception:
>
> Exception in thread "main"
> org.apache.directory.api.ldap.model.exception.LdapOtherException:
> java.lang.Integer cannot be cast to java.lang.Long
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
> at
> org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1820)
> at
> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1248)
> at com.tremolosecurity.server.MyVDServer.startServer(MyVDServer.java:269)
> at com.tremolosecurity.server.Server.startMyVD(Server.java:376)
> at com.tremolosecurity.server.Server.startServices(Server.java:357)
> at com.tremolosecurity.server.Server.main(Server.java:585)
> Caused by:
> org.apache.directory.api.ldap.model.exception.LdapOtherException:
> java.lang.Integer cannot be cast to java.lang.Long
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
> at
> org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.addContextPartition(DefaultPartitionNexus.java:841)
> at
> org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.doInit(DefaultPartitionNexus.java:218)
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
> ... 6 more
> Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast
> to java.lang.Long
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.<init>(JdbmTable.java:166)
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.initTables(JdbmIndex.java:219)
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.init(JdbmIndex.java:170)
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.convertAndInit(JdbmPartition.java:453)
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.setupSystemIndices(AbstractBTreePartition.java:353)
> at
> org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.doInit(AbstractBTreePartition.java:519)
> at
> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.doInit(JdbmPartition.java:153)
> at
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
> ... 9 more
>
> Should I open a bug?
>
> Thanks
> Marc
>
--
Kiran Ayyagari
http://keydap.com