Parcival21
Technical User
Hi there!
I'm a real newbie to Java and I just have a problem I cannot solve by myselv.
Hope it's not just a typo but I've looked across it several times and I don't find the misstake.
Here's the code:
public static String[] getUnterabteilungen(int haupt_abt_id)throws java.sql.SQLException, ClassNotFoundException {
Database db = new Database();
String sql = "SELECT ABTEILUNGS_ID FROM ABTEILUNGEN WHERE HAUPT_ABT_ID = '"+haupt_abt_id+"'";
try {
ResultSet rs = db.commitQuery(sql);
Vector v = new Vector();
while (rs.next() ){
v.add(rs.getString("ABTEILUNGS_ID"
);
}
}
catch (ClassNotFoundException classnotfoundexception) {
classnotfoundexception.printStackTrace();
throw new SQLException( "Fehler bei der Verarbeitung des Resultsets:"+classnotfoundexception.getMessage());
}
String[] ergebnisse;
xx int i = v.size();
ergebnisse = new String;
xx v.copyInto(ergebnisse);
db.close();
return ergebnisse;
db.close();
}
The xx mark the lines that produce the following mistakes:
Error v cannot be resolved Proxy.java
Error v cannot be resolved Proxy.java.
I'd be very thankful for any help.
Busche
I'm a real newbie to Java and I just have a problem I cannot solve by myselv.
Hope it's not just a typo but I've looked across it several times and I don't find the misstake.
Here's the code:
public static String[] getUnterabteilungen(int haupt_abt_id)throws java.sql.SQLException, ClassNotFoundException {
Database db = new Database();
String sql = "SELECT ABTEILUNGS_ID FROM ABTEILUNGEN WHERE HAUPT_ABT_ID = '"+haupt_abt_id+"'";
try {
ResultSet rs = db.commitQuery(sql);
Vector v = new Vector();
while (rs.next() ){
v.add(rs.getString("ABTEILUNGS_ID"
}
}
catch (ClassNotFoundException classnotfoundexception) {
classnotfoundexception.printStackTrace();
throw new SQLException( "Fehler bei der Verarbeitung des Resultsets:"+classnotfoundexception.getMessage());
}
String[] ergebnisse;
xx int i = v.size();
ergebnisse = new String;
xx v.copyInto(ergebnisse);
db.close();
return ergebnisse;
db.close();
}
The xx mark the lines that produce the following mistakes:
Error v cannot be resolved Proxy.java
Error v cannot be resolved Proxy.java.
I'd be very thankful for any help.
Busche