[jira] [Commented] (DIRAPI-85) Provide a class allowing 'parent-first' sorting of entries from a search result
[ https://issues.apache.org/jira/browse/DIRAPI-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13857373#comment-13857373 ] Pierre-Arnaud Marcelot commented on DIRAPI-85: -- Awesome Kiran! :) Provide a class allowing 'parent-first' sorting of entries from a search result --- Key: DIRAPI-85 URL: https://issues.apache.org/jira/browse/DIRAPI-85 Project: Directory Client API Issue Type: New Feature Reporter: Pierre-Arnaud Marcelot Assignee: Pierre-Arnaud Marcelot Fix For: 1.0.0-RC1 Provide a class allowing 'parent-first' sorting of entries from a search result. -- This message was sent by Atlassian JIRA (v6.1.5#6160)
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
I think this was already fixed in the trunk. On Fri, Dec 27, 2013 at 9:58 PM, Marc Boorshtein mboorsht...@gmail.comwrote: 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
Re: ApacheDS fails to start after unclean shutdown
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
On Fri, Dec 27, 2013 at 11:57 AM, Emmanuel Lécharny elecha...@gmail.comwrote: 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
Le 12/27/13 5:58 PM, Marc Boorshtein a écrit : On Fri, Dec 27, 2013 at 11:57 AM, Emmanuel Lécharny elecha...@gmail.comwrote: 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
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