Thursday, June 18, 2015

11.1.1.9 Upgrade

Testing our upgrade  to 11.1.1.9 and everything was going well.

We had to make a couple of changes to some clandestine code (MDS and export listener related) but everything was faster and many bugs where fixed.

Unfortunately we hit a snag with number conversion but have a simple work around. (Involves changing a lot of our code but it is for the best)

Update
Ok after a little investigation this was fixed by setting groupingUsed to true  - my mistake

            groupingUsed="true"

                              pattern="#{bindings.Amount.format}"/>

Monday, June 8, 2015

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