directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheong Chung Onn <chung...@greenfossil.com>
Subject Re: Apacheds 1.5.3 javax.naming.NamingException
Date Wed, 30 Jul 2008 14:46:22 GMT
The ldif doen't have any chinese characters embedded, however it does 
have jpegs data as photos  though. Btw, it worked on both apacheDS 1.5.1 
and openldap.

I have file a bug issue https://issues.apache.org/jira/browse/DIRSERVER-1213

Thanks for help.

Regards
chung-onn


 
Emmanuel Lecharny wrote:
> Hmmm...
>
> Sound like a pb with the data in your LDIF file. I'm pretty sure that 
> you are using chinese characters (which is ok), and I think we have 
> problems handling those values internally.
>
> Can you provide the LDIF file, if it does not contains any 
> confidential information ? (otherwise, can you strip the entry with 
> all the confidential infos, check that the server is still failing, 
> and paste it ?).
>
> Lat, not least, can you fill a JIRA with your problem ?
>
> Thanks !
>
> Cheong Chung Onn wrote:
>> Hi,
>>
>> I imported 2 ldif files (schema, data) into apacheDS 1.5.3 and 
>> everything work as per excepted, however when i shutdown server and 
>> launch it the second time i get a javax.naming.NamingException. When 
>> I repeat this using apacheDS 1.5.1 everything is well.
>>
>> Here's my env settings
>>     Java version 1.6.0_06
>>    OS: Ubuntu 8.04.1
>>
>> I have attached my server.xml
>>
>> Did I missed anything? Any help will be appreciated.
>>
>>
>> Here's the error exception stack trace
>>
>> Exception in thread "main" javax.naming.NamingException [Root 
>> exception is java.io.UTFDataFormatException]
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.getRaw(JdbmTable.java:1371)

>>
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.get(JdbmTable.java:314)

>>
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTable.get(JdbmMasterTable.java:139)

>>
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.lookup(JdbmStore.java:1115)

>>
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.getSuffixEntry(JdbmStore.java:1202)

>>
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.initSuffixEntry3(JdbmStore.java:445)

>>
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.init(JdbmStore.java:335)

>>
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.init(JdbmPartition.java:243)

>>
>>    at 
>> org.apache.directory.server.core.partition.DefaultPartitionNexus.addContextPartition(DefaultPartitionNexus.java:647)

>>
>>    at 
>> org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:318)

>>
>>    at 
>> org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1402)

>>
>>    at 
>> org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:775)

>>
>>    at 
>> org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java:130) 
>>
>>    at org.apache.directory.server.Service.init(Service.java:86)
>>    at org.apache.directory.server.UberjarMain.main(UberjarMain.java:56)
>> Caused by: java.io.UTFDataFormatException
>>    at 
>> java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java:3074)

>>
>>    at 
>> java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:3007)

>>
>>    at 
>> java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2820)

>>
>>    at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1051)
>>    at 
>> org.apache.directory.server.core.entry.ServerEntrySerializer.deserialize(ServerEntrySerializer.java:347)

>>
>>    at jdbm.btree.BPage.deserialize(BPage.java:1000)
>>    at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341)
>>    at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263)
>>    at jdbm.btree.BPage.loadBPage(BPage.java:826)
>>    at jdbm.btree.BPage.childBPage(BPage.java:816)
>>    at jdbm.btree.BPage.find(BPage.java:285)
>>    at jdbm.btree.BTree.find(BTree.java:407)
>>    at 
>> org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.getRaw(JdbmTable.java:1362)

>>
>>    ... 14 more
>>
>>
>> Regards
>> chung-onn
>>
>
>


Mime
View raw message