Category Archives: How to Fix

Net start command system error 5 and error 1058 solution

Source: http://blog.csdn.net/u012586848/article/details/46860839

1. Net start command

The net start command is used to start the service in the form of net start [service name] (the corresponding “net stop [service name]” is the command to close the service)

2. Open the default instance service of sqlserver

[win + R] shortcut – & gt; CMD – & gt; net start MSSqlServer

Prompt error “system error 5 occurred”, the screenshot is as follows:

3. Error analysis

The reason for this error is that there is a difference between the administrator and non administrator permissions in win7/win8 command prompt, and the net stat command can only be run under the administrator permission.

4. Solutions

1) Open the command prompt with administrator’s permission: [start] — & gt; search for “CMD” — & gt; right click “run as administrator”, or use the shortcut key [win + X + a]

2) Enter “net start MSSqlServer” successfully. The screenshot is as follows:

note appended:

The above method can solve the “system error 5 access denied” error of the “net start” command, but it may still not be able to open the corresponding service, prompting “error 1058”, as shown in the figure below:

As shown in the error prompt in the figure, the reason may be that MS SQL server has been disabled or its associated device has not been started. For MSSqlServer service, find the “MSSqlServer” service in control panel — & gt; management tools — & gt; services, double-click to open properties, and select the dependency tab to see that the service has “no dependency”. Therefore, the reason of “other associated devices are not started” is excluded, as shown in the following figure

Switch the properties window to the General tab, and you can see that the service status is “stopped” and the start type is “disabled”. Change the start type to one of the other three items besides “disabled” – & gt; [OK].

Reference source:

one http://answers.microsoft.com/zh-hans/windows/forum/windows8_ 1-performance/%E8%BF%90%E8%A1%8Cnet-start/bec244e5-6385-4950-adc8-0d004905e41a?auth=1

two http://www.2cto.com/database/201304/200600.html

Net prompt is not an internal or external command

‘net’ is not an internal or external command, nor is it a runnable program or batch file

Method 1

My computer — & gt; properties — & gt; advanced — & gt; the variable value of the environment variable path is added with the following new value: systemroot% \ system32

After modification, you need to re open the command line of CMD, otherwise it will not take effect.

Method 2

The effect of entering DOS operation interface;
0

If you enter: netstat – an, you will be prompted that it is not an internal or external command, nor a runnable program or batch file.

The reason why the prompt is not an internal or external command is that the current operation of CMD is not in the system folder system32, so you can switch the current operation path to the system folder of the windows operating system by simply entering: CD C:: (Windows) system32. Then enter netstat – an to solve the problem.

This program cannot be started because vcruntime140 is missing from your computer_ 1.dll。 Try to install the program again to solve the problem.

In the process of installing mysql8, this error is encountered

 

Solution: go to Microsoft official website to download and install visual C++

Download address: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

Here you can choose according to the number of digits of your computer

After downloading, install. After the installation is successful, there will be vcruntime140 in the directory of C: [windows] system32_ 1.dll file

If you continue to install mysql, no error will be reported

 

 

catkin_make [Warning]:‘gazebo_LIBRARIES‘ is defined.

catkin_package() DEPENDS on ‘gazebo’ but neither ‘gazebo_INCLUDE_DIRS’ nor ‘gazebo_LIBRARIES’ is defined.
make use of DEPENDS in catkin_package(…)DEPENDS in catkin_package() not adding package INCLUDE_DIRS

Reason

This will not work in every listed case. In order to list something in DEPENDS, it needs to have matching case varaible names. For example, you put Ogre in the DEPENDS section, but Ogre produces these variables: OGRE_INCLUDE_DIRS and OGRE_LIBRARIES. Because the case is different, catkin has no way of mapping the name you give it to the variables which it produces. Others might work, like urdfdom, but Qt, Eigen, Ogre, and OpenGL will not work like this and you need to manually pass the correct variables along to INCLUDE_DIRS and LIBRARIES accordingly.

That is exactly correct, if the package does not follow the convention where <pkg_name> is used consistently in find_package(<pkg_name> …) and resulting variables like <pkg_name>_INCLUDE_DIRS, then catkin cannot determine it automatically.
In times like this you must manually pass include directories and libraries to the catkin_export call, and you cannot depend on the DEPENDS syntactic sugar.
For the documentation, I think it is already ticked here: #491

In brief, DEPENDS and the generated GAZEBO_INCLUDE_DIRS and GAZEBO_LIBRARIES do not correspond to the case in their names, and catkin cannot recognize the result.
Solution
Take gazebo as an example.
Modify the previous CMakeLists.txt:

catkin_package(
  INCLUDE_DIRS include
  CATKIN_DEPENDS roscpp std_msgs sensor_msgs geometry_msgs nav_msgs tf gazebo_ros
  DEPENDS gazebo
)

The revised CMakeLists.txt :

catkin_package(
  INCLUDE_DIRS include
  CATKIN_DEPENDS roscpp std_msgs sensor_msgs geometry_msgs nav_msgs tf gazebo_ros
  DEPENDS GAZEBO
)

Oracle 11g installation prompt ora-27102: out of memory

Today is March 16, 2021. When you install Oracle, you will be prompted to create memory:

Check the system memory. Free – M 128G memory only uses 1GB. This problem is caused by improper adjustment of kernel parameters. The two main parameters that lead to this problem are as follows:

kernel.shmmax and kernel.shmall

SHMMAX = physical memory (bytes)/2 – 1

Shmall = physical memory (bytes)/PageSize (getconf PageSize)

Adjust these two tests and recreate the database.

io.UnsupportedOperation : not writable exception resolution

Today, when doing Python language sense exercise, I reported the following exception:

is the red exception
this is the red exception io.UnsupportedOperation : not writable

Write permission is not supported. After a careful inspection, I found that I forgot to set the permissions when I opened the file for the first time, so after I added it, the program ran successfully!!!

Cmake[Warning]:Policy CMP0054 is not set

Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted

Refer to prompt cause solution

reference resources

How to use variables and avoid CMP0054 policy violations?CMP0054

Prompt reason

Note: You only get the CMP0054 warning if the context of your variable was actually evaluated again (so it’s a hint your CMake code will not work in those places).

solve

cmake_policy(SET CMP0054 NEW)

When I first learned mybatis org.apache.ibatis . binding.BindingException report errors

Error analysis: due to each Mapper.xml You need to register in the mybatis core configuration file

Solution: in mybatis- config.xml Add the following lines of code to the configuration file (note that the path must be filled in correctly, according to COM/LyP/Dao)/ UserMapper.xml (fill in the form of)

 <mappers>
        <mapper resource="com/lyp/dao/UserMapper.xml"/>
 </mappers>

Mybatis error

Mybatis error

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-03-16 14:44:47.948 ERROR 11288 — [ restartedMain] o.s. boot.SpringApplication : Application run failed

org.springframework.beans . factory.UnsatisfiedDependencyException : Error creating bean with name ‘helloController’: Unsatisfied dependency expressed through field ‘userService’; nested exception is org.springframework.beans . factory.UnsatisfiedDependencyException : Error creating bean with name ‘userService’: Unsatisfied dependency expressed through field ‘userMapper’; nested exception is org.springframework.beans . factory.UnsatisfiedDependencyException : Error creating bean with name ‘userMapper’ defined in file [E:\IdeaWorkspace\boot-05-web-01\target\classes\com\atguigu\boot\mapper\ UserMapper.class ]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’; nested exception is org.springframework.beans . factory.BeanCreationException : Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [org/mybatis/spring/boot/autoconfigure/Myba tisAutoConfiguration.class ]: Bean instantiation via factory method failed; nested exception is org.springframework.beans .BeanInstantiationException: Failed to instantiate [ org.apache.ibatis . session.SqlSessionFactory ]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is org.springframework.core .NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis- config.xml ]; nested exception is org.apache.ibatis . builder.BuilderException : Error parsing SQL Mapper Configuration. Cause: java.io.IOException : Could not find resource org/mybatis/example/ BlogMapper.xml

https://www.bilibili.com/video/BV1Et411Y7tQ?p=174
The teacher wrote the code according to Zhou Yang

Finally, the configuration file should be left blank

The data can be obtained normally

In addition, the database has timezone problems

useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC

Uncaught Error: THREE.OBJLoader : unexpected line: “DOCTYPE HTML” [solved]

Today’s problem really makes me despair. What you netizens say is that it’s OK to put it under static, but I can’t do it here 😥
Then I found that I had a static folder under public. After testing, I found that it was really static under public….
The code can still be written as usual

summary
obj file is put under public/static
questions
but why I don’t understand?If you know, please leave a message in the comment area 😁