.sqlexception: Io Error: Got Minus One From a Read Call
| KItevs Member ������: | ������ ����. � ������� ������������ � ���� oracle(Oracle 11g) ����� JDBC. ����� ���� - system, ������ - admin. terminal individual static String driverName = "oracle.jdbc.driver.OracleDriver"; private static String url; final individual static String server = "127.0.0.1"; last private static String port = "8080"; last private static Cord sid = "apex"; final private static String username = "FILMS";// ��� workspace � username last individual static String password = "admin";//workspace ������ private static Connexion connectedness; private static boolean isConnected = false; private static boolean connect() { try { url = "jdbc:oracle:sparse:@" + server + ":" + port + ":" + sid; Organization.out.println(url); Class .forName(driverName); connection = DriverManager.getConnection(url, username, password); System.out.println( "connecting: " + url); if (connection.equals( null )) isConnected = false; else isConnected = truthful; } grab (ClassNotFoundException due east) { System.out.println( "ClassNotFoundException" ); isConnected = false; } grab (SQLException e) { System.out.println( "SQLException\n" + e.getMessage()); System.out.println( "ErrorCode: " + e.getErrorCode()); Organization.out.println( "StackTrace: " + e.getStackTrace()); isConnected = fake; } � ���������� �������: jdbc:oracle:thin:@127.0.0.ane:8080:apex SQLException ������ �����/������: Got minus 1 from a read call ErrorCode: 17002 StackTrace: [Ljava.lang.StackTraceElement;@6d9c638 not connected ����������, � ��� ��������. |
| 21 ��� 14, 00:04����[16600825] �������� | ���������� �������� ���������� | |
| irbis_al Fellow member ������: ����������� | KItevs, �� �������� ���� �� � ��� ,��� ������ ,��� ������� , ����� �� ����� 1521 � �� 8080(�� ������� ,��� �������,����� web-http apex listener) |
| 21 ��� 14, 10:02����[16601102] �������� | ���������� �������� ���������� | |
| irbis_al Member ������: ����������� |
NO listener ��� ���� ��� �� ����� ������. | ||
| 21 ��� 14, xiii:12����[16601356] �������� | ���������� �������� ���������� | |||
| KItevs Fellow member ������: | irbis_al, ������� �� ��, ��� �������� ������, �� � ������ �� �����. � JDBC � ������� �������, ������� � ���� � ������. � ��� ����������� ���� 1521 � sid XE. ��������, � �� ��� �������� ������. ����� ��� ����������. ������� ���� � Application Limited (oracle database xe 11.two). �� ������ http://127.0.0.1:8080/apex/f?p=4950, � �� �������� � ������� � ���. ����� ��� ����� � ���� : arrangement, ������ : admin; ����� � ������� �����/Enter Application Limited workspace and credentials. workspace: FILMS username: FILMS password: admin � ����� ��������� � jdbc:oracle:thin:@localhost:1521:XE ORA-00604: error occurred at recursive SQL level 1 ���������� ����������, ���� ������ � ��� ��� ��������. |
| 21 ��� 14, 15:56����[16601738] �������� | ���������� �������� ���������� | |
| irbis_al Fellow member ������: ����������� | �� ������ ������ �� �� ���������� ����...�� ��� ����������� � oracle,�� ���� ������ �������� � NLS ����������.(� XE � ���� ����)...������� �� ������(��� �����������) ��� � ����� |
| 21 ��� 14, xvi:04����[16601750] �������� | ���������� �������� ���������� | |
| KItevs Member ������: | irbis_al, ������� ��� �������. �� �����: �������� � NLS ����������. ������� Locale.setDefault(Locale.ENGLISH); ����� ��������� ����������. ����� ����������� ����. import java.sql.*; import java.util.Locale; public form JDBCExample { final private static String driverName = "oracle.jdbc.driver.OracleDriver"; private static String url; final private static String server = "localhost"; terminal private static String port = "1521"; last individual static Cord sid = "XE"; final private static String username = "system"; final private static String countersign = "admin"; private static Connexion connection; private static boolean isConnected = false; private static boolean connect() { try { url = "jdbc:oracle:thin:@" + server + ":" + port + ":" + sid; Arrangement.out.println(url); Class .forName(driverName); Locale.setDefault(Locale.English language); connectedness = DriverManager.getConnection(url, username, password); System.out.println( "connecting: " + url); if (connection.equals( null )) isConnected = false; else isConnected = truthful; } grab (ClassNotFoundException e) { Arrangement.out.println( "ClassNotFoundException" ); isConnected = false; } catch (SQLException e) { System.out.println( "SQLException\north" + e.getMessage()); isConnected = fake; } return isConnected; } public static void main(Cord[] args) { if (connect()) System.out.println( "connected" ); else System.out.println( "not connected" ); } } |
| 21 ��� fourteen, sixteen:fourteen����[16601779] �������� | ���������� �������� ���������� | |
x
Source: https://www.sql.ru/forum/1116765/oshibka-jdbc-got-minus-one-from-a-read-call
������ JDBC: Got minus one from a read call
0 Response to ".sqlexception: Io Error: Got Minus One From a Read Call"
Post a Comment