spasibo vam bol'shoe za zborku klevaj ona
![:) :)](http://s.wrk.ru/s/smile.gif)
vot takaj bjka sipet o4en' 4asto
ava.io.IOException: An existing connection was forcibly closed by the remote ho
st
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at net.sf.l2j.gameserver.SelectorThread.readData(SelectorThread.java:424
)
at net.sf.l2j.gameserver.SelectorThread.run(SelectorThread.java:295)
vot eta bjka uberaetsj pravkoi faila EnterWorld.java
could not restore friend data:java.sql.SQLException: Parameter index out of boun
ds. 2 is not between valid values of 1 and 1
v stro4ke
*/
private void notifyFriends(final L2PcInstance cha)
{
java.sql.Connection con = null;
try {
con = L2DatabaseFactory.getInstance().getConnection();
PreparedStatement statement;
statement = con.prepareStatement("SELECT char_id FROM character_friends WHERE friend_id=?");
statement.setInt(1, cha.getObjectId());
statement.setString(2, cha.getName()); -steret'-
ResultSet rset = statement.executeQuery();
could not restore friend data:java.sql.SQLException: Parameter index out of boun
ds. 2 is not between valid values of 1 and 1
a dlj 4ego eto voobshe sdelano bilo kto znaet ?