Author Archives: Robins

net core HTTP Error 502.5 – ANCM Out-Of-Process Startup Failure

Personal blog: Yedajiang44.com/blog
Vs was updated yesterday. When opening the project and running today, it directly reported the following error:

HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure
Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681

Solution: just reinstall the corresponding NET Core SDK of the project, and remember to restart!

Giterror: error cloning remote repo ‘origin’ hudson.plugins.git .GitException

Last night the west wind withered green trees, alone on the tall buildings, look to the horizon road
Jenkins + GitLab continuous integration encountered the following error:

ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init /root/.jenkins/workspace/eureka-service
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:787)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:579)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
	at hudson.security.ACL.impersonate(ACL.java:290)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: hudson.plugins.git.GitException: Error performing command: git init /root/.jenkins/workspace/eureka-service
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2023)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:785)
	... 14 more
Caused by: java.io.IOException: Cannot run program "git" (in directory "/root/.jenkins/workspace/eureka-service"): error=2, 没有那个文件或目录
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at hudson.Proc$LocalProc.<init>(Proc.java:249)
	at hudson.Proc$LocalProc.<init>(Proc.java:218)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:935)
	at hudson.Launcher$ProcStarter.start(Launcher.java:454)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2012)
	... 18 more
Caused by: java.io.IOException: error=2, no such file
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 23 more

Solutions:
To install Git on Jenkins’ host, execute the following command:
yum install git
Testing:

An error occurred while collecting items to be installed

When installing p3C plug-ins in eclipse, I will not elaborate here. This is a plug-in developed by Ali’s internal code standards that can help developers better regulate the code. If necessary, it can be installed. In addition ali Java development manual you can also read, the specification of the purple code style. Okay, theme, the following error will be reported when installing the plug-in:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.aspectj.runtime.source,1.7.0.20120507134200
No repository found containing: osgi.bundle,org.eclipse.contribution.weaving.jdt.source,2.2.0.e36x-20120507-1400
No repository found containing: org.eclipse.update.feature,org.eclipse.contribution.weaving.source,2.2.0.e36x-20120507-1400
No repository found containing: osgi.bundle,org.eclipse.contribution.xref.core.source,2.2.0.e36x-20120507-1400
No repository found containing: org.eclipse.update.feature,org.eclipse.contribution.xref.source,2.2.0.e36x-20120507-1400
No repository found containing: osgi.bundle,org.eclipse.contribution.xref.ui.source,2.2.0.e36x-20120507-1400
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.0.0.v20110215-1551
No repository found containing: osgi.bundle,org.springframework.roo.wrapping.protobuf-java-lite,2.3.0.0001

This is because some libraries can not connect, resulting in online installation failed, just add the url address of the library where the installation is.
The specific steps are as follows:

    click on the Windows of the Eclipse window — > Perference go to Install\update and click Available Software Sites
    3. Click Add and, after calling the name, copy the missing path in the error message.

The above errors, for example, add the following path:
name: eclipse
location:https://www.eclipse.org/ajdt/downloads/
Therefore, if you encounter similar errors later, you can first look at what library is missing, and then add the corresponding library address.

How to Fix error: conversion from “” to non-scalar type “”

Error: the conversion from ‘STD: : _List_const_iterator & lt; _Mylist> To non-scalar Type ‘STD ::_List_iterator< _Mylist> ‘the requested
Error C2440 resolved: “Initialize” : cannot be retrieved from “STD ::_List_const_iterator< _Mylist & gt;” Into “STD: : _List_iterator & lt; _Mylist & gt;”
Writing C++ code often USES const as a function argument, which is easy to do when using iterator if the variable is of type STL or contains type STL.

void list_print(const list<int> &list)  
{  
    for (list<int>::iterator iter = list.begin();
         iter != list.end();
         ++iter) {
        ...    
     }
}  

The following error will be reported in this case

error C2440: “initialize”: cannot “std::_List_const_iterator<_Mylist>” to “std::_List_iterator<_Mylist>”
or
error: conversion from 'std::_List_const_iterator<_Mylist>' to non-scalar type 'std::_List_iterator<_Mylist>' requested

Here, because list itself is of type const, we need to use a const-type iterator, which is list::const_iterator
Code to

void list_print(const list<int> &list)  
{  
    for (list<int>::const_iterator iter = list.begin();
         iter != list.end();
         ++iter) {
        ...    
     }
}   

done

Macro generated_ UCLASS_ Body () and generated_ Analysis of body ()


Classes that inherit from the UE4 engine generate some macro code. The purpose of this macro code is to help generate constructors and associated member functions

UCLASS()
class SECTION1_API ASUsableActor : public AActor
{
	GENERATED_BODY()
	
public:	
		
	
};
UCLASS()
class SURVIVALGAME_API ASUsableActor : public AActor
{
	GENERATED_UCLASS_BODY()

public:

	
};

F12 jumps to the declaration file for both macros

#define GENERATED_BODY() \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
	ASUsableActor_RPC_WRAPPERS_NO_PURE_DECLS \
	ASUsableActor_CALLBACK_WRAPPERS \
	ASUsableActor_INCLASS_NO_PURE_DECLS \
	ASUsableActor_ENHANCED_CONSTRUCTORS \
private: \
PRAGMA_POP

GENERATED_BODY() will be replaced by a series of macros that replace the bottommost member with private: that is, after GENERATED_BODY() without significantly changing the member’s access mode, it will be private

#define GENERATED_UCLASS_BODY() \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
	ASUsableActor_RPC_WRAPPERS \
	ASUsableActor_CALLBACK_WRAPPERS \
	ASUsableActor_INCLASS \
	ASUsableActor_STANDARD_CONSTRUCTORS \
public: \
PRAGMA_POP

and the member variable after GENERATED_UCLASS_BODY() is public.

#define ASUsableActor_RPC_WRAPPERS
#define ASUsableActor_CALLBACK_WRAPPERS

these two are empty macros, in C/C++ hollow macros will be replaced by Spaces mostly used to indicate comments

The two non-null macros in GENERATED_UCLASS_BODY() are declared as

#define ASUsableActor_INCLASS \
	private: \
	static void StaticRegisterNativesASUsableActor(); \
	friend SECTION1_API class UClass* Z_Construct_UClass_ASUsableActor(); \
	public: \
	DECLARE_CLASS(ASUsableActor, AActor, COMPILED_IN_FLAGS(0), 0, Section1, NO_API) \
	DECLARE_SERIALIZER(ASUsableActor) \
	/** Indicates whether the class is compiled into the engine */    enum {IsIntrinsic=COMPILED_IN_INTRINSIC}; \
	UObject* _getUObject() const { return const_cast<ASUsableActor*>(this); }

The main purpose of these lines is to declare some member methods for the class

#define ASUsableActor_STANDARD_CONSTRUCTORS \
	/** Standard constructor, called after all reflected properties have been initialized */ \
	NO_API ASUsableActor(const FObjectInitializer& ObjectInitializer); \
	DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(ASUsableActor) \
private: \
	/** Private copy-constructor, should never be used */ \
	NO_API ASUsableActor(const ASUsableActor& InCopy); \
public:

Here you can see that a public constructor and a private copy constructor are declared, with the public constructor taking a reference constant for FObjectInitializer. The copy constructor is declared private, indicating that the copy constructor is not available

The following two are non-null macro declarations referenced in GENERATED_BODY()

#define ASUsableActor_RPC_WRAPPERS_NO_PURE_DECLS \
	static inline void StaticChecks_Implementation_Validate() \
	{ \
	}

#define ASUsableActor_INCLASS_NO_PURE_DECLS \
	private: \
	static void StaticRegisterNativesASUsableActor(); \
	friend SECTION1_API class UClass* Z_Construct_UClass_ASUsableActor(); \
	public: \
	DECLARE_CLASS(ASUsableActor, AActor, COMPILED_IN_FLAGS(0), 0, Section1, NO_API) \
	DECLARE_SERIALIZER(ASUsableActor) \
	/** Indicates whether the class is compiled into the engine */    enum {IsIntrinsic=COMPILED_IN_INTRINSIC}; \
	UObject* _getUObject() const { return const_cast<ASUsableActor*>(this); }
#define ASUsableActor_ENHANCED_CONSTRUCTORS \
private: \
	/** Private copy-constructor, should never be used */ \
	NO_API ASUsableActor(const ASUsableActor& InCopy); \
public: \
	DEFINE_DEFAULT_CONSTRUCTOR_CALL(ASUsableActor)

DEFINE_DEFAULT_CONSTRUCTOR_CALL didn’t track where and how to declare it in VS, so the literal definition is to define the default constructor, which is the basic constructor.
Also the copy constructor is not available

From the above analysis, you can think of GENERATED_BODY() as generating the default constructor for us, and GENERATED_UCLASS_BODY() as generating the constructor with the specified parameter type for us

DB2 sql5005c system exception

Backup database error, SQL5005C, online to find the solution
The error is as follows: A system error,probably an I/O error,was ritten while soil A Configuration file
According to the online method, look for a file called db2systm. It doesn’t exist. Maybe it was deleted by mistake when cleaning the C disk.
IBM KNOWLEDGE CENTER website:
https://www.ibm.com/support/knowledgecenter/zh/SSEPGG_10.1.0/com.ibm.db2.luw.messages.sql.doc/doc/msql05005c.html

Package pdftex.def Error

In the recent texLive presentation of the paper to be submitted, the template requires the illustrations to be in.EPS format

Errors:
./template.tex:172: Package pdftex.def Error: File `E1-1-eps-converted-to.pdf’ not found. [\centerline{\includegraphics{E1-1.eps} }]
./template.tex:394: Package pdftex.def Error: File `E1-2-eps-converted-to.pdf’ not found. [\includegraphics{E1-2.eps}]
./template.tex:417: Package pdftex.def Error: Eps – converted File ` no.e1-2 – – to.. PDF ‘not found. [\ includegraphics {E1-2. Eps}]

the solution:
First, add the macro package
\usepackage{epstopdf}
Second, compile from the command line
pdflatex –shell-escape template.tex
To complete.

When the permission question mark appears in the sshfs mount, or input / output error occurs

View hard disk usage df-h
view hard disk information: fdisk-l
eg:
sudo sshfs-o allow_other-o reconnect-o cache=yes www@ip:/ destination file/local file
or
sudo sshfs -o allow_other -o nonempty -o reconnect -o cache=yes www@ip:/data/wwwroot/default/test /home/www/test/uploads
If there is a permission question mark :
close hanging in eg: sudo umount./inquiry
And open;
View hanging information: cat /etc/mtab
running SSHFS: ps aux | grep SSHFS

Angular $ injector:unpr Unknown Provider Error Fixed

Unknown provider: tProvider < -t is a headache for many Angular 1.x users because they have no idea why.
This article summarizes all the possible causes of this problem so far, I hope you do not panic when you encounter this problem! Step by step, follow the contents below:
Problem description:
An Unknown provider usually results from not being able to resolve an injected dependency. The reasons are generally as follows:
1. Dependencies are undefined

angular.module('myApp', [])
.controller('MyController', ['myService', function (myService) {
  // Do something with myService
}]);

[$Injector: unPR] Unknown Provider [injector: unPR] Unknown provider. If you find an undefined dependency, first define the dependency in advance.

angular.module('myApp', [])
.service('myService', function () { /* ... */ })
.controller('MyController', ['myService', function (myService) {
  // Do something with myService
}]);

2. Reuse of Angular.module

angular.module('myModule', [])
  .service('myCoolService', function () { /* ... */ });

angular.module('myModule', [])
  // myModule has already been created! This is not what you want!
  .directive('myDirective', ['myCoolService', function (myCoolService) {
    // This directive definition throws unknown provider, because myCoolService
    // has been destroyed.
  }]);

Repeated use of Angular. Module (‘myModule’, []) in the above code causes Angular to redefine the myModule module, causing an error. The angular.module(‘myModule’, []) syntax is usually used to define a module again. To avoid this problem, use angular.module(‘myModule’) or a variable instead.

angular.module('myModule', []);
  .service('myCoolService', function () { /* ... */ });

angular.module('myModule')
  .directive('myDirective', ['myCoolService', function (myCoolService) {
    // This directive definition does not throw unknown provider.
  }]);

or

var app =  angular.module('myModule', []);
app.service('myCoolService', function () { /* ... */ });
app.directive('myDirective', ['myCoolService', function (myCoolService) {
    // This directive definition does not throw unknown provider.
  }]);

3. Inject one Controller as a dependency into another controller

angular.module('myModule', [])
.controller('MyFirstController', function() { /* ... */ })
.controller('MySecondController', ['MyFirstController', function(MyFirstController) {
  // This controller throws an unknown provider error because
  // MyFirstController cannot be injected.
}]);

In fact, if you want to instantiate controller, you can use the $Controller service (which will be updated later in the blog).
Inject $Scope into a component that is not a Controller or directive

angular.module('myModule', [])
.service('MyController', ['$scope', function($scope) {
  // This controller throws an unknown provider error because
  // a scope object cannot be injected into a service.
}]);

When this happens, it is also easy to check, just keep in mind that only controller and directive can inject $Scope as a dependency.
5. Error using Angular compressed version
You would use ngStrictDi
Well, I hope this article can help you, in case of this problem do not panic!