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

Emmanuel Lecharny commented on DIRSERVER-1213:
----------------------------------------------

Sadly, I get the very same error :(

It seems that the entry is overridden by some other entry.

java.io.UTFDataFormatException
        at 
java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java:3026)
        at 
java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:2951)
        at 
java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2764)
        at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1032)
        at 
org.apache.directory.server.core.entry.DefaultServerEntry.deserialize(DefaultServerEntry.java:2384)
        at 
org.apache.directory.server.core.entry.ServerEntrySerializer.deserialize(ServerEntrySerializer.java:150)
        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.BTree.getRoot(BTree.java:525)
        at jdbm.btree.BTree.insert(BTree.java:308)
        at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:578)
        at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTable.put(JdbmMasterTable.java:167)
        at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1102)
        at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.initSuffixEntry3(JdbmStore.java:431)
        at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.init(JdbmStore.java:303)
        at 
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.init(JdbmPartition.java:249)
        at 
org.apache.directory.server.core.partition.DefaultPartitionNexus.addContextPartition(DefaultPartitionNexus.java:660)
        at 
org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:327)
        at 
org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1383)
        at 
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:838)
        at 
org.apache.directory.server.configuration.ApacheDSTest.testLdifLoading(ApacheDSTest.java:67)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
        at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

> javax.naming.NamingException 
> -----------------------------
>
>                 Key: DIRSERVER-1213
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1213
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.3
>         Environment: Java 1.6.0_06
> Ubuntu x86 8.04.1
>            Reporter: Cheong Chung Onn
>         Attachments: people-simpsons.ldif, schema.ldif, server.xml
>
>
> 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 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

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

Reply via email to