[Kinesis to Amazon Rekogntion] error when running junit example

0

I am running the specific example "KinesisVideoRekognitionIntegrationExampleTest" from https://github.com/aws/amazon-kinesis-video-streams-parser-library to produce a local "output" to display the bounding box results from amazon rekognition with reference to this set of steps: https://aws.amazon.com/blogs/machine-learning/easily-perform-facial-analysis-on-live-feeds-by-creating-a-serverless-video-analytics-environment-with-amazon-rekognition-video-and-amazon-kinesis-video-streams/ My video is fed properly to KVS ( able to be seen playing on web console) However i am getting this error when running the junit test with nothing displayed on jframe

Running rekognition-kds-stream-application to process stream RekognitionVideoBlog-Stream as worker host.docker.internal:9d3a6f88-50a1-4ab6-8b65-93594b7627ad...14:09:28.173 [pool-2-thread-2] ERROR com.amazonaws.kinesisvideo.parser.examples.GetMediaWorker - Failure in GetMediaWorker for streamName LiveRekognitionVideoAnalysisBlog java.lang.Error: Unresolved compilation problems: 6 The default case is already defined

The log4j is also triggering java.lang.ClassNotFoundException: com.amazonaws.services.lambda.runtime.log4j.LambdaAppender

1 Answer
0

Hello, there was a patch on May 17th to fix the issue caused from the log4j update. https://github.com/aws/amazon-kinesis-video-streams-parser-library/commit/8e2a86a4d53be865e999c5497f077eb2c6f37e69

Are you still experiencing this issue after the patch?

AWS
answered 2 years ago
  • Yes I am facing issue as: [pool-2-thread-2] ERROR com.amazonaws.kinesisvideo.parser.examples.GetMediaWorker - Failure in GetMediaWorker for streamName kinesis-video-stream java.lang.RuntimeException: Exception while reading byte from input stream! Mar 29, 2023 12:01:46 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:47 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000

    Getting this error on repeat

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions