win10下 maven IPv6问题导致的错误。

本文解决了在Windows 10环境下Maven遇到的java.net.ConnectException错误,通过配置Maven使用IPv4而非IPv6来解决问题。
部署运行你感兴趣的模型镜像

关于win10下 maven 遇到的错误java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine解决。

报错:

java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine 

本来以为是setting.xml配置的不对,或者是私服的地址不对。查找的时候遇到过很多弯路。
最后在StackOverFlow 找到一个大哥的答案,完美解决。
原文链接:https://stackoverflow.com/questions/15105357/address-is-invalid-on-local-machine-on-windows-8-only

错误原因:

原答案

java试图使用IPV6地址,但是当前系统(我的是win10专业版)有可能不支持。强制让java 使用IPV4解析IP地址即可。
具体是在maven VM Options里加上配置:

-Djava.net.preferIPv4Stack=true

以下是idea配置。
IDEA配置

希望可以帮助遇到同样问题的同学。

您可能感兴趣的与本文相关的镜像

PyTorch 2.6

PyTorch 2.6

PyTorch
Cuda

PyTorch 是一个开源的 Python 机器学习库,基于 Torch 库,底层由 C++ 实现,应用于人工智能领域,如计算机视觉和自然语言处理

2025-09-16 15:00:23,186 [main] INFO [com.opensymphony.xwork2.spring.SpringObjectFactory] - Setting autowire strategy to name 2025-09-16 15:00:23,186 [main] INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - ... initialized Struts-Spring integration successfully 九月 16, 2025 3:00:35 下午 org.apache.cxf.transport.servlet.CXFServlet updateContext 信息: Load the bus with application context 九月 16, 2025 3:00:35 下午 org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory 信息: Servlet transport factory already registered 2025-09-16 15:00:35,381 [main] INFO [org.apache.cxf.bus.spring.BusApplicationContext] - Refreshing org.apache.cxf.bus.spring.BusApplicationContext@75803b11: startup date [Tue Sep 16 15:00:35 CST 2025]; parent: Root WebApplicationContext 2025-09-16 15:00:35,392 [main] INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@638fff71: defining beans []; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@346fb908 九月 16, 2025 3:00:35 下午 org.apache.coyote.http11.Http11Protocol init 严重: Error initializing endpoint java.net.BindException: Address already in use: JVM_Bind <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) at org.apache.catalina.connector.Connector.initialize(Connector.java:1014) at org.apache.catalina.startup.Embedded.start(Embedded.java:830) at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:558) at org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:255) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50) at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538) ... 28 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:06 min [INFO] Finished at: 2025-09-16T15:00:35+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run (default-cli) on project PowerDesk: Could not start Tomcat: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind <null>:8080 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 已与地址为 ''127.0.0.1:1773',传输: '套接字'' 的目标虚拟机断开连接 进程已结束,退出代码为 1 分析下报错
最新发布
09-17
C:\Users\cyz\.jdks\ms-17.0.15\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:\ideaIU-2023.1\IntelliJ IDEA 2023.1\lib\idea_rt.jar=53823:D:\ideaIU-2023.1\IntelliJ IDEA 2023.1\bin" -Dfile.encoding=UTF-8 -classpath D:\yunjisuan\专高五\智学伴航项目\study\zhentao-study\zhentao-study-service\zhentao-study-adminService\target\classes;D:\respository_new\org\springframework\cloud\spring-cloud-commons\2.2.5.RELEASE\spring-cloud-commons-2.2.5.RELEASE.jar;D:\respository_new\org\springframework\security\spring-security-crypto\5.3.3.RELEASE\spring-security-crypto-5.3.3.RELEASE.jar;D:\yunjisuan\专高五\智学伴航项目\study\zhentao-study\zhentao-study-service\zhentao-study-adminService\src\main\resources\libs\arcsoft-sdk-face-3.0.0.0.jar;D:\respository_new\io\minio\minio\7.1.0\minio-7.1.0.jar;D:\respository_new\com\carrotsearch\thirdparty\simple-xml-safe\2.7.1\simple-xml-safe-2.7.1.jar;D:\respository_new\com\google\guava\guava\25.1-jre\guava-25.1-jre.jar;D:\respository_new\org\checkerframework\checker-qual\2.0.0\checker-qual-2.0.0.jar;D:\respository_new\com\google\errorprone\error_prone_annotations\2.1.3\error_prone_annotations-2.1.3.jar;D:\respository_new\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\respository_new\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;D:\respository_new\com\squareup\okhttp3\okhttp\3.14.9\okhttp-3.14.9.jar;D:\respository_new\com\squareup\okio\okio\1.17.2\okio-1.17.2.jar;D:\respository_new\com\fasterxml\jackson\core\jackson-annotations\2.11.1\jackson-annotations-2.11.1.jar;D:\respository_new\com\fasterxml\jackson\core\jackson-core\2.11.1\jackson-core-2.11.1.jar;D:\respository_new\com\fasterxml\jackson\core\jackson-databind\2.11.1\jackson-databind-2.11.1.jar;D:\respository_new\com\github\spotbugs\spotbugs-annotations\4.0.0\spotbugs-annotations-4.0.0.jar;D:\respository_new\net\jcip\jcip-annotations\1.0\jcip-annotations-1.0.jar;D:\respository_new\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\yunjisuan\专高五\智学伴航项目\study\zhentao-study\zhentao-file-starter\target\classes;D:\respository_new\org\springframework\boot\spring-boot-autoconfigure\2.3.2.RELEASE\spring-boot-autoconfigure-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\boot\spring-boot\2.3.2.RELEASE\spring-boot-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\boot\spring-boot-starter\2.3.2.RELEASE\spring-boot-starter-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\boot\spring-boot-starter-logging\2.3.2.RELEASE\spring-boot-starter-logging-2.3.2.RELEASE.jar;D:\respository_new\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\respository_new\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\respository_new\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;D:\respository_new\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;D:\respository_new\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\respository_new\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\respository_new\org\yaml\snakeyaml\1.26\snakeyaml-1.26.jar;D:\respository_new\org\springframework\boot\spring-boot-starter-actuator\2.3.2.RELEASE\spring-boot-starter-actuator-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\boot\spring-boot-actuator-autoconfigure\2.3.2.RELEASE\spring-boot-actuator-autoconfigure-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\boot\spring-boot-actuator\2.3.2.RELEASE\spring-boot-actuator-2.3.2.RELEASE.jar;D:\respository_new\io\micrometer\micrometer-core\1.5.3\micrometer-core-1.5.3.jar;D:\respository_new\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;D:\respository_new\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\respository_new\org\springframework\boot\spring-boot-starter-web\2.3.2.RELEASE\spring-boot-starter-web-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\boot\spring-boot-starter-json\2.3.2.RELEASE\spring-boot-starter-json-2.3.2.RELEASE.jar;D:\respository_new\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.1\jackson-datatype-jdk8-2.11.1.jar;D:\respository_new\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.1\jackson-datatype-jsr310-2.11.1.jar;D:\respository_new\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.1\jackson-module-parameter-names-2.11.1.jar;D:\respository_new\org\springframework\boot\spring-boot-starter-tomcat\2.3.2.RELEASE\spring-boot-starter-tomcat-2.3.2.RELEASE.jar;D:\respository_new\org\apache\tomcat\embed\tomcat-embed-core\9.0.37\tomcat-embed-core-9.0.37.jar;D:\respository_new\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;D:\respository_new\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.37\tomcat-embed-websocket-9.0.37.jar;D:\respository_new\org\springframework\spring-web\5.2.8.RELEASE\spring-web-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-beans\5.2.8.RELEASE\spring-beans-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-webmvc\5.2.8.RELEASE\spring-webmvc-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-aop\5.2.8.RELEASE\spring-aop-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-context\5.2.8.RELEASE\spring-context-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-expression\5.2.8.RELEASE\spring-expression-5.2.8.RELEASE.jar;D:\respository_new\com\mysql\mysql-connector-j\8.0.33\mysql-connector-j-8.0.33.jar;D:\respository_new\com\google\protobuf\protobuf-java\3.21.9\protobuf-java-3.21.9.jar;D:\respository_new\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-jcl\5.2.8.RELEASE\spring-jcl-5.2.8.RELEASE.jar;D:\respository_new\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;D:\respository_new\com\baomidou\mybatis-plus-boot-starter\3.5.3.1\mybatis-plus-boot-starter-3.5.3.1.jar;D:\respository_new\com\baomidou\mybatis-plus\3.5.3.1\mybatis-plus-3.5.3.1.jar;D:\respository_new\com\baomidou\mybatis-plus-extension\3.5.3.1\mybatis-plus-extension-3.5.3.1.jar;D:\respository_new\com\baomidou\mybatis-plus-core\3.5.3.1\mybatis-plus-core-3.5.3.1.jar;D:\respository_new\com\baomidou\mybatis-plus-annotation\3.5.3.1\mybatis-plus-annotation-3.5.3.1.jar;D:\respository_new\com\github\jsqlparser\jsqlparser\4.4\jsqlparser-4.4.jar;D:\respository_new\org\mybatis\mybatis\3.5.10\mybatis-3.5.10.jar;D:\respository_new\org\mybatis\mybatis-spring\2.0.7\mybatis-spring-2.0.7.jar;D:\respository_new\org\springframework\boot\spring-boot-starter-jdbc\2.3.2.RELEASE\spring-boot-starter-jdbc-2.3.2.RELEASE.jar;D:\respository_new\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;D:\respository_new\org\springframework\spring-jdbc\5.2.8.RELEASE\spring-jdbc-5.2.8.RELEASE.jar;D:\respository_new\com\baomidou\mybatis-plus-generator\3.5.1\mybatis-plus-generator-3.5.1.jar;D:\respository_new\org\freemarker\freemarker\2.3.28\freemarker-2.3.28.jar;D:\respository_new\io\swagger\swagger-annotations\1.6.2\swagger-annotations-1.6.2.jar;D:\respository_new\org\springframework\boot\spring-boot-starter-data-redis\2.3.2.RELEASE\spring-boot-starter-data-redis-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\data\spring-data-redis\2.3.2.RELEASE\spring-data-redis-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\data\spring-data-keyvalue\2.3.2.RELEASE\spring-data-keyvalue-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\data\spring-data-commons\2.3.2.RELEASE\spring-data-commons-2.3.2.RELEASE.jar;D:\respository_new\org\springframework\spring-tx\5.2.8.RELEASE\spring-tx-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-oxm\5.2.8.RELEASE\spring-oxm-5.2.8.RELEASE.jar;D:\respository_new\org\springframework\spring-context-support\5.2.8.RELEASE\spring-context-support-5.2.8.RELEASE.jar;D:\respository_new\io\lettuce\lettuce-core\5.3.2.RELEASE\lettuce-core-5.3.2.RELEASE.jar;D:\respository_new\io\netty\netty-common\4.1.51.Final\netty-common-4.1.51.Final.jar;D:\respository_new\io\netty\netty-handler\4.1.51.Final\netty-handler-4.1.51.Final.jar;D:\respository_new\io\netty\netty-resolver\4.1.51.Final\netty-resolver-4.1.51.Final.jar;D:\respository_new\io\netty\netty-buffer\4.1.51.Final\netty-buffer-4.1.51.Final.jar;D:\respository_new\io\netty\netty-codec\4.1.51.Final\netty-codec-4.1.51.Final.jar;D:\respository_new\io\netty\netty-transport\4.1.51.Final\netty-transport-4.1.51.Final.jar;D:\respository_new\io\projectreactor\reactor-core\3.3.8.RELEASE\reactor-core-3.3.8.RELEASE.jar;D:\respository_new\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;D:\respository_new\com\alibaba\fastjson2\fastjson2\2.0.23\fastjson2-2.0.23.jar;D:\respository_new\commons-io\commons-io\2.11.0\commons-io-2.11.0.jar;D:\respository_new\com\alibaba\druid-spring-boot-starter\1.1.9\druid-spring-boot-starter-1.1.9.jar;D:\respository_new\com\alibaba\druid\1.1.9\druid-1.1.9.jar;D:\respository_new\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;D:\respository_new\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\respository_new\cn\hutool\hutool-all\5.8.13\hutool-all-5.8.13.jar;D:\respository_new\org\springframework\boot\spring-boot-configuration-processor\2.3.2.RELEASE\spring-boot-configuration-processor-2.3.2.RELEASE.jar;D:\respository_new\org\junit\jupiter\junit-jupiter-api\5.6.2\junit-jupiter-api-5.6.2.jar;D:\respository_new\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;D:\respository_new\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;D:\respository_new\org\junit\platform\junit-platform-commons\1.6.2\junit-platform-commons-1.6.2.jar com.zhentao.AppAdmin . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.2.RELEASE) 2025-07-14 17:20:59.347 INFO 30964 --- [ main] com.zhentao.AppAdmin : Starting AppAdmin on DESKTOP-D64K86L with PID 30964 (D:\yunjisuan\专高五\智学伴航项目\study\zhentao-study\zhentao-study-service\zhentao-study-adminService\target\classes started by cyz in D:\yunjisuan\专高五\智学伴航项目\study) 2025-07-14 17:20:59.348 INFO 30964 --- [ main] com.zhentao.AppAdmin : No active profile set, falling back to default profiles: default 2025-07-14 17:21:00.042 INFO 30964 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2025-07-14 17:21:00.043 INFO 30964 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2025-07-14 17:21:00.063 INFO 30964 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 12ms. Found 0 Redis repository interfaces. 2025-07-14 17:21:00.444 INFO 30964 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2025-07-14 17:21:00.451 INFO 30964 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2025-07-14 17:21:00.452 INFO 30964 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.37] 2025-07-14 17:21:00.452 INFO 30964 --- [ main] o.a.catalina.core.AprLifecycleListener : Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4]. 2025-07-14 17:21:00.452 INFO 30964 --- [ main] o.a.catalina.core.AprLifecycleListener : APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 2025-07-14 17:21:00.453 INFO 30964 --- [ main] o.a.catalina.core.AprLifecycleListener : APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 2025-07-14 17:21:00.455 INFO 30964 --- [ main] o.a.catalina.core.AprLifecycleListener : OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024] 2025-07-14 17:21:00.512 INFO 30964 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2025-07-14 17:21:00.513 INFO 30964 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1131 ms 2025-07-14 17:21:00.663 INFO 30964 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2025-07-14 17:21:00.750 INFO 30964 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2025-07-14 17:21:00.842 WARN 30964 --- [ main] c.b.m.core.metadata.TableInfoHelper : This "id" is the table primary key by default name for `id` in Class: "com.zhentao.sss.pojo.FactInfoLog",So @TableField will not work! 2025-07-14 17:21:00.931 WARN 30964 --- [ main] c.b.m.core.metadata.TableInfoHelper : This "id" is the table primary key by default name for `id` in Class: "com.zhentao.sss.pojo.FactInfo",So @TableField will not work! _ _ |_ _ _|_. ___ _ | _ | | |\/|_)(_| | |_\ |_)||_|_\ / | 3.5.3.1 加载DLL路径:/D:/yunjisuan/专高五/智学伴航项目/study/zhentao-study/zhentao-study-service/zhentao-study-adminService/target/classes/libs/WIN64/libarcsoft_face.dll 2025-07-14 17:21:01.140 WARN 30964 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factInfoController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'arcFaceEngineUtil': Invocation of init method failed; nested exception is java.lang.UnsatisfiedLinkError: no libarcsoft_face_engine_jni in java.library.path: C:\Users\cyz\.jdks\ms-17.0.15\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\javatool\jdk8\jdkpath\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\tomcat\apache-tomcat-9.0.102\bin;D:\javatool\git\Git\cmd;D:\javatool\node.js\node;D:\javatool\node.js\node\node_cache;D:\javatool\node.js\node\node_global;;D:\微信开发者工具\微信web开发者工具\dll;d:\cursor\cursor\resources\app\bin;D:\javatool\小乌龟\bin;D:\xshell\xftp\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\xshell\xshell\;C:\Users\cyz\AppData\Local\Microsoft\WindowsApps;D:\ideaIU-2022.2.5\IntelliJ IDEA 2023.1\bin;;D:\javatool\vscode\Microsoft VS Code\bin;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\javatool\node.js\node;C:\Users\cyz\AppData\Local\Programs\cursor\resources\app\bin;C:\Users\cyz\AppData\Local\Programs\Ollama;C:\Users\cyz\AppData\Roaming\npm;D:\cursor\cursor\resources\app\bin;. 2025-07-14 17:21:01.141 INFO 30964 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 2025-07-14 17:21:01.144 INFO 30964 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2025-07-14 17:21:01.163 INFO 30964 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2025-07-14 17:21:01.166 ERROR 30964 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factInfoController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'arcFaceEngineUtil': Invocation of init method failed; nested exception is java.lang.UnsatisfiedLinkError: no libarcsoft_face_engine_jni in java.library.path: C:\Users\cyz\.jdks\ms-17.0.15\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\javatool\jdk8\jdkpath\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\tomcat\apache-tomcat-9.0.102\bin;D:\javatool\git\Git\cmd;D:\javatool\node.js\node;D:\javatool\node.js\node\node_cache;D:\javatool\node.js\node\node_global;;D:\微信开发者工具\微信web开发者工具\dll;d:\cursor\cursor\resources\app\bin;D:\javatool\小乌龟\bin;D:\xshell\xftp\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\xshell\xshell\;C:\Users\cyz\AppData\Local\Microsoft\WindowsApps;D:\ideaIU-2022.2.5\IntelliJ IDEA 2023.1\bin;;D:\javatool\vscode\Microsoft VS Code\bin;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\javatool\node.js\node;C:\Users\cyz\AppData\Local\Programs\cursor\resources\app\bin;C:\Users\cyz\AppData\Local\Programs\Ollama;C:\Users\cyz\AppData\Roaming\npm;D:\cursor\cursor\resources\app\bin;. at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:321) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) ~[spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE] at com.zhentao.AppAdmin.main(AppAdmin.java:19) ~[classes/:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'arcFaceEngineUtil': Invocation of init method failed; nested exception is java.lang.UnsatisfiedLinkError: no libarcsoft_face_engine_jni in java.library.path: C:\Users\cyz\.jdks\ms-17.0.15\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\javatool\jdk8\jdkpath\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\tomcat\apache-tomcat-9.0.102\bin;D:\javatool\git\Git\cmd;D:\javatool\node.js\node;D:\javatool\node.js\node\node_cache;D:\javatool\node.js\node\node_global;;D:\微信开发者工具\微信web开发者工具\dll;d:\cursor\cursor\resources\app\bin;D:\javatool\小乌龟\bin;D:\xshell\xftp\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\xshell\xshell\;C:\Users\cyz\AppData\Local\Microsoft\WindowsApps;D:\ideaIU-2022.2.5\IntelliJ IDEA 2023.1\bin;;D:\javatool\vscode\Microsoft VS Code\bin;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\javatool\node.js\node;C:\Users\cyz\AppData\Local\Programs\cursor\resources\app\bin;C:\Users\cyz\AppData\Local\Programs\Ollama;C:\Users\cyz\AppData\Roaming\npm;D:\cursor\cursor\resources\app\bin;. at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:415) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeanByName(AbstractAutowireCapableBeanFactory.java:453) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:527) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:497) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:650) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:239) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:318) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] ... 18 common frames omitted Caused by: java.lang.UnsatisfiedLinkError: no libarcsoft_face_engine_jni in java.library.path: C:\Users\cyz\.jdks\ms-17.0.15\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\javatool\jdk8\jdkpath\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\tomcat\apache-tomcat-9.0.102\bin;D:\javatool\git\Git\cmd;D:\javatool\node.js\node;D:\javatool\node.js\node\node_cache;D:\javatool\node.js\node\node_global;;D:\微信开发者工具\微信web开发者工具\dll;d:\cursor\cursor\resources\app\bin;D:\javatool\小乌龟\bin;D:\xshell\xftp\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\xshell\xshell\;C:\Users\cyz\AppData\Local\Microsoft\WindowsApps;D:\ideaIU-2022.2.5\IntelliJ IDEA 2023.1\bin;;D:\javatool\vscode\Microsoft VS Code\bin;D:\javatool\mysql\mysql-8.1.0-winx64\bin;D:\javatool\node.js\node;C:\Users\cyz\AppData\Local\Programs\cursor\resources\app\bin;C:\Users\cyz\AppData\Local\Programs\Ollama;C:\Users\cyz\AppData\Roaming\npm;D:\cursor\cursor\resources\app\bin;. at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2434) ~[na:na] at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818) ~[na:na] at java.base/java.lang.System.loadLibrary(System.java:2006) ~[na:na] at com.arcsoft.face.FaceEngine.libraryLoad(FaceEngine.java:103) ~[arcsoft-sdk-face-3.0.0.0.jar:na] at com.arcsoft.face.FaceEngine.<init>(FaceEngine.java:135) ~[arcsoft-sdk-face-3.0.0.0.jar:na] at com.zhentao.sss.utils.ArcFaceEngineUtil.init(ArcFaceEngineUtil.java:55) ~[classes/:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[na:na] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] ... 33 common frames omitted Process finished with exit code 1 人脸识别一值这种问题 怎么解决 我的
07-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值