Solving errors in web projects, java.io.FileNotFoundException: druid.properties (the system cannot find the specified file); [spring factory decoupling development]

When using Tomcat9.0, spring5.0 framework original factory class decoupling, druid-1.0.9jar version, JDK9, MSQL8 version database to simulate web page login case, an error message that the druid.properties file cannot be found appears, the details are as follows [Case code posted at the end]; Normally speaking, the configuration file is placed under the src directory, and […]

Hbase-spring-boot error reporting and solving java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. Configure environment variables

Problem scenario: This problem occurs when the hbase template class is encapsulated in spring-boot for testing. The error message is: Error description: java.io.FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. -see https://wiki.apache.org/hadoop/WindowsProblems at org.apache.hadoop.util.Shell.fileNotFoundException(Shell.java:534) ~[hadoop-common-2.10.0.jar:na] at org.apache.hadoop.util.Shell.getHadoopHomeDir(Shell.java:555) ~[hadoop-common-2.10.0.jar:na] at org.apache.hadoop.util.Shell.getQualifiedBin(Shell.java:578) ~[hadoop-common-2.10.0.jar:na] at org.apache.hadoop.util.Shell.<clinit>(Shell.java:675) ~[hadoop-common-2.10.0.jar:na] at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:78) ~[hadoop-common-2.10.0.jar:na] at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1567) ~[hadoop-common-2.10.0.jar:na] at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:70) ~[hbase-common-2.4.3.jar:2.4.3] at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:84) ~[hbase-common-2.4.3.jar:2.4.3] […]

FileNotFoundException caused by SpringBoot version upgrade–WebMvcConfigurerAdapter.class

Dependence Recently, the company’s project requires JDK to be upgraded from 8 to 17, and the SpringBoot version to be upgraded from 2.x to 3.x. During this period, a strange FileNotFoundException was encountered. The log is as follows (use xxx to desensitize sensitive information) org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.xxx.xxx.OperationAnalysisApplication] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:179) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:397) […]

Flink reports an error: java.io.FileNotFoundException

Error message: 2023-06-12 11:26:50,022 INFO org.apache.flink.runtime.executiongraph.ExecutionGraph [] – Source: Custom File Source (1/1) (d95d5e04a36ee6739feb152fba873aa0_bc764cd8ddf7a0cff126 f51c16239658_0_0) switched from RUNNING to FAILED on 172.16.0.202 :44503-c6af6b@hadoop102 (dataPort=45823). java.io.FileNotFoundException: The provided file path /opt/flink-1.16.1/ftp/ftp/HD2G_CH1_20230611235417_20230611235424.dat does not exist. at org.apache.flink.streaming.api.functions.source.ContinuousFileMonitoringFunction.run(ContinuousFileMonitoringFunction.java:216) ~[flink-dist-1.16.1.jar:1.16.1] at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:110) ~[flink-dist-1.16.1.jar:1.16.1] at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:67) ~[flink-dist-1.16.1.jar:1.16.1] at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:333) ~[flink-dist-1.16.1.jar:1.16.1] 2023-06-12 11:26:50,023 INFO org.apache.flink.runtime.executiongraph.ExecutionGraph [] – Job Flink Streaming Job […]

java.io.FileNotFoundException: /proc/tty/drivers: read failed: EACCES (Permission denied)

Such as the title: java.io.FileNotFoundException: /proc/tty/drivers: read failed: EACCES Permission denied The emergence of problems Android high version permission processing problem solving Off topic development How does the third-party app have the system signature Continue to work on permission issues Occurrence of the problem When using Google’s open source serial port library, there is a […]

(5) Jenkins deployment project error Caused by: java.io.FileNotFoundException: http://localhost:8080/manager/text/list

When Jenkins deploys the SpringBoot project, an error is reported: Caused by: java.io.FileNotFoundException: http://localhost:8080/manager/text/list ERROR: Build step failed with exception org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/lib/jenkins/workspace/zblog/code/target/zblog-1.0-SNAPSHOT.war] at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:188) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167) at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136) at hudson.FilePath.act(FilePath.java:1076) at hudson.FilePath.act(FilePath.java:1059) at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133) at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:112) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.model.Build$BuildExecution.post2(Build.java:186) […]

java.io.FileNotFoundException: Invalid file path

Article directory exception information exception code Cause Analysis solution full code Summarize Exception information java.io.FileNotFoundException: Invalid file path at java.io.FileOutputStream.<init>(FileOutputStream.java:206) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at com.crazymakercircle.iodemo.socketDemos.NioReceiveServer.processData(NioReceiveServer.java:148) at com.crazymakercircle.iodemo.socketDemos.NioReceiveServer.startServer(NioReceiveServer.java:101) at com.crazymakercircle.iodemo.socketDemos.NioReceiveServer.main(NioReceiveServer.java:194) Exception code /** * Process the data transmitted by the client */ private void processData(SelectionKey key) throws IOException {<!– –> Client client = clientMap.get(key.channel()); SocketChannel socketChannel = […]

Error in packaging and running: Caused by: java.io.FileNotFoundException: class path resource [properties/image.properties/]

After the project is packaged, the windows operation reports an error: Caused by: java.io.FileNotFoundException: class path resource [properties/image.properties/] cannot be opened because it does not exist The specific exception information is as follows (I am a war package here): D:\tomcats>java -jar 8081.war .____ _ __ _ _ /\ / ___’_ __ _ _(_)_ __ __ […]

java.io.IOException: java.io.FileNotFoundException: xxx (The file name, directory name, or volume label syntax is incorrect.)

I encountered a bug when uploading and downloading files. Although it is mentally handicapped, it still wastes a lot of time and needs to be recorded. java.io.IOException: java.io.FileNotFoundException: xxxxxxx (The file name, directory name, or volume label syntax is incorrect.) at org.apache.catalina.core.ApplicationPart.write(ApplicationPart.java:122) at org.springframework.web.multipart.support.StandardMultipartHttpServletRequest$StandardMultipartFile.transferTo(StandardMultipartHttpServletRequest.java:256) at com.itheima.reggie.controller.CommonController.upload(CommonController.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) […]

[Solved] Spring Boot file upload error: FileNotFoundException Spring asynchronous file upload FileNotFoundException

Spring Boot file upload error: FileNotFoundException Spring Boot asynchronous file upload FileNotFoundException I. Description of the problem In the process of using Spring Boot to upload files, I encountered a FileNotFoundException problem when uploading files. After checking around, they all said that the upload file path must be configured. After careful analysis and testing, it […]