Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue :: AWS Java SDK For Amazon Rekognition - upgradation #4321

Closed
Ravi-Teja-Coder opened this issue Aug 18, 2023 · 4 comments
Closed

Issue :: AWS Java SDK For Amazon Rekognition - upgradation #4321

Ravi-Teja-Coder opened this issue Aug 18, 2023 · 4 comments
Labels
duplicate This issue is a duplicate. feature-request A feature should be added or improved.

Comments

@Ravi-Teja-Coder
Copy link

Describe the bug

AWS Java SDK For Amazon Rekognition - is of javax package made on Apache License, Version 2.0.

Current latest of Apache tomcat is of 10 and which takes jakarta package instead of javax. Even in latest dependency could not provide. i.e Association is getting failure with 'entity.Tags.videos' targets the type 'com.amazonaws.services.rekognition.model.Video' which is not an '@entity' type

Expected Behavior

Must work with jakarta and also old dependency is javax

Current Behavior

could not able to migrate from java 11 to java 17
Association 'org.entity.Tags.videos' targets the type 'com.amazonaws.services.rekognition.model.Video' which is not an '@entity' type
at org.hibernate.boot.model.internal.CollectionBinder.detectManyToManyProblems(CollectionBinder.java:2484)
at org.hibernate.boot.model.internal.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:2079)
at org.hibernate.boot.model.internal.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:1550)
at org.hibernate.boot.model.internal.CollectionBinder$1.secondPass(CollectionBinder.java:1534)
at org.hibernate.boot.model.internal.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:45)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1857)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1814)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:328)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1380)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1451)

Reproduction Steps

Higher version of java must also work

Possible Solution

No response

Additional Information/Context

Not like bug also. take it as feature request

AWS Java SDK version used

'com.amazonaws:aws-java-sdk-rekognition:1.12.530'

JDK version used

java version "17.0.8" 2023-07-18 LTS Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211) Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)

Operating System and version

Mac os

@Ravi-Teja-Coder Ravi-Teja-Coder added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 18, 2023
@debora-ito debora-ito added feature-request A feature should be added or improved. duplicate This issue is a duplicate. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 18, 2023
@debora-ito
Copy link
Member

@ravi-codeprism I see you are using Java SDK v1, we are tracking the feature request here - aws/aws-sdk-java#2527. The team's focus is in working in v2 features, so releasing this in v1 has very low priority. Will close this as a duplicate.

Java SDK v2 already supports jakarta namespaces, the recommendation is to upgrade to v2.

@debora-ito debora-ito closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@Ravi-Teja-Coder
Copy link
Author

@debora-ito Java SDK v2 got released. if so, can you share that dependency ?

@debora-ito
Copy link
Member

Here's an example using maven:

    <dependency>
        <groupId>software.amazon.awssdk</groupId>
        <artifactId>rekognition</artifactId>
    </dependency>

Our Java SDK v2 Developer Guide goes through more examples of how to set up build config files to use the SDK v2:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup-project-maven.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate. feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants