You have missed rs.next();
. Because of which, you will have problems in ps.setInt(1,rs.getInt(1));
More Related Contents:
- Null Pointer Exception in You Tube Analytics API using Java IntelliJ IDEA?
- Extract Substrings using regex Java [closed]
- Sequence in java
- Difference between wait() and sleep()
- How to use Key Bindings instead of Key Listeners
- How to redirect multiple types of users to their respective Activities?
- Why does Java prohibit static fields in inner classes?
- How to find unused/dead code in java projects [closed]
- Recommended way to get hostname in Java
- How can I write a Java application that can update itself at runtime?
- Why are the RSA-SHA256 signatures I generate with OpenSSL and Java different?
- How do I add one month to current date in Java?
- Java: how to import a jar file from command line
- Java regex for support Unicode?
- Enhanced ‘for’ loop causes an ArrayIndexOutOfBoundsException
- could not set the column width to zero i.e. not made column invisible
- MessageBodyProviderNotFoundException while running jar from command line
- How to change background color of JTabbedPane?
- Copy directory from a jar file
- Autowired Environment is null
- Empty an ArrayList or just create a new one and let the old one be garbage collected? [duplicate]
- Disabling Log4J Output in Java
- Who is calling the Java Thread interrupt() method if I’m not?
- Static context cannot access non-static in Collectors
- How to initialize MongoClient once in Spring Boot and use its methods?
- Is SecureRandom thread safe?
- How to properly close MappedByteBuffer?
- Can I use SpringMvc and webflux together?
- Why does my JAR file execute at CMD, but not on double-click?
- TestNG An internal error occurred during launching