Spring Boot connection DB2 query results times wrong "java.lang.abstractmethoderror:com.ibm.db2.jcc.t4.b.isvalid (I) Z" Workaround

Source: Internet
Author: User
Tags db2 mongodb postgresql

For more information on how to add DB2 coordinates in a MAVEN project, see: Https://www.cnblogs.com/zifeiy/p/7918554.html

The contents of the Application.properties file in the Spring boot project are as follows:

# DB Configuration for DB2 spring.datasource.url=jdbc:db2://localhost:50000/SAMPLE
spring.datasource.driver-class-name=com.ibm.db2.jcc.DB2Driver # logging logging.level.com.zifeiy.demo=debug

Later found that this is actually no problem.

The solution is: DB2JCC dependency removed, leaving db2jcc4 on it.
In other words, the following is commented out in Pom.xml:

  <!-- https://mvnrepository.com/artifact/com.ibm.db2/db2jcc -->
        <!-- dependency>
        </dependency> -->

Reference Link: Https://stackoverflow.com/questions/37193965/java-lang-abstractmethoderror-com-ibm-db2-jcc-t4-b-isvalidiz

Spring Boot connection DB2 query results times wrong "java.lang.abstractmethoderror:com.ibm.db2.jcc.t4.b.isvalid (I) Z" Workaround

Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.