Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 4918 invoked from network); 26 Mar 2008 07:35:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 07:35:35 -0000 Received: (qmail 39510 invoked by uid 500); 26 Mar 2008 07:35:34 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 39475 invoked by uid 500); 26 Mar 2008 07:35:34 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 39464 invoked by uid 99); 26 Mar 2008 07:35:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 00:35:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 07:34:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5F79E234C0AC for ; Wed, 26 Mar 2008 00:33:24 -0700 (PDT) Message-ID: <1548466821.1206516804390.JavaMail.jira@brutus> Date: Wed, 26 Mar 2008 00:33:24 -0700 (PDT) From: "David Montag (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-1158) ClassCastException while handling binary value In-Reply-To: <1499593353.1206402444455.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Montag updated DIRSERVER-1158: ------------------------------------ Attachment: (was: ServerBinaryValueTest.java) > ClassCastException while handling binary value > ---------------------------------------------- > > Key: DIRSERVER-1158 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1158 > Project: Directory ApacheDS > Issue Type: Bug > Environment: r640455 of bigbang-with-dependencies, r640484 of studio trunk > Reporter: David Montag > Attachments: ServerBinaryValueTest.ldif > > > Setting an attribute to an octet string produces an exception on the server: > java.lang.ClassCastException: java.lang.String > at org.apache.directory.server.core.entry.ServerBinaryValue.normalize(ServerBinaryValue.java:190) > at org.apache.directory.server.core.entry.ServerBinaryValue.getNormalizedValueReference(ServerBinaryValue.java:234) > at org.apache.directory.server.core.entry.ServerBinaryValue.hashCode(ServerBinaryValue.java:476) > at java.util.HashMap.containsKey(HashMap.java:377) > at java.util.HashSet.contains(HashSet.java:182) > at org.apache.directory.server.core.entry.DefaultServerAttribute.add(DefaultServerAttribute.java:664) > at org.apache.directory.server.core.entry.DefaultServerAttribute.add(DefaultServerAttribute.java:775) > at org.apache.directory.server.core.entry.ServerEntryUtils.toServerAttribute(ServerEntryUtils.java:153) > at org.apache.directory.server.core.entry.ServerEntryUtils.toModification(ServerEntryUtils.java:418) > at org.apache.directory.server.core.entry.ServerEntryUtils.toServerModification(ServerEntryUtils.java:483) > at org.apache.directory.server.core.jndi.ServerDirContext.modifyAttributes(ServerDirContext.java:225) > at org.apache.directory.server.ldap.support.DefaultModifyHandler.modifyMessageReceived(DefaultModifyHandler.java:83) > at org.apache.directory.server.ldap.support.ModifyHandler.messageReceived(ModifyHandler.java:38) > at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:141) > at org.apache.directory.server.ldap.LdapServer$LdapProtocolHandler.messageReceived(LdapServer.java:1095) > at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570) > at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) > at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) > at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648) > at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58) > at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:180) > at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) > at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) > at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648) > at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220) > at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > The error occurs here: > normalizedValue = ( byte[] ) normalizer.normalize( getCopy() ); > See the attached test case. It also covers https://issues.apache.org/jira/browse/DIRSERVER-1156. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.