2 Replies Latest reply on Jun 1, 2018 11:09 AM by Pierre Yotti

    Error initiating ORDS with Apache 9.2

    Javier Gualda

      Hi All,

       

      we are running an APEX 5.1 Application with ORDS an an apache installation 9.2 over a desktop Windows 10 machine.

       

      Suddently, after a couple of weeks run in a  production environment, we are facing a problem (ocassionally) to start ORDS. The following error

       

      31-May-2018 07:59:15.099 GRAVE [http-nio-8080-exec-2] oracle.dbtools.common.logging.LegacyLoggingAdaptor.severe Could not invoke: oracle.dbtools.url.mapping.node.NodeMapper(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.common.di.ServiceLocator,oracle.dbtools.http.dispatch.MetaDataFactory,oracle.dbtools.http.routes.RoutePatterns,oracle.dbtools.http.servlet.DispatchableServletDependencies), due to the following error: oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.rest.resource.modules.xml.StaticModules(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.rest.resource.modules.xml.StaticManifests,oracle.dbtools.common.reflect.ClassLoaderResources,oracle.dbtools.rest.resource.modules.xml.XMLResourceModules,oracle.dbtools.plugin.api.routes.PathTemplates,oracle.dbtools.rest.resource.modules.ResourceModulePatterns,oracle.dbtools.rest.resource.jdbc.hooks.JDBCDispatchHooks,oracle.dbtools.rest.resource.modules.xml.StaticPrivileges,oracle.dbtools.rest.resource.generator.ResourceGenerators), due to the following error: java.lang.NullPointerException

      oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.url.mapping.node.NodeMapper(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.common.di.ServiceLocator,oracle.dbtools.http.dispatch.MetaDataFactory,oracle.dbtools.http.routes.RoutePatterns,oracle.dbtools.http.servlet.DispatchableServletDependencies), due to the following error: oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.rest.resource.modules.xml.StaticModules(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.rest.resource.modules.xml.StaticManifests,oracle.dbtools.common.reflect.ClassLoaderResources,oracle.dbtools.rest.resource.modules.xml.XMLResourceModules,oracle.dbtools.plugin.api.routes.PathTemplates,oracle.dbtools.rest.resource.modules.ResourceModulePatterns,oracle.dbtools.rest.resource.jdbc.hooks.JDBCDispatchHooks,oracle.dbtools.rest.resource.modules.xml.StaticPrivileges,oracle.dbtools.rest.resource.generator.ResourceGenerators), due to the following error: java.lang.NullPointerException

      at oracle.dbtools.common.di.DependencyInjectionException.convert(DependencyInjectionException.java:59)

      at oracle.dbtools.common.di.Services.acquire(Services.java:172)

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

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

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

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

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

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

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:407)

      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)

      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376)

      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

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

      Caused by: oracle.dbtools.injector.impl.DependencyInjectionException: Could not invoke: oracle.dbtools.url.mapping.node.NodeMapper(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.common.di.ServiceLocator,oracle.dbtools.http.dispatch.MetaDataFactory,oracle.dbtools.http.routes.RoutePatterns,oracle.dbtools.http.servlet.DispatchableServletDependencies), due to the following error: oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.rest.resource.modules.xml.StaticModules(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.rest.resource.modules.xml.StaticManifests,oracle.dbtools.common.reflect.ClassLoaderResources,oracle.dbtools.rest.resource.modules.xml.XMLResourceModules,oracle.dbtools.plugin.api.routes.PathTemplates,oracle.dbtools.rest.resource.modules.ResourceModulePatterns,oracle.dbtools.rest.resource.jdbc.hooks.JDBCDispatchHooks,oracle.dbtools.rest.resource.modules.xml.StaticPrivileges,oracle.dbtools.rest.resource.generator.ResourceGenerators), due to the following error: java.lang.NullPointerException

      at oracle.dbtools.injector.impl.DependencyInjectionException.invocationError(DependencyInjectionException.java:118)

      at oracle.dbtools.injector.impl.ServiceFactory.invoke(ServiceFactory.java:172)

      at oracle.dbtools.injector.impl.ServiceFactory.instantiate(ServiceFactory.java:151)

      at oracle.dbtools.injector.impl.ServiceFactory.instantiate(ServiceFactory.java:124)

      at oracle.dbtools.injector.impl.ServiceFactory.access$200(ServiceFactory.java:25)

      at oracle.dbtools.injector.impl.ServiceFactory$SelfFactory.newInstance(ServiceFactory.java:349)

      at oracle.dbtools.injector.impl.Singletons.get(Singletons.java:122)

      at oracle.dbtools.injector.impl.Singletons.get(Singletons.java:130)

      at oracle.dbtools.injector.impl.ServiceFactory.resolveDependencies(ServiceFactory.java:276)

      at oracle.dbtools.injector.impl.ServiceFactory.instantiate(ServiceFactory.java:122)

      at oracle.dbtools.injector.impl.ServiceFactory.access$200(ServiceFactory.java:25)

      at oracle.dbtools.injector.impl.ServiceFactory$SelfFactory.newInstance(ServiceFactory.java:349)

      at oracle.dbtools.injector.impl.Singletons.get(Singletons.java:122)

      at oracle.dbtools.injector.impl.ServiceFactory.newInstance(ServiceFactory.java:49)

      at oracle.dbtools.injector.impl.InjectorImpl._acquireAll(InjectorImpl.java:248)

      at oracle.dbtools.injector.impl.InjectorImpl.acquire(InjectorImpl.java:86)

      at oracle.dbtools.injector.impl.InjectorImpl.acquire(InjectorImpl.java:64)

      at oracle.dbtools.common.di.Services.acquire(Services.java:170)

      ... 28 more

      Caused by: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

      at java.lang.reflect.Constructor.newInstance(Unknown Source)

      at oracle.dbtools.injector.impl.ServiceFactory.invoke(ServiceFactory.java:162)

      ... 44 more

      Caused by: oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.rest.resource.modules.xml.StaticModules(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.rest.resource.modules.xml.StaticManifests,oracle.dbtools.common.reflect.ClassLoaderResources,oracle.dbtools.rest.resource.modules.xml.XMLResourceModules,oracle.dbtools.plugin.api.routes.PathTemplates,oracle.dbtools.rest.resource.modules.ResourceModulePatterns,oracle.dbtools.rest.resource.jdbc.hooks.JDBCDispatchHooks,oracle.dbtools.rest.resource.modules.xml.StaticPrivileges,oracle.dbtools.rest.resource.generator.ResourceGenerators), due to the following error: java.lang.NullPointerException

      at oracle.dbtools.common.di.DependencyInjectionException.convert(DependencyInjectionException.java:59)

      at oracle.dbtools.common.di.Services.acquireAll(Services.java:224)

      at oracle.dbtools.common.di.Services$SelfServices.acquireAll(Services.java:711)

      at oracle.dbtools.url.mapping.node.NodeMapper.<init>(NodeMapper.java:91)

      ... 49 more

      Caused by: oracle.dbtools.injector.impl.DependencyInjectionException: Could not invoke: oracle.dbtools.rest.resource.modules.xml.StaticModules(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.rest.resource.modules.xml.StaticManifests,oracle.dbtools.common.reflect.ClassLoaderResources,oracle.dbtools.rest.resource.modules.xml.XMLResourceModules,oracle.dbtools.plugin.api.routes.PathTemplates,oracle.dbtools.rest.resource.modules.ResourceModulePatterns,oracle.dbtools.rest.resource.jdbc.hooks.JDBCDispatchHooks,oracle.dbtools.rest.resource.modules.xml.StaticPrivileges,oracle.dbtools.rest.resource.generator.ResourceGenerators), due to the following error: java.lang.NullPointerException

      at oracle.dbtools.injector.impl.DependencyInjectionException.invocationError(DependencyInjectionException.java:118)

      at oracle.dbtools.injector.impl.ServiceFactory.invoke(ServiceFactory.java:172)

      at oracle.dbtools.injector.impl.ServiceFactory.instantiate(ServiceFactory.java:151)

      at oracle.dbtools.injector.impl.ServiceFactory.instantiate(ServiceFactory.java:124)

      at oracle.dbtools.injector.impl.ServiceFactory.access$200(ServiceFactory.java:25)

      at oracle.dbtools.injector.impl.ServiceFactory$SelfFactory.newInstance(ServiceFactory.java:349)

      at oracle.dbtools.injector.impl.Singletons.get(Singletons.java:122)

      at oracle.dbtools.injector.impl.ServiceFactory.resolveDependencies(ServiceFactory.java:276)

      at oracle.dbtools.injector.impl.ServiceFactory.instantiate(ServiceFactory.java:122)

      at oracle.dbtools.injector.impl.ServiceFactory.access$200(ServiceFactory.java:25)

      at oracle.dbtools.injector.impl.ServiceFactory$SelfFactory.newInstance(ServiceFactory.java:349)

      at oracle.dbtools.injector.impl.Singletons.get(Singletons.java:122)

      at oracle.dbtools.injector.impl.ServiceFactory.newInstance(ServiceFactory.java:49)

      at oracle.dbtools.injector.impl.InjectorImpl._acquireAll(InjectorImpl.java:248)

      at oracle.dbtools.injector.impl.InjectorImpl.acquireAll(InjectorImpl.java:110)

      at oracle.dbtools.common.di.Services.acquireAll(Services.java:221)

      ... 51 more

      Caused by: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

      at java.lang.reflect.Constructor.newInstance(Unknown Source)

      at oracle.dbtools.injector.impl.ServiceFactory.invoke(ServiceFactory.java:162)

      ... 65 more

      Caused by: java.lang.NullPointerException

      at oracle.dbtools.rest.resource.modules.xml.Content$Builder.xml(Content.java:152)

      at oracle.dbtools.rest.resource.modules.xml.Handler.content(Handler.java:85)

      at oracle.dbtools.rest.resource.modules.xml.Handler.content(Handler.java:22)

      at oracle.dbtools.rest.resource.modules.xml.XMLResourceModuleSet$Builder.read(XMLResourceModuleSet.java:142)

      at oracle.dbtools.rest.resource.modules.xml.XMLResourceModuleSet$Builder.add(XMLResourceModuleSet.java:75)

      at oracle.dbtools.rest.resource.modules.xml.StaticModules.<init>(StaticModules.java:39)

      ... 70 more

       

      Any idea about the error? When we restart the machine or tomcat, it seems that works properly but we need to solve the problem as we are running in production.

       

      Thanks in advance