<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Can you log a jira case for this? We fixed the previous issue, and your scenario is sufficiently different that it's probably a separate bug.&nbsp;<div><br></div><div>I wonder whether the multi-threaded nature of your application is causing this. If the list of columns in a star is changing, say because one connection is using a star for a query while another one is building a schema and adding columns to the same star, then that might explain it. I don't have the solution to the bug, but hopefully these remarks would give an engineer a clue where to look.</div><div><br></div><div>Julian</div><div><br><div><div>On Nov 15, 2013, at 3:43 AM, Hilario Fernandes &lt;<a href="mailto:hilario.fernandes@cortex-intelligence.com">hilario.fernandes@cortex-intelligence.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">So, i've been trying to isolate this issue and it has not been easy, but finally i've managed to get one run where i got the erros in a log i could use to present here. One thing to point out, this is not consistent. The sequence of queries that gave the error might not give it if i run it again on the same conditions with no change in the data. This is what is making it so hard to figure what's causing it.<div>
<br></div><div>The project i'm working is built uppon grails framework, there is a service in it that holds the olapConnection to run the queries. These are the startup parameters:</div><div><br></div><div><div>def connectionProperties = '' &lt;&lt; 'jdbc:mondrian:'</div>
<div>connectionProperties &lt;&lt; "Jdbc="jdbc:monetdb://host:50000/database;"</div><div>connectionProperties &lt;&lt; "JdbcUser=username;"</div><div>connectionProperties &lt;&lt; "JdbcPassword=password;"</div>
<div>connectionProperties &lt;&lt; "JdbcDrivers=nl.cwi.monetdb.jdbc.MonetDriver;"</div><div>connectionProperties &lt;&lt; "UseContentChecksum=true;"</div><div>connectionProperties &lt;&lt; "CatalogContent=&lt;Schema name=\"CUBES\"&gt;&lt;/Schema&gt;"</div>
</div><div><br></div><div><div>Class.forName("mondrian.olap4j.MondrianOlap4jDriver")</div><div>def connection = DriverManager.getConnection(connectionProperties)</div><div>def olapConnection = connection.unwrap(OlapConnection.class)<br>
</div></div><div><br></div><div><br></div><div>The cube schema is generated per analysis so we add it before the query and remove it after its completed ("INFO &nbsp;mondrian.MondrianBridge CURRENT CUBES:[]" in the log indicates the cubes in the global schema at that time). This is the code we use for that:</div>
<div><br></div><div><div>RolapSchema schema = getServerSchema(olapConnection)</div><div>schema.createCube(xml)<br></div><div>...</div><div>schema.removeCube(cubeId)</div></div><div><div><br></div><div><br></div></div><div>
Query execution is done with this code:</div><div><br></div><div>OlapStatement statement = olapConnection.createStatement()<br></div><div>statement.executeOlapQuery(query)<br></div><div><br></div><div><br></div><div>As for the log, i've added it here so the email is shorter:&nbsp;<a href="http://pastebin.com/Y7Z0Hi0b">http://pastebin.com/Y7Z0Hi0b</a></div>
<div><br></div><div>Any ideas are appreciated!</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 5:54 PM, Julian Hyde <span dir="ltr">&lt;<a href="mailto:julianhyde@gmail.com" target="_blank">julianhyde@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">This looks very much like&nbsp;<a href="http://jira.pentaho.com/browse/MONDRIAN-1047" target="_blank">http://jira.pentaho.com/browse/MONDRIAN-1047</a>. Worth checking whether we have regressed.<span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Julian</div></font></span></div><br>_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Hilario Fernandes<br></div>
</div></div>
_______________________________________________<br>Mondrian mailing list<br><a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>http://lists.pentaho.org/mailman/listinfo/mondrian<br></blockquote></div><br></div></body></html>