title: Firebird Java: GDS Exception. 335544421. connection rejected by remote interface
body: <p>I am trying to rework a legacy application...</p>
  
  <p>I have downloaded and installed: <strong>FirebirdCS-2.5.7-27050-x86_64.pkg</strong></p>
  
  <p>I have set up the following:
  <strong>export FIREBIRD_HOME=/Library/Frameworks/Firebird.framework/Resources
  export PATH=$PATH:$FIREBIRD_HOME/bin</strong></p>
  
  <p>I have used the following to test the installation:</p>
  
  <pre><code>$ isql 
  Use CONNECT or CREATE DATABASE to specify a database
  SQL&gt; quit;
  </code></pre>
  
  <p>I can use isql to connect to a database and I can show the tables and select data from them:</p>
  
  <pre><code>$ isql -user sysdba -password masterkey
  Use CONNECT or CREATE DATABASE to specify a database
  SQL&gt; connect employee;
  Database:  employee, User: sysdba
  SQL&gt; show tables;
     COUNTRY                                CUSTOMER                       
     DEPARTMENT                             EMPLOYEE                       
     EMPLOYEE_PROJECT                       JOB                            
     PROJECT                                PROJ_DEPT_BUDGET               
     SALARY_HISTORY                         SALES                          
  SQL&gt; quit;
  </code></pre>
  
  <p><strong>I can backup table using gbak too, so it appears that the installation of Firebird is good.</strong></p>
  
  <p>But when I try to connect to the <strong>employee</strong> database using <strong>Java</strong>, I get an exception with the following error message:</p>
  
  <pre><code>org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544421. connection rejected by remote interface
  </code></pre>
  
  <p>The Java code:</p>
  
  <pre><code>try
  {
    Class.forName("org.firebirdsql.jdbc.FBDriver");
    connection = DriverManager.getConnection("jdbc:firebirdsql:localhost:3050//Library/Frameworks/Firebird.framework/Resources/examples/empbuild/employee.fdb", "sysdba", "masterkey");
  }
  catch (Exception e)
  {
    e.printStackTrace();
  }
  </code></pre>
  
  <p>I have tried many variations on the 'connection string', they all produce errors, so that is <strong>NOT</strong> the problem.</p>
  
  <p>I am using the following jar:</p>
  
  <pre><code>**jaybird-full-2.1.6.jar**
  </code></pre>
  
  <p>I am using Eclipse Helios, Java 1.6 and I am using OSX on a Mac.</p>
  
  <p>Is the jar the wrong version?</p>
  
  <p>What else could it be?</p>
  
  <p>Any ideas would be welcome.</p>