Author |
Message |
|
Hello,
In my tc-config.xml (in eclipse) I have the following definition of servers:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-6.xsd">
<tc-properties>
<property name="l2.nha.dirtydb.autoDelete" value="true"/>
<property name="l1.cachemanager.enabled" value="true"/>
<property name="logging.maxLogFileSize" value="1024"/>
<property name="l2.l1reconnect.enabled" value="true"/>
<property name="l2.nha.tcgroupcomm.reconnect.enabled" value="true"/>
<property name="l1.healthcheck.l2.ping.enabled" value="true" />
<property name="l1.healthcheck.l2.ping.idletime" value="5000" />
<property name="l1.healthcheck.l2.ping.interval" value="1000" />
<property name="l1.healthcheck.l2.ping.probes" value="3" />
<property name="l1.healthcheck.l2.socketConnect" value="true" />
<property name="l1.healthcheck.l2.socketConnectTimeout" value="5" />
<property name="l1.healthcheck.l2.socketConnectCount" value="10" />
<property name="l2.db.factory.name" value="com.tc.objectserver.storage.derby.DerbyDBFactory" />
</tc-properties>
<system>
<configuration-model>production</configuration-model>
</system>
<servers>
<server host="localhost" name="FNUI1">
<data>/opt/41st/terracotta/FNUI1/server-data</data>
<logs>/opt/41st/terracotta/FNUI1/server-logs</logs>
<statistics>/opt/41st/terracotta/FNUI1/server-stats</statistics>
<jmx-port bind="localhost">9520</jmx-port>
<l2-group-port>9530</l2-group-port>
<dso>
<persistence>
<mode>permanent-store</mode>
</persistence>
</dso>
</server>
<server host="10.95.177.237" name="FNUI1">
<data>/opt/41st/terracotta/FNUI1/server-data</data>
<logs>/opt/41st/terracotta/FNUI1/server-logs</logs>
<statistics>/opt/41st/terracotta/FNUI1/server-stats</statistics>
<jmx-port bind="10.95.177.237">9520</jmx-port>
<l2-group-port>9530</l2-group-port>
<dso>
<persistence>
<mode>permanent-store</mode>
</persistence>
</dso>
</server>
<ha>
<mode>networked-active-passive</mode>
<networked-active-passive>
<election-time>5</election-time>
</networked-active-passive>
</ha>
</servers>
</tc:tc-config>
But when a strat my client I have the next error:
Code:
com.tc.exception.TCRuntimeException: No L2 GroupID mapping for null
at com.tc.object.bytecode.hook.impl.PreparedComponentsFromL2Connection.getGroupID(PreparedComponentsFromL2Connection.java:48)
at com.tc.object.bytecode.hook.impl.PreparedComponentsFromL2Connection.createConnectionInfoConfigItem(PreparedComponentsFromL2Connection.java:55)
at com.tc.object.StandardDSOClientBuilder.createConnectionAddressProvider(StandardDSOClientBuilder.java:100)
at com.tc.object.StandardDSOClientBuilder.createDSOClientMessageChannel(StandardDSOClientBuilder.java:93)
at com.tc.object.DistributedObjectClient.start(DistributedObjectClient.java:481)
at com.tc.object.bytecode.ManagerImpl$2.execute(ManagerImpl.java:262)
at com.tc.lang.StartupHelper.startUp(StartupHelper.java:39)
at com.tc.object.bytecode.ManagerImpl.startClient(ManagerImpl.java:280)
at com.tc.object.bytecode.ManagerImpl.init(ManagerImpl.java:201)
at com.tc.object.bytecode.ManagerImpl.init(ManagerImpl.java:189)
at com.tc.object.bytecode.hook.impl.DSOContextImpl.createStandaloneContext(DSOContextImpl.java:179)
at org.terracotta.express.StandaloneL1Boot.call(StandaloneL1Boot.java:190)
at org.terracotta.express.ClientImpl.<init>(ClientImpl.java:309)
at org.terracotta.express.ClientFactoryImpl.newClient(ClientFactoryImpl.java:194)
at org.terracotta.express.ClientFactoryImpl.createClient(ClientFactoryImpl.java:187)
at org.terracotta.express.ClientFactoryImpl.createClient(ClientFactoryImpl.java:174)
at org.terracotta.express.ClientFactoryImpl.getOrCreateClient(ClientFactoryImpl.java:152)
at org.terracotta.express.ClientFactory.getOrCreateClient(ClientFactory.java:28)
at org.terracotta.quartz.AbstractTerracottaJobStore.init(AbstractTerracottaJobStore.java:62)
at org.terracotta.quartz.AbstractTerracottaJobStore.getUUID(AbstractTerracottaJobStore.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1177)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1466)
at rmi.scheduling.quartz.server.QuartzServer.main(QuartzServer.java:57)
Can you help me please whit this issue?
Thanks in advance.
|
|
|
Hello,
And I have the same file in my client eclipse, and in the file quartz.properties I have the following line:
Code:
org.quartz.jobStore.tcConfigUrl = /src/main/resources/tc-config.xml
thanks
|
|
|
Hello everybody,
this is my file tc-config.xml :
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-6.xsd">
<tc-properties>
<property name="l2.nha.dirtydb.autoDelete" value="true"/>
<property name="l1.cachemanager.enabled" value="true"/>
<property name="logging.maxLogFileSize" value="1024"/>
<property name="l2.l1reconnect.enabled" value="true"/>
<property name="l2.nha.tcgroupcomm.reconnect.enabled" value="true"/>
<property name="l1.healthcheck.l2.ping.enabled" value="true" />
<property name="l1.healthcheck.l2.ping.idletime" value="5000" />
<property name="l1.healthcheck.l2.ping.interval" value="1000" />
<property name="l1.healthcheck.l2.ping.probes" value="3" />
<property name="l1.healthcheck.l2.socketConnect" value="true" />
<property name="l1.healthcheck.l2.socketConnectTimeout" value="5" />
<property name="l1.healthcheck.l2.socketConnectCount" value="10" />
<property name="l2.db.factory.name" value="com.tc.objectserver.storage.derby.DerbyDBFactory" />
</tc-properties>
<system>
<configuration-model>production</configuration-model>
</system>
<servers>
<server host="m2mint01" name="M2M_server_job1">
<data>/home/m2muser/Terracotta/opt/41st/terracotta/M2M_server_job/server-data</data>
<logs>/home/m2muser/Terracotta/opt/41st/terracotta/M2M_server_job/server-logs</logs>
<statistics>/home/m2muser/Terracotta/opt/41st/terracotta/M2M_server_job/server-stats</statistics>
<dso-port>9530</dso-port>
<jmx-port bind="m2mint01">9520</jmx-port>
<dso>
<persistence>
<mode>permanent-store</mode>
</persistence>
</dso>
</server>
<ha>
<mode>networked-active-passive</mode>
<networked-active-passive>
<election-time>5</election-time>
</networked-active-passive>
</ha>
</servers>
</tc:tc-config>
The server is started in a remote machine with linux. I start the server with the follow line:
Code:
./start-tc-server.sh -f tc-config.xml
and is work, but when I try to connect with the console localy but it's don't work and I can't connect with my client in eclipse....
but if I delete the file tc-config.xml and start Code:
I can connect whit the console and my client in eclipse...
Can you help me please?
Thanks in advance.
|
|
|
Hello everybody;
I have make an application for my entreprise with terracotta 3.5.2 open source, this application is for sales for our clientes, Do we have pay an amount? if yes, at who?
Thanks in advance.
|
|
|
Thanks a lot!!!!
|
|
|
Hello everybody,
I need the dependency for maven for this jar:
quartz-terracotta-2.0.2.jar
At this moment I have add in lib directory, but I want add the dependency in pom.xml.
Thanks in advance
|
|
|
Hello good morning,
If I shut-down the server of terracotta(open source) but my client in Eclipse still active and when I restart him, in my client eclipse I have the follow error:
Code:
2011-09-18 12:21:41,046 ERROR - com.tc.net.protocol.transport.TransportHandshakeErrorContext: com.tc.net.protocol.transport.TransportHandshakeErrorContext: "Client Cannot Reconnect ConnectionID(3.88b750eb667247bb974320a46f5f9aa5) not found. Connection attempts from the Terracotta node at 192.168.1.108:1619 are being rejected by the Terracotta server array. Restart the Client to allow it to rejoin the cluster. Many Client reconnection failures can be avoided by configuring the Terracotta server array for "permanent-store" and tuning reconnection parameters. For more information, see http://www.terracotta.org/kit/reflector?kitID=default&pageID=HA"Message Class: com.tc.net.protocol.transport.TransportMessageImpl
Sealed: true, Header Length: 32, Data Length: 617, Total Length: 649
Header (com.tc.net.protocol.transport.WireProtocolHeader)
Version: 2, Header Length: 8, TOS: 0, TTL: 64, Protocol: TRANSPORT HANDSHAKE
Total Packet Length: 649
Adler32 Checksum: 2450458605 (valid: true)
Source Addresss: 192.168.1.108
Destination Addresss: 192.168.1.108
Source Port: 9510, Destination Port: 1619
Total Msg Count: 1
Header Validity: true (no message)
Payload:
type: SYN_ACK, connectionId: ConnectionID(3.88b750eb667247bb974320a46f5f9aa5), errorContext com.tc.net.protocol.transport.TransportHandshakeErrorContext: "Client Cannot Reconnect ConnectionID(3.88b750eb667247bb974320a46f5f9aa5) not found. Connection attempts from the Terracotta node at 192.168.1.108:1619 are being rejected by the Terracotta server array. Restart the Client to allow it to rejoin the cluster. Many Client reconnection failures can be avoided by configuring the Terracotta server array for "permanent-store" and tuning reconnection parameters. For more information, see http://www.terracotta.org/kit/reflector?kitID=default&pageID=HA"
2011-09-18 12:21:41,046 INFO - Reconnection rejected event fired, caused by ChannelID=[3]
[ERROR] 18 sep 12:21:41.046 PM QuartzScheduler_QuartzSchedulerThread [org.quartz.core.QuartzSchedulerThread]
quartzSchedulerThreadLoop: RuntimeException Terracotta is not running.
com.tc.exception.TCNotRunningException: Terracotta is not running.
at com.tc.object.locks.ClientLockManagerImpl.waitUntilRunning(ClientLockManagerImpl.java:618)
at com.tc.object.locks.ClientLockManagerImpl.lock(ClientLockManagerImpl.java:92)
at com.tc.object.bytecode.ManagerImpl.lock(ManagerImpl.java:795)
at org.terracotta.locking.TerracottaLock.lock(TerracottaLock.java:39)
at org.terracotta.quartz.DefaultClusteredJobStore.lock(DefaultClusteredJobStore.java:166)
at org.terracotta.quartz.DefaultClusteredJobStore.acquireNextTriggers(DefaultClusteredJobStore.java:1440)
at org.terracotta.quartz.PlainTerracottaJobStore.acquireNextTriggers(PlainTerracottaJobStore.java:55)
at org.terracotta.quartz.AbstractTerracottaJobStore.acquireNextTriggers(AbstractTerracottaJobStore.java:91)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:264)
2011-09-18 12:21:41,234 FATAL - null->null Reconnection rejected due to stack not found
What should I do for reconnect the server of terracotta without receive this error? And the jobs that I have programmed are gone. It's possible to recuperate that?
Thanks for any help.
Luis Filipe , spain
|
|
|