About Question enthuware.ocpjp.v7.2.1373 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
EpicWestern
Posts: 17
Joined: Wed Jan 22, 2014 12:35 pm
Contact:

About Question enthuware.ocpjp.v7.2.1373 :

Post by EpicWestern »

Another reason code will not work is that rs.getString(0) is invalid.

bluster
Posts: 60
Joined: Wed Apr 23, 2014 6:38 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1373 :

Post by bluster »

To the point of the previous poster, it seems inaccurate to state "after the try block ends without any exception".

Note the certainty that invocation "getString(0)" will throw java.sql.SQLException: Invalid column index.

Please explain if possible. That throw is not mentioned in the explanation, and as said above the enunciated premise of the question does not seem to hold.

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1373 :

Post by admin »

You are right. It has now been changed to getString(1).

thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest