• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

프로젝트 초기 설정에서 오류로 실행이 안됩니다.

24.01.22 23:50 작성 조회수 455

0

1월 22, 2024 11:47:46 오후 org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation

INFO: HHH000204: Processing PersistenceUnitInfo [name: hello]

1월 22, 2024 11:47:46 오후 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate ORM core version 6.4.2.Final

1월 22, 2024 11:47:46 오후 org.hibernate.cache.internal.RegionFactoryInitiator initiateService

INFO: HHH000026: Second-level cache disabled

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

WARN: HHH10001002: Using built-in connection pool (not intended for production use)

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001005: Loaded JDBC driver class: org.h2.Driver

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001012: Connecting with JDBC URL [jdbc:h2:tcp://localhost/~/test]

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001001: Connection properties: {password=****, user=sa}

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001003: Autocommit mode: false

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections <init>

INFO: HHH10001115: Connection pool size: 20 (min=1)

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl constructDialect

WARN: HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)

1월 22, 2024 11:47:47 오후 org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator initiateService

INFO: HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)

1월 22, 2024 11:47:47 오후 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PoolState stop

INFO: HHH10001008: Cleaning up connection pool [jdbc:h2:tcp://localhost/~/test]

 

코드는 프로젝트 초기 설정 소스 코드 그대로 실행했는데 안됩니다...

답변 1

답변을 작성해보세요.

0

OMG님의 프로필

OMG

2024.01.23

안녕하세요. 김성진님, 공식 서포터즈 OMG입니다.

올리신 메시지 상에서는 ERROR 라던지, xxException이라던지 오류와 관련된 내용을 찾을 수 없네요 😀

아래와 같이 JpaMain 코드 중 catch 안에 e.printStackTrace(); 코드를 추가하여 나오는 메시지를 확인해보시겠어요?

H2 세팅단계 진행여부와 H2실행여부를 확인해보시면 좋을 것 같습니다^^

try {
    // ..
} catch (Exception e) {
    e.printStackTrace();
    //..
}

해결이 안될 경우 댓글 남겨주세요

감사합니다.

김성진님의 프로필

김성진

질문자

2024.01.23

해당 코드 jpamain에 추가했습니다! H2는 실행되는 것 확인했습니다.image

1월 23, 2024 12:09:38 오전 org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation

INFO: HHH000204: Processing PersistenceUnitInfo [name: hello]

1월 23, 2024 12:09:38 오전 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate ORM core version 6.4.2.Final

1월 23, 2024 12:09:38 오전 org.hibernate.cache.internal.RegionFactoryInitiator initiateService

INFO: HHH000026: Second-level cache disabled

1월 23, 2024 12:09:38 오전 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

WARN: HHH10001002: Using built-in connection pool (not intended for production use)

1월 23, 2024 12:09:38 오전 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001005: Loaded JDBC driver class: org.h2.Driver

1월 23, 2024 12:09:38 오전 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001012: Connecting with JDBC URL [jdbc:h2:tcp://localhost/~/test]

1월 23, 2024 12:09:38 오전 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001001: Connection properties: {password=****, user=sa}

1월 23, 2024 12:09:38 오전 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001003: Autocommit mode: false

1월 23, 2024 12:09:38 오전 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections <init>

INFO: HHH10001115: Connection pool size: 20 (min=1)

1월 23, 2024 12:09:38 오전 org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl constructDialect

WARN: HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)

1월 23, 2024 12:09:39 오전 org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator initiateService

INFO: HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)

1월 23, 2024 12:09:39 오전 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PoolState stop

INFO: HHH10001008: Cleaning up connection pool [jdbc:h2:tcp://localhost/~/test]

OMG님의 프로필

OMG

2024.01.23

JpaMain클래스에 작성하신 코드내역이 초기 제공상태 그대로이고,

만약 별도의 코드를 작성하신게 아니라면 지금 출력되는 메시지에서는 이전 답변과 동일하게 특이사항이 없어보입니다.

강의 대로 코드를 작성하면서 진행해도 될 것 같은데, 어떠한 이유에서 (=강의 내용 기반하여 어떠한 다른 현상이 발생하여) 오류라고 하였는지 알 수 있을까요?

 

김성진님의 프로필

김성진

질문자

2024.01.23

앗 제가 강의보다 프로젝트 설정 pdf 먼저 보고 진행하고 있었는데, pdf에는 프로젝트가 정상 수행되는지 확인하라는 내용이 있어서 혼동이 있었나 보네요 ,,, 강의 따라서 진행하면 문제없이 진행될 것 같습니다!! 감사합니다.