Skip to main content

oracle.adf.rc.exception.CatalogRuntimeException: error while obtaining a connection context using connection context provider [oracle.adfinternal.rc.connection.AdfConnectionContextProvider

 Got this exception when upgrading to 11.1.1.9: the connections.xml file in [your jdeve location]system11.1.1.9.40.66.73\o.jdevimpl.rescat2\connections was 0 bytes.

I copied it over from the old version and everything is working again.

I could not run my adf application while the connections.xml was empty.


Jun 8, 2015 10:51:07 AM oracle.adfinternal.rc.connection.AdfConnectionContextProvider getConnectionContext()
SEVERE:
oracle.adf.rc.exception.CatalogRuntimeException: error while obtaining a connection context using connection context provider [oracle.adfinternal.rc.connection.AdfConnectionContextProvider] Root Cause=[Start of root element expected.]
    at oracle.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:92)
    at oracle.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
    at oracle.jdeveloper.rescat2.nodes.RescatContext.getConnectionContext(RescatContext.java:119)
    at oracle.jdeveloper.rcasadapter.rescat2.RescatContextStore.(RescatContextStore.java:59)
    at oracle.jdeveloper.server.connection.AppServerManagerImpl.(AppServerManagerImpl.java:57)
    at oracle.jdeveloper.server.connection.AppServerManagerFactoryImpl.getInstance(AppServerManagerFactoryImpl.java:45)
    at oracle.jdeveloper.server.connection.AppServerManager.getInstance(AppServerManager.java:57)
    at oracle.jdeveloper.adrs.AdrsInstance.getServer(AdrsInstance.java:166)
    at oracle.jdeveloper.adrs.AdrsInstance.getPlatform(AdrsInstance.java:511)
    at oracle.jdevimpl.adrs.AdrsAbstractPlatformAdapter.isValidDefaultInstance(AdrsAbstractPlatformAdapter.java:69)
    at oracle.jdevimpl.adrs.DefaultInstanceAddin.validateDefaultInstance(DefaultInstanceAddin.java:227)
    at oracle.jdevimpl.adrs.DefaultInstanceAddin.callCreateIntegratedInstances(DefaultInstanceAddin.java:126)
    at oracle.jdevimpl.runner.adrs.AdrsAdmin.(AdrsAdmin.java:85)
    at oracle.jdevimpl.runner.adrs.AdrsStarterFactory.canStart(AdrsStarterFactory.java:91)
    at oracle.ide.runner.AbstractStarterFactory.canStart(AbstractStarterFactory.java:35)
    at oracle.ide.runner.RunProcess.getStarterForTarget(RunProcess.java:498)
    at oracle.jdeveloper.runner.JRunProcess.determineTargetAndStarter(JRunProcess.java:322)
    at oracle.ide.runner.RunProcess.determineTargetAndStarter(RunProcess.java:336)
    at oracle.ide.runner.RunProcess.start(RunProcess.java:866)
    at oracle.jdeveloper.runner.JRunProcess.super_start(JRunProcess.java:407)
    at oracle.jdeveloper.runner.JRunProcess.access$000(JRunProcess.java:61)
    at oracle.jdeveloper.runner.JRunProcess$1$1.run(JRunProcess.java:450)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
    at java.awt.EventQueue.access$400(EventQueue.java:81)
    at java.awt.EventQueue$2.run(EventQueue.java:633)
    at java.awt.EventQueue$2.run(EventQueue.java:631)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: javax.naming.NamingException [Root exception is oracle.xml.parser.v2.XMLParseException: Start of root element expected.]
    at oracle.adf.share.jndi.ContextImpl.throwNamingException(ContextImpl.java:638)
    at oracle.adf.share.jndi.ContextImpl.load(ContextImpl.java:869)
    at oracle.adf.share.jndi.ContextImpl.init(ContextImpl.java:482)
    at oracle.adf.share.jndi.ContextImpl.(ContextImpl.java:84)
    at oracle.adf.share.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:17)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.(InitialContext.java:197)
    at oracle.adf.share.jndi.AdfInitialContext.(AdfInitialContext.java:70)
    at oracle.adf.share.config.ADFConfigImpl.getConnectionsContext(ADFConfigImpl.java:802)
    at oracle.adf.share.ADFContext.getConnectionsContext(ADFContext.java:1042)
    at oracle.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:75)
    ... 34 more
Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:460)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:401)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:341)
    at oracle.adf.share.common.rc.util.impl.MetadataRegistryImpl.getDomDocument(MetadataRegistryImpl.java:683)
    at oracle.adf.share.jndi.FileSystemBackingStore.readDocument(FileSystemBackingStore.java:59)
    at oracle.adf.share.jndi.ContextImpl.initReferencesFromDocument(ContextImpl.java:845)
    at oracle.adf.share.jndi.ContextImpl.load(ContextImpl.java:857)
    at oracle.adf.share.jndi.ContextImpl.init(ContextImpl.java:482)
    at oracle.adf.share.jndi.ContextImpl.(ContextImpl.java:85)
    at oracle.adf.share.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:17)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.(InitialContext.java:198)
    at oracle.adf.share.jndi.AdfInitialContext.(AdfInitialContext.java:70)
    at oracle.adf.share.config.ADFConfigImpl.getConnectionsContext(ADFConfigImpl.java:802)
    at oracle.adf.share.ADFContext.getConnectionsContext(ADFContext.java:1042)
    at oracle.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:75)
    at oracle.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
    at oracle.jdeveloper.rescat2.nodes.RescatContext.getConnectionContext(RescatContext.java:119)
    at oracle.jdeveloper.rcasadapter.rescat2.RescatContextStore.(RescatContextStore.java:59)
    at oracle.jdeveloper.server.connection.AppServerManagerImpl.(AppServerManagerImpl.java:57)
    at oracle.jdeveloper.server.connection.AppServerManagerFactoryImpl.getInstance(AppServerManagerFactoryImpl.java:45)
    at oracle.jdeveloper.server.connection.AppServerManager.getInstance(AppServerManager.java:57)
    at oracle.jdeveloper.adrs.AdrsInstance.getServer(AdrsInstance.java:166)
    at oracle.jdeveloper.adrs.AdrsInstance.getPlatform(AdrsInstance.java:511)
    at oracle.jdevimpl.adrs.AdrsAbstractPlatformAdapter.isValidDefaultInstance(AdrsAbstractPlatformAdapter.java:69)
    at oracle.jdevimpl.adrs.DefaultInstanceAddin.validateDefaultInstance(DefaultInstanceAddin.java:227)
    at oracle.jdevimpl.adrs.DefaultInstanceAddin.callCreateIntegratedInstances(DefaultInstanceAddin.java:129)
    at oracle.jdevimpl.runner.adrs.AdrsAdmin.(AdrsAdmin.java:85)
    at oracle.jdevimpl.runner.adrs.AdrsStarterFactory.canStart(AdrsStarterFactory.java:91)
    at oracle.ide.runner.AbstractStarterFactory.canStart(AbstractStarterFactory.java:35)
    at oracle.ide.runner.RunProcess.getStarterForTarget(RunProcess.java:498)
    at oracle.jdeveloper.runner.JRunProcess.determineTargetAndStarter(JRunProcess.java:322)
    at oracle.ide.runner.RunProcess.determineTargetAndStarter(RunProcess.java:338)
    at oracle.ide.runner.RunProcess.start(RunProcess.java:868)
    at oracle.jdeveloper.runner.JRunProcess.super_start(JRunProcess.java:408)
    at oracle.jdeveloper.runner.JRunProcess.access$000(JRunProcess.java:61)
    at oracle.jdeveloper.runner.JRunProcess$1$1.run(JRunProcess.java:451)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
    ... 1 more

Comments

Popular posts from this blog

MANIFEST.MF merge JDeveloper for an executable jar

Goto your project > properties. Then click on deployment in the menu. Edit or add a jar deployment profile. Fill in the details under jar options (select Include manifest and give it a main class name) Also remember that the merge functionality only works with a BLANK line at the end of the merge file. REALLY this caught me. My merge file contents: Class-Path: commons-codec-1.3.jar [...empty line here CRLF...]

JBO-25013: TooManyObjectsException

oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[Key null ]. Ok so for you it may be trying to insert a duplicate record this should explain your problem (also check trigger they could be the cause.) NOTE: You can also try to create a new duplicate EO if you have a page with two VO's using the same EO. This could sort your problems. For me I needed to add a launch listener on my LOV and clear the cache of my vo. LOV <af:inputListOfValues id="NameId" popupTitle="#{bindings.Name.hints.label}" value="#{bindings.RolName1.inputValue}" label="#{bindings.RolName1.hints.label}" model="#{bindings.RolName1.listOfValuesModel}" required="#{bindings.RolName1.hints.mandatory}" columns="#{bindings.RolName1.hints.displayWidth}" shortDesc="#{bindings.RolName1.hints.tooltip}" launchPopupListener="#{backingBeanScope.backingBean.launchPop...

ADF Encountered deferred syntax #{ in template text.

OracleJSP error: oracle.jsp.parse.JspParseException:  Error: Encountered deferred syntax #{ in template text.  If intended as a literal, escape it or set directive  deferredSyntaxAllowedAsLiteral This normally happens when you have some tag lib dependancy problems but this was  not the case for me... My problem: For some reason my model project had web stuff in it(public html etc)  so I had to remove the public html stuff from my project and manually edit the Model.jpr project file and remove the tag lib entries at the bottom o the file. Go figure.