You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Aleks M (JIRA)" <ji...@apache.org> on 2008/10/25 14:49:44 UTC

[jira] Created: (DIRSTUDIO-417) DSML export

DSML export
-----------

                 Key: DIRSTUDIO-417
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-417
             Project: Directory Studio
          Issue Type: Improvement
    Affects Versions: 1.3.0
         Environment: Windows XP SP3
            Reporter: Aleks M


It seems I can't export the same amount of data to DSML like I can to LDIF or CSV.

When exporting to CSV/LDIF there is a counter that tells me how many entries are exported, when exporting to DSML there is none.

I just did an export of 29048 entries with 4 attributes to an LDIF file and when I tried to do the same export to DSML I got the following error:

!ENTRY org.eclipse.core.jobs 4 2 2008-10-25 09:56:22.640
!MESSAGE An internal error occurred during: "DSML Export".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
	at java.nio.CharBuffer.wrap(Unknown Source)
	at java.nio.CharBuffer.wrap(Unknown Source)
	at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
	at java.lang.StringCoding.decode(Unknown Source)
	at java.lang.String.<init>(Unknown Source)
	at java.lang.String.<init>(Unknown Source)
	at com.sun.jndi.ldap.BerDecoder.parseStringWithTag(Unknown Source)
	at com.sun.jndi.ldap.LdapClient.parseAttributeValue(Unknown Source)
	at com.sun.jndi.ldap.LdapClient.parseAttribute(Unknown Source)
	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
	at com.sun.jndi.ldap.LdapCtx.getSearchReply(Unknown Source)
	at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(Unknown Source)
	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source)
	at org.apache.directory.studio.connection.core.io.jndi.StudioNamingEnumeration.hasMore(StudioNamingEnumeration.java:125)
	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlRequest(ExportDsmlJob.java:399)
	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:187)
	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Another error I got while exporting to DSML a couple of days ago, this was a small container with maybe 30 objects:

!ENTRY org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
!MESSAGE Error while exporting DSML
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(Unknown Source)
	at org.apache.directory.shared.ldap.ldif.LdifUtils.isLDIFSafe(LdifUtils.java:127)
	at org.apache.directory.studio.dsmlv2.ParserUtils.needsBase64Encoding(ParserUtils.java:130)
	at org.apache.directory.studio.dsmlv2.reponse.SearchResultEntryDsml.toDsml(SearchResultEntryDsml.java:92)
	at org.apache.directory.studio.dsmlv2.reponse.SearchResponseDsml.toDsml(SearchResponseDsml.java:98)
	at org.apache.directory.studio.dsmlv2.reponse.BatchResponseDsml.toDsml(BatchResponseDsml.java:124)
	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlResponse(ExportDsmlJob.java:233)
	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:184)
	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
!MESSAGE String index out of range: 0

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


[jira] Updated: (DIRSTUDIO-417) DSML export

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

Stefan Seelmann updated DIRSTUDIO-417:
--------------------------------------

    Fix Version/s:     (was: 1.5.0)

postponed

> DSML export
> -----------
>
>                 Key: DIRSTUDIO-417
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-417
>             Project: Directory Studio
>          Issue Type: Improvement
>    Affects Versions: 1.3.0
>         Environment: Windows XP SP3
>            Reporter: Aleks M
>            Assignee: Pierre-Arnaud Marcelot
>
> It seems I can't export the same amount of data to DSML like I can to LDIF or CSV.
> When exporting to CSV/LDIF there is a counter that tells me how many entries are exported, when exporting to DSML there is none.
> I just did an export of 29048 entries with 4 attributes to an LDIF file and when I tried to do the same export to DSML I got the following error:
> !ENTRY org.eclipse.core.jobs 4 2 2008-10-25 09:56:22.640
> !MESSAGE An internal error occurred during: "DSML Export".
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
> 	at java.lang.StringCoding.decode(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at com.sun.jndi.ldap.BerDecoder.parseStringWithTag(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttributeValue(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttribute(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapCtx.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source)
> 	at org.apache.directory.studio.connection.core.io.jndi.StudioNamingEnumeration.hasMore(StudioNamingEnumeration.java:125)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlRequest(ExportDsmlJob.java:399)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:187)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Another error I got while exporting to DSML a couple of days ago, this was a small container with maybe 30 objects:
> !ENTRY org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE Error while exporting DSML
> !STACK 0
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at java.lang.String.charAt(Unknown Source)
> 	at org.apache.directory.shared.ldap.ldif.LdifUtils.isLDIFSafe(LdifUtils.java:127)
> 	at org.apache.directory.studio.dsmlv2.ParserUtils.needsBase64Encoding(ParserUtils.java:130)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResultEntryDsml.toDsml(SearchResultEntryDsml.java:92)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResponseDsml.toDsml(SearchResponseDsml.java:98)
> 	at org.apache.directory.studio.dsmlv2.reponse.BatchResponseDsml.toDsml(BatchResponseDsml.java:124)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlResponse(ExportDsmlJob.java:233)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:184)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> !SUBENTRY 1 org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE String index out of range: 0

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


[jira] Commented: (DIRSTUDIO-417) DSML export

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

Emmanuel Lecharny commented on DIRSTUDIO-417:
---------------------------------------------

Workaround for the first error : increase the JVM memory.

http://directory.apache.org/studio/faqs.html, "How to increase the heap memory?"


> DSML export
> -----------
>
>                 Key: DIRSTUDIO-417
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-417
>             Project: Directory Studio
>          Issue Type: Improvement
>    Affects Versions: 1.3.0
>         Environment: Windows XP SP3
>            Reporter: Aleks M
>             Fix For: 1.4.0
>
>
> It seems I can't export the same amount of data to DSML like I can to LDIF or CSV.
> When exporting to CSV/LDIF there is a counter that tells me how many entries are exported, when exporting to DSML there is none.
> I just did an export of 29048 entries with 4 attributes to an LDIF file and when I tried to do the same export to DSML I got the following error:
> !ENTRY org.eclipse.core.jobs 4 2 2008-10-25 09:56:22.640
> !MESSAGE An internal error occurred during: "DSML Export".
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
> 	at java.lang.StringCoding.decode(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at com.sun.jndi.ldap.BerDecoder.parseStringWithTag(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttributeValue(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttribute(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapCtx.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source)
> 	at org.apache.directory.studio.connection.core.io.jndi.StudioNamingEnumeration.hasMore(StudioNamingEnumeration.java:125)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlRequest(ExportDsmlJob.java:399)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:187)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Another error I got while exporting to DSML a couple of days ago, this was a small container with maybe 30 objects:
> !ENTRY org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE Error while exporting DSML
> !STACK 0
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at java.lang.String.charAt(Unknown Source)
> 	at org.apache.directory.shared.ldap.ldif.LdifUtils.isLDIFSafe(LdifUtils.java:127)
> 	at org.apache.directory.studio.dsmlv2.ParserUtils.needsBase64Encoding(ParserUtils.java:130)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResultEntryDsml.toDsml(SearchResultEntryDsml.java:92)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResponseDsml.toDsml(SearchResponseDsml.java:98)
> 	at org.apache.directory.studio.dsmlv2.reponse.BatchResponseDsml.toDsml(BatchResponseDsml.java:124)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlResponse(ExportDsmlJob.java:233)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:184)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> !SUBENTRY 1 org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE String index out of range: 0

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


[jira] Commented: (DIRSTUDIO-417) DSML export

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

Emmanuel Lecharny commented on DIRSTUDIO-417:
---------------------------------------------

Thanks for the report.

It seems like we are storing all the elements in memory, before dumping them on disk. This is certainly not the best idea. We should open a stream, create the header, and store all the entry as soon as we receive them, not storing them in memory.

Regarding the second issue, I just fixed the code : there were a bad case not tested : checking an empty value with is isLDIFSafe() method.

> DSML export
> -----------
>
>                 Key: DIRSTUDIO-417
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-417
>             Project: Directory Studio
>          Issue Type: Improvement
>    Affects Versions: 1.3.0
>         Environment: Windows XP SP3
>            Reporter: Aleks M
>             Fix For: 1.4.0
>
>
> It seems I can't export the same amount of data to DSML like I can to LDIF or CSV.
> When exporting to CSV/LDIF there is a counter that tells me how many entries are exported, when exporting to DSML there is none.
> I just did an export of 29048 entries with 4 attributes to an LDIF file and when I tried to do the same export to DSML I got the following error:
> !ENTRY org.eclipse.core.jobs 4 2 2008-10-25 09:56:22.640
> !MESSAGE An internal error occurred during: "DSML Export".
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
> 	at java.lang.StringCoding.decode(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at com.sun.jndi.ldap.BerDecoder.parseStringWithTag(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttributeValue(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttribute(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapCtx.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source)
> 	at org.apache.directory.studio.connection.core.io.jndi.StudioNamingEnumeration.hasMore(StudioNamingEnumeration.java:125)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlRequest(ExportDsmlJob.java:399)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:187)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Another error I got while exporting to DSML a couple of days ago, this was a small container with maybe 30 objects:
> !ENTRY org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE Error while exporting DSML
> !STACK 0
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at java.lang.String.charAt(Unknown Source)
> 	at org.apache.directory.shared.ldap.ldif.LdifUtils.isLDIFSafe(LdifUtils.java:127)
> 	at org.apache.directory.studio.dsmlv2.ParserUtils.needsBase64Encoding(ParserUtils.java:130)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResultEntryDsml.toDsml(SearchResultEntryDsml.java:92)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResponseDsml.toDsml(SearchResponseDsml.java:98)
> 	at org.apache.directory.studio.dsmlv2.reponse.BatchResponseDsml.toDsml(BatchResponseDsml.java:124)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlResponse(ExportDsmlJob.java:233)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:184)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> !SUBENTRY 1 org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE String index out of range: 0

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


[jira] Updated: (DIRSTUDIO-417) DSML export

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

Emmanuel Lecharny updated DIRSTUDIO-417:
----------------------------------------

    Fix Version/s: 1.4.0

> DSML export
> -----------
>
>                 Key: DIRSTUDIO-417
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-417
>             Project: Directory Studio
>          Issue Type: Improvement
>    Affects Versions: 1.3.0
>         Environment: Windows XP SP3
>            Reporter: Aleks M
>             Fix For: 1.4.0
>
>
> It seems I can't export the same amount of data to DSML like I can to LDIF or CSV.
> When exporting to CSV/LDIF there is a counter that tells me how many entries are exported, when exporting to DSML there is none.
> I just did an export of 29048 entries with 4 attributes to an LDIF file and when I tried to do the same export to DSML I got the following error:
> !ENTRY org.eclipse.core.jobs 4 2 2008-10-25 09:56:22.640
> !MESSAGE An internal error occurred during: "DSML Export".
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
> 	at java.lang.StringCoding.decode(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at com.sun.jndi.ldap.BerDecoder.parseStringWithTag(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttributeValue(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttribute(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapCtx.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source)
> 	at org.apache.directory.studio.connection.core.io.jndi.StudioNamingEnumeration.hasMore(StudioNamingEnumeration.java:125)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlRequest(ExportDsmlJob.java:399)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:187)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Another error I got while exporting to DSML a couple of days ago, this was a small container with maybe 30 objects:
> !ENTRY org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE Error while exporting DSML
> !STACK 0
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at java.lang.String.charAt(Unknown Source)
> 	at org.apache.directory.shared.ldap.ldif.LdifUtils.isLDIFSafe(LdifUtils.java:127)
> 	at org.apache.directory.studio.dsmlv2.ParserUtils.needsBase64Encoding(ParserUtils.java:130)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResultEntryDsml.toDsml(SearchResultEntryDsml.java:92)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResponseDsml.toDsml(SearchResponseDsml.java:98)
> 	at org.apache.directory.studio.dsmlv2.reponse.BatchResponseDsml.toDsml(BatchResponseDsml.java:124)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlResponse(ExportDsmlJob.java:233)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:184)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> !SUBENTRY 1 org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE String index out of range: 0

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


[jira] Updated: (DIRSTUDIO-417) DSML export

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSTUDIO-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot updated DIRSTUDIO-417:
---------------------------------------------

    Fix Version/s:     (was: 1.4.0)
                   1.5.0
         Assignee: Pierre-Arnaud Marcelot

> DSML export
> -----------
>
>                 Key: DIRSTUDIO-417
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-417
>             Project: Directory Studio
>          Issue Type: Improvement
>    Affects Versions: 1.3.0
>         Environment: Windows XP SP3
>            Reporter: Aleks M
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 1.5.0
>
>
> It seems I can't export the same amount of data to DSML like I can to LDIF or CSV.
> When exporting to CSV/LDIF there is a counter that tells me how many entries are exported, when exporting to DSML there is none.
> I just did an export of 29048 entries with 4 attributes to an LDIF file and when I tried to do the same export to DSML I got the following error:
> !ENTRY org.eclipse.core.jobs 4 2 2008-10-25 09:56:22.640
> !MESSAGE An internal error occurred during: "DSML Export".
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.nio.CharBuffer.wrap(Unknown Source)
> 	at java.lang.StringCoding$StringDecoder.decode(Unknown Source)
> 	at java.lang.StringCoding.decode(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at java.lang.String.<init>(Unknown Source)
> 	at com.sun.jndi.ldap.BerDecoder.parseStringWithTag(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttributeValue(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.parseAttribute(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapClient.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapCtx.getSearchReply(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
> 	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source)
> 	at org.apache.directory.studio.connection.core.io.jndi.StudioNamingEnumeration.hasMore(StudioNamingEnumeration.java:125)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlRequest(ExportDsmlJob.java:399)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:187)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Another error I got while exporting to DSML a couple of days ago, this was a small container with maybe 30 objects:
> !ENTRY org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE Error while exporting DSML
> !STACK 0
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at java.lang.String.charAt(Unknown Source)
> 	at org.apache.directory.shared.ldap.ldif.LdifUtils.isLDIFSafe(LdifUtils.java:127)
> 	at org.apache.directory.studio.dsmlv2.ParserUtils.needsBase64Encoding(ParserUtils.java:130)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResultEntryDsml.toDsml(SearchResultEntryDsml.java:92)
> 	at org.apache.directory.studio.dsmlv2.reponse.SearchResponseDsml.toDsml(SearchResponseDsml.java:98)
> 	at org.apache.directory.studio.dsmlv2.reponse.BatchResponseDsml.toDsml(BatchResponseDsml.java:124)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.processAsDsmlResponse(ExportDsmlJob.java:233)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ExportDsmlJob.executeAsyncJob(ExportDsmlJob.java:184)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> !SUBENTRY 1 org.apache.directory.studio.connection.core 4 4 2008-10-23 14:03:18.515
> !MESSAGE String index out of range: 0

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