- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
TL;DR - Apache Geode CacheListener 在应用程序启动后停止监听。
我正在尝试为 Apache Geode 设置监听器。我使用 Web 和 JPA 创建了一个 Spring Boot 项目。我创建了一个扩展 CacheListenerAdapter 的监听器。在主类中,我在该区域上进行了一次测试插入,并且监听器确实工作了一次。应用程序启动后不会处理事件。我确实尝试从“gfsh”控制台以及另一个 Java 客户端插入。我包括我的监听器、主类和日志。任何帮助将不胜感激。谢谢
监听器
@Component
public class GeodeEventListener extends CacheListenerAdapter{
public void afterCreate(EntryEvent event) {
System.out.println("Created: "+"Key: "+ event.getKey() +" New Value: "+ event.getNewValue());
}
}
主类
@SpringBootApplication
public class GeodelistenerApplication {
@Autowired
private AppConfig appConfig;
@Autowired
private GeodeEventListener geodeEventListener;
public static void main(String[] args) {
SpringApplication.run(GeodelistenerApplication.class, args);
}
@PostConstruct
public void init(){
ClientCache cache = new ClientCacheFactory()
.setPoolSubscriptionEnabled(true)
.addPoolLocator(appConfig.geodeHost , appConfig.geodePort)
.create();
ClientRegionFactory rf =
cache.createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY);
rf.addCacheListener(geodeEventListener);
Region alert_status = rf.create(appConfig.region);
alert_status.put("test", "test");
}
}
日志
[info 2018/07/04 18:05:09.618 SGT <background-preinit> tid=0xb] HV000001: Hibernate Validator 6.0.10.Final
[info 2018/07/04 18:05:09.828 SGT <main> tid=0x1] Starting GeodelistenerApplication on DESKTOP-L4HAU87 with PID 24112 (D:\Work\geodelistener\target\classes started by Username in D:\Work\geodelistener)
[info 2018/07/04 18:05:09.830 SGT <main> tid=0x1] No active profile set, falling back to default profiles: default
[info 2018/07/04 18:05:09.893 SGT <main> tid=0x1] Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@37313c65: startup date [Wed Jul 04 18:05:09 SGT 2018]; root of context hierarchy
[info 2018/07/04 18:05:11.629 SGT <main> tid=0x1] Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$24ff727c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[info 2018/07/04 18:05:12.302 SGT <main> tid=0x1] Tomcat initialized with port(s): 8081 (http)
Jul 04, 2018 6:05:12 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8081"]
Jul 04, 2018 6:05:12 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Jul 04, 2018 6:05:12 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.31
Jul 04, 2018 6:05:12 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_144\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.8.0_144/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_144/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_144/bin/../jre/lib/amd64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_144\bin;C:\Program Files\PostgreSQL\9.6\bin;D:\Work\Softwares\apache-maven-3.5.0\bin;C:\Users\Username\AppData\Local\Android\Sdk\tools;C:\Users\Username\AppData\Local\Android\Sdk\tools\bin;C:\Users\Username\AppData\Local\Android\Sdk\platform-tools;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;;C:\Program Files (x86)\Bitvise SSH Client;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Users\Username\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\Username\AppData\Roaming\npm;;D:\Work\Binaries\eclipse;;.]
Jul 04, 2018 6:05:12 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring embedded WebApplicationContext
[info 2018/07/04 18:05:12.488 SGT <localhost-startStop-1> tid=0xe] Root WebApplicationContext: initialization completed in 2595 ms
[info 2018/07/04 18:05:12.655 SGT <localhost-startStop-1> tid=0xe] Servlet dispatcherServlet mapped to [/]
[info 2018/07/04 18:05:12.660 SGT <localhost-startStop-1> tid=0xe] Mapping filter: 'characterEncodingFilter' to: [/*]
[info 2018/07/04 18:05:12.661 SGT <localhost-startStop-1> tid=0xe] Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
[info 2018/07/04 18:05:12.661 SGT <localhost-startStop-1> tid=0xe] Mapping filter: 'httpPutFormContentFilter' to: [/*]
[info 2018/07/04 18:05:12.661 SGT <localhost-startStop-1> tid=0xe] Mapping filter: 'requestContextFilter' to: [/*]
2018-07-04 18:05:12.910 INFO 24112 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2018-07-04 18:05:13.201 INFO 24112 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
[info 2018/07/04 18:05:13.263 SGT <main> tid=0x1] Building JPA container EntityManagerFactory for persistence unit 'default'
[info 2018/07/04 18:05:13.285 SGT <main> tid=0x1] HHH000204: Processing PersistenceUnitInfo [
name: default
...]
[info 2018/07/04 18:05:13.453 SGT <main> tid=0x1] HHH000412: Hibernate Core {5.2.17.Final}
[info 2018/07/04 18:05:13.455 SGT <main> tid=0x1] HHH000206: hibernate.properties not found
[info 2018/07/04 18:05:13.506 SGT <main> tid=0x1] HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
[info 2018/07/04 18:05:13.651 SGT <main> tid=0x1] HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
[info 2018/07/04 18:05:14.292 SGT <main> tid=0x1] Initialized JPA EntityManagerFactory for persistence unit 'default'
[info 2018/07/04 18:05:15.367 SGT <main> tid=0x1]
---------------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with this
work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with the
License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
---------------------------------------------------------------------------
Build-Date: 2018-04-23 14:04:21 -0400
Build-Id: mikestolz 0
Build-Java-Version: 1.8.0_151
Build-Platform: Mac OS X 10.13.4 x86_64
Product-Name: Apache Geode
Product-Version: 1.6.0
Source-Date: 2018-04-19 18:12:58 -0400
Source-Repository: release/1.6.0
Source-Revision: 5ce726bd7b4f8d2648fd011a807a1bcc624ddfa5
Native version: native code unavailable
Running on: /192.168.64.1, 4 cpu(s), amd64 Windows 10 10.0
Communications version: 85
Process ID: 24112
User: Username
Current dir: D:\Work\geodelistener
Home dir: C:\Users\Username
Command Line Parameters:
-Dfile.encoding=UTF-8
Class Path:
D:\Work\geodelistener\target\classes
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.0.3.RELEASE\spring-boot-starter-data-jpa-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter\2.0.3.RELEASE\spring-boot-starter-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot\2.0.3.RELEASE\spring-boot-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.3.RELEASE\spring-boot-autoconfigure-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.0.3.RELEASE\spring-boot-starter-logging-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar
C:\Users\Username\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar
C:\Users\Username\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar
C:\Users\Username\.m2\repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.0.3.RELEASE\spring-boot-starter-aop-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-aop\5.0.7.RELEASE\spring-aop-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.0.3.RELEASE\spring-boot-starter-jdbc-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\com\zaxxer\HikariCP\2.7.9\HikariCP-2.7.9.jar
C:\Users\Username\.m2\repository\org\springframework\spring-jdbc\5.0.7.RELEASE\spring-jdbc-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\hibernate\hibernate-core\5.2.17.Final\hibernate-core-5.2.17.Final.jar
C:\Users\Username\.m2\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar
C:\Users\Username\.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.2.Final\hibernate-jpa-2.1-api-1.0.2.Final.jar
C:\Users\Username\.m2\repository\org\javassist\javassist\3.22.0-GA\javassist-3.22.0-GA.jar
C:\Users\Username\.m2\repository\org\jboss\jandex\2.0.3.Final\jandex-2.0.3.Final.jar
C:\Users\Username\.m2\repository\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar
C:\Users\Username\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
C:\Users\Username\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.0.1.Final\hibernate-commons-annotations-5.0.1.Final.jar
C:\Users\Username\.m2\repository\javax\transaction\javax.transaction-api\1.2\javax.transaction-api-1.2.jar
C:\Users\Username\.m2\repository\org\springframework\data\spring-data-jpa\2.0.8.RELEASE\spring-data-jpa-2.0.8.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\data\spring-data-commons\2.0.8.RELEASE\spring-data-commons-2.0.8.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-orm\5.0.7.RELEASE\spring-orm-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-context\5.0.7.RELEASE\spring-context-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-tx\5.0.7.RELEASE\spring-tx-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-beans\5.0.7.RELEASE\spring-beans-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-aspects\5.0.7.RELEASE\spring-aspects-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\mysql\mysql-connector-java\5.1.46\mysql-connector-java-5.1.46.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.0.3.RELEASE\spring-boot-starter-web-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.0.3.RELEASE\spring-boot-starter-json-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.6\jackson-datatype-jdk8-2.9.6.jar
C:\Users\Username\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.6\jackson-datatype-jsr310-2.9.6.jar
C:\Users\Username\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.6\jackson-module-parameter-names-2.9.6.jar
C:\Users\Username\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.0.3.RELEASE\spring-boot-starter-tomcat-2.0.3.RELEASE.jar
C:\Users\Username\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.31\tomcat-embed-core-8.5.31.jar
C:\Users\Username\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.31\tomcat-embed-el-8.5.31.jar
C:\Users\Username\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.31\tomcat-embed-websocket-8.5.31.jar
C:\Users\Username\.m2\repository\org\hibernate\validator\hibernate-validator\6.0.10.Final\hibernate-validator-6.0.10.Final.jar
C:\Users\Username\.m2\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar
C:\Users\Username\.m2\repository\org\springframework\spring-web\5.0.7.RELEASE\spring-web-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-webmvc\5.0.7.RELEASE\spring-webmvc-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-expression\5.0.7.RELEASE\spring-expression-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-core\5.0.7.RELEASE\spring-core-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\springframework\spring-jcl\5.0.7.RELEASE\spring-jcl-5.0.7.RELEASE.jar
C:\Users\Username\.m2\repository\org\apache\geode\geode-core\1.6.0\geode-core-1.6.0.jar
C:\Users\Username\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar
C:\Users\Username\.m2\repository\com\github\stephenc\findbugs\findbugs-annotations\1.3.9-1\findbugs-annotations-1.3.9-1.jar
C:\Users\Username\.m2\repository\org\jgroups\jgroups\3.6.14.Final\jgroups-3.6.14.Final.jar
C:\Users\Username\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar
C:\Users\Username\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.6\jackson-databind-2.9.6.jar
C:\Users\Username\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.6\jackson-core-2.9.6.jar
C:\Users\Username\.m2\repository\commons-io\commons-io\2.6\commons-io-2.6.jar
C:\Users\Username\.m2\repository\commons-validator\commons-validator\1.6\commons-validator-1.6.jar
C:\Users\Username\.m2\repository\commons-beanutils\commons-beanutils\1.9.2\commons-beanutils-1.9.2.jar
C:\Users\Username\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar
C:\Users\Username\.m2\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar
C:\Users\Username\.m2\repository\commons-digester\commons-digester\2.1\commons-digester-2.1.jar
C:\Users\Username\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar
C:\Users\Username\.m2\repository\it\unimi\dsi\fastutil\8.1.1\fastutil-8.1.1.jar
C:\Users\Username\.m2\repository\javax\resource\javax.resource-api\1.7\javax.resource-api-1.7.jar
C:\Users\Username\.m2\repository\net\java\dev\jna\jna\4.5.1\jna-4.5.1.jar
C:\Users\Username\.m2\repository\net\sf\jopt-simple\jopt-simple\5.0.4\jopt-simple-5.0.4.jar
C:\Users\Username\.m2\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar
C:\Users\Username\.m2\repository\org\apache\logging\log4j\log4j-core\2.10.0\log4j-core-2.10.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-core\1.4.0\shiro-core-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-lang\1.4.0\shiro-lang-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-cache\1.4.0\shiro-cache-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-crypto-hash\1.4.0\shiro-crypto-hash-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-crypto-core\1.4.0\shiro-crypto-core-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-crypto-cipher\1.4.0\shiro-crypto-cipher-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-config-core\1.4.0\shiro-config-core-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-config-ogdl\1.4.0\shiro-config-ogdl-1.4.0.jar
C:\Users\Username\.m2\repository\org\apache\shiro\shiro-event\1.4.0\shiro-event-1.4.0.jar
C:\Users\Username\.m2\repository\io\github\lukehutch\fast-classpath-scanner\2.18.1\fast-classpath-scanner-2.18.1.jar
C:\Users\Username\.m2\repository\com\healthmarketscience\rmiio\rmiio\2.1.2\rmiio-2.1.2.jar
C:\Users\Username\.m2\repository\org\apache\geode\geode-common\1.6.0\geode-common-1.6.0.jar
C:\Users\Username\.m2\repository\org\apache\geode\geode-json\1.6.0\geode-json-1.6.0.jar
C:\Users\Username\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar
C:\Users\Username\.m2\repository\org\apache\geode\geode-cq\1.6.0\geode-cq-1.6.0.jar
Library Path:
C:\Program Files\Java\jdk1.8.0_144\bin
C:\WINDOWS\Sun\Java\bin
C:\WINDOWS\system32
C:\WINDOWS
C:/Program Files/Java/jdk1.8.0_144/bin/../jre/bin/server
C:/Program Files/Java/jdk1.8.0_144/bin/../jre/bin
C:/Program Files/Java/jdk1.8.0_144/bin/../jre/lib/amd64
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0\
C:\Program Files\Java\jdk1.8.0_144\bin
C:\Program Files\PostgreSQL\9.6\bin
D:\Work\Softwares\apache-maven-3.5.0\bin
C:\Users\Username\AppData\Local\Android\Sdk\tools
C:\Users\Username\AppData\Local\Android\Sdk\tools\bin
C:\Users\Username\AppData\Local\Android\Sdk\platform-tools
C:\Program Files\Git\cmd
C:\Program Files\nodejs\
C:\Program Files (x86)\Bitvise SSH Client
C:\WINDOWS\System32\OpenSSH\
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\
C:\Users\Username\AppData\Local\Microsoft\WindowsApps
C:\Program Files\Microsoft VS Code\bin
C:\Users\Username\AppData\Roaming\npm
D:\Work\Binaries\eclipse
.
System Properties:
PID = 24112
awt.toolkit = sun.awt.windows.WToolkit
catalina.base = C:\Users\Username\AppData\Local\Temp\tomcat.1188691188621018585.8081
catalina.home = C:\Users\Username\AppData\Local\Temp\tomcat.1188691188621018585.8081
catalina.useNaming = false
com.zaxxer.hikari.pool_number = 1
file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = \
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.headless = true
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.version = 52.0
java.endorsed.dirs = C:\Program Files\Java\jdk1.8.0_144\jre\lib\endorsed
java.ext.dirs = C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home = C:\Program Files\Java\jdk1.8.0_144\jre
java.io.tmpdir = C:\Users\PRIYAA~1\AppData\Local\Temp\
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_144-b01
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_144
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.144-b01
line.separator =
os.version = 10.0
path.separator = ;
spring.beaninfo.ignore = true
sun.arch.data.model = 64
sun.boot.class.path = C:\Program Files\Java\jdk1.8.0_144\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_144\jre\classes
sun.boot.library.path = C:\Program Files\Java\jdk1.8.0_144\jre\bin
sun.cpu.endian = little
sun.cpu.isalist = amd64
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = com.onwards.geodelistener.GeodelistenerApplication
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.nio.ch.bugLevel =
sun.os.patch.level =
user.country = SG
user.language = en
user.script =
user.timezone = Asia/Singapore
user.variant =
Log4J 2 Configuration:
jar:file:/C:/Users/Priya%20Anil/.m2/repository/org/apache/geode/geode-core/1.6.0/geode-core-1.6.0.jar!/log4j2.xml
---------------------------------------------------------------------------
[info 2018/07/04 18:05:15.378 SGT <main> tid=0x1] initializing InternalDataSerializer with 1 services
[info 2018/07/04 18:05:24.519 SGT <Thread-2 StatSampler> tid=0x18] Disabling statistic archival.
[info 2018/07/04 18:05:24.545 SGT <main> tid=0x1] Running in client mode
[info 2018/07/04 18:05:24.688 SGT <main> tid=0x1] deploying jars received from cluster configuration
[info 2018/07/04 18:05:24.745 SGT <main> tid=0x1] AutoConnectionSource UpdateLocatorListTask started with interval=10,000 ms.
[info 2018/07/04 18:05:24.759 SGT <poolTimer-DEFAULT-3> tid=0x21] Updating membership port. Port changed from 0 to 58,033. ID is now DESKTOP-L4HAU87(24112:loner):0:fdd0c064
[info 2018/07/04 18:05:24.799 SGT <main> tid=0x1] Pool DEFAULT started with multiuser-authentication=false
[info 2018/07/04 18:05:24.807 SGT <Cache Client Updater Thread on DESKTOP-L4HAU87(serverA:44988)<v1>:1025 port 40404> tid=0x23] Cache Client Updater Thread on DESKTOP-L4HAU87(serverA:44988)<v1>:1025 port 40404 (DESKTOP-L4HAU87:40404) : ready to process messages.
Created: Key: test New Value: test
[info 2018/07/04 18:05:25.591 SGT <main> tid=0x1] Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[info 2018/07/04 18:05:25.933 SGT <main> tid=0x1] Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@37313c65: startup date [Wed Jul 04 18:05:09 SGT 2018]; root of context hierarchy
[warn 2018/07/04 18:05:25.999 SGT <main> tid=0x1] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
[info 2018/07/04 18:05:26.056 SGT <main> tid=0x1] Mapped "{[/api/alert_status/{id}],methods=[GET]}" onto public com.onwards.geodelistener.model.AlertStatus com.onwards.geodelistener.controller.AlertStatusController.getAlertStatus(java.lang.Long)
[info 2018/07/04 18:05:26.057 SGT <main> tid=0x1] Mapped "{[/api/alert_status/{id}],methods=[DELETE]}" onto public org.springframework.http.ResponseEntity<?> com.onwards.geodelistener.controller.AlertStatusController.deleteAlertStatus(java.lang.Long)
[info 2018/07/04 18:05:26.058 SGT <main> tid=0x1] Mapped "{[/api/alert_status/{id}],methods=[PUT]}" onto public com.onwards.geodelistener.model.AlertStatus com.onwards.geodelistener.controller.AlertStatusController.updateAlertStatus(java.lang.Long,com.onwards.geodelistener.model.AlertStatus)
[info 2018/07/04 18:05:26.058 SGT <main> tid=0x1] Mapped "{[/api/alert_status],methods=[GET]}" onto public java.util.List<com.onwards.geodelistener.model.AlertStatus> com.onwards.geodelistener.controller.AlertStatusController.getAllAlertStatus()
[info 2018/07/04 18:05:26.058 SGT <main> tid=0x1] Mapped "{[/api/alert_status],methods=[POST]}" onto public com.onwards.geodelistener.model.AlertStatus com.onwards.geodelistener.controller.AlertStatusController.createAlertStatus(com.onwards.geodelistener.model.AlertStatus)
[info 2018/07/04 18:05:26.062 SGT <main> tid=0x1] Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
[info 2018/07/04 18:05:26.064 SGT <main> tid=0x1] Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
[info 2018/07/04 18:05:26.119 SGT <main> tid=0x1] Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[info 2018/07/04 18:05:26.119 SGT <main> tid=0x1] Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[info 2018/07/04 18:05:26.506 SGT <main> tid=0x1] Registering beans for JMX exposure on startup
[info 2018/07/04 18:05:26.508 SGT <main> tid=0x1] Bean with name 'dataSource' has been autodetected for JMX exposure
[info 2018/07/04 18:05:26.516 SGT <main> tid=0x1] Located MBean 'dataSource': registering with JMX server as MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource]
Jul 04, 2018 6:05:26 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8081"]
Jul 04, 2018 6:05:26 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
[info 2018/07/04 18:05:26.561 SGT <main> tid=0x1] Tomcat started on port(s): 8081 (http) with context path ''
[info 2018/07/04 18:05:26.567 SGT <main> tid=0x1] Started GeodelistenerApplication in 17.14 seconds (JVM running for 18.472)
[info 2018/07/04 18:05:29.274 SGT <poolTimer-DEFAULT-2> tid=0x20] AutoConnectionSource discovered new locators [DESKTOP-L4HAU87/192.168.64.1:9001]
由于您可能会错过监听器的系统输出,我将其添加到下面创建:键:test 新值:test。我收到此消息是从主函数插入的结果。但监听器不会捕获来自 gfsh/java 客户端的进一步插入
最佳答案
监听器是在客户端缓存上配置的,因此只有在从本地缓存接收到事件时才会执行它。我可以看到您已将池配置为 subscription-enabled
设置为 true
,但我没有看到与客户端感兴趣的条目相关的任何配置,这意味着客户端不会收到有关服务器端已更改的条目的任何更新(通过来自另一个客户端的 gfsh put
或 region.put()
)/或服务器)。你基本上错过了最后一个配置步骤,请看一下Configuring Client/Server Event Messaging了解详情。
希望这有帮助。谨致问候。
关于java - Apache Geode CacheListenerAdapter 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51171531/
我正在尝试执行以下操作: 使用 redis 连接器将一些数据放入 geode 使用 CacheListener 对一些关键的创建/更新事件作出 react 使用 Geode 客户端及其区域上的 ent
我使用 Apache Geode 作为缓存解决方案。我需要将数据存储在两个不同的区域中,并通过简单的联接查询检索它们。 我尝试了复制区域和分区区域,但发现查询需要很长时间才能返回结果。我也在这两个区域
下午好, 我们正在尝试将应用程序从 Redis 迁移到 Geode 集群,以获得更好的可扩展性和多 WAN 同步。目前我们只测试一个集群。设置为: 8 台硬件服务器(64 核 CPU、256GB RA
我目前正在使用 Spring Boot Starter 1.4.2.RELEASE 和 Geode Core 1.0.0(通过 Maven 进行孵化),针对由 Geode Locator 和 2 个缓
我有一个 Geode 系统,带有一个定位器、三个缓存服务器和一个客户端。在这些服务器内部,有一个我的数据所在的分区区域。我想要做的是在每个服务器上运行一个函数来获取该特定服务器上的数据。我开始编写下面
我有几个对象要合并到场景图中。 Street继承自 Geode并且有一个 Geometry由 GL_LINE_STRIP 组成的子可绘制对象。 Pointer继承自 PositionAttitudeT
我们的系统出现了一个奇怪的问题。 例如我们有一个由 2 个节点组成的集群。 Geode Locator 在主节点上运行,有一个远程节点运行 Geode 客户端。当客户端出现网络问题(数据包丢失)一段时
我正在做一些研究,我需要 Apache Geode 的基准测试,也许可以与 Redis 或 Hazelcast 进行比较。如果有人能指出我这一点,我们将不胜感激。 在 Pivotal 的一个演示文稿中
我们使用 VS 并集成了以下 Web 框架 https://visualstudio.microsoft.com/vs/features/web/frameworks/ 角度维埃 react Boot
TL;DR - Apache Geode CacheListener 在应用程序启动后停止监听。 我正在尝试为 Apache Geode 设置监听器。我使用 Web 和 JPA 创建了一个 Sprin
版本 1.10,clientSecurity 的 Apache geode 示例 当我构建项目并执行“启动”任务时,启动服务器时总是出现 GemFireSecurityException。即使我可以在
我是 Apache Geode 的新手,我正在尝试一个示例程序来存储日期,例如: empid:col1:col2 1:10:15 我已经编写了一个示例程序,但在运行时它给出了如下错误:“在池中注册实例
下面是我的集群配置。 缓存 1 在第一个 JVM 上运行 Properties properties = new Properties(); properties.setProperty
我想用自定义二进制数据(序列化)扩展 geode。是否有关于如何使用 geode 启动最小设置/系统的文档?我看到一个docker image但没有找到关于此的任何文档。 对我来说,拥有一个可以通过
我使用下面的代码连接到远程Geode集群 ClientCache clientCache = new ClientCacheFactory().addPoolLocator("www.
在 Geode 版本 1.10.0 中,如何从执行两者的 LuceneQueryFactory 创建 LuceneQuery Lucene 查询字符串 动态查询 一口气吗? 换句话说,是否有一种机制可
我在运行 OSG 应用程序时收到以下消息: CullVisitor::apply(Geode&) detected NaN, depth=nan, center=(1.79588 1.5048
我是 Apache Geode 的新手,并尝试在我的 java 应用程序中运行定位器和服务器,但启动应用程序时出现异常。这是我用于启动定位器和服务器的代码: public static void lo
我正在尝试使用 apache geode 复制一个非常大的值。我基本上做的是使用 redis 的 setbit 功能。当我不断增加 setbit 函数的偏移量时,geode 服务器崩溃了。我正在使用
In most cases, Geode allocates one partitioned region for each data structure. For example, each Sor
我是一名优秀的程序员,十分优秀!