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.

ORDS 3.0.8 / RESTful Service / apex_rt expired

unficypNov 10 2016 — edited Nov 14 2016

Hi,

migrated an Restful Service to an RunTime Only APEX Instance. Get Request of the URL

generates the following errors:

Nov 10, 2016 10:29:09 AM oracle.dbtools.rt.config.setup.SchemaSetup install

INFORMATION: Oracle REST Data Services-Schemaversion 3.0.8.277.08.01 ist installiert.

2016-11-10 10:29:09.508:INFO::main: Logging initialized @1985ms

Nov 10, 2016 10:29:09 AM

INFORMATION: Disabling document root because the specified folder does not exist: C:\Temp\ords\config\ords\standalone\doc_root

2016-11-10 10:29:09.970:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT

2016-11-10 10:29:10.057:INFO:/ords:main: INFO: Using configuration folder: C:\Temp\ords\config\ords

2016-11-10 10:29:10.057:INFO:/ords:main: FINEST: |ApplicationContext [configurationFolder=C:\Temp\ords\config\ords, services=Application Scope]|

Nov 10, 2016 10:29:10 AM

INFORMATION: Validating pool: |apex||

Nov 10, 2016 10:29:10 AM

INFORMATION: Pool: |apex|| is correctly configured

Nov 10, 2016 10:29:10 AM

INFORMATION: Validating pool: |apex|al|

Nov 10, 2016 10:29:10 AM

INFORMATION: Pool: |apex|al| is correctly configured

Nov 10, 2016 10:29:10 AM

INFORMATION: Validating pool: |apex|pu|

Nov 10, 2016 10:29:10 AM

INFORMATION: Pool: |apex|pu| is correctly configured

Nov 10, 2016 10:29:10 AM

INFORMATION: Validating pool: |apex|rt|

Nov 10, 2016 10:29:10 AM

INFORMATION: Pool: |apex|rt| is correctly configured

config.dir

2016-11-10 10:29:10.350:INFO:/ords:main: INFO: Oracle REST Data Services initialized|Oracle REST Data Services version : 3.0.8.277.08.01|Oracle REST Data Servic

es server info: jetty/9.2.z-SNAPSHOT|

2016-11-10 10:29:10.351:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@38364841{/ords,null,AVAILABLE}

2016-11-10 10:29:10.355:INFO:oejsh.ContextHandler:main: Started o.e.j.s.h.ContextHandler@1e9e725a{/i,null,AVAILABLE}

2016-11-10 10:29:10.371:INFO:oejs.ServerConnector:main: Started ServerConnector@1c72da34{HTTP/1.1}{0.0.0.0:8080}

2016-11-10 10:29:10.372:INFO:oejs.Server:main: Started @2853ms

Nov 10, 2016 10:29:20 AM

INFORMATION: Configuration properties for: |apex|pu|

cache.caching=false

cache.directory=/tmp/apex/cache

cache.duration=days

cache.expiration=7

cache.maxEntries=500

cache.monitorInterval=60

cache.procedureNameList=

cache.type=lru

db.hostname=192.168.107.116

db.port=1521

db.servicename=vmcorap1

debug.debugger=false

debug.printDebugToScreen=false

error.keepErrorMessages=true

error.maxEntries=50

jdbc.DriverType=thin

jdbc.InactivityTimeout=1800

jdbc.InitialLimit=3

jdbc.MaxConnectionReuseCount=1000

jdbc.MaxLimit=10

jdbc.MaxStatementsLimit=10

jdbc.MinLimit=1

jdbc.statementTimeout=900

log.logging=false

log.maxEntries=50

misc.compress=

misc.defaultPage=apex

security.crypto.enc.password=******

security.crypto.mac.password=******

security.disableDefaultExclusionList=false

security.maxEntries=2000

security.requestValidationFunction=wwv_flow_epg_include_modules.authorize

security.validationFunctionType=plsql

db.password=******

db.username=ORDS_PUBLIC_USER

Nov 10, 2016 10:29:20 AM

WARNUNG: *** jdbc.MaxLimit in Konfiguration |apex|pu| verwendet einen Wert von 10. Diese Einstellung ist f³r eine Production-Umgebung m÷glicherweise nicht gro▀

genug ***

Nov 10, 2016 10:29:20 AM

WARNUNG: *** jdbc.InitialLimit in Konfiguration |apex|pu| verwendet einen Wert von 3. Diese Einstellung ist f³r eine Production-Umgebung m÷glicherweise nicht gr

o▀ genug ***

Nov 10, 2016 10:29:20 AM

INFORMATION: Configuration properties for: |apex|al|

cache.caching=false

cache.directory=/tmp/apex/cache

cache.duration=days

cache.expiration=7

cache.maxEntries=500

cache.monitorInterval=60

cache.procedureNameList=

cache.type=lru

db.hostname=192.168.107.116

db.port=1521

db.servicename=vmcorap1

debug.debugger=false

debug.printDebugToScreen=false

error.keepErrorMessages=true

error.maxEntries=50

jdbc.DriverType=thin

jdbc.InactivityTimeout=1800

jdbc.InitialLimit=3

jdbc.MaxConnectionReuseCount=1000

jdbc.MaxLimit=10

jdbc.MaxStatementsLimit=10

jdbc.MinLimit=1

jdbc.statementTimeout=900

log.logging=false

log.maxEntries=50

misc.compress=

misc.defaultPage=apex

security.crypto.enc.password=******

security.crypto.mac.password=******

security.disableDefaultExclusionList=false

security.maxEntries=2000

security.requestValidationFunction=wwv_flow_epg_include_modules.authorize

security.validationFunctionType=plsql

db.password=******

db.username=APEX_LISTENER

Nov 10, 2016 10:29:20 AM

WARNUNG: *** jdbc.MaxLimit in Konfiguration |apex|al| verwendet einen Wert von 10. Diese Einstellung ist f³r eine Production-Umgebung m÷glicherweise nicht gro▀

genug ***

Nov 10, 2016 10:29:20 AM

WARNUNG: *** jdbc.InitialLimit in Konfiguration |apex|al| verwendet einen Wert von 3. Diese Einstellung ist f³r eine Production-Umgebung m÷glicherweise nicht gr

o▀ genug ***

Nov 10, 2016 10:29:20 AM oracle.ucp.common.UniversalConnectionPoolBase initInactiveConnectionTimeoutTimer

INFORMATION: inactive connection timeout timer scheduled

Nov 10, 2016 10:29:20 AM oracle.ucp.common.UniversalConnectionPoolBase initInactiveConnectionTimeoutTimer

INFORMATION: inactive connection timeout timer scheduled

Nov 10, 2016 10:29:20 AM oracle.dbtools.rt.resource.templates.cache.MetadataCachesProvider activate

INFORMATION: Enabling metadata cache

Nov 10, 2016 10:29:20 AM

INFORMATION: Configuration properties for: |apex|rt|

cache.caching=false

cache.directory=/tmp/apex/cache

cache.duration=days

cache.expiration=7

cache.maxEntries=500

cache.monitorInterval=60

cache.procedureNameList=

cache.type=lru

db.hostname=192.168.107.116

db.port=1521

db.servicename=vmcorap1

debug.debugger=false

debug.printDebugToScreen=false

error.keepErrorMessages=true

error.maxEntries=50

jdbc.DriverType=thin

jdbc.InactivityTimeout=1800

jdbc.InitialLimit=3

jdbc.MaxConnectionReuseCount=1000

jdbc.MaxLimit=10

jdbc.MaxStatementsLimit=10

jdbc.MinLimit=1

jdbc.statementTimeout=900

log.logging=false

log.maxEntries=50

misc.compress=

misc.defaultPage=apex

security.crypto.enc.password=******

security.crypto.mac.password=******

security.disableDefaultExclusionList=false

security.maxEntries=2000

security.requestValidationFunction=wwv_flow_epg_include_modules.authorize

security.validationFunctionType=plsql

db.password=******

db.username=APEX_REST_PUBLIC_USER

Nov 10, 2016 10:29:20 AM

WARNUNG: *** jdbc.MaxLimit in Konfiguration |apex|rt| verwendet einen Wert von 10. Diese Einstellung ist f³r eine Production-Umgebung m÷glicherweise nicht gro▀

genug ***

Nov 10, 2016 10:29:20 AM

WARNUNG: *** jdbc.InitialLimit in Konfiguration |apex|rt| verwendet einen Wert von 3. Diese Einstellung ist f³r eine Production-Umgebung m÷glicherweise nicht gr

o▀ genug ***

Nov 10, 2016 10:29:20 AM oracle.ucp.common.UniversalConnectionPoolBase initInactiveConnectionTimeoutTimer

INFORMATION: inactive connection timeout timer scheduled

Nov 10, 2016 10:29:20 AM

SCHWERWIEGEND: WebException [statusCode=503, reasons=[Benutzer oder Kennwort f³r den Verbindungspool namens apex_rt ist ung³ltig oder abgelaufen, oder der Accou

nt wurde gesperrt]]

ResourceTemplatesException [statusCode=503, reasons=[Benutzer oder Kennwort f³r den Verbindungspool namens apex_rt ist ung³ltig oder abgelaufen, oder der Accoun

t wurde gesperrt]]

        at oracle.dbtools.rt.ResourceTemplatesServlet.adapt(ResourceTemplatesServlet.java:139)

        at oracle.dbtools.rt.ResourceTemplatesServlet.service(ResourceTemplatesServlet.java:130)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

        at oracle.dbtools.http.servlet.DispatchableServletBase.service(DispatchableServletBase.java:58)

        at oracle.dbtools.http.entrypoint.Dispatcher.dispatch(Dispatcher.java:125)

        at oracle.dbtools.http.entrypoint.EntryPoint$FilteredServlet.service(EntryPoint.java:240)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:73)

        at oracle.dbtools.http.forwarding.QueryFilteringRewrite.doFilter(QueryFilteringRewrite.java:90)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.forwarding.ForwardingFilter.doFilter(ForwardingFilter.java:68)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.cors.CORSPreflightFilter.doFilter(CORSPreflightFilter.java:66)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.cookies.auth.CookieSessionCSRFFilter.doFilter(CookieSessionCSRFFilter.java:77)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.auth.AuthenticationFilter.authenticate(AuthenticationFilter.java:87)

        at oracle.dbtools.http.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:62)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.url.mapping.RequestMapperImpl.doFilter(RequestMapperImpl.java:125)

        at oracle.dbtools.url.mapping.URLMappingBase.doFilter(URLMappingBase.java:103)

        at oracle.dbtools.url.mapping.filter.URLMappingFilter.doFilter(URLMappingFilter.java:124)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.cors.CORSResponseFilter.doFilter(CORSResponseFilter.java:83)

        at oracle.dbtools.http.filters.HttpResponseFilter.doFilter(HttpResponseFilter.java:45)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.errors.ErrorPageFilter.doFilter(ErrorPageFilter.java:94)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.auth.ForceAuthFilter.doFilter(ForceAuthFilter.java:44)

        at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:47)

        at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

        at oracle.dbtools.http.filters.Filters.filter(Filters.java:47)

        at oracle.dbtools.http.entrypoint.EntryPoint.service(EntryPoint.java:82)

        at oracle.dbtools.http.entrypoint.EntryPointServlet.service(EntryPointServlet.java:49)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

        at oracle.dbtools.rt.web.HttpEndpointBase.dispatchableServices(HttpEndpointBase.java:116)

        at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:81)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:566)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:219)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)

        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)

        at org.eclipse.jetty.server.Server.handle(Server.java:461)

        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)

        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)

        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)

        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)

        at java.lang.Thread.run(Unknown Source)

Caused by: WebException [statusCode=503, reasons=[Benutzer oder Kennwort f³r den Verbindungspool namens apex_rt ist ung³ltig oder abgelaufen, oder der Account w

urde gesperrt]]

        at oracle.dbtools.rt.web.WebException.webException(WebException.java:356)

        at oracle.dbtools.rt.web.WebException.serviceUnavailable(WebException.java:336)

        at oracle.dbtools.rt.ResourceTemplatesServlet.restfulServices(ResourceTemplatesServlet.java:283)

        at oracle.dbtools.rt.ResourceTemplatesServlet.service(ResourceTemplatesServlet.java:126)

        ... 60 more

Caused by: oracle.dbtools.common.jdbc.ConnectionPoolConfigurationException: Benutzer oder Kennwort f³r den Verbindungspool namens apex_rt ist ung³ltig oder abge

laufen, oder der Account wurde gesperrt

        at oracle.dbtools.common.jdbc.DataSourceConnection.getConnection(DataSourceConnection.java:54)

        at oracle.dbtools.common.pools.DataSourceTargetImpl.connection(DataSourceTargetImpl.java:41)

        at oracle.dbtools.common.jdbc.JDBCPrincipalImpl.connection(JDBCPrincipalImpl.java:64)

        at oracle.dbtools.common.jdbc.BaseJDBCCallProvider.connection(BaseJDBCCallProvider.java:149)

        at oracle.dbtools.common.jdbc.BaseJDBCCallProvider.transaction(BaseJDBCCallProvider.java:93)

        at oracle.dbtools.rt.resource.generator.LobGenerator.query(LobGenerator.java:182)

        at oracle.dbtools.rt.resource.generator.LobGenerator.generate(LobGenerator.java:82)

        at oracle.dbtools.rt.resource.templates.v2.ResourceTemplatesDispatcher$HttpResourceGenerator.response(ResourceTemplatesDispatcher.java:294)

        at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:121)

        at oracle.dbtools.rt.web.ETags.checkPrecondition(ETags.java:59)

        at oracle.dbtools.rt.ResourceTemplatesServlet.restfulServices(ResourceTemplatesServlet.java:271)

        ... 61 more

Caused by: oracle.dbtools.common.ucp.ConnectionLabelingException: Error occurred when attempting to configure url: unknown with labels: {oracle.dbtools.jdbc.lab

el.schema=SCHEMA_B}

        at oracle.dbtools.common.ucp.LabelingCallback.handle(LabelingCallback.java:147)

        at oracle.dbtools.common.ucp.LabelingCallback.proxyToSchema(LabelingCallback.java:210)

        at oracle.dbtools.common.ucp.LabelingCallback.configure(LabelingCallback.java:76)

        at oracle.ucp.common.UniversalConnectionPoolImpl.getAvailableConnectionHelper(UniversalConnectionPoolImpl.java:649)

        at oracle.ucp.common.UniversalConnectionPoolImpl.getAvailableConnection(UniversalConnectionPoolImpl.java:595)

        at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithoutCountingRequests(UniversalConnectionPoolImpl.java:197)

        at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionAndValidate(UniversalConnectionPoolImpl.java:145)

        at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection(UniversalConnectionPoolImpl.java:120)

        at oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection(JDBCConnectionPool.java:170)

        at oracle.ucp.jdbc.oracle.OracleJDBCConnectionPool.borrowConnection(OracleJDBCConnectionPool.java:849)

        at oracle.ucp.jdbc.oracle.OracleConnectionConnectionPool.borrowConnection(OracleConnectionConnectionPool.java:82)

        at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1103)

        at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1074)

        at oracle.dbtools.common.jdbc.DataSourceConnection.getConnection(DataSourceConnection.java:46)

        ... 71 more

Caused by: java.sql.SQLException: ORA-01017: Benutzername/Kennwort ung³ltig; Anmeldung abgelehnt

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:392)

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:385)

        at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1018)

        at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:501)

        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)

        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)

        at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:437)

        at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:1063)

        at oracle.jdbc.driver.T4CConnection.doProxySession(T4CConnection.java:2029)

        at oracle.jdbc.driver.PhysicalConnection.openProxySession(PhysicalConnection.java:3053)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at oracle.ucp.jdbc.proxy.JDBCConnectionProxyFactory.invoke(JDBCConnectionProxyFactory.java:325)

        at oracle.ucp.jdbc.proxy.ConnectionProxyFactory.invoke(ConnectionProxyFactory.java:50)

        at com.sun.proxy.$Proxy37.openProxySession(Unknown Source)

        at oracle.dbtools.common.ucp.LabelingCallback$ProxySchemaTask.call(LabelingCallback.java:282)

        at oracle.dbtools.common.ucp.LabelingCallback$ProxySchemaTask.call(LabelingCallback.java:271)

        at oracle.dbtools.common.concurrent.RetryStrategy.execute(RetryStrategy.java:45)

        at oracle.dbtools.common.ucp.LabelingCallback.proxyToSchema(LabelingCallback.java:206)

        ... 83 more

i understand that REST ist connecting to the first schema in the workspace - which is SCHEMA_B here.

The account is open and has select privs on the tables in SCHEMA_A.

I can connect to every schema configured in the ORDS config file using sqlplus, so the schemas are open and no pw is expired.

So why is ORDS thinking an account is locked / the pw is expired ? Which account does ORDS trying to connect.

I have the same setup working on my dev instance - no problems here.

EDIT:

the URL for the RESTful Service i'm calling is:

http://192.168.20.150:8080/ords/vccapex/vcctt_file/file/759

where vccapex is the workspace name.

APEX Version is 5.0.2 on 11.2.0.4

thanks for any hints,

regards

gerald

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 12 2016
Added on Nov 10 2016
3 comments
1,689 views