You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Cheong Chung Onn (JIRA)" <ji...@apache.org> on 2008/07/30 16:35:32 UTC

[jira] Created: (DIRSERVER-1213) javax.naming.NamingException

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


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.


[jira] Updated: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Cheong Chung Onn (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheong Chung Onn updated DIRSERVER-1213:
----------------------------------------

    Attachment: server.xml
                people-simpsons.ldif
                schema.ldif

> 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.


[jira] Closed: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-1213.
----------------------------------------


closed

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618377#action_12618377 ] 

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

Can you give the following informations :
- used JVM
- local encoding
- OS

thanks !

> 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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Cheong Chung Onn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618400#action_12618400 ] 

Cheong Chung Onn commented on DIRSERVER-1213:
---------------------------------------------

Sorry i missed out the locale . It is LANG="en_SG.UTF-8"


> 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.


[jira] Resolved: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRSERVER-1213.
------------------------------------------

    Resolution: Fixed

Fixed in http://svn.apache.org/viewvc?rev=686316&view=rev

The problem was that binay attributes with a length > MAX_BLOCK_SIZE of an ObjectInputStream (1024 bytes) were not read completely (they were read up to the 1024 byte minus the already read bytes before the value, so something like 450 bytes were read).

Using in.readFully( buffer ) makes it work fine.

Another bug as been fixing in the serialization of binary values which does not have a normalizer method (like JpegPhoto) : an extra bollean was written, but not read.



> 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
>            Assignee: Emmanuel Lecharny
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622744#action_12622744 ] 

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

I _think_ that this issue will be fixed by http://svn.apache.org/viewvc?rev=686082&view=rev, as I rewrote the full data serialization. To be double checked, may be by adding a unit test with the attached sample

> 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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623211#action_12623211 ] 

Alex Karasulu commented on DIRSERVER-1213:
------------------------------------------

Wow, that's a great job you did here Emmanuel.  This is definitely a painful thing to have to debug.  Glad you nixed this problem.  Many people are still in the dark in the java community about this same bug that several people are complaining about in blogs and forums.

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Cheong Chung Onn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623257#action_12623257 ] 

Cheong Chung Onn commented on DIRSERVER-1213:
---------------------------------------------

Hi Emmanuel,

I am very impressed with your super quick response and you taking extra effort in preparing the installers for me. In many ways your support has far exceeded my expectation especially in an opensource forum! THANK YOU!

Here's the results of my test.

It didn't work immediately as i would like it ;)
However I traced the problem to the changes in namespace of the server.xml. After fixing this, it just Works!

Btw, i have been using the archive instead of installer version, that's because we are using apacheds as an embedded service. I tried to "extract" the jars from the APACHEDS_HOME and ran it using apacheds.sh from 1.5.3 - but failed because of the missing uberjar. I will try again later. 

If it is not too much of a trouble, could you please enlighten me on how to correctly build the project using maven else I will wait for the release of 1.5.4. 

Thanks once again for you super support.


> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623654#action_12623654 ] 

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

We just moved the bigbang branch to trunk.

In order to build the trunk, here are the steps to follow :
- get Maven 2.0.9 installed
- get a Java 5 JVM installed
- check out the trunk : svn co http://svn.apache.org/repos/asf/directory/apacheds/trunk-with-dependencies 1.5.4-SNAPSHOT
- if you had a previously built version of ADS, go to project/resources and run superclean.sh 
- then go to the 1.5.4-SNAPSHOT directory, and do a mvn clean install (should takes minutes)
- if you want to build some installers, go to the installers sub-project, into apacheds directory, and run mvn -Pserver-installer install

Should do the trick.

I think that everyting is explained on this page : http://cwiki.apache.org/confluence/display/DIRxSRVx11/Building+trunks

Just let us know if there are some missing or incorrect  parts

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623088#action_12623088 ] 

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

I don't have any date for 1.5.4. It's a matter of weeks.

You can build a snapshot, using the branch BigBang ("svn co http://svn.apache.org/repos/asf/directory/apacheds/branches/bigbang-with-dependencies ads" and then following instructions on page http://directory.apache.org/apacheds/1.5/building-trunks.html - if they are not totally outdated ;)

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Cheong Chung Onn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623718#action_12623718 ] 

Cheong Chung Onn commented on DIRSERVER-1213:
---------------------------------------------

Hi Emmanuel,

Thanks for the tips, i managed to do the build.





> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Updated: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1213:
-----------------------------------------

    Fix Version/s: 1.5.4

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622939#action_12622939 ] 

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

After a full day of investigation, I have some found that :
- this happens only when serializing binary values
- and only if the stored binary data is > 1024 bytes

It seems that using ObjectOutputStream to write bytes above the MAX_BLOCK_SIZE (1024 bytes) lead to some extra bytes to be added (a kind of block header). The big problem is that those extra bytes simply FU the read operation...

I have to find a solution to this problem.

> 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
>            Assignee: Emmanuel Lecharny
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618378#action_12618378 ] 

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

Forget about the JVM and OS :
Java version 1.6.0_06
   OS: Ubuntu 8.04.1 


> 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.


[jira] Assigned: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny reassigned DIRSERVER-1213:
--------------------------------------------

    Assignee: Emmanuel Lecharny

> 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
>            Assignee: Emmanuel Lecharny
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Cheong Chung Onn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623071#action_12623071 ] 

Cheong Chung Onn commented on DIRSERVER-1213:
---------------------------------------------

Hi Emmanuel,

Great job at nailing the bug! Thanks!

Any idea when the release of 1.5.4? Would it be possible that i could build a snapshot while waiting for the release if it is not going to release any sooner?

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Cheong Chung Onn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623107#action_12623107 ] 

Cheong Chung Onn commented on DIRSERVER-1213:
---------------------------------------------

Hi Emmanuel,

I observed that the release duration between 1.5.2 to 1.5.3 was months 
:) Anyway, i will have to wait as I am not success in building the 
snapshot, the building process failed because of 24 testcase failed.

Thanks for the help once again.

Chung-Onn




> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623203#action_12623203 ] 

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

I have pushed the installers for ubuntu here :
http://people.apache.org/~elecharny/

Just install it and give us some feedback.

Thanks !

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Cheong Chung Onn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623265#action_12623265 ] 

Cheong Chung Onn commented on DIRSERVER-1213:
---------------------------------------------

Hi Emmanuel,

Seems like there is a fair amount of refactoring done since 1.5.3, reckon we will have to wait till things are more settled before we work on embedding apacheds into our app again. Meanwhile we will stick to 1.5.1 as an embedded service.

Fyi, below are the changes we detected so far

These are the classes in 1.5.3 that we used
============================
import org.apache.directory.server.core.partition.impl.btree.Index;
import org.apache.directory.server.ldap.LdapServer;
import org.apache.directory.server.ldap.handlers.bind.CramMd5MechanismHandler;
import org.apache.directory.server.ldap.handlers.bind.DigestMd5MechanismHandler;
import org.apache.directory.server.ldap.handlers.bind.GssapiMechanismHandler;
import org.apache.directory.server.ldap.handlers.bind.MechanismHandler;
import org.apache.directory.server.ldap.handlers.bind.SimpleMechanismHandler;
import org.apache.directory.server.ldap.handlers.bind.ntlm.NtlmMechanismHandler;
import org.apache.directory.server.ldap.handlers.extended.StartTlsHandler;
import org.apache.directory.server.ldap.handlers.extended.StoredProcedureExtendedOperationHandler;

These are the new classes found in the "newldap" package
=====================================
import org.apache.directory.server.newldap.LdapServer;
import org.apache.directory.server.newldap.handlers.bind.MechanismHandler;
import org.apache.directory.server.newldap.handlers.bind.SimpleMechanismHandler;
import org.apache.directory.server.newldap.handlers.bind.cramMD5.CramMd5MechanismHandler;
import org.apache.directory.server.newldap.handlers.bind.digestMD5.DigestMd5MechanismHandler;
import org.apache.directory.server.newldap.handlers.bind.gssapi.GssapiMechanismHandler;
import org.apache.directory.server.newldap.handlers.bind.ntlm.NtlmMechanismHandler;
import org.apache.directory.server.newldap.handlers.extended.StartTlsHandler;
import org.apache.directory.server.newldap.handlers.extended.StoredProcedureExtendedOperationHandler;

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>         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.


[jira] Commented: (DIRSERVER-1213) javax.naming.NamingException

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ 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.