title: Error evaluating expression with multiple Database in iReport
body: <p>I need to generate the report using iReport and I am trying to get the data from 2 different databases. I followed this <a href="http://www.packtpub.com/article/jasperreports-using-multiple-relational-databases-to-generate-report" rel="nofollow">article</a> by (Bilal Siddiqui, author of JasperReports 3.6 Development Cookbook). But I am getting following error every time. Its working fine individually but when i use sub-report it starts giving me error. </p>
  
  <p>Master Report :- </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="MasterReport" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"&gt;
      &lt;property name="ireport.zoom" value="1.0"/&gt;
      &lt;property name="ireport.x" value="0"/&gt;
      &lt;property name="ireport.y" value="0"/&gt;
      &lt;parameter name="projectName" class="java.lang.String"&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA[]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA["D:\\rEPORTS\\"]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;parameter name="connectionParam" class="java.sql.Connection" isForPrompting="false"&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA[java.sql.DriverManager.getConnection("jdbc:mysql://localhost/liferay_6.0.6", "root", "root")]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;queryString&gt;
          &lt;![CDATA[QUERY]]&gt;
      &lt;/queryString&gt;
      &lt;field name="EMAIL" class="java.lang.String"/&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height="79" splitType="Stretch"/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height="35" splitType="Stretch"/&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band height="32" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="0" y="2" width="100" height="20"/&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                      &lt;font size="12"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[EMAIL]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="126" y="2" width="100" height="20"/&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                      &lt;font size="12"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Work Station Name]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="260" y="2" width="100" height="20"/&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                      &lt;font size="12"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Work Station Type]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="100" splitType="Stretch"&gt;
              &lt;textField&gt;
                  &lt;reportElement x="0" y="0" width="100" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{EMAIL}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;subreport&gt;
                  &lt;reportElement x="271" y="0" width="200" height="100"/&gt;
                  &lt;subreportParameter name="emailAddress"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$F{EMAIL}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;connectionExpression&gt;&lt;![CDATA[$P{connectionParam}]]&gt;&lt;/connectionExpression&gt;
                  &lt;subreportExpression&gt;&lt;![CDATA[$P{SUBREPORT_DIR} + "WorkstationSubReport.jasper"]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;columnFooter&gt;
          &lt;band height="45" splitType="Stretch"/&gt;
      &lt;/columnFooter&gt;
      &lt;pageFooter&gt;
          &lt;band height="54" splitType="Stretch"/&gt;
      &lt;/pageFooter&gt;
      &lt;summary&gt;
          &lt;band height="42" splitType="Stretch"/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p><strong>Error filling print... Error evaluating expression :  Source text : java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/liferay_6.0.6","root","root")</strong> </p>
  
  <p><strong>net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :  Source text : java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/liferay_6.0.6","root","root")</strong> </p>