ariely78 / wabit

Automatically exported from code.google.com/p/wabit
GNU General Public License v3.0
0 stars 0 forks source link

Adding a Dimension causes NPE in OLAP query #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The following NPE was thrown when I was adding a 2nd dimension to the OLAP 
query. The Dimension has 2 differen hierarchies:

java.lang.NullPointerException
    at 
ca.sqlpower.wabit.olap.OlapResultSet.determineRowAxisColumns(OlapResultSet.
java:286)
    at 
ca.sqlpower.wabit.olap.OlapResultSet.populate(OlapResultSet.java:147)
    at 
ca.sqlpower.wabit.olap.OlapQuery.fireResultSetEvent(OlapQuery.java:496)
    at 
ca.sqlpower.wabit.olap.OlapQuery.executeOlapQuery(OlapQuery.java:361)
    at 
ca.sqlpower.wabit.swingui.olap.OlapGuiUtil$1.doStuff(OlapGuiUtil.java:53)
    at ca.sqlpower.swingui.SPSwingWorker.run(SPSwingWorker.java:104)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by bdietz.de on 11 Nov 2009 at 4:30

GoogleCodeExporter commented 8 years ago
I just found out some more details:
When expanding the OLAP connection in the left hand tree the users sees the 
(shared ?) 
dimensions underneath the cube but also separate from the cube. If you either 
Add one 
of the separate dimensions and then a measure (and also the other way around) 
to the 
OLAP query, you'll get this exception. There is no exception if you select the 
dimension that is underneath the cube.

Original comment by bdietz.de on 11 Nov 2009 at 4:37