directory-dev mailing list archives

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

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

Christophe DENIS commented on DIRSERVER-1381:
---------------------------------------------

hi,
thank you for the fix

i want to test your modification.

apacheds-tools.jar containt /org/apache/directory/server/tools/ImportCommand.java	
shared-ldap-0.9.12.jar containt /org/apache/directory/shared/ldap/codec/actions/ValueAction.java

what jar is directory/shared/trunk/dsml-parser/src/main/java/org/apache/directory/shared/dsmlv2/request/AddRequestDsml.java
what jar is directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequestCodec.java

thanks for you answer

> 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