Background Image

FORUM

조회 수 26592 추천 수 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. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4443
    read more
  2. ODBC 오토커밋 off에 관련된 문의

    Date2012.05.23 By세스카 Views11255
    Read More
  3. CUBRID 9.2.0.0.155 한글 깨짐 관련 요청

    Date2014.02.06 By뿡뿡이입니다 Views11268
    Read More
  4. Oracle REGEXT 함수 지원하나요?

    Date2013.03.25 Bycyber Views11272
    Read More
  5. Connect By Level 구문에 대해 문의 드립니다.

    Date2012.03.23 By깨달음 Views11274
    Read More
  6. PHP에서 CUBRID 4.0 모듈이 로드 되지 않습니다.

    Date2011.06.22 By유리심장 Views11277
    Read More
  7. 백업받은 파일로 다른 서버에 복구하기

    Date2009.08.07 By...... Views11304
    Read More
  8. Cubrid에서 Cursor 작성법이 궁금합니다.

    Date2010.07.09 By궁금이 Views11305
    Read More
  9. 오류 해결방법을 몰라 질문드립니다.

    Date2012.05.16 By삼구 Views11307
    Read More
  10. 용량은 충분한데 Out of disk space in database 라는 로그가 남으면서 마이그레이션이 안됩니다.

    Date2014.03.20 By리리라 Views11307
    Read More
  11. 서버를 시작하려는데 시작되질 않네요.

    Date2010.08.25 By까망군 Views11312
    Read More
  12. Connection 관련 내용

    Date2010.08.31 Byjjobi Views11319
    Read More
  13. 널포인트 익셉션 에러가 납니다

    Date2010.08.06 By유니콘 Views11323
    Read More
  14. 서브쿼리 질문

    Date2010.02.03 By초보 Views11332
    Read More
  15. Query Browser Eclipse plug-in 설치시 오류

    Date2014.02.07 By규리 Views11342
    Read More
  16. Cubrid shard for Mysql 구성 중 질문 입니다.

    Date2013.05.25 By태연 Views11345
    Read More
  17. PHP + Apache + Cubrid 연동 질문 입니다.

    Date2011.07.27 By지누 Views11347
    Read More
  18. DB 삭제 후 생성??

    Date2009.12.02 By푸른잔디 Views11349
    Read More
  19. loaddb시 피시 메모리 증가와 스왑에 따른 종료문제

    Date2012.08.28 By천상하늘 Views11358
    Read More
  20. 큐브리드매니저의 아이콘 개선 요청

    Date2009.09.24 By고영진 Views11361
    Read More
  21. CentOS 6.3 + cubrid + nforge 설치가 잘 않되네요.

    Date2013.04.08 By김영환 Views11364
    Read More
Board Pagination Prev 1 ... 151 152 153 154 155 156 157 158 159 160 ... 200 Next
/ 200

Contact Cubrid

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