1 Reply Latest reply on Apr 3, 2014 6:02 AM by rock

    Can off JVM heap Memory used in the Near-Cache front-tier

    1117312

      I had tried to config a near-Cache used nio-manager(off JVM heap) in the Front-tier.

       

      <near-scheme>

            <scheme-name>CohApp-near</scheme-name>

           

            <front-scheme>

              <external-scheme>

             

              </external-scheme>

             

            </front-scheme>

       

            <back-scheme>

              <distributed-scheme>

                <scheme-ref>CohApp-distributed</scheme-ref>

              </distributed-scheme>

            </back-scheme>

       

            <invalidation-strategy>auto</invalidation-strategy>

            <autostart>true</autostart>

          </near-scheme>

       

       

      when start 'com.tangosol.net.DefaultCacheServer' for this config, error as:

       

      Oracle Coherence Version 3.7.1.0 Build 27797

      Enterprise Edition: Development mode

      Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

       

      2014-03-30 16:34:17.518/1.201 Oracle Coherence EE 3.7.1.0 <Error> (thread=main,

      member=n/a): Error org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invali

      d content was found starting with element 'external-scheme'. One of '{"http://xm

      lns.oracle.com/coherence/coherence-cache-config":local-scheme, "http://xmlns.ora

      cle.com/coherence/coherence-cache-config":class-scheme}' is expected. - line 92

      Exception in thread "main" (Wrapped: Failed to load the factory) (Wrapped: Missi

      ng 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>coherence-cache-config.xml</param-value>

          </init-param>

        </init-params>

      </configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio

      n

              at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)

              at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa

      cheFactoryBuilder.java:311)

              at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(Defau

      ltCacheFactoryBuilder.java:48)

              at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFa

      ctoryBuilder.java:121)

              at com.tangosol.net.ScopedCacheFactoryBuilder.getConfigurableCacheFactor

      y(ScopedCacheFactoryBuilder.java:112)

              at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactor

      y.java:126)

              at com.tangosol.net.DefaultCacheServer.getDefaultConfigurableCacheFactor

      y(DefaultCacheServer.java:364)

              at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)

       

      Caused by: (Wrapped: Missing or inaccessible constructor "com.tangosol.net.Defau

      ltConfigurableCacheFactory(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>coherence-cache-config.xml</param-value>

          </init-param>

        </init-params>

      </configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio

      n

              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(ScopedCa

      cheFactoryBuilder.java:273)

              ... 6 more

      Caused by: java.lang.reflect.InvocationTargetException

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

       

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

      orAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

      onstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              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: coherence-cache-config.

      xml) (Wrapped) java.io.IOException: Exception occurred during schema validation:

       

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa

      l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l

      ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc

      heme}' is expected.

              at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)

              at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:34

      1)

              at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:283)

       

              at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultCo

      nfigurableCacheFactory.java:439)

              at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultCo

      nfigurableCacheFactory.java:425)

              at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig

      urableCacheFactory.java:155)

              ... 14 more

      Caused by: (Wrapped) java.io.IOException: Exception occurred during schema valid

      ation:

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa

      l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l

      ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc

      heme}' is expected.

              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:32

      2)

              ... 18 more

      Caused by: java.io.IOException: Exception occurred during schema validation:

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa

      l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l

      ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc

      heme}' is expected.

              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: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid conten

      t was found starting with element 'external-scheme'. One of '{"http://xmlns.orac

      le.com/coherence/coherence-cache-config":local-scheme, "http://xmlns.oracle.com/

      coherence/coherence-cache-config":class-scheme}' is expected.

              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX

      ParseException(ErrorHandlerWrapper.java:195)

              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err

      orHandlerWrapper.java:131)

              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(

      XMLErrorReporter.java:384)

              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(

      XMLErrorReporter.java:318)

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErro

      rReporter.reportError(XMLSchemaValidator.java:417)

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportS

      chemaError(XMLSchemaValidator.java:3182)

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS

      tartElement(XMLSchemaValidator.java:1806)

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl

      ement(XMLSchemaValidator.java:705)

              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan

      StartElement(XMLNSDocumentScannerImpl.java:400)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp

      l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X

      MLDocumentScannerImpl.java:648)

              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next

      (XMLNSDocumentScannerImpl.java:140)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp

      l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X

      ML11Configuration.java:808)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X

      ML11Configuration.java:737)

              at com.sun.org.apache.xerces.internal.jaxp.validation.StreamValidatorHel

      per.validate(StreamValidatorHelper.java:144)

              at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.vali

      date(ValidatorImpl.java:111)

              at javax.xml.validation.Validator.validate(Validator.java:127)

              at com.tangosol.run.xml.SaxParser.validateXsd(SaxParser.java:236)

              at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:206)

       

       

      So I think that if can off JVM heap Memory used in the Near-Cache front-tier?

      Or can help how to config the  off JVM heap Memory used in the Near-Cache front-tier.

       

      Thanks.