This discussion is archived
3 Replies Latest reply: Jan 2, 2013 9:46 AM by user738616 RSS

Oracle Coherence issue

928093 Newbie
Currently Being Moderated
Hi, I am getting the below error while trying to run the coherence cache-server.cmd. Please help me in getting this issue resolve. I have the config files in the correct location.


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>C:\Coherence\employee-cache-config.xml;C:\Coherence\employee-
pof-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>C:\Coherence\employee-cache-config.xml;C:\Coherence\employee-
pof-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: C:\Coherence\employee-c
ache-config.xml;C:\Coherence\employee-pof-config.xml;) java.io.IOException: The
cache configuration is missing: "C:\Coherence\employee-cache-config.xml;C:\Coher
ence\employee-pof-config.xml;", loader=null
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: java.io.IOException: The cache configuration is missing: "C:\Coherenc
e\employee-cache-config.xml;C:\Coherence\employee-pof-config.xml;", loader=null
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:31
8)
... 18 more
2012-12-26 18:08:25.628/0.468 Oracle Coherence 3.7.1.0 <Info> (thread=main, memb
er=n/a): Loaded operational configuration from "jar:file:/C:/Coherence/lib/coher
ence.jar!/tangosol-coherence.xml"
2012-12-26 18:08:25.878/0.718 Oracle Coherence 3.7.1.0 <Info> (thread=main, memb
er=n/a): Loaded operational overrides from "jar:file:/C:/Coherence/lib/coherence
.jar!/tangosol-coherence-override-dev.xml"
2012-12-26 18:08:25.878/0.718 Oracle Coherence 3.7.1.0 <D5> (thread=main, member
=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not
specified
2012-12-26 18:08:25.878/0.718 Oracle Coherence 3.7.1.0 <D5> (thread=main, member
=n/a): Optional configuration override "/custom-mbeans.xml" is not specified

Oracle Coherence Version 3.7.1.0 Build 27797
Grid Edition: Development mode
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Regards,
CG
  • 1. Re: Oracle Coherence issue
    928093 Newbie
    Currently Being Moderated
    Please find my configs below

    employee-cache-config.xml

    *<?xml version="1.0"?>

    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">

    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>Employee_Cache</cache-name>
    <scheme-name>EmployeePartitionedPofScheme</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>

    <caching-schemes>
    <distributed-scheme>
    <scheme-name>EmployeePartitionedPofScheme</scheme-name>
    <service-name>PartitionedPofCache</service-name>
         <local-storage>true</local-storage>
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>employee-pof-config.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    <backing-map-scheme>
    <local-scheme>
    <!-- each node will be limited to 250MB -->
    <high-units>250M</high-units>
    <unit-calculator>binary</unit-calculator>
    </local-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>

    <!--
    Proxy Service scheme that allows remote clients to connect to the
    cluster over TCP/IP.
    -->
    <proxy-scheme>
    <scheme-name>Employee-proxy</scheme-name>
    <service-name>ProxyService</service-name>

    <thread-count system-property="tangosol.coherence.extend.threads">2</thread-count>

    <acceptor-config>
    <tcp-acceptor>
    <local-address>
    <address system-property="tangosol.coherence.extend.address">localhost</address>
    <port system-property="tangosol.coherence.extend.port">9099</port>
    <reusable>true</reusable>
    </local-address>
    </tcp-acceptor>

    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>employee-pof-config.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    </acceptor-config>
    <autostart system-property="tangosol.coherence.extend.enabled">false</autostart> </proxy-scheme>
    </caching-schemes>
    </cache-config>*


    -------

    employee-pof-config.xml
    *<?xml version="1.0"?>

    <!--
    Note: This XML document is an example Coherence POF Configuration deployment
    descriptor that should be customized, replaced or extended for your
    particular application requirements.

    For detailed information on each of the elements that can be used in this
    descriptor please see the Coherence POF Configuration document type
    descriptor: pof-config.xsd.
    -->

    <pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config"
    xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config coherence-pof-config.xsd">

    <user-type-list>

    <!-- Exceptions (0-9) -->
    <user-type>
    <type-id>0</type-id>
    <class-name>java.lang.Throwable</class-name>
    <serializer>
    <class-name>com.tangosol.io.pof.ThrowablePofSerializer</class-name>
    </serializer>
    </user-type>

    <user-type>
    <type-id>1</type-id>
    <class-name>com.tangosol.license.LicenseException</class-name>
    </user-type>

    <user-type>
    <type-id>2</type-id>
    <class-name>com.tangosol.net.RequestTimeoutException</class-name>
    </user-type>

    <user-type>
    <type-id>3</type-id>
    <class-name>com.tangosol.net.messaging.ConnectionException</class-name>
    </user-type>

    <!-- com.tangosol.util package (10-19) and (260-269) -->

    <user-type>
    <type-id>10</type-id>
    <class-name>com.tangosol.util.NullFilter</class-name>
    </user-type>

    <user-type>
    <type-id>11</type-id>
    <class-name>com.tangosol.util.NullImplementation$NullSet</class-name>
    </user-type>

    <user-type>
    <type-id>12</type-id>
    <class-name>com.tangosol.util.NullImplementation$NullObservableMap</class-name>
    </user-type>

    <user-type>
    <type-id>13</type-id>
    <class-name>com.tangosol.util.NullImplementation$NullValueExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>14</type-id>
    <class-name>com.tangosol.util.UUID</class-name>
    </user-type>

    <user-type>
    <type-id>15</type-id>
    <class-name>com.tangosol.util.UID</class-name>
    </user-type>

    <user-type>
    <type-id>16</type-id>
    <class-name>com.tangosol.util.NullImplementation$NullEntryProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>17</type-id>
    <class-name>com.tangosol.util.NullImplementation$NullMap</class-name>
    </user-type>

    <user-type>
    <type-id>18</type-id>
    <class-name>com.tangosol.util.CompositeKey</class-name>
    </user-type>

    <!-- com.tangosol.util.aggregator package (20-39) and (250-259) -->

    <user-type>
    <type-id>20</type-id>
    <class-name>com.tangosol.util.aggregator.BigDecimalAverage</class-name>
    </user-type>

    <user-type>
    <type-id>21</type-id>
    <class-name>com.tangosol.util.aggregator.BigDecimalMax</class-name>
    </user-type>

    <user-type>
    <type-id>22</type-id>
    <class-name>com.tangosol.util.aggregator.BigDecimalMin</class-name>
    </user-type>

    <user-type>
    <type-id>23</type-id>
    <class-name>com.tangosol.util.aggregator.BigDecimalSum</class-name>
    </user-type>

    <user-type>
    <type-id>24</type-id>
    <class-name>com.tangosol.util.aggregator.ComparableMax</class-name>
    </user-type>

    <user-type>
    <type-id>25</type-id>
    <class-name>com.tangosol.util.aggregator.ComparableMin</class-name>
    </user-type>

    <user-type>
    <type-id>26</type-id>
    <class-name>com.tangosol.util.aggregator.CompositeAggregator</class-name>
    </user-type>

    <user-type>
    <type-id>27</type-id>
    <class-name>com.tangosol.util.aggregator.CompositeAggregator$Parallel</class-name>
    </user-type>

    <user-type>
    <type-id>28</type-id>
    <class-name>com.tangosol.util.aggregator.Count</class-name>
    </user-type>

    <user-type>
    <type-id>29</type-id>
    <class-name>com.tangosol.util.aggregator.DistinctValues</class-name>
    </user-type>

    <user-type>
    <type-id>30</type-id>
    <class-name>com.tangosol.util.aggregator.DoubleAverage</class-name>
    </user-type>

    <user-type>
    <type-id>31</type-id>
    <class-name>com.tangosol.util.aggregator.DoubleMax</class-name>
    </user-type>

    <user-type>
    <type-id>32</type-id>
    <class-name>com.tangosol.util.aggregator.DoubleMin</class-name>
    </user-type>

    <user-type>
    <type-id>33</type-id>
    <class-name>com.tangosol.util.aggregator.DoubleSum</class-name>
    </user-type>

    <user-type>
    <type-id>34</type-id>
    <class-name>com.tangosol.util.aggregator.GroupAggregator</class-name>
    </user-type>

    <user-type>
    <type-id>35</type-id>
    <class-name>com.tangosol.util.aggregator.GroupAggregator$Parallel</class-name>
    </user-type>

    <user-type>
    <type-id>36</type-id>
    <class-name>com.tangosol.util.aggregator.LongMax</class-name>
    </user-type>

    <user-type>
    <type-id>37</type-id>
    <class-name>com.tangosol.util.aggregator.LongMin</class-name>
    </user-type>

    <user-type>
    <type-id>38</type-id>
    <class-name>com.tangosol.util.aggregator.LongSum</class-name>
    </user-type>

    <user-type>
    <type-id>39</type-id>
    <class-name>com.tangosol.util.aggregator.PriorityAggregator</class-name>
    </user-type>

    <!-- com.tangosol.util.comparator package (40-49) -->

    <user-type>
    <type-id>40</type-id>
    <class-name>com.tangosol.util.comparator.ChainedComparator</class-name>
    </user-type>

    <user-type>
    <type-id>41</type-id>
    <class-name>com.tangosol.util.comparator.EntryComparator</class-name>
    </user-type>

    <user-type>
    <type-id>42</type-id>
    <class-name>com.tangosol.util.comparator.InverseComparator</class-name>
    </user-type>

    <user-type>
    <type-id>43</type-id>
    <class-name>com.tangosol.util.comparator.SafeComparator</class-name>
    </user-type>
         
         <user-type>
    <type-id>44</type-id>
    <class-name>com.tangosol.util.comparator.ExtractorComparator</class-name>
    </user-type>

    <!-- com.tangosol.util.extractor package (50-59) and (190-199) -->

    <user-type>
    <type-id>50</type-id>
    <class-name>com.tangosol.util.extractor.ChainedExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>51</type-id>
    <class-name>com.tangosol.util.extractor.CompositeUpdater</class-name>
    </user-type>

    <user-type>
    <type-id>52</type-id>
    <class-name>com.tangosol.util.extractor.IdentityExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>53</type-id>
    <class-name>com.tangosol.util.extractor.KeyExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>54</type-id>
    <class-name>com.tangosol.util.extractor.MultiExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>55</type-id>
    <class-name>com.tangosol.util.extractor.ReflectionExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>56</type-id>
    <class-name>com.tangosol.util.extractor.ReflectionUpdater</class-name>
    </user-type>

    <user-type>
    <type-id>57</type-id>
    <class-name>com.tangosol.util.extractor.ComparisonValueExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>58</type-id>
    <class-name>com.tangosol.util.extractor.PofExtractor</class-name>
    </user-type>

    <user-type>
    <type-id>59</type-id>
    <class-name>com.tangosol.util.extractor.PofUpdater</class-name>
    </user-type>

    <!-- com.tangosol.util.filter package (60-89) and (200-249) -->

    <user-type>
    <type-id>60</type-id>
    <class-name>com.tangosol.util.filter.AllFilter</class-name>
    </user-type>

    <user-type>
    <type-id>61</type-id>
    <class-name>com.tangosol.util.filter.AlwaysFilter</class-name>
    </user-type>

    <user-type>
    <type-id>62</type-id>
    <class-name>com.tangosol.util.filter.AndFilter</class-name>
    </user-type>

    <user-type>
    <type-id>63</type-id>
    <class-name>com.tangosol.util.filter.AnyFilter</class-name>
    </user-type>

    <user-type>
    <type-id>64</type-id>
    <class-name>com.tangosol.util.filter.BetweenFilter</class-name>
    </user-type>

    <user-type>
    <type-id>65</type-id>
    <class-name>com.tangosol.util.filter.ContainsAllFilter</class-name>
    </user-type>

    <user-type>
    <type-id>66</type-id>
    <class-name>com.tangosol.util.filter.ContainsAnyFilter</class-name>
    </user-type>

    <user-type>
    <type-id>67</type-id>
    <class-name>com.tangosol.util.filter.ContainsFilter</class-name>
    </user-type>

    <user-type>
    <type-id>68</type-id>
    <class-name>com.tangosol.util.filter.EqualsFilter</class-name>
    </user-type>

    <user-type>
    <type-id>69</type-id>
    <class-name>com.tangosol.util.filter.GreaterEqualsFilter</class-name>
    </user-type>

    <user-type>
    <type-id>70</type-id>
    <class-name>com.tangosol.util.filter.GreaterFilter</class-name>
    </user-type>

    <user-type>
    <type-id>71</type-id>
    <class-name>com.tangosol.util.filter.InFilter</class-name>
    </user-type>

    <user-type>
    <type-id>72</type-id>
    <class-name>com.tangosol.util.filter.InKeySetFilter</class-name>
    </user-type>

    <user-type>
    <type-id>73</type-id>
    <class-name>com.tangosol.util.filter.IsNotNullFilter</class-name>
    </user-type>

    <user-type>
    <type-id>74</type-id>
    <class-name>com.tangosol.util.filter.IsNullFilter</class-name>
    </user-type>

    <user-type>
    <type-id>75</type-id>
    <class-name>com.tangosol.util.filter.LessEqualsFilter</class-name>
    </user-type>

    <user-type>
    <type-id>76</type-id>
    <class-name>com.tangosol.util.filter.LessFilter</class-name>
    </user-type>

    <user-type>
    <type-id>77</type-id>
    <class-name>com.tangosol.util.filter.LikeFilter</class-name>
    </user-type>

    <user-type>
    <type-id>78</type-id>
    <class-name>com.tangosol.util.filter.LimitFilter</class-name>
    </user-type>

    <user-type>
    <type-id>79</type-id>
    <class-name>com.tangosol.util.filter.MapEventFilter</class-name>
    </user-type>

    <user-type>
    <type-id>80</type-id>
    <class-name>com.tangosol.util.filter.NeverFilter</class-name>
    </user-type>

    <user-type>
    <type-id>81</type-id>
    <class-name>com.tangosol.util.filter.NotEqualsFilter</class-name>
    </user-type>

    <user-type>
    <type-id>82</type-id>
    <class-name>com.tangosol.util.filter.NotFilter</class-name>
    </user-type>

    <user-type>
    <type-id>83</type-id>
    <class-name>com.tangosol.util.filter.OrFilter</class-name>
    </user-type>

    <user-type>
    <type-id>84</type-id>
    <class-name>com.tangosol.util.filter.PresentFilter</class-name>
    </user-type>

    <user-type>
    <type-id>85</type-id>
    <class-name>com.tangosol.util.filter.ValueChangeEventFilter</class-name>
    </user-type>

    <user-type>
    <type-id>86</type-id>
    <class-name>com.tangosol.util.filter.XorFilter</class-name>
    </user-type>

    <user-type>
    <type-id>87</type-id>
    <class-name>com.tangosol.util.filter.PriorityFilter</class-name>
    </user-type>

    <user-type>
    <type-id>88</type-id>
    <class-name>com.tangosol.util.filter.MapEventTransformerFilter</class-name>
    </user-type>

    <user-type>
    <type-id>89</type-id>
    <class-name>com.tangosol.util.filter.FilterTrigger</class-name>
    </user-type>

    <!-- com.tangosol.util.processor package (90-109) -->

    <user-type>
    <type-id>90</type-id>
    <class-name>com.tangosol.util.processor.CompositeProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>91</type-id>
    <class-name>com.tangosol.util.processor.ConditionalProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>92</type-id>
    <class-name>com.tangosol.util.processor.ConditionalPut</class-name>
    </user-type>

    <user-type>
    <type-id>93</type-id>
    <class-name>com.tangosol.util.processor.ConditionalPutAll</class-name>
    </user-type>

    <user-type>
    <type-id>94</type-id>
    <class-name>com.tangosol.util.processor.ConditionalRemove</class-name>
    </user-type>

    <user-type>
    <type-id>95</type-id>
    <class-name>com.tangosol.util.processor.ExtractorProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>96</type-id>
    <class-name>com.tangosol.util.processor.NumberIncrementor</class-name>
    </user-type>

    <user-type>
    <type-id>97</type-id>
    <class-name>com.tangosol.util.processor.NumberMultiplier</class-name>
    </user-type>

    <user-type>
    <type-id>98</type-id>
    <class-name>com.tangosol.util.processor.PreloadRequest</class-name>
    </user-type>

    <user-type>
    <type-id>99</type-id>
    <class-name>com.tangosol.util.processor.PropertyManipulator</class-name>
    </user-type>

    <user-type>
    <type-id>100</type-id>
    <class-name>com.tangosol.util.processor.UpdaterProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>101</type-id>
    <class-name>com.tangosol.util.processor.VersionedPut</class-name>
    </user-type>

    <user-type>
    <type-id>102</type-id>
    <class-name>com.tangosol.util.processor.VersionedPutAll</class-name>
    </user-type>

    <user-type>
    <type-id>103</type-id>
    <class-name>com.tangosol.util.processor.PriorityProcessor</class-name>
    </user-type>

    <!-- com.tangosol.util.transformer package (120-139) -->

    <user-type>
    <type-id>120</type-id>
    <class-name>com.tangosol.util.transformer.SemiLiteEventTransformer</class-name>
    </user-type>

    <user-type>
    <type-id>121</type-id>
    <class-name>com.tangosol.util.transformer.ExtractorEventTransformer</class-name>
    </user-type>

    <!-- com.tangosol.io.pof.reflect package (140-159) -->

    <user-type>
    <type-id>140</type-id>
    <class-name>com.tangosol.io.pof.reflect.SimplePofPath</class-name>
    </user-type>

    <!-- com.tangosol.net package (160-169) -->

    <user-type>
    <type-id>160</type-id>
    <!-- interface com.tangosol.net.Member -->
    <class-name>com.tangosol.coherence.component.net.Member</class-name>
    </user-type>

    <!-- com.tangosol.net.partition package (170-179) -->

    <user-type>
    <type-id>170</type-id>
    <class-name>com.tangosol.net.partition.Ownership</class-name>
    </user-type>

    <user-type>
    <type-id>171</type-id>
    <class-name>com.tangosol.net.partition.PartitionSet</class-name>
    </user-type>

    <user-type>
    <type-id>172</type-id>
    <class-name>com.tangosol.net.partition.SimplePartitionKey</class-name>
    </user-type>

    <!-- com.tangosol.util.extractor package (continued) (190-199) -->

    <user-type>
    <type-id>190</type-id>
    <class-name>com.tangosol.util.extractor.ConditionalExtractor</class-name>
    </user-type>

    <!-- com.tangosol.util.filter package (continued) (200-249) -->

    <user-type>
    <type-id>200</type-id>
    <class-name>com.tangosol.util.filter.KeyAssociatedFilter</class-name>
    </user-type>

    <user-type>
    <type-id>201</type-id>
    <class-name>com.tangosol.util.filter.RegexFilter</class-name>
    </user-type>

    <user-type>
    <type-id>202</type-id>
    <class-name>com.tangosol.util.filter.PartitionedFilter</class-name>
    </user-type>

    <!-- com.tangosol.util.aggregator package (continued) (250-259) -->

    <user-type>
    <type-id>250</type-id>
    <class-name>com.tangosol.util.aggregator.ReducerAggregator</class-name>
    </user-type>

    <user-type>
    <type-id>251</type-id>
    <class-name>com.tangosol.util.aggregator.QueryRecorder</class-name>
    </user-type>

    <!-- com.tangosol.util package (continued) (260-269) -->

    <user-type>
    <type-id>260</type-id>
    <class-name>com.tangosol.util.SimpleQueryRecord</class-name>
    </user-type>

    <user-type>
    <type-id>261</type-id>
    <class-name>com.tangosol.util.SimpleQueryRecord$PartialResult</class-name>
    </user-type>

    <user-type>
    <type-id>262</type-id>
    <class-name>com.tangosol.util.SimpleQueryRecord$PartialResult$Step</class-name>
    </user-type>

    <user-type>
    <type-id>263</type-id>
    <class-name>com.tangosol.util.SimpleQueryRecord$PartialResult$IndexLookupRecord</class-name>
    </user-type>

    <!-- com.tangosol.net.internal package (300-349) -->

    <user-type>
    <type-id>300</type-id>
    <class-name>com.tangosol.net.internal.AspNetSessionStoreProvider$SessionHolder</class-name>
    </user-type>

    <user-type>
    <type-id>301</type-id>
    <class-name>com.tangosol.net.internal.AspNetSessionStoreProvider$SessionKey</class-name>
    </user-type>

    <user-type>
    <type-id>302</type-id>
    <class-name>com.tangosol.net.internal.AspNetSessionStoreProvider$AcquireSessionProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>303</type-id>
    <class-name>com.tangosol.net.internal.AspNetSessionStoreProvider$ReleaseSessionProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>304</type-id>
    <class-name>com.tangosol.net.internal.AspNetSessionStoreProvider$ResetSessionTimeoutProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>305</type-id>
    <class-name>com.tangosol.net.internal.AspNetSessionStoreProvider$SaveSessionProcessor</class-name>
    </user-type>

    <user-type>
    <type-id>306</type-id>
    <class-name>com.tangosol.net.internal.AspNetSessionStoreProvider$ExternalAttributeKey</class-name>
    </user-type>

    <!-- com.tangosol.net.security package (350-399) -->

    <user-type>
    <type-id>350</type-id>
    <class-name>com.tangosol.net.security.PermissionInfo</class-name>
    </user-type>

    <!-- com.tangosol.run.xml package (500-509) -->

    <user-type>
    <type-id>500</type-id>
    <class-name>com.tangosol.run.xml.SimpleDocument</class-name>
    </user-type>

    <user-type>
    <type-id>501</type-id>
    <class-name>com.tangosol.run.xml.SimpleElement</class-name>
    </user-type>

    <user-type>
    <type-id>502</type-id>
    <class-name>com.tangosol.run.xml.SimpleValue</class-name>
    </user-type>

    <!-- type id reservations for Coherence types not in coherence.jar -->

    <!-- com.tangosol.coherence.commonj package (600-609) -->
    <!-- defined in coherence-work-pof-config.xml within coherence-work.jar -->
         
         <!-- com.tangosol.coherence.rest package (800-820) -->
         <!-- defined in coherence-rest-pof-config.xml within coherence-rest.jar -->

    <!-- java packages (900 - 949) -->

    <user-type>
    <type-id>900</type-id>
    <class-name>java.security.Principal</class-name>
    <serializer>
    <class-name>com.tangosol.io.pof.PrincipalPofSerializer</class-name>
    </serializer>
    </user-type>

    <!-- javax packages (950-999) -->

    <user-type>
    <type-id>950</type-id>
    <class-name>javax.security.auth.Subject</class-name>
    <serializer>
    <class-name>com.tangosol.io.pof.SubjectPofSerializer</class-name>
    </serializer>
    </user-type>

    <!-- added by froz-->
    <user-type>
    <type-id>1001</type-id>
    <class-name>com.cache.employee.vo.EmployeeVO</class-name>
    </user-type>
    <user-type>
    <type-id>1002</type-id>
    <class-name>com.cache.employee.load.EmployeeCacheLoad</class-name>
    </user-type>
    <user-type>
    <type-id>1003</type-id>
    <class-name>com.cache.employee.test.EmployeeCacheTest</class-name>
    </user-type>
    </user-type-list>

    <allow-interfaces>true</allow-interfaces>
    <allow-subclasses>true</allow-subclasses>
    </pof-config>*
  • 2. Re: Oracle Coherence issue
    tmiddlet Newbie
    Currently Being Moderated
    Hi.

    The relevant message is:

    Caused by: java.io.IOException: The cache configuration is missing: "C:\Coherenc
    e\employee-cache-config.xml;C:\Coherence\employee-pof-config.xml;", loader=null
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:31

    Coherence is trying to load a config file called "C:\Coherence\employee-cache-config.xml;C:\Coherence\employee-pof-config.xml;"

    Seems like you are passing the file name twice.

    What command are you using to start your DefaultCacheServer?
  • 3. Re: Oracle Coherence issue
    user738616 Pro
    Currently Being Moderated
    Hi,

    What you are doing is wrong is marked in bold:

    <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:\Coherence\employee-cache-config.xml;C:\Coherence\employee-*
    pof-config.xml;</param-value>
    </init-param>
    </init-params>
    </configurable-cache-factory-config>

    The <configurable-cache-factory> element is used to load the coherence-cache-config.xml only and your pof configuration. For you pof-configuration, you need to define in your serialization tag for each cache or all caches within coherence-cache-config.xml as below:

    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-value>C:\Coherence\employee-pof-config.xml</param-value>
    <param-type>String</param-type>
    </init-param>
    </init-params>
    </serializer>

    HTH

    Cheers,
    _NJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points