Respuesta: Problema de conexion a Base de Datos 86 athrow
87 astore 6 [e]
89 aload 6 [e]
91 invokevirtual java.lang.Exception.printStackTrace() : void [63]
94 new es.crcit.general.exceptions.DatabaseException [30]
97 dup
98 ldc <String "Se ha producido un error al obtener la conexi�n a la base de datos"> [58]
100 aload 6 [e]
102 invokespecial es.crcit.general.exceptions.DatabaseException(java .lang.String, java.lang.Throwable) [60]
105 athrow
106 aload_2 [connection]
107 ifnonnull 120
110 new es.crcit.general.exceptions.DatabaseException [30]
113 dup
114 ldc <String "No ha sido posible obtener una conexi�n a la base de datos"> [68]
116 invokespecial es.crcit.general.exceptions.DatabaseException(java .lang.String) [70]
119 athrow
120 aload_2 [connection]
121 areturn
Exception Table:
[pc: 14, pc: 70] -> 73 when : java.sql.SQLException
[pc: 14, pc: 70] -> 87 when : java.lang.Exception
Line numbers:
[pc: 0, line: 80]
[pc: 2, line: 81]
[pc: 4, line: 82]
[pc: 11, line: 83]
[pc: 14, line: 85]
[pc: 18, line: 86]
[pc: 29, line: 87]
[pc: 36, line: 88]
[pc: 43, line: 90]
[pc: 53, line: 91]
[pc: 62, line: 92]
[pc: 73, line: 94]
[pc: 75, line: 95]
[pc: 87, line: 97]
[pc: 89, line: 98]
[pc: 94, line: 99]
[pc: 106, line: 103]
[pc: 110, line: 104]
[pc: 120, line: 107]
Local variable table:
[pc: 0, pc: 122] local: dsName index: 0 type: java.lang.String
[pc: 0, pc: 122] local: idUser index: 1 type: java.lang.String
[pc: 2, pc: 122] local: connection index: 2 type: java.sql.Connection
[pc: 4, pc: 122] local: datasource index: 3 type: javax.sql.DataSource
[pc: 11, pc: 122] local: FIJA_CLIENT_IDENTIFIER_SQL index: 4 type: java.lang.String
[pc: 14, pc: 122] local: callablestatement index: 5 type: java.sql.CallableStatement
[pc: 75, pc: 87] local: sqlexception index: 6 type: java.sql.SQLException
[pc: 89, pc: 106] local: e index: 6 type: java.lang.Exception
// Method descriptor #109 (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;
// Stack: 4, Locals: 3
public static java.sql.Connection getConnectionOracle(java.lang.String urlJDBC, java.lang.String user, java.lang.String pwd) throws es.crcit.general.exceptions.DatabaseException;
0 aload_0 [urlJDBC]
1 ldc <String "oracle.jdbc.driver.OracleDriver"> [110]
3 aload_1 [user]
4 aload_2 [pwd]
5 invokestatic es.crcit.general.database.DatabaseConnectionManage r.getConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String) : java.sql.Connection [112]
8 areturn
Line numbers:
[pc: 0, line: 112]
Local variable table:
[pc: 0, pc: 9] local: urlJDBC index: 0 type: java.lang.String
[pc: 0, pc: 9] local: user index: 1 type: java.lang.String
[pc: 0, pc: 9] local: pwd index: 2 type: java.lang.String
// Method descriptor #114 (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;
// Stack: 4, Locals: 6
public static java.sql.Connection getConnection(java.lang.String urlJDBC, java.lang.String driver, java.lang.String user, java.lang.String pwd) throws es.crcit.general.exceptions.DatabaseException;
0 aconst_null
1 astore 4 [connection]
3 aload_1 [driver]
4 invokestatic java.lang.Class.forName(java.lang.String) : java.lang.Class [118]
7 pop
8 aload_0 [urlJDBC]
9 aload_2 [user]
10 aload_3 [pwd]
11 invokestatic java.sql.DriverManager.getConnection(java.lang.Str ing, java.lang.String, java.lang.String) : java.sql.Connection [124]
14 astore 4 [connection]
16 aload 4 [connection]
18 iconst_0
19 invokeinterface java.sql.Connection.setAutoCommit(boolean) : void [52] [nargs: 2]
24 goto 84
27 astore 5 [sqle]
29 aload 5 [sqle]
31 invokevirtual java.sql.SQLException.printStackTrace() : void [128]
34 new es.crcit.general.exceptions.DatabaseException [30]
37 dup
38 ldc <String "Se ha producido un error al obtener la conexi�n a la base de datos"> [58]
40 aload 5 [sqle]
42 invokespecial es.crcit.general.exceptions.DatabaseException(java .lang.String, java.lang.Throwable) [60]
45 athrow
46 astore 5 [ex]
48 aload 5 [ex]
50 invokevirtual java.lang.ClassNotFoundException.printStackTrace() : void [129]
53 new es.crcit.general.exceptions.DatabaseException [30]
56 dup
57 ldc <String "Se ha producido un error al obtener la conexi�n a la base de datos. Driver no encontrado"> [132]
59 aload 5 [ex]
61 invokespecial es.crcit.general.exceptions.DatabaseException(java .lang.String, java.lang.Throwable) [60]
64 athrow
65 astore 5 [e]
67 aload 5 [e]
69 invokevirtual java.lang.Exception.printStackTrace() : void [63]
72 new es.crcit.general.exceptions.DatabaseException [30]
75 dup
76 ldc <String "Se ha producido un error al obtener la conexi�n a la base de datos"> [58]
78 aload 5 [e]
80 invokespecial es.crcit.general.exceptions.DatabaseException(java .lang.String, java.lang.Throwable) [60]
83 athrow
84 aload 4 [connection]
86 ifnonnull 99
89 new es.crcit.general.exceptions.DatabaseException [30]
92 dup
93 ldc <String "No ha sido posible obtener una conexi�n a la base de datos"> [68]
95 invokespecial es.crcit.general.exceptions.DatabaseException(java .lang.String) [70]
98 athrow
99 aload 4 [connection]
101 areturn
Exception Table:
[pc: 3, pc: 24] -> 27 when : java.sql.SQLException
[pc: 3, pc: 24] -> 46 when : java.lang.ClassNotFoundException
[pc: 3, pc: 24] -> 65 when : java.lang.Exception
Line numbers:
[pc: 0, line: 116]
[pc: 3, line: 118]
[pc: 8, line: 120]
[pc: 16, line: 121]
[pc: 27, line: 123]
[pc: 29, line: 124]
[pc: 34, line: 125]
[pc: 46, line: 127]
[pc: 48, line: 128]
[pc: 53, line: 129]
[pc: 65, line: 131]
[pc: 67, line: 132]
[pc: 72, line: 133]
[pc: 84, line: 137]
[pc: 89, line: 138]
[pc: 99, line: 141]
Local variable table:
[pc: 0, pc: 102] local: urlJDBC index: 0 type: java.lang.String
[pc: 0, pc: 102] local: driver index: 1 type: java.lang.String
[pc: 0, pc: 102] local: user index: 2 type: java.lang.String
[pc: 0, pc: 102] local: pwd index: 3 type: java.lang.String
[pc: 3, pc: 102] local: connection index: 4 type: java.sql.Connection
[pc: 29, pc: 46] local: sqle index: 5 type: java.sql.SQLException
[pc: 48, pc: 65] local: ex index: 5 type: java.lang.ClassNotFoundException
[pc: 67, pc: 84] local: e index: 5 type: java.lang.Exception
// Method descriptor #139 (Ljava/sql/Connection;)V
// Stack: 1, Locals: 2
public static void closeConnection(java.sql.Connection connection);
0 aload_0 [connection]
1 ifnull 14
4 aload_0 [connection]
5 invokeinterface java.sql.Connection.close() : void [140] [nargs: 1]
10 goto 14
13 astore_1
14 return
Exception Table:
[pc: 4, pc: 10] -> 13 when : java.sql.SQLException
Line numbers:
[pc: 0, line: 154]
[pc: 4, line: 156]
[pc: 13, line: 158]
[pc: 14, line: 160]
Local variable table:
[pc: 0, pc: 15] local: connection index: 0 type: java.sql.Connection
// Method descriptor #13 ()V
// Stack: 1, Locals: 0
private static synchronized void initDataSource() throws java.sql.SQLException;
0 ldc <String "dataSourceName"> [8]
2 invokestatic es.crcit.general.database.DatabaseConnectionManage r.initDataSource(java.lang.String) : void [40]
5 return
Line numbers:
[pc: 0, line: 170]
[pc: 5, line: 171] |