Quantcast
Channel: Tech Team Lead News
Browsing latest articles
Browse All 82 View Live

ProvisionedThroughputExceededException using KCL (Kinesis Client Library)

ProvisionedThroughputExceededExceptionWhen using the Amazon Kinesis Client Library (KCL) one would not expect the table created by KCL itself to keep track of its streams, shards and checkpoints to...

View Article


ReadProvisionedThroughputExceeded using Kinesis

ReadProvisionedThroughputExceededWhen using Kinesis it is possible you'll get an ReadProvisionedThroughputExceeded when not carefully designing the shards consumption of messages.That exception...

View Article


Image may be NSFW.
Clik here to view.

Maven Failsafe plugin build error: SurefireBooterForkException: The forked VM...

When you get this exception during running mvn clean verify, which executes both the Surefire and Failsafe plugin (for which the last one uses the Surefire plugin!):SurefireBooterForkException: The...

View Article

Image may be NSFW.
Clik here to view.

PACT Consumer Driven Contract Testing: how to allow any body in the response

Consumer Driven Contract testing is a way to ensure that services (such as an API provider and a client) can communicate with each other. Without contract testing, the only way to know that services...

View Article

Image may be NSFW.
Clik here to view.

Snyk .snyk ignore file with multiple entries format

"Snyk enables you to find, and more importantly fix known vulnerabilities in your open source."Some vulnerabilities you'd want to ignore, because for example they are (for you) either false positives,...

View Article


PACT provider test with Serverless Java 11 Lambda and JUnit 5 (Jupiter)

IntroductionThis blogpost shows how to create a Pact provider test using:Pact 4.0.0AWS Serverless LambdaJava 11JUnit 5 (Jupiter)Example Provider TestBelow is the example test class. Note how a mock...

View Article

Image may be NSFW.
Clik here to view.

Spring @Scheduled using DynamoDB AWS X-Ray throws SegmentNotFoundException:...

IntroductionAWS X-Ray is designed to automatically intercept incoming web requests, see at this introduction.  And also here. But when you start your own thread (either via a Runnable or plain new...

View Article

Sentry in Spring Boot application reports uncaught exception while...

IntroductionEven when you have a @RestControllerAdvice configured and you know it gets invoked, it can be that Sentry.io's monitoring library still reports it as an (uncaught) exception. Reason for...

View Article


Image may be NSFW.
Clik here to view.

Configuring MySQL test-containers in your Spring Boot Java Integration Tests

IntroductionIn your Integration Tests (IT) you often try to use the H2 in-memory database, to improve the speed of your integration tests. But on the other hand you want to mimic the production...

View Article


Image may be NSFW.
Clik here to view.

Connection refused Spring Boot application to MySql in Docker solution

IntroductionThe Spring Boot Java application was initially using the H2 embedded database, first the in-memory version (losing all data each run), then the file based version. The database structure is...

View Article

Image may be NSFW.
Clik here to view.

Kotlin for Java Developers course summary

IntroductionThis is my summary of relevant lessons learned during a Kotlin for Java developers course.SummaryGeneral- When running standalone, needs Kotlin runtime- Toplevel functions: not explicitly...

View Article

Image may be NSFW.
Clik here to view.

Migrating Java 17 Spring Boot 2.7.3 application to Kotlin 1.7.20

IntroductionThis blogpost describes the challenges encountered when migrating a Java 17 Spring Boot 2.7.3 application to Kotlin 1.7.20. Other libraries/tools used in the project:- Swagger (OpenAPI...

View Article

Image may be NSFW.
Clik here to view.

Spring JDBC and MySql using UUIDs in Java and VARCHAR(36) in database...

Introduction Using H2 as initial embedded database for a Spring Boot application worked fine. H2 is very forgiving in many situations and of course only tries to emulate the real target database, in...

View Article


Image may be NSFW.
Clik here to view.

Flyway FlywayValidateException Validate failed: Migrations have failed...

IntroductionSetup:Spring boot 2.7.4Kotlin 1.7.20Flyway dependencies:plugins {    id "org.flywaydb.flyway" version "9.6.0"}project(":application") {  dependencies {      dependencies {...

View Article

Image may be NSFW.
Clik here to view.

Docker build with Git command running in CircleCI failing with: Fatal: No...

IntroductionContext: Docker, CircleCI, Github.The Docker build command docker build -f .circleci/Dockerfile -t $AWS_ACCOUNT_ID.ecr.$AWS_DEFAULT_REGION.amazonaws.com/${CIRCLE_PROJECT_REPONAME}:`git...

View Article


Image may be NSFW.
Clik here to view.

Where to find .gitattributes on Windows 10/11 using Git, IntelliJ 2022 and...

IntroductionProblem: when checking out a project in IntelliJ in Windows, all files are checked out with Window's newline CRLF (\r\n).But if you then open a terminal in IntelliJ which runs WSL (Ubuntu)...

View Article

Image may be NSFW.
Clik here to view.

AWS SAM CLI FileNotFoundError: WinError 3: The system cannot find the path...

IntroductionThe AWS SAM CLI command sam.cmd build MyFunction --template C:\techie\workspace\my-function\local\template.yaml --build-dir C:\techie\workspace\my-function\local\.aws-sam\build --debug...

View Article


Image may be NSFW.
Clik here to view.

Datadog: Malformed _X_AMZN_TRACE_ID value Root - also known as X-Amzn-Trace-Id

IntroductionSince 14 March 2023 suddenly my AWS lambdas started to log this error:datadog: Malformed _X_AMZN_TRACE_ID value:...

View Article

Image may be NSFW.
Clik here to view.

OWASP Dependency Check plugin suppressions.xml examples

IntroductionOne of the features of the OWASPdependency check plugin is to be able to suppress reported vulnerabilities, for example because they are false-positives for your configuration, or no new...

View Article

Image may be NSFW.
Clik here to view.

Too many open files in AWS Lambda serverless troubleshooting

IntroductionOne of my Kotlin lambdas was throwing Too many open files exceptions and thus logging errors, but only nightly, when it got bursts of SQS messages to process. To find out what was causing...

View Article

Image may be NSFW.
Clik here to view.

Unknown application error occurred Runtime.Unknown - Startup issue AWS...

IntroductionTrying to invoke a deployed AWS Serverless Lambda on AWS, I was getting this error CloudWatch when trying to invoke the lambda via an SQS event, published by another service in my...

View Article


Image may be NSFW.
Clik here to view.

SpringDoc OpenAPI Swagger generated Swagger API shows incorrect class with...

IntroductionWhen you have multiple classes with the same name in your classpath, SpringDoc with Swagger API annotations potentially picks the wrong class with the same name when generating the Swagger...

View Article


Image may be NSFW.
Clik here to view.

MapStruct library: setting a field with an expression to a ZonedDateTime

IntroductionSetup:- Mapstruct 1.5.5- Kotlin 1.8- IntelliJ 2023.2.3  For a mapping between two classes, the source class did not have the mandatory (non-null, Kotlin!) target class field created. And I...

View Article

Image may be NSFW.
Clik here to view.

OWASP DependencyCheck returns 403 Forbidden accessing NVD API using API key

IntroductionRecently, the NVD (National Vulnerability Database) which the Owasp dependency check plugin uses to get its data from to check for vulnerabilities, has introduced the use of an API key....

View Article

Image may be NSFW.
Clik here to view.

Kotlin: how to mock a static Companion method using MockK

IntroductionHow do you mock a static companion method in Kotlin using MockK?I wanted to mock this (static) method in a companion object in Kotlin in class MyClass:  companion object {    fun...

View Article

Browsing latest articles
Browse All 82 View Live