<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6001.18099" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=336335116-06102008><FONT face=Verdana 
color=#000080 size=2>I introduced that test when I fixed mondrian bug 2046318, 
<A 
href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2046318&amp;group_id=35302&amp;atid=414613"><FONT 
face="Times New Roman" size=3>olap4j driver should throw OlapException on 
validate error</FONT></A>.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=336335116-06102008><FONT face=Verdana 
color=#000080 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=336335116-06102008><FONT face=Verdana 
color=#000080 size=2>It is fixed in mondrian, just not released 
yet.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=336335116-06102008><FONT face=Verdana 
color=#000080 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=336335116-06102008><FONT face=Verdana 
color=#000080 size=2>Julian</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=336335116-06102008></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B> 
mondrian-bounces@pentaho.org [mailto:mondrian-bounces@pentaho.org] <B>On Behalf 
Of </B>Luc Boudreau<BR><B>Sent:</B> Monday, October 06, 2008 9:30 
AM<BR><B>To:</B> mondrian@pentaho.org<BR><B>Subject:</B> [Mondrian] Re: 
ParserSym error in 3.0.4.11371<BR></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV dir=ltr>Hello again,<BR><BR>Nevermind that. I got the source from the 
  distribution instead of directly from perforce and now it works.<BR><BR>But 
  now, I confirmed that there were some changes in this release that affects the 
  Olap4j test suite. The Mondrian Olap4j driver throws MondrianException where 
  an OlapException is expected by the API. This happens in Olap4j's 
  ConnectionTest.testValidateError, line 1787. It waits for an OlapException but 
  gets a MondrianException instead. Since MondrianException is a subclass of 
  RuntimeException, it gets through all Olap4jMondrianDriver error handling 
  facilities right back to the end-user. This is a no-no and an infringement of 
  the current Olap4j API.<BR><BR>The violation exact point is in 
  MondrianOlap4jonnection.validateSelect(), line 614. The method signature says 
  it throws only OlapExceptions, but as I said before, the call to parseQuery() 
  at line 614 triggers a subclass of RuntimeException to be thrown, thus 
  violating the API.<BR><BR>This is reproductible with Mondrian 3.0.4 and Olap4j 
  head or whatever recision you want as a matter of fact. 
  <BR><BR>Luc<BR><BR><BR><BR><BR>
  <DIV class=gmail_quote>On Mon, Oct 6, 2008 at 11:59 AM, Luc Boudreau <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:lucboudreau@gmail.com">lucboudreau@gmail.com</A>&gt;</SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV dir=ltr><BR>Hello,<BR><BR>I'm trying to build Mondrian changeset 
    3.0.4.11371 from source but i get "ParserSym.BANG cannot be resolved" in 
    mondrian-3.0/src/main/mondrian/olap/Scanner.java, line 721.<BR><BR>Since 
    this file is generated at build time, i'm asking the developer's list. What 
    did I do wrong?! Howcome it didn't get generated properly? What are the 
    workarrounds?<BR><BR clear=all><BR>-- 
    <BR>_____________________________<BR>Luc 
  Boudreau<BR></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- 
  <BR>_____________________________<BR>Luc 
Boudreau<BR></DIV></BLOCKQUOTE></BODY></HTML>