MDX error

0

Hi everybody,

Can someone please help me ?

I'm using JasperAnalysis 3.7.0. running under Windows XP.

I can load the foodmart.xml demo shema in JasperAnalysis, and I can open an MDX query window, with a "Mondrain Connection Successfull" message.

However when I want to generate the mdx by clicking at the MDX button, i got this message in the mondrian log window :

 

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.olap4j.mdx.AxisNode.deepCopy(AxisNode.java:166)
        at org.olap4j.mdx.SelectNode.deepCopy(SelectNode.java:238)
        at mondrian.gui.MdxQuery.generateMDXMenuItemActionPerformed(MdxQuery.jav
a:560)
        at mondrian.gui.MdxQuery.access$300(MdxQuery.java:91)
        at mondrian.gui.MdxQuery$4.actionPerformed(MdxQuery.java:274)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)



Post Edited by mespub at 02/18/2010 15:02
mespub's picture
49
Joined: Jan 21 2009 - 1:24pm
Last seen: 1 year 9 months ago

4 Answers:

0

As you might expect, that is a bug.

 

Try deleting the olap4j.jar in<JasperAnalysis Workbench>/lib, and put the attached jar in lin instead.

 

 

Sherman

Jaspersoft

swood's picture
2407
Joined: Jun 21 2006 - 12:48pm
Last seen: 6 years 9 months ago
0

HI

It works fine with this new jar.

 

Thanks a lot.

 

mespub's picture
49
Joined: Jan 21 2009 - 1:24pm
Last seen: 1 year 9 months ago
0

Hi

I have this bug with 3.7.0 under Linux, i replace the olap4j with the attachment and it works fine

Regards,

Christophe Chauvet

kryskool's picture
Joined: Sep 14 2009 - 1:02am
Last seen: 5 years 8 months ago
0

  Hi

I have this bug with 3.7.0 under Linux (Ubuntu 10.04).

I replace the olap4j with the attachment but it doesn't work for me.

What could be happening?

Regards,

Carlos

 

Code:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at mondrian.gui.MdxQuery.addDimensionToQuery(MdxQuery.java:636)
	at mondrian.gui.MdxQuery.generateMDXMenuItemActionPerformed(MdxQuery.java:562)
	at mondrian.gui.MdxQuery.access$300(MdxQuery.java:91)
	at mondrian.gui.MdxQuery$4.actionPerformed(MdxQuery.java:274)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6263)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6028)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
</td></tr></tbody></table>
carlosecarranza's picture
Joined: Sep 20 2010 - 11:23am
Last seen: 5 years 9 months ago
Feedback