Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ResourceGeneratorConnections with error: No provider found

fmzJan 23 2025

I tested with ORDS 24.4 standalone on Windows 10 calling the service from the Forms 14c client and got the following failure:

FINEST: Applying filter: oracle.dbtools.url.mapping.tenant.TenantMappingFilter
Jan 23, 2025 8:39:13 PM oracle.dbtools.injector.impl.InjectorLog finest
FINEST: Failed to instantiate (and ignoring): class oracle.dbtools.rest.resource.generator.ResourceGeneratorConnectionswhen injecting optional provider of: class oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections due to the following error: No provider found for: requires oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections
Jan 23, 2025 8:39:13 PM oracle.dbtools.injector.impl.InjectorLog finest
FINEST: No provider found for: requires oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections
oracle.dbtools.injector.impl.MissingDependencyException: No provider found for: requires oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections
Caused by: oracle.dbtools.plugin.api.types.TypeDependencyNotAvailableException: The type: (provides oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections) could not be instantiated due to the following error: The provider oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections is not available
Caused by: oracle.dbtools.common.di.DependencyNotAvailableException: The provider oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections is not available
at oracle.dbtools.common.di.DependencyNotAvailableException.notAvailable(DependencyNotAvailableException.java:64)
at oracle.dbtools.rest.resource.generator.ResourceGeneratorConnections.<clinit>(ResourceGeneratorConnections.java:77)
at java.base/jdk.internal.misc.Unsafe.allocateInstance(Native Method)
at java.base/java.lang.invoke.DirectMethodHandle.allocateInstance(DirectMethodHandle.java:501)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)

Is this a configuration error?

Thanks, Fried

Comments

thatJeffSmith-Oracle Feb 13 2025

Your ENTRA users will get authenticated via JSON Web Tokens, and their Entra roles will determine which ORDS REST APIs they can hit.

When they hit an endpoint, it'll execute code in the database as the database user that owns the schema where the REST API is defined, not as Entra defiend end user. In fact, the Entra users won't have accounts in the database (they could, but wont' need to).

The :current_user field as far as ords is concerned would be the corresponding oauth2 client or JWT issued for the authorizied session.

Your prehook should be able to alter the session to set the context that would put your RLS/VPD security policy in play.

1 - 1

Post Details

Added on Jan 23 2025
2 comments
100 views