ariely78 / wabit

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

Error after trying to use a previously incorrect Mondrian connection after correcting it #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an in-process Mondrian connection with the Mondrian schema path
pointing to a non-existent file
2. Create a new project with that Mondrian connection and try to choose a
cube. You'll get an error explaining that your Mondrian schema file doesn't
exist. So exit that window and return to the opening menu.
3. Open your Mondrian connection and correct the schema path
4. Create a new project with that connection again. Try to choose a cube.

What is the expected output? What do you see instead?
I would expect the cube chooser to just work again. Instead, I get an error
with the following stacktrace. You have to restart the application to try
to use that Mondrian connection.

java.lang.RuntimeException: javax.naming.NameAlreadyBoundException: Name
foodmart already bound.  Use rebind() to override
    at
ca.sqlpower.wabit.swingui.olap.Olap4jGuiQueryPanel$2.actionPerformed(Olap4jGuiQu
eryPanel.java:227)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
    at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
    at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:236)
    at java.awt.Component.processMouseEvent(Component.java:5602)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5367)
    at java.awt.Container.processEvent(Container.java:2010)
    at java.awt.Component.dispatchEventImpl(Component.java:4068)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    at java.awt.Container.dispatchEventImpl(Container.java:2054)
    at java.awt.Window.dispatchEventImpl(Window.java:1801)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
69)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: javax.naming.NameAlreadyBoundException: Name foodmart already
bound.  Use rebind() to override
    at org.osjava.sj.jndi.AbstractContext.bind(AbstractContext.java:330)
    at org.osjava.sj.jndi.AbstractContext.bind(AbstractContext.java:345)
    at javax.naming.InitialContext.bind(InitialContext.java:359)
    at ca.sqlpower.wabit.olap.OlapQuery.createOlapConnection(OlapQuery.java:214)
    at
ca.sqlpower.wabit.swingui.olap.Olap4jGuiQueryPanel$2.actionPerformed(Olap4jGuiQu
eryPanel.java:223)
    ... 24 more

Original issue reported on code.google.com by mo.j...@gmail.com on 9 Jun 2009 at 8:55