PDA

View Full Version : Mondrian Eclipse Plugin



freshasp
11-23-2005, 04:15 AM
According to this (http://jpivot.sourceforge.net/mondrian-schema/) page there's an Eclipse Plug-in to edit Mondrian OLAP schema files.

Will this work with the version of Mondrian included in Pentaho?

Post edited by: freshasp, at: 11/23/2005 08:49

gmoran
11-23-2005, 04:51 AM
Hi Paul,

You can download the Mondrian schema plugin from Mondrian's sourceforge.net site - here is the URL that should take you directly to the file -

http://sourceforge.net/project/showfiles.php?group_id=58645&package_id=120580

And yes, the schema editor works with the version of Mondrian used in Pentaho.

regards,
Gretch

Post edited by: gmoran, at: 11/23/2005 08:55

andydempsey
05-01-2006, 01:40 PM
When I try to open up a new or existing schema, I get the following error:

!SESSION 2006-05-01 14:29:17.140 -----------------------------------------------
eclipse.buildId=M20060118-1600
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui.workbench 4 2 2006-05-01 14:29:22.484
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125)
at org.eclipse.jface.viewers.SelectionChangedEvent.(SelectionChangedEvent.java:46)
at net.sourceforge.mondrian.schema.Mondrian.presentation.MondrianEditor.setSelection(MondrianEditor.java:1320)
at net.sourceforge.mondrian.schema.Mondrian.presentation.MondrianEditor.handleActivate(MondrianEditor.java:437)
at net.sourceforge.mondrian.schema.Mondrian.presentation.MondrianEditor$1.partActivated(MondrianEditor.java:323)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:58)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:117)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2910)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:552)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:960)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:944)
at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2576)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

guzaldon
05-02-2006, 08:59 AM
I have been using the mondrian plugin since I started using pentaho. I get that same error, but the plug in still work fine and so does everything else. but also I don't always get it and when I do it's when the workbench is being loading. not when I open a schema.

Nic

jmax
07-19-2006, 11:54 PM
guzaldon wrote:

I have been using the mondrian plugin since I started using pentaho. I get that same error, but the plug in still work fine and so does everything else.

Instead when I try to open Mondrian schema file, Eclipse fails opening the page and throws this error:


java.lang.NullPointerException
at net.sourceforge.mondrian.schema.Mondrian.presentation.MondrianEditor.pageChange(MondrianEditor.java:993)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:670)
at net.sourceforge.mondrian.schema.Mondrian.presentation.MondrianEditor.createPages(MondrianEditor.java:943)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:272)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:591)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:367)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:555)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:285)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:266)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1140)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1093)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1312)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1278)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:453)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:101)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:440)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:110)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:214)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:204)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:805)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:705)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2390)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2325)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2317)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2303)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2298)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:284)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:276)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:183)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)

My Eclipse configuration:
- version is 3.2
- EMF + SDO build 2.2.0

I know that maybe this forum is not the best place for this question, but this thread was talking about this topic so ...

Thanks a lot

Max

Post edited by: jmax, at: 07/20/2006 03:56

guzaldon
07-20-2006, 09:59 AM
I cannot wait till the mondrian editor gets revamped. Uhmm I one thing I usually do is fully update Eclipse like a shoot gun.

I have used the mondrian editor in both 3.1 and 3.2 on suse 10.1 and the workbench in XP sp2 works fine with the plugin as well or it did at last I checked, So I'm not too sure why it's not working for you. Can you perhas state the OS your running.

One thing that I did notice is that you can only open .mondrian files with it.

Does this happen when you do anything with a .mondrian file or can you create a new file rename it to something.mondrian and try and open it after that. I'm not the most experienced with eclipse so it could just be magic for me.

Hope that helps,

Nic

chayden
10-23-2006, 09:58 AM
Hi,
I am having the same problem as jmax and was wondering if any one had resolved it.

jim_s
02-18-2007, 11:23 PM
Just a follow-up/hopeful-bump... Has anyone resolved the:
java.lang.NullPointerException
net.sourceforge.mondrian.schema.Mondrian.presentation.MondrianEditor.pageChange(MondrianEditor.java:993)

issue? I'm getting this when I try to open a .mondrian file - both a .mondrian copy of a working .xml file (ie, I can actively query against the defined objects) and a shell consisting only of:

<?xml version="1.0"?>
<Schema name="MySchema">
</Schema>

I'm running Eclipse 3.2.1 on XP, with EMF 2.2.1 and SDO 2.2.0, using JRE 1.5.0_09

Anyone have any ideas??

Thanks

wismed
02-20-2007, 12:36 PM
:confused:http://forums.pentaho.org/showthread.php?p=151933

jim_s
02-20-2007, 01:30 PM
Huh - the "Pentaho Cube Designer" seems to be the current UI for defining/editing the Mondrian OLAP config file. It has some limitations (no aggregation, no calculated members - read the User Guide in the downloads area), but it definitely beats starting from scratch. The designer and guide can be found at http://www.pentaho.org/download/latest.php

HTH,

Jim

wismed
02-20-2007, 06:19 PM
Thanks for the reply, but I have installed the plugin but as stated below, we are having problems getting it to open the .mondrian schemas. Even when you do a new, it won't open it up.

That's why I was confused about Julian's response...

Regards

jim_s
02-20-2007, 10:49 PM
wismed,
I hear you and understand - I wasted 2+ hrs trying to get the plugin working, too. I had the same experience - couldn't edit a known-working file, even w/o the unsupported items (<Param> tags and table attributes of <Property> elements, as outlined at http://jpivot.sourceforge.net/mondrian-schema/index.html), but all to no avail. (and I tried both .mondrian and .xml extensions on all) Couldn't create a new file, couldn't edit an empty shell, nothing. Seems to be some compatibility issue between the versions of the various components. But, having lost all that time, I found the Cube Designer, and while it is a little limited, it seems to do a good job of at least giving you an 80% starting point on the xml file.

Not saying the Cube Designer is better than the plugin (after all, I haven't even gotten the plugin to work!), but one works and one doesn't, so that's better in some ways... ;-)

Jim