Background Image

FORUM

조회 수 26599 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
안녕하세요.

Java SP를 사용하여 Sybase 자료를 Cubrid로 담으려고 합니다.

간단한 Java SP를 작성하여 쿼리로 실행을 하면, 아래와 같은 문제가 로그에 나옵니다. (C:CUBRIDlogdemodb_java.txt)

참고로 이클립스에서 java코드만 테스트 하면 잘 실행되는걸 확인하였습니다.

jconn3.jar 드라이브를 사용합니다.

Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
conn = DriverManager.getConnection("jdbc:sybase:Tds:111.111.222.333:6600/test", "sa", "sa");

해결 부탁드리겠습니다.
---------------------------------------------------------------------------------------------
2010. 1. 12 오후 2:28:49 com.cubrid.jsp.Server log
심각:
java.sql.SQLException: JZ0C0: 연결이 이미 닫혔습니다.
 at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
 at com.sybase.jdbc3.jdbc.SybConnection.checkConnection(Unknown Source)
 at com.sybase.jdbc3.jdbc.SybConnection.close(Unknown Source)
 at selectData.SearchSubway(selectData.java:46)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.cubrid.jsp.StoredProcedure.invoke(StoredProcedure.java:371)
 at com.cubrid.jsp.ExecuteThread.run(ExecuteThread.java:164)
---------------------------------------------------------------------------------------------
  • ?
    admin 2010.01.13 06:17
    java를 통해 CUBRID로 접근하기 위해서는 CUBRID의 jdbc드라이버를 사용하셔야 합니다.
    CUBRID의 jdbc 드라이버는 CUBRID를 설치시에 %CUBRID%jdbccubrid_jdbc.jar에 위치하게 됩니다.
    CUBRID에서 jdbc를 이용하여 connection을 하기 위해서는 다음과 같이 하면 됩니다.
    String url = "jdbc:CUBRID:111.111.222.333:6600:test:::";
    Class.forName("cubrid.jdbc.driver.CUBRIDDriver");
    conn = DriverManager.getConnection(url, "sa", "sa");
    다음 경로의 메뉴얼이 도움이 될 것으로 보입니다.
     >  API 레퍼런스  >  JDBC API  >  JDBC 프로그래밍
  • ?
    웁쓰 2010.01.13 22:31
    java.sql.SQLException: JZ0C0: 연결이 이미 닫혔습니다.
    에러메시지로 보아 사이베이스에서 에러가 난 것 같습니다.

    사이베이스 JDBC 스펙을 확인 하셔야 할 것 같습니다.

  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views115
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4474
    read more
  3. 패키지 분화가 가능할까요?

    Date2010.01.15 Byienfant Views9565
    Read More
  4. JDBC ResultSet에 대한 문의

    Date2010.01.15 By강우 Views22135
    Read More
  5. LOWER 오류가 왜 날까요?

    Date2010.01.15 By초보 Views10392
    Read More
  6. mysql의 rand() 함수 대체 문의

    Date2010.01.14 By초보 Views16018
    Read More
  7. DBCP사용중 CUBRID** 계열 클래스를 사용하려면?

    Date2010.01.14 By안지민 Views10270
    Read More
  8. mssql2005 --> cubrid 로 마이그레이션 오류 답변 부탁 드립니다.

    Date2010.01.14 ByPhilip Park Views24788
    Read More
  9. set type 에 빈값넣기

    Date2010.01.14 By초보 Views11841
    Read More
  10. ODBC 로 insert 가 안되네요 ㅠㅠ...

    Date2010.01.13 ByJinSniper Views11501
    Read More
  11. 리눅스서버상에 존재하는 CUBRID 데이터베이스를 CUBRID메니져클라이언트로 접속

    Date2010.01.13 By김대진 Views10581
    Read More
  12. CSQL 에서 CREATE USER로 계정 생성시 문의 점

    Date2010.01.13 By김대진 Views15625
    Read More
  13. Java sp에서 Sybase DB연결시 오류.

    Date2010.01.12 Byyoung Views26599
    Read More
  14. CUBRID 시작후 csql로 시작할 때 에러가 발생합니다.

    Date2010.01.11 By김대진 Views9467
    Read More
  15. php, cubrid에서 그림, 동영상파일업로드코딩중인데요.

    Date2010.01.11 By난꼭한다 Views15937
    Read More
  16. C-API 매뉴얼 위치요?

    Date2010.01.11 By그래너 Views9869
    Read More
  17. 큐브리드 2008 버전이 다운로드 않됩니다.

    Date2010.01.11 By김대진 Views9365
    Read More
  18. set 객체 정보까지 어떻게 검색합니까?

    Date2010.01.10 ByPhilip Park Views16
    Read More
  19. 큐브리드를 사용해 윈도환경에서 사용할 프로그램을 개발코자 합니다

    Date2010.01.08 By혜승아빠 Views9763
    Read More
  20. 쿼리 확인 부탁 드립니다.

    Date2010.01.08 ByPhilip Park Views9595
    Read More
  21. 날짜 기본값 처리 방법 문의 드립니다.

    Date2010.01.07 ByPhilip Park Views13535
    Read More
  22. 쿼리의 물음표에 대해 문의드립니다.

    Date2010.01.06 By초보 Views16107
    Read More
Board Pagination Prev 1 ... 171 172 173 174 175 176 177 178 179 180 ... 200 Next
/ 200

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales