Since we’re running Windows 7 on our office laptops we’re having these error messages when starting JDeveloper 11.1.1.6. The error is:

</pre>
oracle.adf.share.config.ADFConfigFactory:Sep 19, 2012 8:29:07 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
WARNING:
java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
...
Caused by: java.lang.RuntimeException: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
 at oracle.adf.share.config.ADFConfigImpl.readConfig(ADFConfigImpl.java:247)
 at oracle.adf.share.config.ADFConfigImpl.<init>(ADFConfigImpl.java:150)
 ... 39 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:414)
 at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:355)
 at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:319)
 ... 40 more

Sep 19, 2012 8:29:07 AM oracle.adfinternal.rc.config.AdfCatalogConfig constructor
SEVERE:
oracle.adf.rc.config.ConfigurationException: an ADFContext has not been registered for name [oracle.jdeveloper.rescat2.ResourcePalette]. Root Cause=[] [Root exception is java.lang.NullPointerException]
 at oracle.adfinternal.rc.config.AdfCatalogConfig.getConfiguration(AdfCatalogConfig.java:200)
 at oracle.adf.rc.core.RCInstance.createInstance(RCInstance.java:121)
 at oracle.adf.rc.config.ConfigHelper.createRCInstance(ConfigHelper.java:102)
...
Caused by: java.lang.NullPointerException
 at oracle.adfinternal.rc.config.AdfCatalogConfig.getConfigurationInternal(AdfCatalogConfig.java:228)
 at oracle.adfinternal.rc.config.AdfCatalogConfig.getConfiguration(AdfCatalogConfig.java:181)
 ... 30 more

oracle.adf.rc.config.ConfigurationException: an ADFContext has not been registered for name [oracle.jdeveloper.rescat2.ResourcePalette]. Root Cause=[] [Root exception is java.lang.NullPointerException]
 o.adfinternal.rc.config.AdfCatalogConfig.getConfiguration(AdfCatalogConfig.java:200)
 o.adf.rc.core.RCInstance.createInstance(RCInstance.java:121)
 o.adf.rc.config.ConfigHelper.createRCInstance(ConfigHelper.java:102)
...
Caused by:
java.lang.NullPointerException
 o.adfinternal.rc.config.AdfCatalogConfig.getConfigurationInternal(AdfCatalogConfig.java:228)
 o.adfinternal.rc.config.AdfCatalogConfig.getConfiguration(AdfCatalogConfig.java:181)
 o.adf.rc.core.RCInstance.createInstance(RCInstance.java:121)
 o.adf.rc.config.ConfigHelper.createRCInstance(ConfigHelper.java:102)
... 

The problem seems to occur due to the fact JDeveloper can not access the default system dir location it did create during installation (the folder is there). The default location is: %userhome%AppDataJDeveloper

You can fix this by setting your own JDEV_USER_DIR system variable:

References:

Houd jij je kennis graag up to date?

Mis niets meer van onze kennisdocumenten, events, blogs en cases: ontvang als eerste het laatste nieuws in je inbox!

Fijn dat we je op de hoogte mogen houden!