Author Archives: Robins

Uncaught TypeError: Failed to execute ‘removeChild’ on ‘Node’: parameter 1 is not of type ‘Node’.

VM9328 hbox.js:52 Uncaught TypeError: Failed to execute ‘removeChild’ on ‘Node’: Parameter 1 is not of type ‘Node’.
at object.remove (VM9328 hbox-js :52)
at hbox.fn. init._executive (VM9328 hbox.js:529)
at hbox.fn. init._closebox (VM9328 hbox.js:545)
At object.close (VM9328 hbox.js:570)
at VM9347 undefined:45

The

pop-up failed to close properly, because the external js is referenced once more, and the parent and child nodes are referenced once. Removing the external reference to the child node solves the problem.

PHP link database error PHP_ network_ getaddresses: getaddrinfo failed: Name or service not known

error:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

environment: thinkphp framework, Linux, ali cloud RDS database

ping link address normal:

error reporting process: access the background address, most are normal access, refresh 10-20 times may appear 1-2 error, not continuous error

solution 1:

restart php-fpm service

service php-fpm restart 

the original view: https://stackoverflow.com/questions/2661546/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known

special thanks to: https://blog.csdn.net/qq_37500838/article/details/85008432#commentBox

solution 2:

configure DNS resolution to 114.114.114.114

check DNS configuration: cat /etc/resolv.conf

I use the first solution, the second solution is temporarily useless, configuration method can be found on the Internet

Solve the problem of copy failed: stat / var / lib / docker / TMP / docker builder 455335933 / opt: no such file or directory

1. Error reporting

2. Dockerfile file

3. The reasons for

Dockerfile lines beginning with # are treated as comments. If a # comment is used after a valid instruction, it will be treated as a parameter, resulting in an error

4. Solution: just remove the comment, or put the comment on a separate line

Error: request failed with status code 500

in projects where the front and back ends are separated

the front end USES a post request to send data to the back end, but an error occurs:

Error: Request failed with status code 500 Error

we need to know that 500 represents (server internal error) the server encountered an error and was unable to complete the request.

take a look at my original part of the code:

front-end request:

back-end receiving entity and control layer code:

if you look closely, you will see that the parameter names that my front end took when I sent the request were userName and password

but the back end used username and password to receive the parameters from the front end, so I changed the front end username — > username

finally OK! If you have the same problem, check to see if the parameters you sent are the same as the parameters you received, otherwise the parameters will be empty

Failed to restart ssh.service: Unit not found.

1,

after modifying the sshd_config configuration file

vim /etc/ssh/sshd_config

2. Restart SSH

service ssh restart

3, the following error

Redirecting to /bin/systemctl restart ssh.service
Failed to restart ssh.service: Unit not found.

4, reason: the above command is centos6 inside the command, centos7 need to use

systemctl restart sshd

5, the problem is perfectly solved, nice

Unity-failed to update unity web player

“failed to update unity web player” error

may occur when using the browser to load the WebPlayer file

this is the error message to connect to the network

solution:

1. Uninstall UnityWebPlayer, use the control panel to uninstall

2. Download the UnityWebPlayer plugin :(this version makes

easier

link: https://pan.baidu.com/s/1f-6mfP8SJjsYe1tm8jSkLQ

extraction code: ht44

if the computer can not network then choose the following UnityWebPlayerFull plug-in

link: https://pan.baidu.com/s/1qHZb0j0LjvoemUreA0LFHQ

extraction code: 75qz


3. Re-enter the game and start the normal game

if you still have problems, try clearing the browser cache and retry

Finished with error: Gradle task assembleDebug failed with exit code 1

recently encountered the following bug during development with flutter :

during run,

Finished with error: Gradle task assembleDebug failed with exit code 1

at this point if you are in a hurry to pack for someone else, you can scan with flutter clean and then re-run. The first time always succeeds,

then, after the first run, the error will continue.

you can’t just flutter clean all the time and then run, that would be a waste of time, not a long-term solution.

———————————————–

according to the above line of error Google has encountered many similar situations, but the reasons for the error are different, and I did not see the possibility of

is the same reason that I’m in this situation,

———————

but the answer is that running the flutter run-v will give you more detailed information about the error, but still not much use.

the information obtained from the flutter run-v does not locate the cause of the error.

flutter as a new cross-platform solution is really a pitfall, but the problem will always be solved and the project will continue to be done,

————–

then began to think, until the day before yesterday off work or not this situation, yesterday since noon had this problem, so

Can

find clues in git’s commit records?

——————————–

then starts to look through the Git commit record of this period and finds a suspicious

import 'package:inin/features/searchpage/SearchUserPage.dart%20';

Is there an extra %20 after

?

————————

so delete this line, flutter clean, re-run, the problem finally does not appear.

solved the case…

Idapython: the solution of importing “site” failed error

0 x00 background

suddenly one day IDA6.8 opens and prompt idapython error:
message:

0x01 problem cause

IDA website has an explanation for this problem:

This issue is usually caused by presence of non-standard python27.dll
in the PATH which uses its own set of modules (you should edit PATH in
this case). However, it may happen if your Python installation is
broken in some way. Reinstalling Python manually may fix it.

The general reason for

is that your host’s environment variable path contains the non-standard python27.dll, and, of course, it may also be due to an unexpected terminal during an installation. Manually reinstalling Python may fix this problem.

0x02 problem fix

official also kindly give detailed repair method:

  1. view python27. DLL location
    c:\>where python27.dll
    C:\Windows\System32\python27.dll
  1. view in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Python 2.7\InstallPath the value is python2.7’s installation path
  2. adding an environment variable with the key PYTHONHOME and the value is Python’s installation path.
  3. if idapython was loaded normally but this error still exists, print sys.path to determine if it is as expected
Python>import sys
Python>sys.path
['C:\\Windows\\system32\\python27.zip', 'C:\\Python27-x64\\Lib', 'C:\\Python27-x64\\DLLs', 'C:\\Python27-x64\\Lib\\lib-tk', 'C:\\Program Files\\IDA 7.0\\python', 'C:\\Python27-x64', 'C:\\Python27-x64\\lib\\site-packages', 'C:\\Program Files\\IDA 7.0\\python\\lib\\python2.7\\lib-dynload\\ida_32', 'C:\\Program Files\\IDA 7.0\\python']
  1. tracks the loading process of IDAPython module. Set the environment variable PYTHONVERBOSE=1 before IDA runs, and the path path will be printed out (or add -l to the IDA run command to generate the log file).

0x03 problem solved

using the third step, creating an environment variable PYTHONHOME will solve my current problem.

is the pitfall of some blog that creates the environment variable %PYTHONHOME%. What the hell is that?

in the context of environment variables, %path% means that path is a defined call to an environment variable, equivalent to $path in Linux. The first time you define a variable, you don’t use %%.

0x04 reference

https://www.hexblog.com/?p=1132

Cuban DCOM connection to programs Synsopose.exe failed

the solution available online is

1, eLicense folder contains programs that are blocked by security software

solution: https://tieba.baidu.com/p/6595004364
2. DCOM service does not start

solution:

https://helpcenter.steinberg.de/hc/en-us/articles/207332910-Error-message-DCOM-connection-to-program-Synsopos-exe-failed

basically means, in the Windows control panel, search for “management tools”, and then double-click “services”.

find the DCOM server process starter and make sure it is set to automatic, then start the service.

3. Heavy loading of eLicenser

is the

that I solved after reloading

Error 1396 (HY000): Operation create user failed for ‘xxx’ @’xxx ‘

create user ‘test’ @’ % ‘identified by’ test ‘;
create user ‘test’ @% ‘identified by’ test ‘;
display ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’ @ ‘%’
check whether there is this USER
select USER from USER;
found no such user.
remember you deleted this user last time.
flush privileges may not be flush;
, ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’ @ ‘%’
drop USER ‘test’ @ ‘%’;
drop USER ‘test’ @ ‘%’;
failed for ‘test’ @ ‘%’;
drop USER ‘test’ @ ‘%’;
flush privileges;
create user ‘test’ @ ‘%’ identified by ‘test’;
create user ‘test’ @ ‘%’ identified by ‘test’;
success.
Assume the user is there, so drop the user
After deleting the user, there is need to flush the mysql privileges
Now create the user.

http://stackoverflow.com/questions/5555328/error-1396-hy000-operation-create-user-failed-for-jacklocalhost

QT running prompt failed to create OpenGL context for format qsurfaceformat (version 2.0, options qflags() solution)

running on other computers today the Qt program I wrote reported the following error:

Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redbuffersize-1, greenbuffersize-1, bluebuffersize-1, depthbuffersize-1 alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1,
).
This is most likely to cause by not having the necessary graphics drivers installed.
Install a driver providing OpenGL 2.0 or higher, or, if This is not possible, Make sure the ANGLE Open GL ES 2.0 emulation software (libEGL. DLL, Libglesv2.dll and d3dcompiler_*. DLL) are available in the application executable’s directory or in a location listed in PATH.

baidu once no result, mostly is what driver problem or Qt reinstall problem

Spring configuration transaction, JUnit unit test error “failed to load ApplicationContext”

problem:

Junit unit test code is as follows:

package cn.muke.spring.demo2;

import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Spring的声明式事务管理方式一的测试类
 * @author CX
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext2.xml")
public class SpringDemo2 {
	
	/**
	 * 因为要测试业务层的实现类,所以引用业务层的接口
	 */
	@Resource(name="accountService")
	private AccountService accountService;	
	
    /**
	 * 转账案例:
	 */
	@Test
	public void demo1() {
		accountService.transfer("aaa", "bbb", 200d);
	}
}

Applicationcontext2.xml configuration is as follows :

<?xml version="1.0" encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans.xsd
	http://www.springframework.org/schema/context
	http://www.springframework.org/schema/context/spring-context.xsd
	http://www.springframework.org/schema/aop
	http://www.springframework.org/schema/aop/spring-aop.xsd
	http://www.springframework.org/schema/tx
	http://www.springframework.org/schema/tx/spring-tx.xsd">
		
	<!-- 引入外部的属性文件 -->
	<context:property-placeholder location="classpath:jdbc.properties"/>
	
	<!-- 配置c3p0连接池 -->
	<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
		<property name="driverClass" value="${jdbc.driverClass}"/>
		<property name="jdbcUrl" value="${jdbc.url}"/>
		<property name="user" value="${jdbc.username}"/>
		<property name="password" value="${jdbc.password}"/>
	</bean>
		
	<!-- 配置业务层类 -->
	<bean id="accountService" class="cn.muke.spring.demo2.AccountServiceImpl">
		<!-- 业务层注入DAO方式 -->
		<property name="accoutDAO" ref="accountDAO"/>		
	</bean>
	
	<!-- 配置DAO类 -->
	<bean id="accountDAO" class="cn.muke.spring.demo2.AccountDAOImpl">
		<!-- 在XML中注入连接池 ,在DAO实现类中继承JdbcDaoSupport,两者都可以 -->
		<property name="dataSource" ref="dataSource"/>
	</bean>
		
</beans>

accountService and accountDao should be ok, that is, the DataSource is injected into the dao, and the dao error message is injected into the service as follows:

2018-12-29 15:44:21 INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  Loading XML bean definitions from class path resource [applicationContext2.xml]
2018-12-29 15:44:21 INFO  org.springframework.context.support.GenericApplicationContext  Refreshing org.springframework.context.support.GenericApplicationContext@6537cf78: startup date [Sat Dec 29 15:44:21 CST 2018]; root of context hierarchy
2018-12-29 15:44:21 ERROR org.springframework.test.context.TestContextManager  Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@40f08448] to prepare test instance [cn.muke.spring.demo2.SpringDemo2@6bf256fa]
java.lang.IllegalStateException: Failed to load ApplicationContext
	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:313)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
Caused by: java.lang.IllegalArgumentException
	at org.springframework.asm.ClassReader.<init>(Unknown Source)
	at org.springframework.asm.ClassReader.<init>(Unknown Source)
	at org.springframework.asm.ClassReader.<init>(Unknown Source)
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
	at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
	at org.springframework.context.annotation.ConfigurationClassUtils.checkConfigurationClassCandidate(ConfigurationClassUtils.java:70)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:253)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223)
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
	at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:106)
	at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:57)
	at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)
	at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
	at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124)
	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148)
	... 24 more

solution:

this is because Spring is in conflict with the JDK version, Spring3.* is in conflict with JDK 1.8. So you need to change the JDK to 1.7 or upgrade to Spring4.*.