jumpmaster
05/13/2022, 10:35 PMjava.lang.NullPointerException
.jumpmaster
05/13/2022, 10:36 PMthis.datasources["test"] = {
class: 'org.postgresql.Driver',
bundleName: 'org.postgresql.jdbc42',
bundleVersion: '9.4.1212',
connectionString: 'jdbc:' & connectionString
};
jumpmaster
05/13/2022, 10:37 PMzackster
05/14/2022, 3:26 AMbdw429s
05/14/2022, 3:51 AMjumpmaster
05/14/2022, 3:49 PMbdw429s
05/14/2022, 9:20 PMstat = dc.getConnection().createStatement();
so there's two things that could have been null there
⢠the dc
variable
⢠the return from the getConnection()
methodbdw429s
05/14/2022, 9:21 PMjumpmaster
05/14/2022, 9:33 PMbdw429s
05/14/2022, 9:34 PMbdw429s
05/14/2022, 9:34 PMbdw429s
05/14/2022, 9:34 PMbdw429s
05/14/2022, 9:35 PMbdw429s
05/14/2022, 9:36 PMbdw429s
05/14/2022, 9:37 PMbdw429s
05/14/2022, 9:38 PMjumpmaster
05/14/2022, 9:39 PMSELECT 1 + 1;
bdw429s
05/14/2022, 9:39 PMconnectionString
variable?bdw429s
05/14/2022, 9:40 PMjumpmaster
05/14/2022, 9:41 PMjumpmaster
05/14/2022, 9:42 PMjumpmaster
05/14/2022, 9:47 PMjumpmaster
05/17/2022, 5:33 PMbdw429s
05/17/2022, 6:06 PMjumpmaster
05/17/2022, 6:35 PMbdw429s
05/17/2022, 6:41 PM