0 Replies Latest reply: Nov 4, 2010 2:22 PM by 810633 RSS

    Trouble establishing a Single Task Processor

    810633
      I am working on a project where I need to establish a Single Task Processor that is connecting via extend. I have the example config file that is given at http://coherence.oracle.com/display/INCUBATOR/Configuration+for+the+Processing+Pattern, however I have not been able to find any examples of a .cmd file that could be used to start up such a Task Processor. Is there any example online that can be found?


      Some additional information, I am using a .cmd file currently that is configured as follows:

      @echo off

      java -cp "%COHERENCE_HOME%\lib\coherence.jar";"%COHERENCE_HOME%\lib\common.jar";"%COHERENCE_HOME%\lib\processingpattern.jar"; ^
      -Dtangosol.coherence.distributed.localstorage=false ^
      -Dtangosol.coherence.cacheconfig=node-config.xml ^
      -Dtangosol.pof.config=custom-pof-config.xml ^
      com.tangosol.net.DefaultCacheServer

      When I try to execute this .cmd with a cache and proxy already running, the following error appears:

      Exception in thread "main" (Wrapped: Failed to load the factory) java.lang.reflect.InvocationTargetException
      at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
      at com.tangosol.net.DefaultCacheFactoryBuilder.getDefaultFactory(DefaultCacheFactoryBuilder.java:419)
      at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(DefaultCacheFactoryBuilder.java:113)
      at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFactoryBuilder.java:173)
      at com.tangosol.net.DefaultCacheFactoryBuilder.getConfigurableCacheFactory(DefaultCacheFactoryBuilder.java:149)
      at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactory.java:657)
      at com.tangosol.net.DefaultCacheServer.getDefaultConfigurableCacheFactory(DefaultCacheServer.java:364)
      at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
      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:662)
      at com.tangosol.net.DefaultCacheFactoryBuilder.getDefaultFactory(DefaultCacheFactoryBuilder.java:381)
      ... 6 more
      Caused by: java.lang.RuntimeException: java.lang.NullPointerException
      at com.oracle.coherence.patterns.processing.configuration.ProcessingPatternNamespaceHandler.parseProcessingPatternExtendConfig(ProcessingPatte
      rnNamespaceHandler.java:307)
      at com.oracle.coherence.patterns.processing.configuration.ProcessingPatternNamespaceHandler.access$100(ProcessingPatternNamespaceHandler.java:
      69)
      at com.oracle.coherence.patterns.processing.configuration.ProcessingPatternNamespaceHandler$2.onElement(ProcessingPatternNamespaceHandler.java
      :106)
      at com.oracle.coherence.environment.extensible.namespaces.AbstractNamespaceContentHandler.onElement(AbstractNamespaceContentHandler.java:146)
      at com.oracle.coherence.environment.extensible.DefaultConfigurationContext.processElement(DefaultConfigurationContext.java:320)
      at com.oracle.coherence.environment.extensible.DefaultConfigurationContext.processElementsOf(DefaultConfigurationContext.java:453)
      at com.oracle.coherence.environment.extensible.namespaces.CoherenceNamespaceContentHandler.onUnknownElement(CoherenceNamespaceContentHandler.j
      ava:408)
      at com.oracle.coherence.environment.extensible.namespaces.AbstractNamespaceContentHandler.onElement(AbstractNamespaceContentHandler.java:151)
      at com.oracle.coherence.environment.extensible.DefaultConfigurationContext.processElement(DefaultConfigurationContext.java:320)
      at com.oracle.coherence.environment.extensible.DefaultConfigurationContext.processDocument(DefaultConfigurationContext.java:204)
      at com.oracle.coherence.environment.extensible.ExtensibleEnvironment.setConfig(ExtensibleEnvironment.java:438)
      at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfigurableCacheFactory.java:186)
      at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfigurableCacheFactory.java:172)
      at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfigurableCacheFactory.java:148)
      at com.oracle.coherence.environment.extensible.ExtensibleEnvironment.<init>(ExtensibleEnvironment.java:154)
      ... 12 more
      Caused by: java.lang.NullPointerException
      at com.oracle.coherence.patterns.processing.configuration.ProcessingPatternNamespaceHandler.parseProcessingPatternTaskProcessors(ProcessingPat
      ternNamespaceHandler.java:458)
      at com.oracle.coherence.patterns.processing.configuration.ProcessingPatternNamespaceHandler.parseProcessingPatternExtendConfig(ProcessingPatte
      rnNamespaceHandler.java:298)
      ... 26 more

      Any help would be greatly appreciated, thanks.