You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Matthew Melendy <mm...@cs.unm.edu> on 2023/03/02 17:02:00 UTC

Configuring Directory Server AM27 snapshot

To anyone who is testing Directory Server AM27 snapshot (build 118 or other)

Could you share how you are configuring and accessing it?

I've tried several builds of Directory Studio for Mac (build 214 Dec 16 2022, build 219 Jan 20 2023), but they all give me the same error "Index 0 out of bounds for length 0" whenever I bring up the configuration page. Full error from log is shown below.

Sincerely,

Matthew Melendy

IT Services Specialist
CS System Services Group
FEC 3550, University of New Mexico

---


!SESSION 2023-03-02 09:45:04.446 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.18
java.vendor=Eclipse Adoptium
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  /studio-rcp/resources/icons/linux/studio.xpm -keyring /Users/username/.eclipse_keyring
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 /studio-rcp/resources/icons/linux/studio.xpm -keyring /Users/username/.eclipse_keyring

!ENTRY org.eclipse.ui.workbench 4 2 2023-03-02 09:45:42.251
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
	at org.apache.directory.studio.apacheds.configuration.editor.OverviewPage.refreshUI(OverviewPage.java:713)
	at org.apache.directory.studio.apacheds.configuration.editor.ServerConfigurationEditor.pageChanged(ServerConfigurationEditor.java:124)
	at org.eclipse.ui.part.MultiPageEditorPart$5.run(MultiPageEditorPart.java:1231)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
	at org.eclipse.ui.part.MultiPageEditorPart.firePageChanged(MultiPageEditorPart.java:1228)
	at org.eclipse.ui.part.MultiPageEditorPart.pageChange(MultiPageEditorPart.java:834)
	at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:501)
	at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1032)
	at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:612)
	at org.apache.directory.studio.apacheds.configuration.editor.ServerConfigurationEditor.hideLoadingPageAndDisplayConfigPages(ServerConfigurationEditor.java:421)
	at org.apache.directory.studio.apacheds.configuration.editor.ServerConfigurationEditor.configurationLoaded(ServerConfigurationEditor.java:370)
	at org.apache.directory.studio.apacheds.configuration.jobs.LoadConfigurationRunnable$1.run(LoadConfigurationRunnable.java:144)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4181)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3841)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
	at org.apache.directory.studio.Application.start(Application.java:51)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1461)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@directory.apache.org
For additional commands, e-mail: users-help@directory.apache.org


Re: Configuring Directory Server AM27 snapshot

Posted by Matthew Melendy <mm...@cs.unm.edu>.
Emmanuel,

I found the .ApacheDirectoryStudio/.metadata/.plugins/org.apache.directory.studio.ldapservers/servers directory you mentioned on my client computer (a Mac), but it is empty.

I should maybe have mentioned that we are testing Directory Server as a standalone server, not as an embedded server launched from inside Directory Studio. Would that make a difference?

Here's our setup:

Server computer (headless)
- OS - Ubuntu 22 LTS (x64)
- Java - Temurin JDK 11.0.18+10
- Apache Directory Server - snapshot build #118 (August 13 2021), default installation, so far unchanged

Client computer (used for management)
- OS - MacOS 12.6.3 (JavaM1)
- Java - Temurin JDK 11.0.18+10
- Apache Directory Studio - snapshot build #214 (Dec 16 2022)

We do not use Kerberos at our site.

My Directory Studio build #214 instance is able to configure our AM26 Directory Server installations without any issues. It just gives the "Index 0 out of bounds for length 0" when connecting to our test AM27 Directory Server.

I will email you the server configuration that I have, from /var/lib/apacheds-2.0.0.AM27-SNAPSHOT/default/conf/ , along with my best guess as the client Directory Studio configurations (with passwords masked).

Thanks for offering to take a look, I appreciate it.

Sincerely,

Matthew Melendy

IT Services Specialist
CS System Services Group
FEC 3550, University of New Mexico


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@directory.apache.org
For additional commands, e-mail: users-help@directory.apache.org


Re: Configuring Directory Server AM27 snapshot

Posted by Emmanuel Lécharny <el...@gmail.com>.
Hi Matthew,

this error is an indication that the Kerberos server is wrongly configured.

Can you post the server configuration file ?

(Note: the configuration is stored in 
.ApacheDirectoryStudio/.metadata/.plugins/org.apache.directory.studio.ldapservers/servers/<some 
long identifier>/conf. This is a directory with lots of sub-dirs and 
files, I would need all of them. PS: don't try to post a mail to the 
mailing list with an attachement, it won't pass through. Eventually, 
send it to me directly)

On 02/03/2023 18:02, Matthew Melendy wrote:
> To anyone who is testing Directory Server AM27 snapshot (build 118 or 
> other)
> 
> Could you share how you are configuring and accessing it?
> 
> I've tried several builds of Directory Studio for Mac (build 214 Dec 16 
> 2022, build 219 Jan 20 2023), but they all give me the same error "Index 
> 0 out of bounds for length 0" whenever I bring up the configuration 
> page. Full error from log is shown below.
> 
> Sincerely,
> 
> Matthew Melendy
> 
> IT Services Specialist
> CS System Services Group
> FEC 3550, University of New Mexico
> 
> ---
> 
> 
> !SESSION 2023-03-02 09:45:04.446 
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=11.0.18
> java.vendor=Eclipse Adoptium
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
> Framework arguments:  /studio-rcp/resources/icons/linux/studio.xpm 
> -keyring /Users/username/.eclipse_keyring
> Command-line arguments:  -os macosx -ws cocoa -arch x86_64 
> /studio-rcp/resources/icons/linux/studio.xpm -keyring 
> /Users/username/.eclipse_keyring
> 
> !ENTRY org.eclipse.ui.workbench 4 2 2023-03-02 09:45:42.251
> !MESSAGE Problems occurred when invoking code from plug-in: 
> "org.eclipse.ui.workbench".
> !STACK 0
> java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for 
> length 0
>      at 
> org.apache.directory.studio.apacheds.configuration.editor.OverviewPage.refreshUI(OverviewPage.java:713)
>      at 
> org.apache.directory.studio.apacheds.configuration.editor.ServerConfigurationEditor.pageChanged(ServerConfigurationEditor.java:124)
>      at 
> org.eclipse.ui.part.MultiPageEditorPart$5.run(MultiPageEditorPart.java:1231)
>      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
>      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
>      at 
> org.eclipse.ui.part.MultiPageEditorPart.firePageChanged(MultiPageEditorPart.java:1228)
>      at 
> org.eclipse.ui.part.MultiPageEditorPart.pageChange(MultiPageEditorPart.java:834)
>      at 
> org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:501)
>      at 
> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1032)
>      at 
> org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:612)
>      at 
> org.apache.directory.studio.apacheds.configuration.editor.ServerConfigurationEditor.hideLoadingPageAndDisplayConfigPages(ServerConfigurationEditor.java:421)
>      at 
> org.apache.directory.studio.apacheds.configuration.editor.ServerConfigurationEditor.configurationLoaded(ServerConfigurationEditor.java:370)
>      at 
> org.apache.directory.studio.apacheds.configuration.jobs.LoadConfigurationRunnable$1.run(LoadConfigurationRunnable.java:144)
>      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
>      at 
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
>      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4181)
>      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3841)
>      at 
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
>      at 
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
>      at 
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
>      at 
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
>      at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
>      at 
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
>      at 
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
>      at 
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
>      at org.apache.directory.studio.Application.start(Application.java:51)
>      at 
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
>      at 
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
>      at 
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
>      at 
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
>      at 
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
>      at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>      at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>      at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
>      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
>      at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@directory.apache.org
> For additional commands, e-mail: users-help@directory.apache.org
> 

-- 
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecharny@busit.com https://www.busit.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@directory.apache.org
For additional commands, e-mail: users-help@directory.apache.org