directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-1381) problem using apacheds-tools.jar : ClassCastException during import
Date Thu, 23 Jul 2009 17:01:14 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734642#action_12734642
] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1381:
---------------------------------------------------

Hi Christophe,

The fix has been applied to the current trunk (Apache DS version 1.5.5-SNAPSHOT).

If you want to test the modification, you either do one of these two alternatives:
  - Checkout the latest trunk and build it (using our developer's guide)
  - Checkout the tag of the version you're currently using (1.5.4 I believe), apply the changes
to this branch and re-build it.

"directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/request/AddRequestDsml.java"
is in the "shared-dsml-parser" project, recently introduced in the trunk from Studio's SVN
repository.
It was not there when version 1.5.4 went out.

"directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequestCodec.java"
is in the shared-ldap project. The class has been renamed since version 1.5.4 went out, it
was named "AddRequest" before (at the same location).

Hope this helps.

> problem using apacheds-tools.jar : ClassCastException during import
> -------------------------------------------------------------------
>
>                 Key: DIRSERVER-1381
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1381
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: OS : Redhat entreprise linux 5
> java : jre-6u13-linux-i586
> ApacheDS 1.5
>            Reporter: Christophe DENIS
>            Assignee: Pierre-Arnaud Marcelot
>            Priority: Blocker
>             Fix For: 1.5.5
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Hi,
> when i try to use apacheds-tools.jar to make an import, I have ClassCastException.
> [epide_dev@unborn bin]$ java -jar apacheds-tools.jar import -e -f /epide/dev/dbs/apacheds/epide_dev_ldap/conf/test_groupe_spago.ldif
>        _                     _          ____  ____    _____           _
>       / \   _ __   __ _  ___| |__   ___|  _ \/ ___|  |_   _|__   ___ | |___
>      / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \    | |/ _ \ / _ \| / __|
>     / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |   | | (_) | (_) | \__ \
>    /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/    |_|\___/ \___/|_|___/
>            |_|
> log4j:WARN No appenders could be found for logger (org.apache.directory.shared.ldap.codec.bind.SimpleAuthentication).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main" java.lang.ClassCastException: org.apache.directory.shared.ldap.entry.client.ClientStringValue
cannot be cast to [B
>         at org.apache.directory.shared.ldap.codec.add.AddRequest.addAttributeValue(AddRequest.java:189)
>         at org.apache.directory.server.tools.ImportCommand.addEntry(ImportCommand.java:240)
>         at org.apache.directory.server.tools.ImportCommand.execute(ImportCommand.java:648)
>         at org.apache.directory.server.tools.ApachedsTools.main(ApachedsTools.java:116)
> if i try to import the group with eclipse plugin, the import work.
> i use apacheDS 1.5.4 on RHEL5
> someone have an idea?
> Thanks
> Christophe

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message