You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2014/03/09 08:44:43 UTC
[jira] [Updated] (DIRSERVER-1909) Integer cannot be cast to
java.lang.Long in JdbmTable prevents service start
[ https://issues.apache.org/jira/browse/DIRSERVER-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRSERVER-1909:
-----------------------------------------
Fix Version/s: (was: 2.0.0-RC1)
2.0.0-M16
> Integer cannot be cast to java.lang.Long in JdbmTable prevents service start
> ----------------------------------------------------------------------------
>
> Key: DIRSERVER-1909
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1909
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0-M15
> Reporter: Mark DeBusschere
> Fix For: 2.0.0-M16
>
>
> During server start objects are being de-serialized and a cast statement is resulting in exception prevent the server to start.
> org.apache.directory.server.UberjarMain] - Failed to start the service.
> org.apache.directory.api.ldap.model.exception.LdapOtherException: 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)
> The first constructor in JdbmTable has following
> count = ( Long ) recMan.fetch( recId );
> The second constructor handles this issue, hence similar logic should be applied in first constructor.
> Object value = recMan.fetch( recId );
> if ( value instanceof Integer )
> {
> count = ( ( Integer ) value ).longValue();
> }
> else
> {
> count = ( Long ) value;
> }
> Tested in M16 snapshot build and it resolved the cast exception.
--
This message was sent by Atlassian JIRA
(v6.2#6252)