Category Archives: Error

[Solved] freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:

Using Freemarker to report an error, I feel that there is no problem with the template. After only one project is deployed in use, an error is reported. . . .

 

 

 

 

Solution: Add the following line in config file

spring.freemarker.settings.classic_compatible=true

HDFS Operate hadoop Error: Command not Found [How to Solve]

1. sudo vim /etc/profile

sudo into the profile file

 

2.

export JAVA_HOME=/usr/lib/jvm/jdk-1.8.0_212
export HADOOP_HOME=usr/local/hadoop
export PATH=.:$HADOOP_HOME/bin:$JAVA_HOME/bin:$PATH

Add the above three to the end of the profile file

Press i to edit first, press Esc after writing, then: wq save and exit

 

3.source /etc/profile

Update environment variables

 

This problem can be solved by the above three steps

epub Book Error: Blocked script execution in ‘http://localhost:8080/’ because the document ‘s frame is sandboxed and the ‘allow-scripts’ permission is not set.

initEpub() {
      const url = 'http://localhost:8081/epub/' +
        this.fileName + '.epub'
      // console.log(url)
      this.book = new Epub(url)
      console.log(this.book)
      this.rendition = this.book.renderTo('read', {
        width: window.innerWidth,
        height: window.innerHeight,
        method: 'default'
      })
      this.rendition.display() 
    }
  },

 

Reason:

This problem is because of the iframe framework, which is used in epub!

 

Your e-book is placed in the iframe!

If you delete:

method : The 'default' 
 e-book can also be rendered, but the error is not resolved!

 

Solution:

My reason: because of the problem of the epub.js package, the version is relatively high! Uninstall this package and start over

Uninstall:

npm uninstall epubjs

Reload the next specified version of the package:

npm install [email protected]

 

Rendering is successful, no error is reported!

[Solved] Version 28 (intended for Android Pie and below) is the last version of the legacy support library

Error:

Version 28 (intended for Android Pie and below) is the last version of the legacy support library

 

Solution:

You need to migrate the principle support library to AndroidX and use implementation to add dependencies.

Step 1: Code Section

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'androidx.percentlayout:percentlayout:1.0.0'
    testImplementation 'junit:junit:4.13.2'
}

Step 2: Migrate to AndroidX

image

image

image

Test, Launch succeeded, now the problem is solved.

image

[Fixed] IDEA Login Warning: Server’s certificate is not trusted

Reason: Your local idea certificate cannot

Solution 1:

you go to install a genuine;

Solution 2:

Set to accept untrusted certificates.

AS: File – Settings – Tools – Server Certificates – [checked] Accept non-trusted certiticates aotumatically

 

2.1. Enter the Settings configuration window

 

 

2.2. Open the corresponding Tools – Server Certificates – check Accept non-trusted certiticates aotumatically, and click apply.