Ver Mensaje Individual
  #1  
Antiguo 17-12-2013
Avatar de jscubillos5
jscubillos5 jscubillos5 is offline
Miembro
NULL
 
Registrado: jul 2013
Ubicación: Bogotá
Posts: 44
Reputación: 0
jscubillos5 Va por buen camino
Conexión entre JAVA e INTERBASE

Buen día gente del foro, he estado intentando programar un conexión entre JAVA e INTERBASE, con el JDBC llamado INTERCLIENT, al intentar realizar la conexión obtengo un error, las lineas de código que he programado son:

Código:
String UbicacionBase = "jdbc:odbc:ODBCPRUEBA";
        String Usuario = "SYSDBA";
        String Pasaporte = "masterkey";
        Connection Conexion = null;
        try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        } catch (ClassNotFoundException Excepcion) {
            Logger.getLogger(DemoConexionInterbase.class.getName()).log(Level.SEVERE, null, Excepcion);
        }
        try {
            System.out.println("Estableciendo conexión con: " + UbicacionBase + " espere un momento por favor...");
            Conexion = DriverManager.getConnection(UbicacionBase, Usuario, Pasaporte);
            System.out.println("Conexión establecida.");
        } catch (SQLException Excepcion) {
            MostrarExepciondelaBasedeDatos(Excepcion);
        } finally {
            try {
                Conexion.close();
            } catch (SQLException Excepcion) {
                MostrarExepciondelaBasedeDatos(Excepcion);
            }
        }
El error que obtengo es el siguiente:

debug:
Estableciendo conexión con: jdbcdbc:ODBCPRUEBA espere un momento por favor...
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=9060, tid=10008
#
# JRE version: Java(TM) SE Runtime Environment (7.0_40-b43) (build 1.7.0_40-b43)
# Java VM: Java HotSpot(TM) Client VM (24.0-b56 mixed mode windows-x86 )
# Problematic frame:
# C 0x00000000
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Proyectos AudiSoft\Pagares desmaterializados\Recursos\AudiSoft\Demos\Interclient for JAVA\DemoConexionInterbase\hs_err_pid9060.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Java Result: 1
BUILD SUCCESSFUL (total time: 16 seconds)

Adicionalmente cree un almacen de datos ODBC, el cual es el que estoy invocando en la conexión con la siguiente configuración:

http://sdrv.ms/1kcMBi0

Quisiera saber si alguno de ustedes pudiera por favor ayudarme, ya que se escapa de mí conocimiento, y no se cual sería el error especifico.
__________________
De ante mano gracias por tomarse el tiempo de leer este Hilo.

-------------------------------
Juan Sebastián Cubillos Gonzalez
Desarrollador de soluciones informáticas.
Bogotá, Colombia.
Encuentra me en: http://www.linkedin.com/pub/juan-seb...lez/66/1b8/150
Responder Con Cita