Author Archives: Robins

Microsoft.CppCommon.targets (132,5): how to solve error msb3073?

Originally, I wanted to generate DLL file and copy it to the specified path automatically, but the result of compilation was error:

1> syAve.vcxproj -> D:\My Resources\Hello World\ test \Smer 2019.4.28\Debug\ syave. DLL
1> The system could not find the specified file.
1> The system could not find the specified file.
1> C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073: command “copy D: \ My Resources \ Hello World \ test \ Smer 2019.4.28 \ Debug \ syAve lib).
\Smer\Lib\Debug
1> C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073: copy D: \ My Resources \ Hello World \ test \ Smer 2019.4.28 \ Debug \ syAve DLL.. \Smer
\Lib\Debug
1> C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073:
1 & gt; C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073: : VCEnd “have withdrawn, the code is 1.

The reason: the copy command does not support paths with Spaces. (Note: Chinese is supported.)
The solution: Paths in quotes!

 

spring boot Whitelabel Error Page

Appears when spring Boot is running
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sat Feb 16 00:12:17 CST 2019
There was an unexpected error (type=Not Found, status=404).
No message available
Here’s my solution
The Application startup class is not in the right place. To place the Application class on the outermost side, it contains all subpackages
reason :spring-boot automatically loads all components under the package where the startup class is located and under its subpackages.

ERROR 1118 (42000) at line 1278: Row size too large > 8126

Error importing Zabbix SQL file into Mariadb Times while installing and deploying Zabbix
It’s just that the rows are too long to import,
STH over and over again!Although Baidu master does not give force, but through unremitting efforts, or let me find a solution.

Here is a solution, but I changed a lot of parameters before I found this one.
Add in my.conf

[mysqld]
innodb_strict_mode = 0

The result is not wrong, the big guy’s explanation for this is
Note: The innodb_strict_mode setting affects the handling of syntax errors in the CREATE TABLE, ALTER TABLE, and CREATE INDEX statements. Innodb_strict_mode also enables record size checking, so INSERT or UPDATE never fails because the record is too large for the selected page size.

And then I looked up the differences between these operations
1, CREATE INDEX must provide the INDEX name, for ALTER TABLE, will be automatically created, if you do not provide;
2, CREATE INDEX can only CREATE one INDEX at a time, ALTER TABLE can CREATE more than one
3, only ALTER TABLE can CREATE the primary key,

In case there are more than one parameter to avoid error, I post my modified parameters

max_allowed_packet      = 256M  #修改前是 16M
innodb_buffer_pool_size = 512M  #修改前 54
innodb_log_file_size = 30M
innodb_log_buffer_size  = 32M

#添加的
innodb_file_per_table   = 1  
innodb_large_prefix=1 
innodb_file_format = Barracuda
innodb_strict_mode = 0

Then restart Mariadb and you are done.

FRP installation error:. / FRPC: cannot execute binary file: exec format error

Some students may make the following mistakes when using FRP:

./frpc: cannot execute binary file: Exec format error

The error is due to a mismatch between the system architecture of the DOWNLOADED FRP and the system architecture of the installed environment. At this time, you just need to download and install the FRP of the corresponding system architecture for installation.
system architecture can be seen in this blog:
how to view the architecture of Linux system
take a look at the architecture of Linux supported by FRP:

386

X86 architecture

386

X86 architecture

amd64

amd architecture

arm

arm architecture

arm64

64 – bit arm Compose

MIPS

MIPS architecture

mips64

64 MIPS architecture

mipsle

mipsle architecture

mips64le

64 mipsle architecture

exception is java.lang.LinkageError: loader constraint violation: loader

Service startup reported this error:

Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.jstx.auditBudgetDAO' defined in class path resource [mobile-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'signDaoImpl' defined in class path resource [resource/spring/server-core-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.reportLoginDao' defined in class path resource [gdsg_login-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.reportMobileDao' defined in class path resource [gdsg-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.fapDao' defined in class path resource [fap-mobile.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planRightELECache' defined in class path resource [plan-comcontext.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanRightELECache#17138f4' of type [gov.gfmis.pay.plan.bs.PlanRightELECache] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanRightELECache#17138f4' defined in class path resource [plan-comcontext.xml]: Cannot resolve reference to bean 'plan.planNormalBusiness' while setting bean property 'planNormalBusiness'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planNormalBusiness' defined in class path resource [plan-context.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' of type [gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanRightELECache#17138f4' defined in class path resource [plan-comcontext.xml]: Cannot resolve reference to bean 'plan.planNormalBusiness' while setting bean property 'planNormalBusiness'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planNormalBusiness' defined in class path resource [plan-context.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' of type [gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
	... 17 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planNormalBusiness' defined in class path resource [plan-context.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' of type [gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
	... 25 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
	... 38 more
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethods(Unknown Source)
	at java.beans.Introspector$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
	at java.beans.Introspector.getTargetMethodInfo(Unknown Source)
	at java.beans.Introspector.getBeanInfo(Unknown Source)
	at java.beans.Introspector.getBeanInfo(Unknown Source)
	at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:220)
	at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)
	at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)
	at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282)
	at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 42 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'report.serverReportCommonLogic' defined in class path resource [fap_report-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more

key line error:
Exception is Java.lang.LinkageError: Loader constraint cheesecake factory: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name “gov/gfmis/fap/rule/FVoucherDTO”
So osgi loads a different FVoucherDTO which means that both bundles have this class: FVoucherDTO bundle conflicts.

NPM ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’

➜ web-qqdz-gov-pc-local git:(develop) npm –registry=http://172.18.71.185:7001 install @cspire/cbd-cli -g
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to “coffeescript” (no hyphen)
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
npm ERR! { [Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’]
npm ERR! stack:
npm ERR! ‘Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘access’,
npm ERR! path: ‘/usr/local/lib/node_modules’ }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
Enter at the terminal npm –registry=http://172.18.71.185:7001 install @cspire/cbd-cli -g prompted this error when
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
Reason: no administrator privileges when executing command line commands
Solution: Just add sudo in front of the command. Then enter the administrator password of your computer and you're done!

Txt import MySQL: error 1062 (23000): duplicate entry ‘0’ for key ‘primary’

Existing problems:
When importing TXT file into Mysql database, ERROR 1062(23000) always appears: Duplicate entry ‘0’ for key ‘PRIMARY’ ERROR, but TXT file does not have a data with ID (PRIMARY key) of 0.


Reason for error:
This is still not clear, because I have no record of ID=0, so I don’t know why the duplicate ID is 0. At first, I thought it was the data encoding that caused the data chaos, but later I found that even the same encoding could not solve the problem.

Solutions:
Setting the primary key (ID) to AI (Auto Incremental) is sufficient. Setup has been completed and import has been successful

Note:
I thought that if I set the primary key to AI, the primary key column would be 1, 2, 3… , because the primary key in TXT file is discontinuous, but I found that this understanding is wrong, after insertion, the primary key still maintains its discontinuity.

Version problem of SQL Server


Recently, SQL Server 2005 has been installed on the computer. It works normally on this computer. Everything is OK.

When connected to the server operation Database, however, you Unspecified error when creating the table:

The details of the error are as follows:

===================================


Unspecified error
 (MS Visual Database Tools)


------------------------------
Program Location:


   at Microsoft.VisualStudio.DataTools.Interop.IDTTableDesignerFactory.NewTable(Object dsRef, Object pServiceProvider)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.TableDesignerNode.CreateDesigner(IDTDocToolFactoryProvider factoryProvider, IVsDataConnection dataConnection)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.CreateDesigner()
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.Open()
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateDesigner(DocumentType editorType, DocumentOptions aeOptions, Urn parentUrn, IManagedConnection mc)
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)

=========================================

checked on the Internet, the original problem was between SQL Server versions: SQL Server 2005 Management Studio could not operate SQL Server 2008, so this error occurred.

The solution is to replace 2005 with 2008.

Fatal error: Call to a member function bind_param() on a non-object in

Fatal error: Call to a member function bind_param() on a non-object in. Fatal error: Call to a member function bind_param() on a non-object in
1. Error code: $STMT =$this-> mysqli-> prepare($query); // Preprocessed statements
2. Check the code, there is a place that could go wrong: $query, find the SQL statement
$query = “update product set name =?,price=?,description=?where productId=?” ;
Take a closer look at the statement, oh, suddenly, ok?There is no space between where, smart you see it?
Solution: SQL statement error, view SQL statement. Keywords, table names, column names…

Reproduced in: https://www.cnblogs.com/Theladyflower/p/3245893.html

Error c2061: syntax error: identifier ‘this_ FILE’





… error C2061: syntax error : identifier ‘THIS_FILE’
… /new(35) : error C2091: function returns function
… /new(35) : error C2809: ‘operator new’ has no formal parameters
… /new(36) : error C2061: syntax error : identifier ‘THIS_FILE’
… /new(37) : error C2091: function returns function
very strange, yesterday this class has been tested, no problem, look up the Internet, finally found the problem.
Solutions:

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__!
#endif
#include “selectserver. h”
search, found these errors were related to the STL header file and VC6 generated in the CPP file, the STL header file is the following lines:
#pragma warning (disable:4786)
#include < list>
using namespace std;
The lines of code generated by VC6 in the CPP file are the following:
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
STL header file to be written in the VC6 generated in the CPP file a few lines of code, remember! My “selectServer.h” file contains the STL header, so when you include” selectServer.h “in any other CPP file, be sure to include the #include” selectServer.h” in front of the lines of code that VC6 generates! So let’s change it to the following so that it compiles.
#include “SelectServer.h”
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
Conclusion in
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
Do not write #include after the introduction file error-prone move #include statements to the front of the paragraph

WNetAddConnection2 – error 1219

All the way back to 1219, looking for the reason for a long time: the code login with a user name, the interface with another login user name, resulting in the conflict! (At present, may be win10 and Win7 different, Win10 login is the default login user name, win7 login native name/login user name. Causes WNetAddConnection2, mistaking it for two users, to return 1219.

Solution: 1. One with server IP, one with server name… Not tested, should be available.
2 control panel -& GT; User account -& GT; Manage Windows credentials which have the login username and password; cmd-> Net use view user (clear: NET use * /del); We need to get rid of both.



Original: https://serverfault.com/questions/57877/system-error-1219-has-occurred