Buggy code:
Tmercoledi . SetStart4 ( ( ( String ) ( request . getParameter ( "t4on" ) ) ) ) ; Tmercoledi . SetEnd1 ( ( ( String ) ( request . getParameter ( "t1off" ) ) ) ) ; Tmercoledi . SetEnd2 ( ( ( String ) ( request . getParameter ( "t2off" ) ) ) ) ; Tmercoledi . SetEnd3 ( ( ( String ) ( request . getParameter ( "t3off" ) ) ) ) ; Tmercoledi . SetEnd4 ( ( ( String ) ( request . getParameter ( "t4off" ) ) ) ) ; } else if ( "GI" . equals ( giorno ) ) { Tgiovedi . SetStart1 ( ( ( String ) ( request . getParameter ( "t1on" ) ) ) ) ; Tgiovedi . SetStart2 ( ( ( String ) ( request . getParameter ( "t2on" ) ) ) ) ; Tgiovedi . SetStart3 ( ( ( String ) ( request . getParameter ( "t3on" ) ) ) ) ; Tgiovedi . SetStart4 ( ( ( String ) ( request . getParameter ( "t4on" ) ) ) ) ; Tgiovedi . SetEnd1 ( ( ( String ) ( request . getParameter ( "t1off" ) ) ) ) ; Tgiovedi . SetEnd2 ( ( ( String ) ( request . getParameter ( "t2off" ) ) ) ) ; Tgiovedi . SetEnd3 ( ( ( String ) ( request . getParameter ( "t3off" ) ) ) ) ; Tgiovedi . SetEnd4 ( ( ( String ) ( request . getParameter ( "t4off" ) ) ) ) ; } else if ( "VE" . equals ( giorno ) ) { Tvenerdi . SetStart1 ( ( ( String ) ( request . getParameter ( "t1on" ) ) ) ) ; Tvenerdi . SetStart2 ( ( ( String ) ( request . getParameter ( "t2on" ) ) ) ) ; Tvenerdi . SetStart3 ( ( ( String ) ( request . getParameter ( "t3on" ) ) ) ) ; Tvenerdi . SetStart4 ( ( ( String ) ( request . getParameter ( "t4on" ) ) ) ) ; Tvenerdi . SetEnd1 ( ( ( String ) ( request . getParameter ( "t1off" ) ) ) ) ; Tvenerdi . SetEnd2 ( ( ( String ) ( request . getParameter ( "t2off" ) ) ) ) ; Tvenerdi . SetEnd3 ( ( ( String ) ( request . getParameter ( "t3off" ) ) ) ) ; Tvenerdi . SetEnd4 ( ( ( String ) ( request . getParameter ( "t4off" ) ) ) ) ; } else if ( "SA" . equals ( giorno ) ) { Tsabato . SetStart1 ( ( ( String ) ( request . getParameter ( "t1on" ) ) ) ) ; Tsabato . SetStart2 ( ( ( String ) ( request . getParameter ( "t2on" ) ) ) ) ; Tsabato . SetStart3 ( ( ( String ) ( request . getParameter ( "t3on" ) ) ) ) ; Tsabato . SetStart4 ( ( ( String ) ( request . getParameter ( "t4on" ) ) ) ) ; Tsabato . SetEnd1 ( ( ( String ) ( request . getParameter ( "t1off" ) ) ) ) ; Tsabato . SetEnd2 ( ( ( String ) ( request . getParameter ( "t2off" ) ) ) ) ; Tsabato . SetEnd3 ( ( ( String ) ( request . getParameter ( "t3off" ) ) ) ) ; Tsabato . SetEnd4 ( ( ( String ) ( request . getParameter ( "t4off" ) ) ) ) ; } else if ( "DO" . equals ( giorno ) ) { Tdomenica . SetStart1 ( ( ( String ) ( request . getParameter ( "t1on" ) ) ) ) ; Tdomenica . SetStart2 ( ( ( String ) ( request . getParameter ( "t2on" ) ) ) ) ; Tdomenica . SetStart3 ( ( ( String ) ( request . getParameter ( "t3on" ) ) ) ) ; Tdomenica . SetStart4 ( ( ( String ) ( request . getParameter ( "t4on" ) ) ) ) ; Tdomenica . SetEnd1 ( ( ( String ) ( request . getParameter ( "t1off" ) ) ) ) ; Tdomenica . SetEnd2 ( ( ( String ) ( request . getParameter ( "t2off" ) ) ) ) ; Tdomenica . SetEnd3 ( ( ( String ) ( request . getParameter ( "t3off" ) ) ) ) ; Tdomenica . SetEnd4 ( ( ( String ) ( request . getParameter ( "t4off" ) ) ) ) ; } try { Class . forName ( "com.mysql.jdbc.Driver" ) ; <START_BUG> con = DriverManager . getConnection ( "jdbc:mysql:////stesim.no-ip.org:3306//cronotermostato" , "stefano" , "spo1460simo" ) ; <END_BUG> ps = con . prepareStatement ( "UPDATE<seq2seq4repair_space>Cronotermo<seq2seq4repair_space>SET<seq2seq4repair_space>Stato=?,Tmin=?,Tmax=?,Tsafe=?,Hyst=?,Start1=?,End1=?,Start2=?,End2=?,Start3=?,End3=?,Start4=?,End4=?<seq2seq4repair_space>WHERE<seq2seq4repair_space>Giorno=?" ) ; ps . setString ( 1 , statocronotermostato ) ; ps . setFloat ( 2 , temperaturaminima ) ; ps . setFloat ( 3 , temperaturamassima ) ; ps . setFloat ( 4 , temperaturasicurezza ) ; ps . setFloat ( 5 , isteresi ) ; ps . setString ( 6 , request . getParameter ( "t1on" ) ) ; ps . setString ( 7 , request . getParameter ( "t1off" ) ) ; ps . setString ( 8 , request . getParameter ( "t2on" ) ) ; ps . setString ( 9 , request . getParameter ( "t2off" ) ) ; ps . setString ( 10 , request . getParameter ( "t3on" ) ) ; ps . setString ( 11 , request . getParameter ( "t3off" ) ) ; ps . setString ( 12 , request . getParameter ( "t4on" ) ) ; ps . setString ( 13 , request . getParameter ( "t4off" ) ) ; ps . setString ( 14 , giorno ) ; rsq = ps . executeUpdate ( ) ; } catch ( SQLException e ) { throw new ServletException ( "Servlet<seq2seq4repair_space>Could<seq2seq4repair_space>not<seq2seq4repair_space>update<seq2seq4repair_space>records." , e ) ; } catch ( ClassNotFoundException e ) { throw new ServletException ( "JDBC<seq2seq4repair_space>Driver<seq2seq4repair_space>not<seq2seq4repair_space>found." , e ) ; }

Fix:
con = DriverManager . getConnection ( "jdbc:mysql:////192.168.1.9:3306//cronotermostato" , "stefano" , "spo1460simo" ) ;