directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre-Arnaud Marcelot ...@marcelot.net>
Subject Re: nullpointerexcetion - APACHE Directory Studio 1.5.3
Date Fri, 18 Feb 2011 10:31:01 GMT
Hi again,

I was able to reproduce a pretty similar problem:

> java.lang.ArrayIndexOutOfBoundsException: 0
> at com.sun.beans.ObjectHandler.dequeueResult(ObjectHandler.java:139)
> at java.beans.XMLDecoder.readObject(XMLDecoder.java:201)
> at org.apache.directory.studio.ldapbrowser.core.utils.Utils.deserialize(Utils.java:214)
> at org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferences.load(BrowserCorePreferences.java:254)
> at org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferences.getBinaryAttributes(BrowserCorePreferences.java:79)
> at org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferences.getUpperCasedBinaryAttributeOidsAndNames(BrowserCorePreferences.java:58)
> at org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils.isBinary(SchemaUtils.java:481)
> at org.apache.directory.studio.ldapbrowser.core.BrowserConnectionListener.setBinaryAttributes(BrowserConnectionListener.java:137)
> at org.apache.directory.studio.ldapbrowser.core.BrowserConnectionListener.connectionOpened(BrowserConnectionListener.java:66)
> at org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.runNotification(OpenConnectionsRunnable.java:132)
> at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:120)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


To do so, I manually edited the preferences file for one of the LDAP Browser plugins ('ldapbrowser.core'
to be precise) to make it "wrong".
This file is available at "[User Home Directory]/.ApacheDirectoryStudio/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.apache.directory.studio.ldapbrowser.core.prefs".

Maybe, you manually edited this file too, or it got corrupted in some other way.

Removing it should resolve the issue. 
Regards,
Pierre-Arnaud
On vendredi 18 février 2011 at 09:35, Pierre-Arnaud Marcelot wrote: 
> Hi Krys,
> 
> Can you give us more information about your installation?
> What OS? Java vendor and version?
> Are you using the standalone RCP version of Studio or inside Eclipse?
> 
> Did you ever successfully connected to an LDAP server or did you have this error since
the initial installation?
> 
> Thanks,
> Pierre-Arnaud
> On vendredi 18 février 2011 at 07:53, krisrr3 R wrote:
> > 
> > Hi guys,
> > 
> >  I am facing the following error while trying to connect to the LDAP server. Other
users are able to connect without any issue and I am failing to understand what could be wrongly
configured.
> > 
> > 
> >  java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
> >  at com.sun.beans.ObjectHandler.dequeueResult(ObjectHandler.java:157)
> >  at java.beans.XMLDecoder.readObject(XMLDecoder.java:233)
> >  at org.apache.directory.studio.ldapbrowser.core.utils.Utils.deserialize(Utils.java:214)
> >  at org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferences.load(BrowserCorePreferences.java:254)
> >  at org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferences.getBinarySyntaxes(BrowserCorePreferences.java:153)
> >  at org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferences.getUpperCasedBinarySyntaxOids(BrowserCorePreferences.java:132)
> >  at org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils.isBinary(SchemaUtils.java:448)
> >  at org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils.isBinary(SchemaUtils.java:500)
> >  at org.apache.directory.studio.ldapbrowser.core.BrowserConnectionListener.setBinaryAttributes(BrowserConnectionListener.java:137)
> >  at org.apache.directory.studio.ldapbrowser.core.BrowserConnectionListener.connectionOpened(BrowserConnectionListener.java:66)
> >  at org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.runNotification(OpenConnectionsRunnable.java:132)
> >  at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:120)
> >  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> > 
> > 
> > Regards
> > Kris
> > 
> > 
> 

Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message