Skip to Main Content

Integration

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!

Wrapped: Failed to load the factory - Missing or inaccessible constructor

955089Aug 12 2012 — edited Aug 20 2012
Hi,
I am trying to cache a complex object into coherence using Pof for which i have created a Custom CacheConfig.xml and also a custom pof-config.xml. With these files in the absolute path in Eclipse. When i try to start the cache server, it gives me the following exception. Its saying the "The specified schema config cannot be found." The schema used in the Cache Config file is +<cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherencecache-config coherence-cache-config.xsd">+

Not sure what the problem is? Can anyone throw some light on this issue? I am using Coherence 3.7.1 (Oracle Enterprise Pack for Eclipse (OEPE) 11gR1 (11.1.1.7)) to run my application.

Exception in thread "main" (Wrapped: Failed to load the factory) (Wrapped: Missing or inaccessible constructor "com.tangosol.net.DefaultConfigurableCacheFactory(String)"
<configurable-cache-factory-config>
<class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>C:\Eclipse\workspace\appClientModule\contacts-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>) java.lang.reflect.InvocationTargetException
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCacheFactoryBuilder.java:311)
at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(DefaultCacheFactoryBuilder.java:48)
at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFactoryBuilder.java:121)
at com.tangosol.net.ScopedCacheFactoryBuilder.getConfigurableCacheFactory(ScopedCacheFactoryBuilder.java:112)
at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactory.java:126)
at com.tangosol.net.DefaultCacheServer.getDefaultConfigurableCacheFactory(DefaultCacheServer.java:364)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: (Wrapped: Missing or inaccessible constructor "com.tangosol.net.DefaultConfigurableCacheFactory(String)"
<configurable-cache-factory-config>
<class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>C:\Eclipse\workspace\appClientModule\contacts-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>) java.lang.reflect.InvocationTargetException
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2652)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2536)
at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCacheFactoryBuilder.java:273)
... 6 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 com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:694)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2611)
... 8 more
Caused by: (Wrapped: Failed to load cache configuration: C:\Eclipse\workspace\appClientModule\contacts-cache-config.xml) (Wrapped) java.io.IOException: Exception occurred during schema validation:
The specified schema config cannot be found.
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:341)
at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:283)
at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:439)
at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultConfigurableCacheFactory.java:425)
at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfigurableCacheFactory.java:155)
... 14 more
Caused by: (Wrapped) java.io.IOException: Exception occurred during schema validation:
The specified schema config cannot be found.
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:122)
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:157)
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:322)
... 18 more
Caused by: java.io.IOException: Exception occurred during schema validation:
The specified schema config cannot be found.
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:212)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:93)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:162)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:115)
at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:118)
... 20 more
Caused by: java.io.IOException: The specified schema config cannot be found.
at com.tangosol.run.xml.SaxParser.resolveSchemaSources(SaxParser.java:278)
at com.tangosol.run.xml.SaxParser.validateXsd(SaxParser.java:230)
at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:206)
... 24 more
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2012
Added on Aug 12 2012
1 comment
2,340 views