Help in Libreoffice extension development
Pattabhi RK
t.pattabhi at gmail.com
Tue Mar 6 13:46:03 UTC 2018
Hi,
Thanks for the immediate response. As suggested by you I have ignored the
type selector wizard. But while run the project using Run Configuration >
LibreOffice Application I am getting the following error message:
"Unhandled event loop exception" in the plugin: org.eclipse.ui
The full stack trace is
java.lang.NullPointerException
at
org.libreoffice.ide.eclipse.core.gui.PackageContentSelector.getDefaultContent(Unknown
Source)
at
org.libreoffice.ide.eclipse.core.gui.PackageContentSelector.loadDefaults(Unknown
Source)
at
org.libreoffice.ide.eclipse.core.wizards.pages.UnoPackageExportPage.loadData(Unknown
Source)
at
org.libreoffice.ide.eclipse.core.wizards.pages.UnoPackageExportPage.createControl(Unknown
Source)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:176)
at
org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:688)
at
org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1128)
at
org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1181)
at
org.eclipse.jface.wizard.WizardDialog.lambda$3(WizardDialog.java:1169)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1169)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:864)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:413)
at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
at
org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:81)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5348)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1348)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4602)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4183)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
at org.eclipse.jface.window.Window.open(Window.java:794)
at
org.eclipse.ui.internal.handlers.WizardHandler$Export.executeHandler(WizardHandler.java:106)
at
org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:290)
at
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
at
org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at
org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:305)
at
org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:239)
at
org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at
org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
at
org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
at
org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:390)
at
org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:151)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at
org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5348)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1348)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4602)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4183)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:388)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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:1499)
Sorry for bothering the mailing list with my messages. I request your help.
Thank you very much for your kind help.
Thanks,
Pattabhi
Research Scholar,
AU-KBC Research Centre,
Anna University, Chennai, India.
On Tue, Mar 6, 2018 at 6:53 PM, Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
wrote:
> Hi Pattabhi,
>
> this is a known bug in LOEclipse: https://github.com/
> LibreOffice/loeclipse/issues/22
>
> You have two options:
>
> - Ignore the type selector (you can use the wizard just fine without
> it)
> - Fix the bug
>
> Regards
> Samuel
> Am 06.03.2018 um 14:12 schrieb Pattabhi RK:
>
>
> Hi,
>
> We are trying to develop a libreoffice extension for spellchecker. And
> to start with we have tried to develop HelloWorld extension as given in the
> link.
>
> https://wiki.openoffice.org/wiki/JavaEclipseTuto
>
> We are not able to load UNO types selector and we have got the following
> error:
>
>
> om.sun.star.registry.InvalidRegistryException: com.sun.star.registry.
> SimpleRegistry.open(file:///opt/libreoffice5.4/program/types.rdb):
> underlying Registry::open/create() = 6
> at com.sun.star.lib.uno.environments.remote.Job.
> remoteUnoRequestRaisedException(Job.java:158)
> at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:122)
> at com.sun.star.lib.uno.environments.remote.JobQueue.
> enter(JobQueue.java:312)
> at com.sun.star.lib.uno.environments.remote.JobQueue.
> enter(JobQueue.java:281)
> at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(
> JavaThreadPool.java:81)
> at com.sun.star.lib.uno.bridges.java_remote.java_remote_
> bridge.sendRequest(java_remote_bridge.java:618)
> at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$
> Handler.request(ProxyFactory.java:145)
> at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$
> Handler.invoke(ProxyFactory.java:129)
> at com.sun.proxy.$Proxy30.open(Unknown Source)
> at org.libreoffice.ide.eclipse.core.internal.office.TypesGetter.getTypesFromRegistry(Unknown
> Source)
> at org.libreoffice.ide.eclipse.core.internal.office.TypesGetter.queryTypes(Unknown
> Source)
> at org.libreoffice.ide.eclipse.core.internal.office.TypesGetter.getTypes(Unknown
> Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.libreoffice.ide.eclipse.core.office.TypesGetter.getTypes(Unknown
> Source)
> at org.libreoffice.ide.eclipse.core.unotypebrowser.UnoTypeProvider$
> UnoTypesGetterThread.run(Unknown Source)
>
>
> When we have loaded the LibreOffice and SDK using "Window > Preference >
> LibreOffice Path, we got message saying " Office bootstrapped"
>
> So we are not able to understand where we are going wrong. I request you
> to kindly help in resolving this problem.
>
>
> We are using Eclipse Oxygen 2, Libreoffice 5.4.5 and sdk 5.4.5. And using
> Ubuntu 14.04 LTS.
>
> Thanks,
> Pattabhi,
>
> Research Scholar,
> AU-KBC Research Centre,
> Anna University, Chennai, India.
>
>
>
>
>
>
> _______________________________________________
> LibreOffice mailing listLibreOffice at lists.freedesktop.orghttps://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>
> --
> Samuel Mehrbrodt
> Softwareentwickler LibreOffice
> –––
> CIB software GmbH
> Geschäftsstelle Hamburg
> Flachsland 10
> <https://maps.google.com/?q=Flachsland+10+%0D%0A++++++++22083+Hamburg&entry=gmail&source=g>
> 22083 Hamburg
> –––
> T +49 (40) / 28 48 42 -224
> F +49 (40) / 28 48 42 -100
>
> Samuel.Mehrbrodt at cib.de
> www.cib.de
> –––
> Sitz: München
> Registergericht München, HRB 123286
> Geschäftsführer: Dipl.-Ing. Ulrich Brandner
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20180306/2b346b88/attachment.html>
More information about the LibreOffice
mailing list