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!

Why the Oracle Coherence can not run successsfully?

709798Oct 22 2009 — edited Oct 22 2009
Why the Oracle Coherence can not run successsfully?
When I run the costomized cache-server.cmd file, the following error message shows up:
C:\coherence\examples\java> *contacts-cache-server.cmd*
2009-10-22 10:57:10.609/0.563 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configur
ion from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational override
from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration overri
 "/tangosol-coherence-override.xml" is not specified
2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration overri
 "/custom-mbeans.xml" is not specified

Oracle Coherence Version 3.5.2/463
 Grid Edition: Development mode
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.

2009-10-22 10:57:11.062/1.016 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=n/a): Loaded cache configurati
 from "file:/C:/home/oracle/coherence/Contacts/contacts-cache-config.xml"
2009-10-22 10:57:12.078/2.032 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined
e cluster with senior service member n/a
2009-10-22 10:57:15.328/5.282 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Created a new cluster
cluster:0xD3FB" with Member(Id=1, Timestamp=2009-10-22 10:57:11.734, Address=192.168.16.83:8088, MachineId=30803, Loca
on=site:metsys.metex.com,machine:NECu10,process:3820, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, Cp
ount=4, SocketCount=4) UID=0xC0A81053000001247CC05C3678531F98
2009-10-22 10:57:15.375/5.329 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=1): Service Man
ement joined the cluster with senior service member 1
2009-10-22 10:57:15.875/5.829 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:PartitionedPofCache, member=
: Service PartitionedPofCache joined the cluster with senior service member 1
2009-10-22 10:57:15.890/5.844 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:PartitionedPofCache, membe
1): Loading POF configuration from resource "file:/C:/home/oracle/coherence/Contacts/classes/contacts-pof-config.xml"
2009-10-22 10:57:15.906/5.860 Oracle Coherence GE 3.5.2/463 <Error> (thread=DistributedCache:PartitionedPofCache, memb
=1): Terminating DistributedCache due to unhandled exception: com.tangosol.util.WrapperException
2009-10-22 10:57:15.906/5.860 Oracle Coherence GE 3.5.2/463 <Error> (thread=DistributedCache:PartitionedPofCache, memb
=1):
(Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to parse PO
configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exception occurred during parsing: looking for id
, found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0
urier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
        at com.tangosol.coherence.Component._newChild(Component.CDB:47)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onServiceStarted(
stributedCache.CDB:99)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onServiceState(Grid.CDB:23)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.setServiceState(Service.CDB:8)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.setServiceState(Grid.CDB:21)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$NotifyStartup.onReceived(Grid.CDB:

        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(Distribu
dCache.CDB:3)
        at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
        at java.lang.Thread.run(Unknown Source)
Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to parse P
 configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exception occurred during parsing: looking for i
9, found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0
ourier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
        at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:49)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.instantiateFromBi
ryConverter(DistributedCache.CDB:3)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext
etClassLoader(DistributedCache.CDB:6)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext
nInit(DistributedCache.CDB:2)
        at com.tangosol.coherence.Component._newChild(Component.CDB:41)
        ... 10 more
Caused by: (Wrapped: Failed to parse POF configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exceptio
occurred during parsing: looking for id=9, found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\de
ang4105{\fonttbl{\f0\fmodern\fcharset0 Courier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
        at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
        at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1311)
        at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:812)
        at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:762)
        at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:325)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:45)
        ... 14 more
Caused by: java.io.IOException: Exception occurred during parsing: looking for id=9, found id=3((0,0,65) Character Dat
Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0 Courier;}{\f1\fmodern\fcharset0 Couri
-Bold;}{\f2\fswiss\fcharset0 Arial;}}....
{code}

The content of the contacts-cache-server.cmd file is shown here under:
(its location is C:\coherence\examples\java
{code}@echo off
setlocal
if (%COHERENCE_HOME%)==() (
set COHERENCE_HOME=c:\coherence
)
set CONFIG=C:\home\oracle\coherence\Contacts
set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\coherence\Contacts\classes
set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
:exit{code}

The contents of the contacts-cache-config.xml file is shown here under:
(its location is C:\home\oracle\coherence\Contacts
{code}<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
  <caching-scheme-mapping>
    <cache-mapping>
        <cache-name>*</cache-name>
        <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
      </cache-mapping>
    </caching-scheme-mapping>
  <caching-schemes>
    <distributed-scheme>
      <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
      <service-name>PartitionedPofCache</service-name>
      <serializer>
        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
          <init-params>
            <init-param>
              <param-type>String</param-type>
              <param-value>contacts-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>
  </caching-schemes>
</cache-config>{code}

The contents of the contacts-pof-config.xml file is shown here under:
{code}
<?xml version="1.0"?>
<!DOCTYPE pof-config SYSTEM "pof-config.dtd">
<pof-config>
  <user-type-list>
    <!-- coherence POF user types -->
    <include>coherence-pof-config.xml</include>
    <!-- com.tangosol.examples package -->
    <user-type>
      <type-id>1002</type-id>
      <class-name>com.tangosol.examples.model.Contact</class-name>
    </user-type>
    <user-type>
      <type-id>1003</type-id>
      <class-name>com.tangosol.examples.model.Address</class-name>
    </user-type>
    <user-type>
        <type-id>1004</type-id>
      <class-name>com.tangosol.examples.model.Phone</class-name>
    </user-type>
  </user-type-list>
  <allow-interfaces>true</allow-interfaces>
  <allow-subclasses>true</allow-subclasses>
</pof-config>  {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2009
Added on Oct 22 2009
5 comments
2,123 views