With XMLA diver:
when the server is shutdown.
olapConnection.getSchema(); throws java.lang.RuntimeException
That should be an OlapException.
API:
/
Returns the current {@link org.olap4j.metadata.Schema} of this
connection.
@return current Schema
@throws OlapException if database error occurs
/
Schema getSchema() throws OlapException;
See http://sourceforge.net/forum/forum.php?thread_id=3331143&forum_id=577988