Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get extension of type <com.tencent.trpc.core.rpc.spi.RpcServerFactory> with name <trpc> #16

Closed
Juno119 opened this issue Dec 30, 2023 · 5 comments
Labels
good first issue Good for newcomers question Further information is requested

Comments

@Juno119
Copy link

Juno119 commented Dec 30, 2023

image

hi 请问,基于trpc-spring-server-demo创建了一个新工程,运行时报了Cannot get extension of type <com.tencent.trpc.core.rpc.spi.RpcServerFactory> with name 异常,请问怎么解决呢?

@Juno119 Juno119 closed this as completed Dec 30, 2023
@Juno119 Juno119 reopened this Dec 30, 2023
@Juno119 Juno119 changed the title XMLConfigurationException异常 Cannot get extension of type <com.tencent.trpc.core.rpc.spi.RpcServerFactory> with name <trpc> Dec 30, 2023
@Juno119
Copy link
Author

Juno119 commented Dec 30, 2023

"D:\Program Files\Java\jdk17.0.9\bin\java.exe" -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2023.2.5\lib\idea_rt.jar=52259:D:\Program Files\JetBrains\IntelliJ IDEA 2023.2.5\bin" -Dfile.encoding=UTF-8 -classpath E:\JavaProjects\trpc-spring-file-upload\target\classes;D:\MavenRepository\com\tencent\trpc\trpc-springmvc\1.1.0\trpc-springmvc-1.1.0.jar;D:\MavenRepository\com\tencent\trpc\trpc-core\1.1.0\trpc-core-1.1.0.jar;D:\MavenRepository\org\apache\commons\commons-configuration2\2.8.0\commons-configuration2-2.8.0.jar;D:\MavenRepository\org\apache\commons\commons-text\1.9\commons-text-1.9.jar;D:\MavenRepository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\MavenRepository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;D:\MavenRepository\com\lmax\disruptor\3.4.2\disruptor-3.4.2.jar;D:\MavenRepository\org\apache\logging\log4j\log4j-slf4j-impl\2.17.1\log4j-slf4j-impl-2.17.1.jar;D:\MavenRepository\org\apache\logging\log4j\log4j-api\2.17.1\log4j-api-2.17.1.jar;D:\MavenRepository\org\apache\logging\log4j\log4j-core\2.17.1\log4j-core-2.17.1.jar;D:\MavenRepository\net\bytebuddy\byte-buddy\1.14.9\byte-buddy-1.14.9.jar;D:\MavenRepository\org\reflections\reflections\0.9.12\reflections-0.9.12.jar;D:\MavenRepository\org\javassist\javassist\3.26.0-GA\javassist-3.26.0-GA.jar;D:\MavenRepository\com\google\protobuf\protobuf-java\3.21.9\protobuf-java-3.21.9.jar;D:\MavenRepository\com\google\protobuf\protobuf-java-util\3.21.9\protobuf-java-util-3.21.9.jar;D:\MavenRepository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\MavenRepository\com\google\code\gson\gson\2.8.9\gson-2.8.9.jar;D:\MavenRepository\org\apache\commons\commons-pool2\2.3\commons-pool2-2.3.jar;D:\MavenRepository\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;D:\MavenRepository\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;D:\MavenRepository\com\codahale\metrics\metrics-core\3.0.2\metrics-core-3.0.2.jar;D:\MavenRepository\org\xerial\snappy\snappy-java\1.1.10.4\snappy-java-1.1.10.4.jar;D:\MavenRepository\org\yaml\snakeyaml\2.0\snakeyaml-2.0.jar;D:\MavenRepository\com\fasterxml\jackson\core\jackson-core\2.15.0-rc2\jackson-core-2.15.0-rc2.jar;D:\MavenRepository\com\fasterxml\jackson\core\jackson-databind\2.15.0-rc2\jackson-databind-2.15.0-rc2.jar;D:\MavenRepository\com\fasterxml\jackson\core\jackson-annotations\2.15.0-rc2\jackson-annotations-2.15.0-rc2.jar;D:\MavenRepository\io\opentracing\opentracing-api\0.33.0\opentracing-api-0.33.0.jar;D:\MavenRepository\io\opentracing\opentracing-noop\0.33.0\opentracing-noop-0.33.0.jar;D:\MavenRepository\javax\ws\rs\javax.ws.rs-api\2.1.1\javax.ws.rs-api-2.1.1.jar;D:\MavenRepository\com\baidu\jprotobuf\2.4.14\jprotobuf-2.4.14.jar;D:\MavenRepository\com\google\auto\value\auto-value\1.0\auto-value-1.0.jar;D:\MavenRepository\com\baidu\jprotobuf-protoparser\1.0.1\jprotobuf-protoparser-1.0.1.jar;D:\MavenRepository\commons-io\commons-io\2.6\commons-io-2.6.jar;D:\MavenRepository\com\github\ben-manes\caffeine\caffeine\2.9.3\caffeine-2.9.3.jar;D:\MavenRepository\org\checkerframework\checker-qual\3.19.0\checker-qual-3.19.0.jar;D:\MavenRepository\com\google\errorprone\error_prone_annotations\2.10.0\error_prone_annotations-2.10.0.jar;D:\MavenRepository\com\google\guava\guava\31.1-jre\guava-31.1-jre.jar;D:\MavenRepository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\MavenRepository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\MavenRepository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\MavenRepository\org\reactivestreams\reactive-streams\1.0.4\reactive-streams-1.0.4.jar;D:\MavenRepository\io\projectreactor\reactor-core\3.5.8\reactor-core-3.5.8.jar;D:\MavenRepository\io\netty\netty-buffer\4.1.79.Final\netty-buffer-4.1.79.Final.jar;D:\MavenRepository\io\netty\netty-common\4.1.79.Final\netty-common-4.1.79.Final.jar;D:\MavenRepository\com\alibaba\transmittable-thread-local\2.12.4\transmittable-thread-local-2.12.4.jar;D:\MavenRepository\com\alibaba\log4j2-ttl-thread-context-map\1.3.3\log4j2-ttl-thread-context-map-1.3.3.jar;D:\MavenRepository\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;D:\MavenRepository\com\tencent\trpc\trpc-spring-boot-starter\1.1.0\trpc-spring-boot-starter-1.1.0.jar;D:\MavenRepository\org\springframework\boot\spring-boot-autoconfigure\2.7.12\spring-boot-autoconfigure-2.7.12.jar;D:\MavenRepository\org\springframework\boot\spring-boot\2.7.12\spring-boot-2.7.12.jar;D:\MavenRepository\com\tencent\trpc\trpc-spring\1.1.0\trpc-spring-1.1.0.jar;D:\MavenRepository\org\springframework\spring-context-support\5.3.27\spring-context-support-5.3.27.jar;D:\MavenRepository\com\tencent\trpc\trpc-container-default\1.1.0\trpc-container-default-1.1.0.jar;D:\MavenRepository\org\springframework\boot\spring-boot-configuration-processor\2.7.12\spring-boot-configuration-processor-2.7.12.jar;D:\MavenRepository\org\springframework\boot\spring-boot-starter-test\2.7.12\spring-boot-starter-test-2.7.12.jar;D:\MavenRepository\org\springframework\boot\spring-boot-test\2.7.12\spring-boot-test-2.7.12.jar;D:\MavenRepository\org\springframework\boot\spring-boot-test-autoconfigure\2.7.12\spring-boot-test-autoconfigure-2.7.12.jar;D:\MavenRepository\com\jayway\jsonpath\json-path\2.7.0\json-path-2.7.0.jar;D:\MavenRepository\net\minidev\json-smart\2.4.7\json-smart-2.4.7.jar;D:\MavenRepository\net\minidev\accessors-smart\2.4.7\accessors-smart-2.4.7.jar;D:\MavenRepository\org\ow2\asm\asm\9.1\asm-9.1.jar;D:\MavenRepository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\MavenRepository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\MavenRepository\org\assertj\assertj-core\3.22.0\assertj-core-3.22.0.jar;D:\MavenRepository\org\hamcrest\hamcrest\2.2\hamcrest-2.2.jar;D:\MavenRepository\org\junit\jupiter\junit-jupiter\5.8.2\junit-jupiter-5.8.2.jar;D:\MavenRepository\org\junit\jupiter\junit-jupiter-api\5.8.2\junit-jupiter-api-5.8.2.jar;D:\MavenRepository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;D:\MavenRepository\org\junit\platform\junit-platform-commons\1.8.2\junit-platform-commons-1.8.2.jar;D:\MavenRepository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;D:\MavenRepository\org\junit\jupiter\junit-jupiter-params\5.8.2\junit-jupiter-params-5.8.2.jar;D:\MavenRepository\org\junit\jupiter\junit-jupiter-engine\5.8.2\junit-jupiter-engine-5.8.2.jar;D:\MavenRepository\org\junit\platform\junit-platform-engine\1.8.2\junit-platform-engine-1.8.2.jar;D:\MavenRepository\org\skyscreamer\jsonassert\1.5.1\jsonassert-1.5.1.jar;D:\MavenRepository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;D:\MavenRepository\org\springframework\spring-core\5.3.27\spring-core-5.3.27.jar;D:\MavenRepository\org\springframework\spring-jcl\5.3.27\spring-jcl-5.3.27.jar;D:\MavenRepository\org\springframework\spring-test\5.3.27\spring-test-5.3.27.jar;D:\MavenRepository\org\xmlunit\xmlunit-core\2.9.1\xmlunit-core-2.9.1.jar;D:\MavenRepository\org\springframework\boot\spring-boot-starter-web\2.7.12\spring-boot-starter-web-2.7.12.jar;D:\MavenRepository\org\springframework\boot\spring-boot-starter\2.7.12\spring-boot-starter-2.7.12.jar;D:\MavenRepository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\MavenRepository\org\springframework\boot\spring-boot-starter-json\2.7.12\spring-boot-starter-json-2.7.12.jar;D:\MavenRepository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.5\jackson-datatype-jdk8-2.13.5.jar;D:\MavenRepository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.5\jackson-datatype-jsr310-2.13.5.jar;D:\MavenRepository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.5\jackson-module-parameter-names-2.13.5.jar;D:\MavenRepository\org\springframework\boot\spring-boot-starter-tomcat\2.7.12\spring-boot-starter-tomcat-2.7.12.jar;D:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-core\9.0.75\tomcat-embed-core-9.0.75.jar;D:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-el\9.0.75\tomcat-embed-el-9.0.75.jar;D:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.75\tomcat-embed-websocket-9.0.75.jar;D:\MavenRepository\org\springframework\spring-web\5.3.27\spring-web-5.3.27.jar;D:\MavenRepository\org\springframework\spring-beans\5.3.27\spring-beans-5.3.27.jar;D:\MavenRepository\org\springframework\spring-webmvc\5.3.27\spring-webmvc-5.3.27.jar;D:\MavenRepository\org\springframework\spring-aop\5.3.27\spring-aop-5.3.27.jar;D:\MavenRepository\org\springframework\spring-expression\5.3.27\spring-expression-5.3.27.jar;D:\MavenRepository\com\tencent\trpc\trpc-proto-http\1.1.0\trpc-proto-http-1.1.0.jar;D:\MavenRepository\com\tencent\trpc\trpc-transport-http\1.1.0\trpc-transport-http-1.1.0.jar;D:\MavenRepository\org\eclipse\jetty\jetty-server\9.4.53.v20231009\jetty-server-9.4.53.v20231009.jar;D:\MavenRepository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;D:\MavenRepository\org\eclipse\jetty\jetty-http\9.4.53.v20231009\jetty-http-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\jetty-util\9.4.53.v20231009\jetty-util-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\jetty-io\9.4.53.v20231009\jetty-io-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\jetty-servlet\9.4.53.v20231009\jetty-servlet-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\jetty-security\9.4.53.v20231009\jetty-security-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\jetty-util-ajax\9.4.53.v20231009\jetty-util-ajax-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\http2\http2-server\9.4.53.v20231009\http2-server-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\http2\http2-common\9.4.53.v20231009\http2-common-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\http2\http2-hpack\9.4.53.v20231009\http2-hpack-9.4.53.v20231009.jar;D:\MavenRepository\org\eclipse\jetty\jetty-alpn-server\9.4.53.v20231009\jetty-alpn-server-9.4.53.v20231009.jar;D:\MavenRepository\org\mortbay\jetty\alpn\alpn-boot\8.1.13.v20181017\alpn-boot-8.1.13.v20181017.jar;D:\MavenRepository\org\eclipse\jetty\jetty-alpn-conscrypt-server\9.4.53.v20231009\jetty-alpn-conscrypt-server-9.4.53.v20231009.jar;D:\MavenRepository\org\conscrypt\conscrypt-openjdk-uber\2.5.2\conscrypt-openjdk-uber-2.5.2.jar;D:\MavenRepository\org\apache\httpcomponents\httpcore\4.4.15\httpcore-4.4.15.jar;D:\MavenRepository\org\apache\httpcomponents\httpclient\4.5.14\httpclient-4.5.14.jar;D:\MavenRepository\org\apache\httpcomponents\core5\httpcore5-h2\5.2.1\httpcore5-h2-5.2.1.jar;D:\MavenRepository\org\apache\httpcomponents\core5\httpcore5\5.2.1\httpcore5-5.2.1.jar;D:\MavenRepository\org\apache\httpcomponents\client5\httpclient5\5.2.1\httpclient5-5.2.1.jar;D:\MavenRepository\org\springframework\spring-context\5.3.27\spring-context-5.3.27.jar;D:\MavenRepository\commons-beanutils\commons-beanutils\1.9.4\commons-beanutils-1.9.4.jar;D:\MavenRepository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar com.trpc.file.ServerApplication
2023-12-31 00:31:56,626 main DEBUG Apache Log4j Core 2.17.1 initializing configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml]
2023-12-31 00:31:56,634 main DEBUG Installed 0 script engines
2023-12-31 00:31:56,634 main DEBUG PluginManager 'Core' found 127 plugins
2023-12-31 00:31:56,634 main DEBUG PluginManager 'Level' found 0 plugins
2023-12-31 00:31:56,638 main DEBUG Building Plugin[name=property, class=org.apache.logging.log4j.core.config.Property].
2023-12-31 00:31:56,645 main DEBUG PluginManager 'TypeConverter' found 26 plugins
2023-12-31 00:31:56,652 main DEBUG createProperty(name="logdir", value="./log")
2023-12-31 00:31:56,652 main DEBUG Building Plugin[name=properties, class=org.apache.logging.log4j.core.config.PropertiesPlugin].
2023-12-31 00:31:56,655 main DEBUG configureSubstitutor(={logdir=./log}, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml))
2023-12-31 00:31:56,656 main DEBUG PluginManager 'Lookup' found 16 plugins
2023-12-31 00:31:56,666 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2023-12-31 00:31:56,669 main DEBUG PatternLayout$Builder(pattern="%d [%-5p]%c{1}(%L) %m%n", PatternSelector=null, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Replace=null, charset="UTF-8", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2023-12-31 00:31:56,670 main DEBUG PluginManager 'Converter' found 48 plugins
2023-12-31 00:31:56,677 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.ConsoleAppender].
2023-12-31 00:31:56,682 main DEBUG ConsoleAppender$Builder(target="SYSTEM_OUT", follow="null", direct="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d [%-5p]%c{1}(%L) %m%n), name="Console", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Filter=null, ={})
2023-12-31 00:31:56,685 main DEBUG Starting OutputStreamManager SYSTEM_OUT.false.false
2023-12-31 00:31:56,685 main DEBUG Building Plugin[name=filter, class=org.apache.logging.log4j.core.filter.ThresholdFilter].
2023-12-31 00:31:56,686 main DEBUG createFilter(level="DEBUG", onMatch="ACCEPT", onMismatch="DENY")
2023-12-31 00:31:56,687 main DEBUG Building Plugin[name=filters, class=org.apache.logging.log4j.core.filter.CompositeFilter].
2023-12-31 00:31:56,687 main DEBUG createFilters(={DEBUG})
2023-12-31 00:31:56,687 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2023-12-31 00:31:56,688 main DEBUG PatternLayout$Builder(pattern="%d [%-5p]%C{1}(%L) %m%n", PatternSelector=null, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Replace=null, charset="UTF-8", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2023-12-31 00:31:56,689 main DEBUG Building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy].
2023-12-31 00:31:56,691 main DEBUG TimeBasedTriggeringPolicy$Builder(interval="null", modulate="null", maxRandomDelay="null")
2023-12-31 00:31:56,691 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender].
2023-12-31 00:31:56,693 main DEBUG RollingRandomAccessFileAppender$Builder(fileName="./log/debug.log", filePattern="./log/debug.%d{yyyy-MM-dd}.log", append="true", TimeBasedTriggeringPolicy(TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=false)), Strategy=null, advertise="null", advertiseURI="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d [%-5p]%C{1}(%L) %m%n), name="DebugLog", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Filters({DEBUG}), ={})
2023-12-31 00:31:56,698 main DEBUG Starting RollingRandomAccessFileManager ./log/debug.log
2023-12-31 00:31:56,699 main DEBUG PluginManager 'FileConverter' found 2 plugins
2023-12-31 00:31:56,701 main DEBUG Setting prev file time to 2023-12-31T00:28:01.632+0800
2023-12-31 00:31:56,701 main DEBUG Initializing triggering policy TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=false)
2023-12-31 00:31:56,702 main DEBUG Building Plugin[name=filter, class=org.apache.logging.log4j.core.filter.ThresholdFilter].
2023-12-31 00:31:56,703 main DEBUG createFilter(level="WARN", onMatch="ACCEPT", onMismatch="DENY")
2023-12-31 00:31:56,703 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2023-12-31 00:31:56,704 main DEBUG PatternLayout$Builder(pattern="%d [%-5p]%C{1}(%L) %m%n", PatternSelector=null, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Replace=null, charset="UTF-8", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2023-12-31 00:31:56,704 main DEBUG Building Plugin[name=SizeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy].
2023-12-31 00:31:56,705 main DEBUG createPolicy(size="200MB")
2023-12-31 00:31:56,706 main DEBUG Building Plugin[name=DefaultRolloverStrategy, class=org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy].
2023-12-31 00:31:56,706 main DEBUG DefaultRolloverStrategy$Builder(max="3", min="null", fileIndex="null", compressionLevel="null", ={}, stopCustomActionsOnError="null", tempCompressedFilePattern="null", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml))
2023-12-31 00:31:56,707 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender].
2023-12-31 00:31:56,708 main DEBUG RollingRandomAccessFileAppender$Builder(fileName="./log/error.log", filePattern="./log/error.log.%i", append="true", SizeBasedTriggeringPolicy(SizeBasedTriggeringPolicy(size=209715200)), DefaultRolloverStrategy(DefaultRolloverStrategy(min=1, max=3, useMax=true)), advertise="null", advertiseURI="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d [%-5p]%C{1}(%L) %m%n), name="ErrorLog", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), ThresholdFilter(WARN), ={})
2023-12-31 00:31:56,708 main DEBUG Starting RollingRandomAccessFileManager ./log/error.log
2023-12-31 00:31:56,709 main DEBUG PluginManager 'FileConverter' found 2 plugins
2023-12-31 00:31:56,709 main DEBUG Setting prev file time to 2023-12-31T00:28:01.652+0800
2023-12-31 00:31:56,710 main DEBUG Initializing triggering policy SizeBasedTriggeringPolicy(size=209715200)
2023-12-31 00:31:56,710 main DEBUG Building Plugin[name=appenders, class=org.apache.logging.log4j.core.config.AppendersPlugin].
2023-12-31 00:31:56,710 main DEBUG createAppenders(={Console, DebugLog, ErrorLog})
2023-12-31 00:31:56,710 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2023-12-31 00:31:56,711 main DEBUG createAppenderRef(ref="Console", level="null", Filter=null)
2023-12-31 00:31:56,711 main DEBUG Building Plugin[name=root, class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger].
2023-12-31 00:31:56,711 main DEBUG createLogger(additivity="null", level="INFO", includeLocation="true", ={Console}, ={}, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Filter=null)
2023-12-31 00:31:56,712 main DEBUG Building Plugin[name=loggers, class=org.apache.logging.log4j.core.config.LoggersPlugin].
2023-12-31 00:31:56,713 main DEBUG createLoggers(={root})
2023-12-31 00:31:56,713 main DEBUG Configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml] initialized
2023-12-31 00:31:56,713 main DEBUG Starting configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml]
2023-12-31 00:31:56,714 main DEBUG Started configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml] OK.
2023-12-31 00:31:56,714 main DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false-1
2023-12-31 00:31:56,714 main DEBUG OutputStream closed
2023-12-31 00:31:56,714 main DEBUG Shut down OutputStreamManager SYSTEM_OUT.false.false-1, all resources released: true
2023-12-31 00:31:56,715 main DEBUG Appender DefaultConsole-1 stopped with status true
2023-12-31 00:31:56,715 main DEBUG Stopped org.apache.logging.log4j.core.config.DefaultConfiguration@56528192 OK
2023-12-31 00:31:56,717 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b
2023-12-31 00:31:56,719 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=StatusLogger
2023-12-31 00:31:56,720 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=ContextSelector
2023-12-31 00:31:56,721 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Loggers,name=
2023-12-31 00:31:56,721 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Appenders,name=Console
2023-12-31 00:31:56,722 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Appenders,name=DebugLog
2023-12-31 00:31:56,722 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Appenders,name=ErrorLog
2023-12-31 00:31:56,724 main DEBUG org.apache.logging.log4j.core.util.SystemClock supports precise timestamps.
2023-12-31 00:31:56,724 main DEBUG Reconfiguration complete for context[name=63947c6b] at URI E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml (org.apache.logging.log4j.core.LoggerContext@4b2c5e02) with optional ClassLoader: null
2023-12-31 00:31:56,724 main DEBUG Shutdown hook enabled. Registering a new one.
2023-12-31 00:31:56,725 main DEBUG LoggerContext[name=63947c6b, org.apache.logging.log4j.core.LoggerContext@4b2c5e02] started OK.
2023-12-31 00:31:57,052 main DEBUG Reconfiguration started for context[name=63947c6b] at URI null (org.apache.logging.log4j.core.LoggerContext@4b2c5e02) with optional ClassLoader: null
2023-12-31 00:31:57,052 main DEBUG Using configurationFactory org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@3a0807b7
2023-12-31 00:31:57,056 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
2023-12-31 00:31:57,057 main DEBUG Closing BufferedInputStream java.io.BufferedInputStream@21a5fd96
2023-12-31 00:31:57,060 main DEBUG Apache Log4j Core 2.17.1 initializing configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml]
2023-12-31 00:31:57,060 main DEBUG Installed 0 script engines
2023-12-31 00:31:57,060 main DEBUG PluginManager 'Core' found 127 plugins
2023-12-31 00:31:57,061 main DEBUG PluginManager 'Level' found 0 plugins
2023-12-31 00:31:57,062 main DEBUG Building Plugin[name=property, class=org.apache.logging.log4j.core.config.Property].
2023-12-31 00:31:57,062 main DEBUG createProperty(name="logdir", value="./log")
2023-12-31 00:31:57,062 main DEBUG Building Plugin[name=properties, class=org.apache.logging.log4j.core.config.PropertiesPlugin].
2023-12-31 00:31:57,062 main DEBUG configureSubstitutor(={logdir=./log}, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml))
2023-12-31 00:31:57,062 main DEBUG PluginManager 'Lookup' found 16 plugins
2023-12-31 00:31:57,062 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2023-12-31 00:31:57,063 main DEBUG PatternLayout$Builder(pattern="%d [%-5p]%c{1}(%L) %m%n", PatternSelector=null, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Replace=null, charset="UTF-8", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2023-12-31 00:31:57,063 main DEBUG PluginManager 'Converter' found 48 plugins
2023-12-31 00:31:57,063 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.ConsoleAppender].
2023-12-31 00:31:57,064 main DEBUG ConsoleAppender$Builder(target="SYSTEM_OUT", follow="null", direct="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d [%-5p]%c{1}(%L) %m%n), name="Console", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Filter=null, ={})
2023-12-31 00:31:57,065 main DEBUG Building Plugin[name=filter, class=org.apache.logging.log4j.core.filter.ThresholdFilter].
2023-12-31 00:31:57,065 main DEBUG createFilter(level="DEBUG", onMatch="ACCEPT", onMismatch="DENY")
2023-12-31 00:31:57,066 main DEBUG Building Plugin[name=filters, class=org.apache.logging.log4j.core.filter.CompositeFilter].
2023-12-31 00:31:57,066 main DEBUG createFilters(={DEBUG})
2023-12-31 00:31:57,066 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2023-12-31 00:31:57,066 main DEBUG PatternLayout$Builder(pattern="%d [%-5p]%C{1}(%L) %m%n", PatternSelector=null, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Replace=null, charset="UTF-8", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2023-12-31 00:31:57,066 main DEBUG Building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy].
2023-12-31 00:31:57,067 main DEBUG TimeBasedTriggeringPolicy$Builder(interval="null", modulate="null", maxRandomDelay="null")
2023-12-31 00:31:57,067 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender].
2023-12-31 00:31:57,067 main DEBUG RollingRandomAccessFileAppender$Builder(fileName="./log/debug.log", filePattern="./log/debug.%d{yyyy-MM-dd}.log", append="true", TimeBasedTriggeringPolicy(TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=false)), Strategy=null, advertise="null", advertiseURI="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d [%-5p]%C{1}(%L) %m%n), name="DebugLog", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Filters({DEBUG}), ={})
2023-12-31 00:31:57,067 main DEBUG PluginManager 'FileConverter' found 2 plugins
2023-12-31 00:31:57,068 main DEBUG Building Plugin[name=filter, class=org.apache.logging.log4j.core.filter.ThresholdFilter].
2023-12-31 00:31:57,068 main DEBUG createFilter(level="WARN", onMatch="ACCEPT", onMismatch="DENY")
2023-12-31 00:31:57,069 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2023-12-31 00:31:57,069 main DEBUG PatternLayout$Builder(pattern="%d [%-5p]%C{1}(%L) %m%n", PatternSelector=null, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Replace=null, charset="UTF-8", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2023-12-31 00:31:57,069 main DEBUG Building Plugin[name=SizeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy].
2023-12-31 00:31:57,069 main DEBUG createPolicy(size="200MB")
2023-12-31 00:31:57,070 main DEBUG Building Plugin[name=DefaultRolloverStrategy, class=org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy].
2023-12-31 00:31:57,070 main DEBUG DefaultRolloverStrategy$Builder(max="3", min="null", fileIndex="null", compressionLevel="null", ={}, stopCustomActionsOnError="null", tempCompressedFilePattern="null", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml))
2023-12-31 00:31:57,070 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender].
2023-12-31 00:31:57,070 main DEBUG RollingRandomAccessFileAppender$Builder(fileName="./log/error.log", filePattern="./log/error.log.%i", append="true", SizeBasedTriggeringPolicy(SizeBasedTriggeringPolicy(size=209715200)), DefaultRolloverStrategy(DefaultRolloverStrategy(min=1, max=3, useMax=true)), advertise="null", advertiseURI="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d [%-5p]%C{1}(%L) %m%n), name="ErrorLog", Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), ThresholdFilter(WARN), ={})
2023-12-31 00:31:57,071 main DEBUG PluginManager 'FileConverter' found 2 plugins
2023-12-31 00:31:57,071 main DEBUG Building Plugin[name=appenders, class=org.apache.logging.log4j.core.config.AppendersPlugin].
2023-12-31 00:31:57,071 main DEBUG createAppenders(={Console, DebugLog, ErrorLog})
2023-12-31 00:31:57,071 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2023-12-31 00:31:57,071 main DEBUG createAppenderRef(ref="Console", level="null", Filter=null)
2023-12-31 00:31:57,071 main DEBUG Building Plugin[name=root, class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger].
2023-12-31 00:31:57,072 main DEBUG createLogger(additivity="null", level="INFO", includeLocation="true", ={Console}, ={}, Configuration(E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml), Filter=null)
2023-12-31 00:31:57,072 main DEBUG Building Plugin[name=loggers, class=org.apache.logging.log4j.core.config.LoggersPlugin].
2023-12-31 00:31:57,072 main DEBUG createLoggers(={root})
2023-12-31 00:31:57,072 main DEBUG Configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml] initialized
2023-12-31 00:31:57,072 main DEBUG Starting configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml]
2023-12-31 00:31:57,072 main DEBUG Started configuration XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml] OK.
2023-12-31 00:31:57,073 main DEBUG Appender ErrorLog stopped with status true
2023-12-31 00:31:57,073 main DEBUG Appender DebugLog stopped with status true
2023-12-31 00:31:57,073 main DEBUG Appender Console stopped with status true
2023-12-31 00:31:57,073 main DEBUG Stopped XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml] OK
2023-12-31 00:31:57,074 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b
2023-12-31 00:31:57,074 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=StatusLogger
2023-12-31 00:31:57,075 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=ContextSelector
2023-12-31 00:31:57,075 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Loggers,name=
2023-12-31 00:31:57,075 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Appenders,name=Console
2023-12-31 00:31:57,075 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Appenders,name=DebugLog
2023-12-31 00:31:57,076 main DEBUG Registering MBean org.apache.logging.log4j2:type=63947c6b,component=Appenders,name=ErrorLog
2023-12-31 00:31:57,076 main DEBUG Reconfiguration complete for context[name=63947c6b] at URI E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml (org.apache.logging.log4j.core.LoggerContext@4b2c5e02) with optional ClassLoader: null

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.7.12)


|__ | | __ \ | __ \ / ____|
| | | |
) | | |__) | | |
| | | _ / | / | |
| | | | \ \ | | | |
_
|| || _\ || ____|
:: TRPC :: (v1.1.0)

2023-12-31 00:31:57,341 [INFO ]ServerApplication(55) Starting ServerApplication using Java 17.0.9 on DESKTOP-2LMV00G with PID 15356 (E:\JavaProjects\trpc-spring-file-upload\target\classes started by Juno_ in E:\JavaProjects\trpc-spring-file-upload)
2023-12-31 00:31:57,345 main DEBUG AsyncLogger.ThreadNameStrategy=UNCACHED (user specified null, default is UNCACHED)
2023-12-31 00:31:57,345 main DEBUG org.apache.logging.log4j.core.util.SystemClock supports precise timestamps.
2023-12-31 00:31:57,346 [INFO ]ServerApplication(631) No active profile set, falling back to 1 default profile: "default"
2023-12-31 00:31:57,772 [INFO ]TRpcConfigRegistryPostProcessor(63) Register TRpc config manager named 'TRpcConfigManager'
2023-12-31 00:31:57,944 [INFO ]ExtensionLoader(63) Register plugin config(PluginConfig {name=trpc_consumer_biz_def, pluginInterface=interface com.tencent.trpc.core.worker.spi.WorkerPool, pluginClass=class com.tencent.trpc.core.worker.support.thread.ThreadWorkerPool, properties={allow_core_thread_timeout=true, name_prefix=null, queue_size=5000, close_timeout=10000, fiber_parallel=0, core_pool_size=24, use_fiber=false, maximum_pool_size=24, keep_alive_time_seconds=60, deamon=true, share_schedule=true}})
2023-12-31 00:31:57,945 [INFO ]ExtensionLoader(63) Register plugin config(PluginConfig {name=trpc_provider_biz_def, pluginInterface=interface com.tencent.trpc.core.worker.spi.WorkerPool, pluginClass=class com.tencent.trpc.core.worker.support.thread.ThreadWorkerPool, properties={allow_core_thread_timeout=true, name_prefix=null, queue_size=5000, close_timeout=10000, fiber_parallel=0, core_pool_size=24, use_fiber=false, maximum_pool_size=24, keep_alive_time_seconds=60, deamon=true, share_schedule=true}})
2023-12-31 00:31:57,945 [INFO ]ExtensionLoader(63) Register plugin config(PluginConfig {name=trpc_naming_def, pluginInterface=interface com.tencent.trpc.core.worker.spi.WorkerPool, pluginClass=class com.tencent.trpc.core.worker.support.thread.ThreadWorkerPool, properties={allow_core_thread_timeout=true, name_prefix=null, queue_size=5000, close_timeout=10000, fiber_parallel=0, core_pool_size=24, use_fiber=false, maximum_pool_size=24, keep_alive_time_seconds=60, deamon=true, share_schedule=true}})
2023-12-31 00:31:57,948 [INFO ]NetUtils(63) get host ip success, address:DESKTOP-2LMV00G/192.168.3.18
2023-12-31 00:31:57,981 [INFO ]TRpcWebServerFactoryCustomizer(63) set springmvc webserver port to 12324
2023-12-31 00:31:58,090 [INFO ]TomcatWebServer(108) Tomcat initialized with port(s): 12324 (http)
12月 31, 2023 12:31:58 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-12324"]
12月 31, 2023 12:31:58 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
12月 31, 2023 12:31:58 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/9.0.75]
12月 31, 2023 12:31:58 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
2023-12-31 00:31:58,223 [INFO ]ServletWebServerApplicationContext(292) Root WebApplicationContext: initialization completed in 840 ms
12月 31, 2023 12:31:58 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-12324"]
2023-12-31 00:31:58,612 [INFO ]TomcatWebServer(220) Tomcat started on port(s): 12324 (http) with context path ''
2023-12-31 00:31:58,618 [INFO ]ClientConfig(58) >>>Starting init clientConfig
2023-12-31 00:31:58,619 [INFO ]ClientConfig(58) >>>Started init clientConfig
2023-12-31 00:31:58,619 [INFO ]ServerConfig(58) >>>Starting init plugin
2023-12-31 00:31:58,619 [INFO ]ServerConfig(58) >>>Started init plugin
2023-12-31 00:31:58,642 [WARN ]ThreadWorkerPool(73) If the server uses a synchronous interface, please increase the thread pool size
2023-12-31 00:31:58,644 [INFO ]ProviderConfig(58) Init ProviderConfig, inited info: ProviderConfig {serviceInterface=interface com.trpc.file.proto.GreeterServiceAPI, serviceImplClazz=com.trpc.file.service.impl.GreeterServiceImpl, ref=com.trpc.file.service.impl.GreeterServiceImpl@48cdb156, inited=true}
2023-12-31 00:31:58,645 [INFO ]ServiceConfig(63) >>>Init ServiceConfig, initialized info:ServiceConfig [name=trpc.FileApp.FileServer.GreeterService, version=v1.0.0, group=normal, ip=127.0.0.1, port=12323, nic=null, protocol=trpc, serialization=pb, compressor=none, keepAlive=true, charset=UTF-8, transporter=netty, maxConns=20480, backlog=1024, network=tcp, receiveBuffer=16384, sendBuffer=16384, payload=10485760, idleTimeout=240000, lazyinit=false, ioMode=epoll, ioThreadGroupShare=true, ioThreads=24, workerPool=trpc_provider_biz_def, requestTimeout=2147483647, filters=[], extMap={}, setDefault=true, inited=true, exported=false, registed=false]
2023-12-31 00:31:58,646 [INFO ]ProviderConfig(58) Init ProviderConfig, inited info: ProviderConfig {serviceInterface=interface com.trpc.file.proto.GreeterService2API, serviceImplClazz=com.trpc.file.service.impl.GreeterServiceImpl2, ref=com.trpc.file.service.impl.GreeterServiceImpl2@46612bfc, inited=true}
2023-12-31 00:31:58,646 [INFO ]ServiceConfig(63) >>>Init ServiceConfig, initialized info:ServiceConfig [name=trpc.FileApp.FileServer.GreeterService2, version=v1.0.0, group=normal, ip=127.0.0.1, port=12324, nic=null, protocol=rest, serialization=pb, compressor=none, keepAlive=true, charset=UTF-8, transporter=netty, maxConns=20480, backlog=1024, network=tcp, receiveBuffer=16384, sendBuffer=16384, payload=10485760, idleTimeout=240000, lazyinit=false, ioMode=epoll, ioThreadGroupShare=true, ioThreads=24, workerPool=trpc_provider_biz_def, requestTimeout=2147483647, filters=[], extMap={}, setDefault=true, inited=true, exported=false, registed=false]
2023-12-31 00:31:58,648 [ERROR]ServerConfig(98) Server init exception, will stop
com.tencent.trpc.core.exception.TRpcExtensionException: Cannot get extension of type <com.tencent.trpc.core.rpc.spi.RpcServerFactory> with name
at com.tencent.trpc.core.extension.ExtensionLoader.lambda$getExtension$5(ExtensionLoader.java:241) ~[trpc-core-1.1.0.jar:?]
at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
at com.tencent.trpc.core.extension.ExtensionLoader.getExtension(ExtensionLoader.java:240) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.rpc.RpcServerManager.lambda$getOrCreateRpcServer$0(RpcServerManager.java:42) ~[trpc-core-1.1.0.jar:?]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
at com.tencent.trpc.core.rpc.RpcServerManager.getOrCreateRpcServer(RpcServerManager.java:39) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.config.ServiceConfig.export(ServiceConfig.java:200) ~[trpc-core-1.1.0.jar:?]
at java.util.HashMap$Values.forEach(HashMap.java:1065) ~[?:?]
at com.tencent.trpc.core.common.config.ServerConfig.init(ServerConfig.java:150) [trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.ConfigManager$LifecycleObj.startInternal(ConfigManager.java:280) [trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.LifecycleBase.start(LifecycleBase.java:87) [trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.ConfigManager.start(ConfigManager.java:131) [trpc-core-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.startTRPC(TRpcLifecycleManager.java:96) [trpc-spring-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.onContextRefreshedEvent(TRpcLifecycleManager.java:61) [trpc-spring-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.onApplicationEvent(TRpcLifecycleManager.java:46) [trpc-spring-1.1.0.jar:?]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:940) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) [spring-boot-2.7.12.jar:2.7.12]
at com.trpc.file.ServerApplication.main(ServerApplication.java:23) [classes/:?]
2023-12-31 00:31:58,654 [ERROR]LifecycleBase(93) obj ApplicationConfig {globalConfig=com.tencent.trpc.core.common.config.GlobalConfig@74c121d4, serverConfig=com.tencent.trpc.core.common.config.ServerConfig@2a484710, clientConfig=com.tencent.trpc.core.common.config.ClientConfig@661e1399, pluginConfigMap={interface com.tencent.trpc.core.registry.spi.Registry={}, interface com.tencent.trpc.core.telemetry.spi.TelemetryFactory={}, interface com.tencent.trpc.core.configcenter.spi.ConfigurationLoader={}, interface com.tencent.trpc.core.selector.spi.Selector={}, interface com.tencent.trpc.core.selector.spi.Discovery={}, interface com.tencent.trpc.core.selector.spi.CircuitBreaker={}, interface com.tencent.trpc.core.trace.spi.TracerFactory={}, interface com.tencent.trpc.core.logger.RemoteLoggerAdapter={}, interface com.tencent.trpc.core.selector.spi.Router={}, interface com.tencent.trpc.core.metrics.spi.MetricsFactory={}, interface com.tencent.trpc.core.worker.spi.WorkerPool={}, interface com.tencent.trpc.core.filter.spi.Filter={}, interface com.tencent.trpc.core.selector.spi.LoadBalance={}, interface com.tencent.trpc.core.limiter.spi.Limiter={}}} lifecycle start failed.
java.lang.RuntimeException: Server init exception
at com.tencent.trpc.core.common.config.ServerConfig.init(ServerConfig.java:158) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.ConfigManager$LifecycleObj.startInternal(ConfigManager.java:280) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.LifecycleBase.start(LifecycleBase.java:87) [trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.ConfigManager.start(ConfigManager.java:131) [trpc-core-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.startTRPC(TRpcLifecycleManager.java:96) [trpc-spring-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.onContextRefreshedEvent(TRpcLifecycleManager.java:61) [trpc-spring-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.onApplicationEvent(TRpcLifecycleManager.java:46) [trpc-spring-1.1.0.jar:?]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:940) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) [spring-context-5.3.27.jar:5.3.27]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) [spring-boot-2.7.12.jar:2.7.12]
at com.trpc.file.ServerApplication.main(ServerApplication.java:23) [classes/:?]
Caused by: com.tencent.trpc.core.exception.TRpcExtensionException: Cannot get extension of type <com.tencent.trpc.core.rpc.spi.RpcServerFactory> with name
at com.tencent.trpc.core.extension.ExtensionLoader.lambda$getExtension$5(ExtensionLoader.java:241) ~[trpc-core-1.1.0.jar:?]
at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
at com.tencent.trpc.core.extension.ExtensionLoader.getExtension(ExtensionLoader.java:240) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.rpc.RpcServerManager.lambda$getOrCreateRpcServer$0(RpcServerManager.java:42) ~[trpc-core-1.1.0.jar:?]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
at com.tencent.trpc.core.rpc.RpcServerManager.getOrCreateRpcServer(RpcServerManager.java:39) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.config.ServiceConfig.export(ServiceConfig.java:200) ~[trpc-core-1.1.0.jar:?]
at java.util.HashMap$Values.forEach(HashMap.java:1065) ~[?:?]
at com.tencent.trpc.core.common.config.ServerConfig.init(ServerConfig.java:150) ~[trpc-core-1.1.0.jar:?]
... 20 more
2023-12-31 00:31:58,655 [INFO ]ServerConfig(58) >>>tRPC Server stopping
2023-12-31 00:31:58,658 [INFO ]ServerConfig(58) >>>tRPC Server stopped
12月 31, 2023 12:31:58 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-nio-12324"]
12月 31, 2023 12:31:58 上午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service [Tomcat]
12月 31, 2023 12:31:58 上午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-nio-12324"]
12月 31, 2023 12:31:58 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-nio-12324"]
2023-12-31 00:31:58,695 [INFO ]ConditionEvaluationReportLoggingListener(136)

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-12-31 00:31:58,708 [ERROR]SpringApplication(821) Application run failed
com.tencent.trpc.core.exception.LifecycleException: Lifecycle start fail obj={ApplicationConfig {globalConfig=com.tencent.trpc.core.common.config.GlobalConfig@74c121d4, serverConfig=com.tencent.trpc.core.common.config.ServerConfig@2a484710, clientConfig=com.tencent.trpc.core.common.config.ClientConfig@661e1399, pluginConfigMap={interface com.tencent.trpc.core.registry.spi.Registry={}, interface com.tencent.trpc.core.telemetry.spi.TelemetryFactory={}, interface com.tencent.trpc.core.configcenter.spi.ConfigurationLoader={}, interface com.tencent.trpc.core.selector.spi.Selector={}, interface com.tencent.trpc.core.selector.spi.Discovery={}, interface com.tencent.trpc.core.selector.spi.CircuitBreaker={}, interface com.tencent.trpc.core.trace.spi.TracerFactory={}, interface com.tencent.trpc.core.logger.RemoteLoggerAdapter={}, interface com.tencent.trpc.core.selector.spi.Router={}, interface com.tencent.trpc.core.metrics.spi.MetricsFactory={}, interface com.tencent.trpc.core.worker.spi.WorkerPool={}, interface com.tencent.trpc.core.filter.spi.Filter={}, interface com.tencent.trpc.core.selector.spi.LoadBalance={}, interface com.tencent.trpc.core.limiter.spi.Limiter={}}}}
at com.tencent.trpc.core.common.LifecycleBase.start(LifecycleBase.java:102) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.ConfigManager.start(ConfigManager.java:131) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.startTRPC(TRpcLifecycleManager.java:96) ~[trpc-spring-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.onContextRefreshedEvent(TRpcLifecycleManager.java:61) ~[trpc-spring-1.1.0.jar:?]
at com.tencent.trpc.spring.context.TRpcLifecycleManager.onApplicationEvent(TRpcLifecycleManager.java:46) ~[trpc-spring-1.1.0.jar:?]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:940) ~[spring-context-5.3.27.jar:5.3.27]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.27.jar:5.3.27]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) [spring-boot-2.7.12.jar:2.7.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) [spring-boot-2.7.12.jar:2.7.12]
at com.trpc.file.ServerApplication.main(ServerApplication.java:23) [classes/:?]
Caused by: java.lang.RuntimeException: Server init exception
at com.tencent.trpc.core.common.config.ServerConfig.init(ServerConfig.java:158) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.ConfigManager$LifecycleObj.startInternal(ConfigManager.java:280) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.LifecycleBase.start(LifecycleBase.java:87) ~[trpc-core-1.1.0.jar:?]
... 18 more
Caused by: com.tencent.trpc.core.exception.TRpcExtensionException: Cannot get extension of type <com.tencent.trpc.core.rpc.spi.RpcServerFactory> with name
at com.tencent.trpc.core.extension.ExtensionLoader.lambda$getExtension$5(ExtensionLoader.java:241) ~[trpc-core-1.1.0.jar:?]
at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
at com.tencent.trpc.core.extension.ExtensionLoader.getExtension(ExtensionLoader.java:240) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.rpc.RpcServerManager.lambda$getOrCreateRpcServer$0(RpcServerManager.java:42) ~[trpc-core-1.1.0.jar:?]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
at com.tencent.trpc.core.rpc.RpcServerManager.getOrCreateRpcServer(RpcServerManager.java:39) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.config.ServiceConfig.export(ServiceConfig.java:200) ~[trpc-core-1.1.0.jar:?]
at java.util.HashMap$Values.forEach(HashMap.java:1065) ~[?:?]
at com.tencent.trpc.core.common.config.ServerConfig.init(ServerConfig.java:150) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.ConfigManager$LifecycleObj.startInternal(ConfigManager.java:280) ~[trpc-core-1.1.0.jar:?]
at com.tencent.trpc.core.common.LifecycleBase.start(LifecycleBase.java:87) ~[trpc-core-1.1.0.jar:?]
... 18 more
2023-12-31 00:31:58,711 [ERROR]LifecycleBase(93) Lifecycle stop ignore, state=STOPPED, obj=ApplicationConfig {globalConfig=com.tencent.trpc.core.common.config.GlobalConfig@74c121d4, serverConfig=com.tencent.trpc.core.common.config.ServerConfig@2a484710, clientConfig=com.tencent.trpc.core.common.config.ClientConfig@661e1399, pluginConfigMap={interface com.tencent.trpc.core.registry.spi.Registry={}, interface com.tencent.trpc.core.telemetry.spi.TelemetryFactory={}, interface com.tencent.trpc.core.configcenter.spi.ConfigurationLoader={}, interface com.tencent.trpc.core.selector.spi.Selector={}, interface com.tencent.trpc.core.selector.spi.Discovery={}, interface com.tencent.trpc.core.selector.spi.CircuitBreaker={}, interface com.tencent.trpc.core.trace.spi.TracerFactory={}, interface com.tencent.trpc.core.logger.RemoteLoggerAdapter={}, interface com.tencent.trpc.core.selector.spi.Router={}, interface com.tencent.trpc.core.metrics.spi.MetricsFactory={}, interface com.tencent.trpc.core.worker.spi.WorkerPool={}, interface com.tencent.trpc.core.filter.spi.Filter={}, interface com.tencent.trpc.core.selector.spi.LoadBalance={}, interface com.tencent.trpc.core.limiter.spi.Limiter={}}}
2023-12-31 00:31:58,713 [INFO ]AnnotationInjectedBeanPostProcessor(63) class com.tencent.trpc.spring.context.InitializingTRpcClientAnnotationBeanPostProcessor was destroying!
2023-12-31 00:31:58,715 SpringApplicationShutdownHook DEBUG Stopping LoggerContext[name=63947c6b, org.apache.logging.log4j.core.LoggerContext@4b2c5e02]...
2023-12-31 00:31:58,715 SpringApplicationShutdownHook DEBUG Shutting down RollingRandomAccessFileManager ./log/error.log
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG Shutting down RollingFileManager ./log/error.log
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG All asynchronous threads have terminated
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG RollingFileManager shutdown completed with status true
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG Shut down RollingRandomAccessFileManager ./log/error.log, all resources released: true
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG Appender ErrorLog stopped with status true
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG Shutting down RollingRandomAccessFileManager ./log/debug.log
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG Shutting down RollingFileManager ./log/debug.log
2023-12-31 00:31:58,716 SpringApplicationShutdownHook DEBUG All asynchronous threads have terminated
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG RollingFileManager shutdown completed with status true
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG Shut down RollingRandomAccessFileManager ./log/debug.log, all resources released: true
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG Appender DebugLog stopped with status true
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG OutputStream closed
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG Shut down OutputStreamManager SYSTEM_OUT.false.false, all resources released: true
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG Appender Console stopped with status true
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG Stopped XmlConfiguration[location=E:\JavaProjects\trpc-spring-file-upload\target\classes\log4j2.xml] OK
2023-12-31 00:31:58,717 SpringApplicationShutdownHook DEBUG Stopped LoggerContext[name=63947c6b, org.apache.logging.log4j.core.LoggerContext@4b2c5e02] with status true

Process finished with exit code 1

@Juno119
Copy link
Author

Juno119 commented Dec 31, 2023

image

@wardseptember wardseptember added good first issue Good for newcomers question Further information is requested labels Jan 2, 2024
@wardseptember
Copy link
Collaborator

你检查一下有没有引入这两个jar

            <dependency>
                <artifactId>trpc-proto-standard</artifactId>
                <groupId>com.tencent.trpc</groupId>
            </dependency>
            <dependency>
                <artifactId>trpc-transport-netty</artifactId>
                <groupId>com.tencent.trpc</groupId>
            </dependency>

另外需要注意一下,使用了rest协议需要引入

            <dependency>
                <groupId>com.tencent.trpc</groupId>
                <artifactId>trpc-springmvc</artifactId>
            </dependency>

@Juno119
Copy link
Author

Juno119 commented Jan 3, 2024

@wardseptember 感谢,引入下面两个库之后好了

            <dependency>
                <artifactId>trpc-proto-standard</artifactId>
                <groupId>com.tencent.trpc</groupId>
            </dependency>
            <dependency>
                <artifactId>trpc-transport-netty</artifactId>
                <groupId>com.tencent.trpc</groupId>
            </dependency>

搭车再请教下,
1 为什么这个demo,只需要引入trpc-springmvc呢?它也是用了trpc协议

2 http协议和rest协议的具体有什么差别呢?
image

@wardseptember
Copy link
Collaborator

@Juno119 https://github.com/trpc-group/trpc-java/blob/master/trpc-demo/trpc-spring-demo/pom.xml 这里引入了trpc-mini,trpc-mini包含了上面两个jar包。
2. http协议是trpc框架提供的,restful http是利用springmvc功能实现的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants