.sqlexception: Io Error: Got Minus One From a Read Call

 ������ JDBC: Got minus one from a read call  [new]
KItevs
Member

������:
���������: v

������ ����. � ������� ������������ � ���� 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]     �������� | ���������� �������� ����������
 Re: ������ JDBC: Got minus i from a read call  [new]
irbis_al
Fellow member

������: �����������
���������: 1798

KItevs,

�� �������� ���� �� � ��� ,��� ������ ,��� ������� , ����� �� ����� 1521 � �� 8080(�� ������� ,��� �������,����� web-http apex listener)
� sid � oracle ,��� �������, �� noon

21 ��� 14, 10:02����[16601102]     �������� | ���������� �������� ����������
 Re: ������ JDBC: Got minus i from a read telephone call  [new]
irbis_al
Member

������: �����������
���������: 1798

Leonid Kudryavtsev
�� ������ ������� �������������. ���� ���������� ������� JDBC thin ��������, ������ ���� ���� ����������� TNS No listener. IMHO

NO listener ��� ���� ��� �� ����� ������.
� � ���� �� ����� spider web-apex-listener...� ��� �������� ����������� JDBC �� ���������� ���������,� apex �� http :-)

21 ��� 14, xiii:12����[16601356]     �������� | ���������� �������� ����������
 Re: ������ JDBC: Got minus one from a read call  [new]
KItevs
Fellow member

������:
���������: 5

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
ORA-12705: Cannot access NLS data files or invalid surroundings specified

���������� ����������, ���� ������ � ��� ��� ��������.

21 ��� 14, 15:56����[16601738]     �������� | ���������� �������� ����������
 Re: ������ JDBC: Got minus i from a read call  [new]
irbis_al
Fellow member

������: �����������
���������: 1798

�� ������ ������ �� �� ���������� ����...�� ��� ����������� � oracle,�� ���� ������ �������� � NLS ����������.(� XE � ���� ����)...������� �� ������(��� �����������) ��� � �����
21 ��� 14, xvi:04����[16601750]     �������� | ���������� �������� ����������
 Re: ������ JDBC: Got minus ane from a read call  [new]
KItevs
Member

������:
���������: 5

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]     �������� | ���������� �������� ����������

macbainhimpblad.blogspot.com

Source: https://www.sql.ru/forum/1116765/oshibka-jdbc-got-minus-one-from-a-read-call

0 Response to ".sqlexception: Io Error: Got Minus One From a Read Call"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel