POF Configuration in C++ without files
Hi, I am aware Coherence can be configured from C++ (Windows) without use of configuration files by calling
#include "coherence\net\cachefactory.hpp"
CacheFactory::configure(
How can I pass pof config (the one with <po-config><user-type-list> in the same manner (without refering to a configuration file)? (that is somewhat similar to Re: Configuration Issue in C#
Do I need this config (if I use COH_REGISTER_PORTABLE_CLASS(ID, TYPE) macro) ?
Thanks
Michael
Is seems that in C++ pof configuration (other than using COH_REGISTER_PORTABLE_CLASS with the ID in .cpp) does not seem to be needed to deserialize POF. So problem solved! M
Similar Messages
-
How to create multiple pof configuration files for c# client
Is there a way to have multiple pof files for c# coherence client?
Can I create a file called my-pof-config.xml with the following line...
<pof-config xmlns="http://schemas.tangosol.com/pof">
<user-type-list>
<include>assembly://Coherence/Tangosol.Config/coherence-pof-config.xml</include>
<include>file://pof-config.xml</include>
and here is what pof-config.xml file look like
<?xml version="1.0" encoding="UTF-8"?>
<pof-config xmlns="http://schemas.tangosol.com/pof">
<user-type-list>
In my C# visual studio project, this is where I load my-pof-config.xml in app.config
<coherence>
<cache-factory-config>coherence.xml</cache-factory-config>
<cache-config>coherence-cache-config.xml</cache-config>
<pof-config>my-pof-config.xml</pof-config>
</coherence>
and this is what I saw in the log...
2012-02-23 14:35:35,529 DEBUG Coherence (null) - 2012-02-23 14:35:35.529 level(thread=System.Threading.Thread): Loaded POF configuration from "FileResource(Uri = file://my-pof-config.xml, AbsolutePath = D:\worktrees\ads\mainline\v2\ads\demos_cs\build\my-pof-config.xml)"
2012-02-23 14:35:35,545 DEBUG Coherence (null) - 2012-02-23 14:35:35.545 level(thread=System.Threading.Thread): Loaded included POF configuration from "EmbeddedResource(Uri = assembly://Coherence/Tangosol.Config/coherence-pof-config.xml, AbsolutePath = assembly://Coherence/Tangosol.Config/coherence-pof-config.xml)"
2012-02-23 14:35:35,623 DEBUG Coherence (null) - 2012-02-23 14:35:35.623 level(thread=ExtendTcpCacheServiceCSharp:TcpInitiator): Loaded POF configuration from "FileResource(Uri = file://my-pof-config.xml, AbsolutePath = D:\worktrees\ads\mainline\v2\ads\demos_cs\build\my-pof-config.xml)"
I don't see pof-config.xml is loaded at "Loaded included POF configuration....". How do I get around it so I can load multiple pof configuration files for c# client?Hi,
Not sure about C# but I would suggest try removing file:// from
<include>file://pof-config.xml</include>and keep pof-config.xml and my-pof-config.xml in the same directory.
Hope this helps!
Cheers,
NJ -
Unable to load Custom POF Configuration
I successfully downloaded Coherence 3.7 and able to run the from .Net client with default Coherence.POF.Config file. As soon as I'm changing the POF file configuration to custom type, I'm unable to run the Coherence server. And finding the following error. Any Help is appreciated.
2014-07-25 18:31:07.130/4.930 Oracle Coherence GE 3.7.1.0 <Info> (thread=Cluster
, member=1): Loaded POF configuration from "jar:file:/C:/OracleCoherence/coheren
ce/lib/coherence.jar!/pof-config.xml"
2014-07-25 18:31:07.147/4.947 Oracle Coherence GE 3.7.1.0 <Info> (thread=Cluster
, member=1): Loaded included POF configuration from "jar:file:/C:/OracleCoherenc
e/coherence/lib/coherence.jar!/coherence-pof-config.xml"
2014-07-25 18:31:07.194/4.994 Oracle Coherence GE 3.7.1.0 <D5> (thread=Invocatio
n:Management, member=1): Service Management joined the cluster with senior servi
ce member 1
2014-07-25 18:31:07.401/5.201 Oracle Coherence GE 3.7.1.0 <D5> (thread=Distribut
edCache, member=1): Service DistributedCache joined the cluster with senior serv
ice member 1
Exception in thread "main" (Wrapped: error creating class "com.tangosol.io.pof.C
onfigurablePofContext") (Wrapped: Failed to load POF configuration: Mypof-config
.xml) java.io.IOException: The POF configuration is missing: "Mypof-config.xml",
loader=sun.misc.Launcher$AppClassLoader@1b90b39
at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(Config
urableSerializerFactory.java:46)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.i
nstantiateSerializer(Service.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.e
nsureSerializer(Service.CDB:32)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.e
nsureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ProxyService.configure(ProxyService.CDB:101)
at com.tangosol.coherence.component.util.SafeService.startService(SafeSe
rvice.CDB:17)
at com.tangosol.coherence.component.util.SafeService.ensureRunningServic
e(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.C
DB:14)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInterna
l(DefaultConfigurableCacheFactory.java:1105)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(Defaul
tConfigurableCacheFactory.java:937)
at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.
java:81)
at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheS
erver.java:250)
at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServe
r.java:55)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: (Wrapped: Failed to load POF configuration: Mypof-config.xml) java.io
.IOException: The POF configuration is missing: "Mypof-config.xml", loader=sun.m
isc.Launcher$AppClassLoader@1b90b39
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.io.pof.ConfigurablePofContext.createPofConfig(Configurab
lePofContext.java:835)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePof
Context.java:797)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(Conf
igurablePofContext.java:322)
at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(Config
urableSerializerFactory.java:42)
... 13 more
Caused by: java.io.IOException: The POF configuration is missing: "Mypof-config.
xml", loader=sun.misc.Launcher$AppClassLoader@1b90b39
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:31
8)
... 18 morePlease find the total log on the Cache-server.cmd
Service=ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_ANNOUNCE),
Id=0, Version=3.7.1}
ToMemberSet=null
NotifySent=false
LastRecvTimestamp=none
MemberSet=MemberSet(Size=1, ids=[1])
Terminate batch job (Y/N)? Y
C:\OracleCoherence\coherence\bin>cache-server
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode, sharing)
2014-08-05 13:25:25.753/0.327 Oracle Coherence 3.7.1.0 <Info> (thread=main, memb
er=n/a): Loaded operational configuration from "jar:file:/C:/OracleCoherence/coh
erence/lib/coherence.jar!/tangosol-coherence.xml"
2014-08-05 13:25:25.816/0.390 Oracle Coherence 3.7.1.0 <Info> (thread=main, memb
er=n/a): Loaded operational overrides from "jar:file:/C:/OracleCoherence/coheren
ce/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2014-08-05 13:25:25.816/0.390 Oracle Coherence 3.7.1.0 <D5> (thread=main, member
=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not
specified
2014-08-05 13:25:25.816/0.390 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.
2014-08-05 13:25:25.972/0.546 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, m
ember=n/a): Loaded cache configuration from "file:/C:/OracleCoherence/coherence/
lib/cache-config.xml"; this document does not refer to any schema definition and
has not been validated.
2014-08-05 13:25:26.440/1.014 Oracle Coherence GE 3.7.1.0 <Warning> (thread=main
, member=n/a): Local address "127.0.0.1" is a loopback address; this cluster nod
e will not connect to nodes located on different machines
2014-08-05 13:25:26.830/1.404 Oracle Coherence GE 3.7.1.0 <D4> (thread=main, mem
ber=n/a): TCMP bound to /127.0.0.1:8088 using SystemSocketProvider
2014-08-05 13:25:30.558/5.132 Oracle Coherence GE 3.7.1.0 <Info> (thread=Cluster
, member=n/a): Created a new cluster "cluster:0xFCC1" with Member(Id=1, Timestam
p=2014-08-05 13:25:27.251, Address=127.0.0.1:8088, MachineId=45419, Location=sit
e:,process:18420, Role=CoherenceServer, Edition=Grid Edition, Mode=Development,
CpuCount=2, SocketCount=2) UID=0x7F00000100000147A52A6E93B16B1F98
2014-08-05 13:25:30.558/5.132 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, m
ember=n/a): Started cluster Name=cluster:0xFCC1
Group{Address=224.3.7.0, Port=37000, TTL=0}
MasterMemberSet(
ThisMember=Member(Id=1, Timestamp=2014-08-05 13:25:27.251, Address=127.0.0.1:8
088, MachineId=45419, Location=site:,process:18420, Role=CoherenceServer)
OldestMember=Member(Id=1, Timestamp=2014-08-05 13:25:27.251, Address=127.0.0.1
:8088, MachineId=45419, Location=site:,process:18420, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=1
Member(Id=1, Timestamp=2014-08-05 13:25:27.251, Address=127.0.0.1:8088, Mach
ineId=45419, Location=site:,process:18420, Role=CoherenceServer)
MemberId|ServiceVersion|ServiceJoined|MemberState
1|3.7.1|2014-08-05 13:25:30.558|JOINED
RecycleMillis=1200000
RecycleSet=MemberSet(Size=0
TcpRing{Connections=[]}
IpMonitor{AddressListSize=0}
2014-08-05 13:25:30.620/5.194 Oracle Coherence GE 3.7.1.0 <Error> (thread=Cluste
r, member=1): StopRunning ClusterService{Name=Cluster, State=(SERVICE_STARTED, S
TATE_JOINED), Id=0, Version=3.7.1, OldestMemberId=1} due to unhandled exception:
Exception in thread "main" (Wrapped: Failed to start Service "Management" (Servi
ceState=SERVICE_STOPPED)) java.lang.RuntimeException: Failed to start Service "C
luster" (ServiceState=SERVICE_STOPPED, STATE_JOINED)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.s
tart(Service.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeSe
rvice.CDB:39)
at com.tangosol.coherence.component.util.SafeService.ensureRunningServic
e(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.C
DB:14)
at com.tangosol.coherence.component.net.management.Connector.startServic
e(Connector.CDB:58)
at com.tangosol.coherence.component.net.management.gateway.Remote.regist
erLocalModel(Remote.CDB:10)
at com.tangosol.coherence.component.net.management.Gateway.register(Gate
way.CDB:6)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluste
r(SafeCluster.CDB:46)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.C
DB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:427)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInterna
l(DefaultConfigurableCacheFactory.java:968)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(Defaul
tConfigurableCacheFactory.java:937)
at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.
java:81)
at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheS
erver.java:250)
at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServe
r.java:55)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: java.lang.RuntimeException: Failed to start Service "Cluster" (Servic
eState=SERVICE_STOPPED, STATE_JOINED)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.w
aitAcceptingClients(Service.CDB:12)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.poll(Grid.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.poll(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.ensureService(ClusterService.CDB:15)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.doServiceJoining(ClusterService.CDB:47)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onServiceState(Grid.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.s
etServiceState(Service.CDB:8)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.setServiceState(Grid.CDB:21)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid$NotifyStartup.onReceived(Grid.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onMessage(Grid.CDB:34)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Unknown Source)
2014-08-05 13:25:30.620/5.194 Oracle Coherence GE 3.7.1.0 <Error> (thread=Cluste
r, member=1):
(Wrapped: Failed to load POF configuration: C:\OracleCoherence\coherence\lib\Myp
ofconfig.xml) java.io.IOException: The POF configuration is missing: "C:\OracleC
oherence\coherence\lib\Mypofconfig.xml", loader=sun.misc.Launcher$AppClassLoader
@1b90b39
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.io.pof.ConfigurablePofContext.createPofConfig(Configurab
lePofContext.java:835)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePof
Context.java:797)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(Conf
igurablePofContext.java:322)
at com.tangosol.util.ExternalizableHelper.ensureSerializer(Externalizabl
eHelper.java:291)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.e
nsureSerializer(Service.CDB:28)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.e
nsureSerializer(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.w
riteObject(Service.CDB:1)
at com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:
1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService$ServiceJoining.write(ClusterService.CDB:8)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.serializeMessage(Grid.CDB:14)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetPro
cessor.PacketPublisher.packetizeMessage(PacketPublisher.CDB:17)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetPro
cessor.PacketPublisher$InQueue.add(PacketPublisher.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.dispatchMessage(Grid.CDB:62)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.post(Grid.CDB:31)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.send(Grid.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService$ServiceJoinRequest.proceed(ClusterService.CDB:35)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.validateNewService(ClusterService.CDB:88)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService$ServiceJoinRequest.onReceived(ClusterService.CDB:66)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onMessage(Grid.CDB:34)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.onNotify(ClusterService.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The POF configuration is missing: "C:\OracleCohe
rence\coherence\lib\Mypofconfig.xml", loader=sun.misc.Launcher$AppClassLoader@1b
90b39
at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:31
8)
... 24 more
2014-08-05 13:25:30.620/5.194 Oracle Coherence GE 3.7.1.0 <D5> (thread=Cluster,
member=n/a): Service Cluster left the cluster
2014-08-05 13:25:30.620/5.194 Oracle Coherence GE 3.7.1.0 <Error> (thread=Invoca
tion:Management, member=n/a): Terminating InvocationService due to unhandled exc
eption: java.lang.RuntimeException
2014-08-05 13:25:30.620/5.194 Oracle Coherence GE 3.7.1.0 <Error> (thread=Invoca
tion:Management, member=n/a):
java.lang.RuntimeException: Failed to start Service "Cluster" (ServiceState=SERV
ICE_STOPPED, STATE_JOINED)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.w
aitAcceptingClients(Service.CDB:12)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.poll(Grid.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.poll(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.ensureService(ClusterService.CDB:15)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.doServiceJoining(ClusterService.CDB:47)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onServiceState(Grid.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.s
etServiceState(Service.CDB:8)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.setServiceState(Grid.CDB:21)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid$NotifyStartup.onReceived(Grid.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onMessage(Grid.CDB:34)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Unknown Source)
2014-08-05 13:25:30.620/5.194 Oracle Coherence GE 3.7.1.0 <D5> (thread=Invocatio
n:Management, member=n/a): Service Management left the cluster
2014-08-05 13:25:30.636/5.210 Oracle Coherence GE 3.7.1.0 <Error> (thread=main,
member=n/a): Error while starting service "Management": (Wrapped: Failed to star
t Service "Management" (ServiceState=SERVICE_STOPPED)) java.lang.RuntimeExceptio
n: Failed to start Service "Cluster" (ServiceState=SERVICE_STOPPED, STATE_JOINED
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.s
tart(Service.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.start(Grid.CDB:6)
at com.tangosol.coherence.component.util.SafeService.startService(SafeSe
rvice.CDB:39)
at com.tangosol.coherence.component.util.SafeService.ensureRunningServic
e(SafeService.CDB:27)
at com.tangosol.coherence.component.util.SafeService.start(SafeService.C
DB:14)
at com.tangosol.coherence.component.net.management.Connector.startServic
e(Connector.CDB:58)
at com.tangosol.coherence.component.net.management.gateway.Remote.regist
erLocalModel(Remote.CDB:10)
at com.tangosol.coherence.component.net.management.Gateway.register(Gate
way.CDB:6)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluste
r(SafeCluster.CDB:46)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.C
DB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:427)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInterna
l(DefaultConfigurableCacheFactory.java:968)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(Defaul
tConfigurableCacheFactory.java:937)
at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.
java:81)
at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheS
erver.java:250)
at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServe
r.java:55)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: java.lang.RuntimeException: Failed to start Service "Cluster" (Servic
eState=SERVICE_STOPPED, STATE_JOINED)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.w
aitAcceptingClients(Service.CDB:12)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.poll(Grid.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.poll(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.ensureService(ClusterService.CDB:15)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.ClusterService.doServiceJoining(ClusterService.CDB:47)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onServiceState(Grid.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.s
etServiceState(Service.CDB:8)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.setServiceState(Grid.CDB:21)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid$NotifyStartup.onReceived(Grid.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onMessage(Grid.CDB:34)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Unknown Source)
C:\OracleCoherence\coherence\bin>
And the Cache-Server content is
@echo off
@rem This will start a cache server
setlocal
:config
@rem specify the Coherence installation directory
set coherence_home=%~dp0\..
@rem specify the JVM heap size
set memory=512m
set java_home=
:start
if not exist "%coherence_home%\lib\coherence.jar" goto instructions
:launch
if "%1"=="-jmx" (
set jmxproperties=-Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true
shift
set java_opts=-Xms%memory% -Xmx%memory% %jmxproperties%
java -server -showversion -Dtangosol.coherence.ttl=0 -Dtangosol.coherence.localhost=127.0.0.1 -Dtangosol.pof.enabled=true -
Dtangosol.coherence.cacheconfig=C:\OracleCoherence\coherence\lib\cache-config.xml -Dtangosol.pof.config=C:\OracleCoherence\coherence\lib\Mypofconfig.xml
%java_opts% -cp "%coherence_home%\lib\coherence.jar" com.tangosol.net.DefaultCacheServer %1
goto exit
:instructions
echo Usage:
echo ^<coherence_home^>\bin\cache-server.cmd
goto exit
:exit
endlocal
@echo on -
Missing POF configuration with Springcontext loader
when i write standalone sample program to load POF configuration it works fine.
i put default-pof-config.xml at the same place where default-cache-config.xml is located. and both of these files are in classpath
and i pass parameters -Dtangosol.pof.config=default-config.xml and -Dtangosol.pof.enabled=true and all coherence cache loading parameters as well.
when i try to load all my classes from spring context loader. application is not able to find my pof configuration.
default-pof-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pof-config PUBLIC "pof-config" "pof-config.dtd" >
<pof-config>
<user-type-list>
<include>coherence-pof-config.xml</include>
<user-type>
<type-id>1001</type-id>
<class-name>com.test.model.SampleData</class-name>
<serializer>
<class-name>com.tda.test.serializer.SampleDataPofSerializer</class-name>
</serializer>
</user-type>
</user-type-list>
<allow-interfaces>true</allow-interfaces>
<allow-subclasses>true</allow-subclasses>
</pof-config>
cache-config has folowing section
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-value>default-pof-config.xml</param-value>
<param-type>String</param-type>
</init-param>
</init-params>
</serializer>
any idea why this does not work with spring class context loader ??
i am using coherence version 3.5 and all java.
Thanksi was able to fix it
-
Question related to POF configuration and use-subclasses
Hi,
I noticed that the default POF configuration in coherence.jar (coherence-pof-config.xml) forces the use-subclasses flag to true (the ultimate use-subclasses value is true if whichever loaded POF configuration file specifies it to be true), and thus making it impossible to get error messages if a certain subclass of a registered type is not registered specifically in the POF-configuration, and users may silently lose data this way.
My question is:
Is the use-subclasses flag in the coherence-pof-config.xml set to true only because of Throwable-s, or are there other Coherence-provided classes which are serialized by subclass resolution and thus depend on the use-subclasses flag being true?
If only the Throwable-s depend on that, then instead of setting it to true, we can set it to false and use the following class instead of ConfigurablePofContext as the Serializer class for the POF-enabled services:
import com.tangosol.io.pof.ConfigurablePofContext;
import com.tangosol.run.xml.XmlElement;
* This class extends ConfigurablePofContext with the possibility to
* configurably disable the subclass-allowed setting forced true in the
* coherence-pof-config.xml, and still be able to use ThrowablePofSerializer for
* each not specifically configured Throwable subclass.
* @author Robert Varga
public class ThrowableAwareConfigurablePofContext extends
ConfigurablePofContext {
* By setting this flag to true, it is possible to disable subclass
* resolution. Interface resolution remains untouched.
private boolean m_fDisableSubclassAllowed;
* {@inheritDoc}
public ThrowableAwareConfigurablePofContext() {
* {@inheritDoc}
* @param sLocator
public ThrowableAwareConfigurablePofContext(String sLocator) {
super(sLocator);
* {@inheritDoc}
* @param xml
public ThrowableAwareConfigurablePofContext(XmlElement xml) {
super(xml);
* Sets the {@link #m_fDisableSubclassAllowed} flag. You can set this as an
* <init-param> in the Coherence cache configuration file.
* @param disableSubclassAllowed
public void setDisableSubclassAllowed(boolean disableSubclassAllowed) {
this.m_fDisableSubclassAllowed = disableSubclassAllowed;
* @return false if disableSubclassAllowed is true, or result from the super
* implementation otherwise.
@Override
protected boolean isSubclassAllowed() {
return (!m_fDisableSubclassAllowed) && super.isSubclassAllowed();
* If the super implementation could not resolve the type id for the class,
* and subclass-allowed is disabled and clz is a {@link java.lang.Throwable}
* subclass then it falls back to the configuration for
* {@link java.lang.Throwable}.
@Override
protected int getInheritedUserTypeIdentifier(Class clz) {
int result = super.getInheritedUserTypeIdentifier(clz);
if (result == -1 && !isSubclassAllowed()
&& Throwable.class.isAssignableFrom(clz)) {
result = getUserTypeIdentifier(Throwable.class);
return result;
}Thanks and best regards,
Robertdcarrano wrote:
Hi Robert,
If you are only interested in Java you are correct.
If you need more detail please let me know but I hope this answers your question.
Best regards,
-DaveHi Dave,
I am also interested in other environments, so I need more detail.
I am looking at the portability of my POF Serializer generator in which I assume that use-subclasses is false, because supporting use-subclasses being true would be quite hard to define, not to mention implement.
Thanks and best regards,
Robert -
Configuring FP-20xx without MAX
Think about a FP-20xx which may be unreachable by ethernet network, so unreachable by MAX. It can be contacted via GSM modem connected to serial port. I'd like to remotely change its configuration (connected I/O modules, channel ranges... possibly anything i'd normally configure with MAX), or tell somehow the RT application to self-configure.
What's the way to do this? Can i send optomux commands thru the modem? Can i send a new IAK or fpbank.ini file and tell the RT to use it? Can i tell the RT to programmatically apply some settings?
As for last question, i saw some interesting VIs (LV7.1) under NI Measurements -> FP -> Advanced -> Ethernet Config, they can be run in RT and work for self-configuring most channel parameters. But the settings are temporary and are lost if power goes down. And you can't redefine modules.Hi,
there are different points in your message that need to be addressed:
1) What you can do programatically is described in this Knowledgbase . It basically deals with the creation of Items in the IAK file that are then configurable through software.
2) As far as the fpbank.ini file goes, remember the following: The IAK file is used on host computers and contains channel name, communication parameters and channel settings. The full IAK file is never downloaded into FieldPoint controllers. With FP-20XX controllers, a subset containing the channel names is downloaded into the module. With all controllers, the channel configuration information is saved into non-volatile memory (this does not include channel naming information which is only relevant for the FP-20XX series). The fpbank.ini is essentially the .iak configuration information, but without the Resource Names.
3) Changing the item names that are downloaded on to the controller is not supported, but here is an untested and unsupported solution could be:
1. Download the item names to your controller.
2. FTP to the controller and then change the name of the following file: ftp:///NI-RT/SYSTEM/fpbank.ini. This is the file that holds the I/O modules names.
3. Repeat the previous two steps until you download several different sets of item names to the controller.
4. When you want to switch which configuration you are using just use the file I/O VIs to ch
ange the name of the item name file to fpbank.ini.
5. You may have to restart the controller before the new item names are valid.
4) To me it sounds quite hard to change the modules that are attached to a bank if you only have access to it via GSM Modem. You would need to physically move modules around, wouldn't you?
AlessioD -
Unable to load the pof configuration
Hi all,
Im trying with pof serialization but unable to load the pof configuration and im getting the following error:
2013-06-12 14:41:49,582 [catalina-exec-1] ERROR com.distcachedemo.KnCacheDemoServlet - doPost(HttpServletRequest, HttpServletResponse)::
(Wrapped) java.io.NotSerializableException: com.distcachedemo.dto.KnMasterListResponse
at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:215)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ConverterValueToBinary.convert(PartitionedCache.CDB:3)
at com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1674)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.put(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
at com.distcachedemo.KnCorpContactInfoControllerDemo.getMasterList(KnCorpContactInfoControllerDemo.java:183)
at com.distcachedemo.KnCacheDemoServlet.doPost(KnCacheDemoServlet.java:60)
Please let me know what is that i need to correct in the below:
NOTE: I have also tried Proxy Scheme with serializer and it too did not work
From the coherence logs i havent found the log of POF configuration being loaded.
Configuration used:
============
cache-config.xml::
<?xml version="1.0"?>
<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/coherence-cache-config coherence-cache-config.xsd">
<caching-scheme-mapping>
<cache-mapping>
<cache-name>nspoc*</cache-name>
<scheme-name>distributed-ns</scheme-name>
</cache-mapping>
<cache-mapping>
<cache-name>poc*</cache-name>
<scheme-name>distributed</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>distributed-ns</scheme-name>
<service-name>DistributedCache-ns</service-name>
<thread-count>4</thread-count>
<request-timeout>60s</request-timeout>
<backing-map-scheme>
<external-scheme>
<nio-memory-manager>
<initial-size>1MB</initial-size>
<maximum-size>100MB</maximum-size>
</nio-memory-manager>
<high-units>100</high-units>
<unit-calculator>BINARY</unit-calculator>
<unit-factor>1048576</unit-factor>
</external-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<scheme-name>distributed</scheme-name>
<service-name>DistributedCache</service-name>
<thread-count>4</thread-count>
<request-timeout>60s</request-timeout>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<external-scheme>
<nio-memory-manager>
<initial-size>1MB</initial-size>
<maximum-size>100MB</maximum-size>
</nio-memory-manager>
<high-units>100</high-units>
<unit-calculator>BINARY</unit-calculator>
<unit-factor>1048576</unit-factor>
</external-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-factory-name>com.distcachedemo.KnPocCacheStoreFactory</class-factory-name>
<method-name>loadCacheStore</method-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<local-scheme>
<scheme-name>LocalSizeLimited</scheme-name>
<eviction-policy>LRU</eviction-policy>
<high-units>5000</high-units>
<expiry-delay>1h</expiry-delay>
</local-scheme>
</caching-schemes>
</cache-config>
=================
tangosol-coherence-override.xml:
<?xml version='1.0'?>
<coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config coherence-operational-config.xsd">
<cluster-config>
<member-identity>
<cluster-name system-property="tangosol.coherence.cluster">kn_test</cluster-name>
</member-identity>
<unicast-listener>
<well-known-addresses>
<socket-address id="719">
<address>192.168.7.19</address>
<port>8088</port>
</socket-address>
<socket-address id="3246">
<address>192.168.3.246</address>
<port>8088</port>
</socket-address>
<socket-address id="77">
<address>192.168.7.7</address>
<port>8088</port>
</socket-address>
</well-known-addresses>
<address system-property="tangosol.coherence.localhost">192.168.7.7</address>
<port system-property="tangosol.coherence.localport">8088</port>
<port-auto-adjust system-property="tangosol.coherence.localport.adjust">true</port-auto-adjust>
</unicast-listener>
<serializers>
<serializer id="java">
<class-name>com.tangosol.io.DefaultSerializer</class-name>
</serializer>
<serializer id="pof">
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
</serializers>
</cluster-config>
<configurable-cache-factory-config>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value system-property="tangosol.coherence.cacheconfig">cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>
</coherence>
======================
pof-config.xml:
<?xml version='1.0'?>
<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>
<include>coherence-pof-config.xml</include>
<user-type>
<type-id>1001</type-id>
<class-name>com.distcachedemo.dto.KnMasterListResponse</class-name>
</user-type>
</user-type-list>
</pof-config>
============
Java Code:
package com.distcachedemo.dto;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.io.pof.PortableObject;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class KnMasterListResponse implements PortableObject {
private static final long serialVersionUID = -9114918011531875153L;
private KnHierarchyListDTO hierarchyListDTO;
private Map subsMap;
public KnHierarchyListDTO getHierarchyListDTO() {
return hierarchyListDTO;
public void setHierarchyListDTO(KnHierarchyListDTO hierarchyListDTO) {
this.hierarchyListDTO = hierarchyListDTO;
public Map getSubsMap() {
return subsMap;
public void setSubsMap(Map subsMap) {
this.subsMap = subsMap;
public String toString() {
StringBuilder strBuffer = new StringBuilder(100);
if (hierarchyListDTO.getHierachyDTOs() != null) {
strBuffer.append(" hierarchyListDTO - ").append(hierarchyListDTO.getHierachyDTOs().size());
if (subsMap != null) {
strBuffer.append(" subsMap - ").append(subsMap.size());
return strBuffer.toString();
@Override
public void readExternal(PofReader pofReader) throws IOException {
subsMap = pofReader.readMap(0, new HashMap<>());
hierarchyListDTO = (KnHierarchyListDTO) pofReader.readObject(1);
@Override
public void writeExternal(PofWriter pofWriter) throws IOException {
pofWriter.writeMap(0, subsMap);
pofWriter.writeObject(1, hierarchyListDTO);
Thanks,
Ravi ShankerHi Ravi,
it is generally recommended that all new classes support POF in this or that way. This or that means either implementing PortableObject or to provide a PofSerializer implementation to be able to optimally serialize their state. Obviously it is not always possible but you should try to achieve that.
If it is not possible, then you can still convert them to byte[] or String by some other means. If that other means is Java serialization, then Coherence provides a different PofContext implementation (SafeConfigurablePofContext) which you can use instead of ConfigurablePofContext and which is able to fall back to Java serialization for Serializable classes (and also for types not registered in POF configuration but which implement PortableObject). However it is recommended that SafeConfigurablePofContext is not used in production, typically because Java serialization is generally inferior to POF serialization when looking at performance and serialized size, and SafeConfigurablePofContext does not force you to do the right thing, and finally because Java serialization is not platform-independent whereas POF is.
Best regards,
Rob -
How to configure MDT tool kit files and UDI settings to enable lite touch installation
please assist me for lite touch installation. i have integrated MDT 2013 with SCCM 2012 R2 then not sure what next? like how to configure MDT tool kit files and UDI settings to enable lite touch installation
Here are some examples:
http://www.windows-noob.com/forums/index.php?/topic/5250-using-sccm-2012-rc-in-a-lab-part-18-deploying-a-udi-client-task-sequence-with-mdt-2012-rc1-integrated-in-configuration-manager-2012/
http://damonjohns.com/2013/08/20/integrating-udi-into-your-sccm-osd-task-sequences/
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude -
Creating a pre-configured SQL instance installation file
Hi,
Is it possible to create a pre-configured SQL instance installation file?
I want to pre-configure authentication mode, sa password, collation etc so that users will just need to run the .exe and everything will be done for them. At the moment users need to run a batch file that contains the unattended installation script, but
that is proving to be too much for some...Hi RRozanski,
To meet your own requirement, you can firstly change the ConfigurationFile.ini file which is generated by SQL Server setup wizard. Then users can install SQL Server with the new ConfigurationFile.ini file via installer wizard as follows.
Go to SQL Server Installation Center and click on the Advanced page. Click on Install based on configuration file, specify the location of the ConfigurationFile.ini file and the SQL Server setup.exe location. You can find setup.exe at the root level of the
SQL Server installation media.
Like a normal installation you can see all the screens with the prefilled information and this gives you the advantage to review or make changes if needed.
For more details, please review below blog.
Standardize SQL Server Installations with Configuration Files
http://www.mssqltips.com/sqlservertip/2511/standardize-sql-server-installations-with-configuration-files/
Thanks,
Lydia Zhang
If you have any feedback on our support, please click
here.
Lydia Zhang
TechNet Community Support -
Could you please let me know what is wrong with my code.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>cacheEquityMarket</cache-name>
<scheme-name>distributed-cache1</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheEquityMarket.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheEquityCompany</cache-name>
<scheme-name>distributed-cache2</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheEquityCompany.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheEquityHistorical</cache-name>
<scheme-name>distributed-cache3</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheEquityHistorical.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheEquityIPO</cache-name>
<scheme-name>distributed-cache4</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheEquityIPO.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheDerivativeMaster</cache-name>
<scheme-name>distributed-cache5</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheDerivativeMaster.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheDerivativeMarket</cache-name>
<scheme-name>distributed-cache6</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheDerivativeMarket.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheDerivativeHistorical</cache-name>
<scheme-name>distributed-cache7</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheDerivativeHistorical.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheMFMaster</cache-name>
<scheme-name>distributed-cache8</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheMFMaster.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
<cache-mapping>
<cache-name>cacheMFData</cache-name>
<scheme-name>distributed-cache9</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheMFData.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache1</scheme-name>
<service-name>DistributedEqMktService</service-name>
<!--
serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params> <init-param> <param-type>java.lang.String</param-type>
<param-value>base-entity-pof-config.xml</param-value> </init-param>
</init-params> </serializer
-->
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.fs.framework.cache.cachestores.EquityMarketCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache2</scheme-name>
<service-name>DistributedEqCoyService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com..fs.framework.cache.cachestores.EquityCompanyCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache3</scheme-name>
<service-name>DistributedEqHistService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com..fs.framework.cache.cachestores.EquityHistoricalCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache4</scheme-name>
<service-name>DistributedEqIPOService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com..fs.framework.cache.cachestores.EquityIPOCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache5</scheme-name>
<service-name>DistributedDerivativeMstrService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com..fs.framework.cache.cachestores.DerivativeMasterCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache6</scheme-name>
<service-name>DistributedDerivativeMktService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.fs.framework.cache.cachestores.DerivativeMarketCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache7</scheme-name>
<service-name>DistributedDerivativeHistService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.fs.framework.cache.cachestores.DerivativeHistoricalCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache8</scheme-name>
<service-name>DistributedMFMstrService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.fs.framework.cache.cachestores.MFMasterCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<serializer>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>base-entity-pof-config.xml</param-value>
</init-param>
</init-params>
</serializer>
<scheme-name>distributed-cache9</scheme-name>
<service-name>DistributedMFDataService</service-name>
<internal-cache-scheme>
<local-scheme>
<high-units>1000</high-units>
<expiry-delay>1m</expiry-delay>
</local-scheme>
</internal-cache-scheme>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.fs.framework.cache.cachestores.MFDataCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<refresh-ahead-factor>0.5</refresh-ahead-factor>
<read-only>false</read-only>
<expiry-delay>10s</expiry-delay>
<flush-delay>2s</flush-delay>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>
<?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>1001</type-id>
<class-name>com.fs.framework.cache.model.BaseCacheEntity</class-name>
</user-type>
</user-type-list>
<allow-interfaces>true</allow-interfaces>
<allow-subclasses>true</allow-subclasses>
</pof-config>
package com.fs.framework.cache.model;
import java.io.IOException;
import java.io.Serializable;
import org.apache.log4j.Logger;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PortableObject;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.util.Base;
public class BaseCacheEntity implements PortableObject{
public BaseCacheEntity() {
// TODO Auto-generated constructor stub
public BaseCacheEntity(String dataType, String data) {
super();
this.dataType = dataType;
this.data = data;
private static Logger logger = Logger.getLogger(BaseCacheEntity.class);
private String dataType;
private String data;
public String getDataType() {
return dataType;
public void setDataType(String dataType) {
this.dataType = dataType;
public String getData() {
return data;
public void setData(String data) {
this.data = data;
@Override
public void readExternal(PofReader pofReader) throws IOException {
// TODO Auto-generated method stub
this.setData((String)pofReader.readObject(0));
this.setDataType((String)pofReader.readObject(1));
@Override
public void writeExternal(PofWriter pofWriter) throws IOException {
// TODO Auto-generated method stub
pofWriter.writeObject(0, this.getData());
pofWriter.writeObject(1, this.getDataType());
2010-06-24 21:13:33.861/211.255 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
2010-06-24 21:13:34.064/211.458 Oracle Coherence GE 3.5.3/465 <Info> (thread=Cluster, member=n/a): This Member(Id=3, Timestamp=2010-06-24 21:13:33.587, Address=172.17.89.51:8088, MachineId=58419, Location=site:India.com,machine:01HW136561,process:4124, Role=WeblogicServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1) joined cluster "cluster:0xDDEB" with senior Member(Id=2, Timestamp=2010-06-22 19:22:43.104, Address=172.17.88.171:8089, MachineId=58795, Location=site:India.com,machine:01HW133294,process:1304, Role=CoherenceConsole, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1)
2010-06-24 21:13:34.080/211.474 Oracle Coherence GE 3.5.3/465 <Error> (thread=Cluster, member=n/a): An exception (java.lang.IllegalStateException) occurred reading Message MemberConfigResponse Type=-2 for Service=ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=2}
2010-06-24 21:13:34.080/211.474 Oracle Coherence GE 3.5.3/465 <Error> (thread=Cluster, member=n/a): StopRunning ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=2} due to unhandled exception:
2010-06-24 21:13:34.080/211.474 Oracle Coherence GE 3.5.3/465 <Error> (thread=Cluster, member=n/a):
java.lang.IllegalStateException: Missing POF configuration (Config=C:\com\fs-base-framework\src\resources\base-entity-pof-config.xml)
at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1311)
at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:803)
at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:762)
at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:325)
at com.tangosol.util.ExternalizableHelper.ensureSerializer(ExternalizableHelper.java:286)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:25)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$ServiceConfigMap.readObject(Grid.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$MemberConfigResponse.read(Grid.CDB:13)
Edited by: tally_15 on Jun 24, 2010 8:54 AMI believe there are some other concerns as well
<cache-mapping>
<cache-name>cacheEquityMarket</cache-name>
<scheme-name>distributed-cache1</scheme-name>
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
<param-name>local-storage</param-name>
<param-value system-property="cacheEquityMarket.localstorage">true</param-value>
</init-param>
</init-params>
</cache-mapping>
The cavhe-config.dtd shows the cache-mapping as
<!ELEMENT cache-mapping
(cache-name, scheme-name, init-params?)>
Where init-params is defined as
!ELEMENT init-param
((param-name | param-type), param-value)>
Which states either have a param-name or a param-type with a param-value
Which would change the above xml to:
<init-params>
<init-param>
<param-name>java.lang.String</param-name>
<param-value>{cache-name}</param-value>
</init-param>
<init-param>
<param-name>local-storage</param-name>
<param-value system-property="cacheEquityMarket.localstorage">true</param-value>
</init-param>
</init-params>
I believe the java.lang.String is meant to be a <param-type> instead of <param-name>
which would change the xml to:
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
<init-param>
<param-name>local-storage</param-name>
<param-value system-property="cacheEquityMarket.localstorage">true</param-value>
</init-param>
</init-params>
These are different examples from the 3.5 user guide
<class-name>com.mycompany.cache.CustomCacheLoader</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>EmployeeTable</param-value>
</init-param>
<init-param>
<param-type>int</param-type>
<param-value>2000</param-value>
</init-param>
</init-params>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
Edited by: drowland on Jun 24, 2010 12:06 PM
Edited by: drowland on Jun 24, 2010 12:24 PM -
Configure the log4j.xml file
Hello All,
I am trying to configure the log4j.xml file, so that i can get differnet logging messages based on the level to different log files. for ex: info messages in info.log, debug messages in debug.log and so on...i tried using the below...but, no luck.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="UCF_Exception" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="UCF_Exception.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="1000KB"/>
<param name="MaxBackupIndex" value="2"/>
<layout class="org.apache.log4j.xml.XMLLayout">
<param name="LocationInfo" value="true"/>
</layout>
</appender>
<log4j.logger.UCFExceptionLogger>
<level value ="debug"/>
<appender-ref ref="UCF_Exception" />
</log4j.logger.UCFExceptionLogger>
</log4j:configuration>
getting exception
log4j:WARN No appenders could be found for logger (UCFExceptionLogger).
log4j:WARN Please initialize the log4j system properly.
Can someone help me...I'm not 100% sure this is possible with log4j, but if it is then you've still got some errors in your log4j.xml file
Change
<log4j.logger.UCFExceptionLogger>
<level value ="debug"/>
<appender-ref ref="UCF_Exception" />
</log4j.logger.UCFExceptionLogger>to
<logger name="UCFExceptionLogger>
<level value="debug"/>
<appender-ref ref="UCF_Exception" />
</logger>
The log4j jar includes a DTD. You can use the free version of XMLSpy to validate your log4j.xml file against it.
Steve -
Labview Scripting: Configurer le tracé des fils de liaison
Bonjour,
Suite à mon premier post: http://forums.ni.com/t5/Discussions-de-produit-de-NI/Cr%C3%A9er-des-r%C3%A9f%C3%A9rences-de-contr%C3...
J'ai réussis à créer mes références de contrôles et à les insérer dans un tableau.
Cependant les connexions entre ces références et le tableau sont faites au hasard:
Je souhaiterai avoir des connexion dans ce style:
J'utilise la methode "connect wire" pour créer mes connexions, mais je n'ai pas trouvé de methode qui permet de configurer le tracé des fils...
Résolu !
Accéder à la solution.Bonjour,
C'est un peu brute de fonderie de déplacer chaque cable un après l'autre surtout quand il y'en a beaucoup comme dans ce cas précis.
Le plus simple est de laisser LabVIEW gérer la disposition via la fonction Nettoyage du diagramme qui peut être effectuée uniquement sur les éléments sélectionnés, ainsi on a une seule partie (celle qui nous intéresse) nettoyée.
Donc par Scripting on va sélectionner ce qui nous intéresse et le tour est joué.
Voir l'exemple modifié ci-joint en 8.6 qui est lié à mon exemple précédent.
Cordialement,
Da Helmut
Pièces jointes :
vi.Create.Tableau.Ref.vi 57 KB -
Does Safari support Automatic Proxy Configuration with a .wpad file?
Hello,
I was wondering if anyone knows whether Safari supports Automatic Proxy Configuration with a .wpad file?
MorganHI Morgan ..
Safari is extremely finicky about proxies and according to Wikipedia it dates back to older browser versions.
http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol -
Why MacBook Storage is almost full even without files, movies and music??
Anyone can help me with this???
My MacBook Storage is almost full even without files, movies and music... why is it so???
ThanksHi Avelyn,
Click on the Apple and then About this Mac>More Info. Click on the "Storage" tab to see what is using up all of your storage.
That might help you to determine what you need to clean up.
Cheers,
GB -
Configure a database without installing grid agent
Hi,
is this possible to configure a database without installing grid agent
regards,maja wrote:
Hi,
is this possible to configure a database without installing grid agent
regards,With grid agent you mean the agent for the Grid Control ? If yes, the answer is yes , you definitely can create a database without it.
Aman....
Maybe you are looking for
-
When I attempt to open lightroom I recive this message: [ Lightroom encountered an error whenreading from itspreviw cache and needs to quit.Lightroom will atempt to fix this problem next time it launches.] I did this a few times but no resoulve
-
i have flagged BPM but it doesnt appear?????? help
-
Text Box issue - displays XML tag instead of the value in EBS
I need to use a textbox (or a autoshape with text) to place a data element in a specific position on the page in an RTF template. I tried using tables and it didn't help. This layout needs some elements to be placed at specific location and using an
-
Duplicate Item Filename problem
Hello, I have a number of offline items I am eager to digitize. When I select any of them or all of them and select Batch Capture then press OK in the Batch Capture window I get a window that states "Duplicate Item Filename". It says "A file in use b
-
TS4040 SafariDAVclient is shutting my computer down. Is there any way to turn it off?
SafariDAVclient is shutting my computer down. Is there any way to turn it off?