Category Archives: Error

[Solved] Android Studio Compile Error: Process ‘command ‘ finished with non-zero exit value 1

problem analysis

Errors occur when compiling. Generally, it is process’ command ‘C:\users…\appdata\local\Android\SDK\build tools\27.0.3\AAPT.Exe’ finished with non zero exit value 1

This is mostly a problem with the resource file. It is a newly imported project that has not been compiled before.

Solution:

In fact, it’s very simple. What we need is positioning
enter gradlew processdebugresources — debug in the termianl interface of as, and press enter to debug the resources, and the specific log will be printed if there is a problem.

gradlew processDebugResources –debug

After debugging, turn up and find the reason for the error

[Solved] GitHub Error: this exceeds GitHub’s file size limit of 100 MB

GitHub has a limit on the size of files. The problem is that after the relevant files are removed, the problem still exists.

Solution:

In addition to removing related files, you should also modify the GIT history and remove the corresponding commit node.

The easiest way is to use the following command:

git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch your-file'

This command will filter the specified file from the push process.

Please use this command with caution. It is strongly recommended to back up before use to prevent misoperation.

[Solved] activemq Startup Error: Address already in use: JVM_Bind

Generally, address already in use: JVM appears_ The problem with bind may be a port conflict, that is, the port is occupied.

This may be because other applications use the same port (the default is 8080), or you have started Tomcat and the process has not been killed.

In either case, we can handle it as follows:

If it is a Windows system, open the console and enter:

netstat -ano

To see which process is currently using the port, find the PID

Then delete the process manually:

taskkill /f /pid 8036

Where 8036 is the process number of the occupied port

In case of Linux system:

There are similar commands for finding port occupancy:

netstat -apn

Kill process:

kill -s 9 13279

Among them -s 9 specifies that the signal transmitted to the process is 9, that is, force and terminate the process as soon as possible. 13279 is the process number.

EL1007E: Property or field ‘xxx’ cannot be found on null

If the object itself is empty, an error will be reported when the attribute of the object is retrieved from the session

Solution:
original code:

< span th:text=”${session.user.username}”>& lt;/ span>

After change:

< span th:text=”${session.user?.username}”>& lt;/ span>

Why add one?You can solve
because this is a method for thymeleaf to judge whether the object is empty. Thymeleaf shows that an object uses ${username}, but if the username is null, thymeleaf will report an error

Mac opens the file and prompts that the file is damaged. Solution

Background: my colleague passed me a Navicat MySQL installation package, but it was unzipped and opened, prompting that the file was damaged. Similar as shown in the figure: (because there was no screenshot at that time, the similar figure was found on the Internet)

 

Solution

1. Open the terminal and enter the following command:

sudo spctl --master-disable

 

2. Open security and privacy to install

 

Solution to empty backup file generated by mysqldump scheduled task

Problem: after writing a mysqldump backup script and executing it directly, the backup file can be generated normally, but the backup file generated when running a scheduled task is empty

 

Analysis reason: since mysqldump exists under the bin of the global environment variable mysql, the mysqldump command can be recognized when running directly, but the mysqldump command cannot be recognized in the scheduled task. (PS: crontab running failure is basically caused by environment variables)

Solution: just add the absolute path before the mysqldump command

 

[Solved] an unhandled exception of type “system. Argumentexception” occurred in mscorlib.dll

Problem Description:

When running c# form program, vs prompts an error: an unhandled exception of type “system. Argumentexception” occurs in mscorlib.dll

Problem solving:

The debugging window prompts the following error:

The savefile method of RichTextBox control is used here. For specific usage, see c# richtextbox.savefile method code example – pure sky (vimsky.Com).

To add @ in front of the path to prevent escape, the problem is solved.

Awvas Startup Error: unable to access this website [How to Solve]

When you double-click the “Acunetix icon” on the desktop, the browser jump page will automatically open, and the result page will display “unable to access this website”

Solution:

Press windows + R to enter services.msc to open the service interface to check whether Acunetix services are enabled. Generally, you can right-click two services, select services, select start, and start both services

double-click the icon on the desktop again “Acunetix icon”, you can enter the login interface