Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/01/2013, 14:02
johndi
 
Fecha de Ingreso: diciembre-2006
Mensajes: 16
Antigüedad: 17 años, 11 meses
Puntos: 0
Respuesta: Problema de conexion a Base de Datos

// Method descriptor #43 (Ljava/lang/String;)V
// Stack: 3, Locals: 5
private static synchronized void initDataSource(java.lang.String datasourceName) throws java.sql.SQLException;
0 getstatic es.crcit.general.database.DatabaseConnectionManage r.datasources : java.util.Hashtable [20]
3 aload_0 [datasourceName]
4 invokevirtual java.util.Hashtable.get(java.lang.Object) : java.lang.Object [44]
7 ifnonnull 74
10 aconst_null
11 astore_1 [datasource]
12 aload_0 [datasourceName]
13 invokestatic es.crcit.general.configuracion.Configuracion.getPr opiedad(java.lang.String) : java.lang.String [143]
16 astore_3 [dsName]
17 new java.util.Properties [149]
20 dup
21 invokespecial java.util.Properties() [151]
24 astore 4 [env]
26 new javax.naming.InitialContext [152]
29 dup
30 aload 4 [env]
32 invokespecial javax.naming.InitialContext(java.util.Hashtable) [154]
35 astore_2 [ctx]
36 aload_2 [ctx]
37 aload_3 [dsName]
38 invokeinterface javax.naming.Context.lookup(java.lang.String) : java.lang.Object [157] [nargs: 2]
43 checkcast javax.sql.DataSource [48]
46 astore_1 [datasource]
47 getstatic es.crcit.general.database.DatabaseConnectionManage r.datasources : java.util.Hashtable [20]
50 aload_0 [datasourceName]
51 aload_1 [datasource]
52 invokevirtual java.util.Hashtable.put(java.lang.Object, java.lang.Object) : java.lang.Object [163]
55 pop
56 goto 74
59 astore 4 [namingexception]
61 new java.sql.SQLException [72]
64 dup
65 aload 4 [namingexception]
67 invokevirtual javax.naming.NamingException.getExplanation() : java.lang.String [167]
70 invokespecial java.sql.SQLException(java.lang.String) [172]
73 athrow
74 return
Exception Table:
[pc: 17, pc: 56] -> 59 when : javax.naming.NamingException
Line numbers:
[pc: 0, line: 174]
[pc: 10, line: 175]
[pc: 12, line: 177]
[pc: 17, line: 180]
[pc: 26, line: 181]
[pc: 36, line: 182]
[pc: 47, line: 183]
[pc: 59, line: 186]
[pc: 61, line: 187]
[pc: 74, line: 190]
Local variable table:
[pc: 0, pc: 75] local: datasourceName index: 0 type: java.lang.String
[pc: 12, pc: 74] local: datasource index: 1 type: javax.sql.DataSource
[pc: 36, pc: 59] local: ctx index: 2 type: javax.naming.Context
[pc: 17, pc: 74] local: dsName index: 3 type: java.lang.String
[pc: 26, pc: 59] local: env index: 4 type: java.util.Properties
[pc: 61, pc: 74] local: namingexception index: 4 type: javax.naming.NamingException
}

Además, acabo de mirar que el javadoc path no está puesto, pero no sé donde encontrarlo...