Category Archives: Error

[Solved] Google Maps API load Error: this page cannot load Google Maps correctly. Do you own this website?

Question:

Using Google maps, when you click the label, the following appears:

Solution:

1. Press F12 to enter the browser developer tool and view the console panel error prompt:

You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project_/billing/enable

Learn more at https://developers.google.com/maps/gmp-get-started

2. According to the error information, it can be seen that the payment function of Google cloud products is not enabled (that is, Google cloud products are not activated and are in trial status after registration). Click the enable link to open the payment information verification page, which requires you to provide credit card information (only AMEX, MasterCard and visa are supported).

3. At this time, I wonder if Google cloud products can be free of charge. Why do you have to activate them and let you fill in the credit card information to activate the payment function. This is Google’s request to avoid abuse and reduce fraud. Will Google deduct fees? Google said: you will not charge any fees if you do not turn on the automatic settlement function; And Google will give a $300 gift to try Google cloud within 90 days; There will be no automatic charge after the free trial. You are required to provide credit card information to confirm that you are not a robot. Unless you manually upgrade to a paying account, you will not be charged.

At this point, we only need to fill in the payment information, and need to have any credit card Amex, Mastercard and VISA. The payment credit card address does not support Chinese mainland, Hong Kong, Macao and Taiwan. After verifying the payment information, activate Google cloud and you can use it normally. If the payment information is not filled in, this error will be reported by using Google Maps API, which will affect the use experience.

4. There are several other possible causes of this problem:

The API key is not configured correctly, for example, if the URL to insert the mapping is not covered by “HTTP referrers” in the “application restrictions” section.

The project-enabled API you use in the Google console is not a required API for features in maps.

Your site is loading multiple instances of Google Maps library.

[Solved] zookeeper deletes a directory node Error: authentication is not valid: /HBase/tokenauth

Problem background:

When building an HDP cluster, after Kerberos is enabled, the zookeeper.znode.parent of HBase becomes/HBase secure. I want to change it to/HBase

However, after changing this value, there is a problem connecting HBase to zookeeper. It should be that/HBase already exists in zookeeper. I want to delete/HBase in ZK and reinitialize it,

But it can’t be deleted, Error reporting: authentication is not valid:/HBase/tokenauth

Solution:

This is because zookeeper opens ACL, and I can’t use zookeeper’s getacl command,

Then, I directly turn off the ACL function of zookeeper, and then restart zookeeper,

[close ACL]   Add a zookeeper configuration. Here I demonstrate HDP:

skipACL = yes

At this time, you can delete the directory node in zookeeper. This is a newly built cluster and can be deleted at will. If it is a production cluster, be careful!!

At this point, change the zookeeper.znode.parent of my HBase to/habse, restart and enter the HBase shell for verification

After the above, I opened the ACL function of zookeeper again, that is, delete the configuration and restart zookeeper;

Pie Component carousel Error: Instance ec_1623382451382 has been disposed (Error-Loading Change Redraw)

Cancel the timer in beforedestroyed:

The reason is that instead of simply resize after each redraw, a component is re-instantiated. Due to the independence of Data, the timer in the new component = null, while the timer in the old component always exists and has not been destroyed. At this time, the seals instance has been destroyed, so there will be a warning that the seals instance has been destroyed

[Solved] Error: Service ‘XXX ‘failed to build:mainfest for docker.io/phusion/baseimage:latest not founded

Problem description

The error: Service 'xxx' failed to build: mainfest for docker.io/phusion/baseimage: latest not found error occurs when using the docker-compose command, which prompts that the latest version is not found. We need to specify the version at the beginning of the dockerfile file

Solution:

1. Find the dockerfile file in the current folder

2. Supplement at the beginning of the document :bionic-1.0.0

3. Re-execute the docker-compose command

Reference connection

https://stackoverflow.com/questions/63229267/service-certbot-failed-to-build-manifest-for-phusion-baseimagelatest-not-fou

[Solved] QT Error: error: undefined reference to ‘vtable for XXX’  

1. Description of problems encountered

An error occurred in a constructor during compilation:

1 error: undefined reference to ‘vtable for XXX’

2. Cause analysis

Cause of error: This usually occurs in a class that inherits QObject. It is usually a newly defined subclass that does not implement the pure virtual function of the parent class.

In QT, when you encounter this situation, you should first think of adding a new class inherited from QObject to a class and adding Q_ The macro object,

After that, this error will be reported whether it is built or rebuilt. The root cause is that only build and rebuild will be performed without compiling   Q_ Object macro (and no new MOC file will be generated),

Therefore, you need to execute qmake first and let the MOC compiler precompile Q_ Object macro. PS: you can execute qmake once before running the program

3. Solutions

Re-execute qmake and rebuild.

Generally, this problem is solved to avoid forgetting to take notes~

Cannot resolve reference to bean ‘txPoint’ while setting bean property ‘pointcut’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘txPoint’

Error configuring transaction with facet

[14:06:27:291] [WARN ] [RMI TCP Connection(3)-127.0.0.1] [org.springframework.web.context.support.XmlWebApplicationContext] [Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-core.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'txPoint' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txPoint': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [ParallelWebappClassLoader
  context: ROOT
  delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@1c4af82c
]] 
[14:06:27:312] [ERROR] [RMI TCP Connection(3)-127.0.0.1] [org.springframework.web.context.ContextLoader] [Context initialization failed] 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/spring-core.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'txPoint' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txPoint': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [ParallelWebappClassLoader
  context: ROOT
  delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@1c4af82c
]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:519)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5177)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1727)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:288)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:459)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:408)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:288)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)

Resolve dependencies related to imported missing facets

        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>1.9.6</version>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>1.9.6</version>
        </dependency>
        <dependency>
            <groupId>org.aopalliance</groupId>
            <artifactId>com.springsource.org.aopalliance</artifactId>
            <version>1.0.0</version>
        </dependency>

[Solved] Mybatis Codes Error: java.lang.ClassNotFoundException: Cannot find class: com.mysql.jdbc.Driver

When reading the MySQL source code, download the source code, write a simple demo, run and report errors

java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot find class: com.mysql.jdbc.Driver
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:153)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
at org.apache.ibatis.demo.MybatisMain.main(MybatisMain.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

After checking online, most of them are the same as mysql-connector-java-x.x.x-bin.jar, but no matter what version of package I introduce, the problem still exists.

After step-by-step debugging, it is found that the place where the com.mysql.jdbc.driver class is loaded is the following method of org.apache.ibatis.io.classloaderwapper

Class<?> classForName(String name, ClassLoader[] classLoader) throws ClassNotFoundException {
  for (ClassLoader cl : classLoader) {
    if (null != cl) {
      try {
        return Class.forName(name, true, cl);
      } catch (ClassNotFoundException e) {
        // we'll ignore this until all classloaders fail to locate the class
      }
    }
  }
  throw new ClassNotFoundException("Cannot find class: " + name);
}

But why can’t I load it?

So test it in the main method

public class MybatisMain {
  public static void main(String[] args) throws IOException
  {
    try {
      Class.forName("com.mysql.jdbc.Driver", true, Thread.currentThread().getContextClassLoader());
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
    }
  }
}

As a result, it still can’t be loaded.

Conclusion:

Look at the POM file

<dependency>
  <groupId>mysql</groupId>
  <artifactId>mysql-connector-java</artifactId>
  <version>8.0.24</version>
  <scope>test</scope>
</dependency>

Notice the <scope>test</scope> in the pom file, the problem lies here, comment out this line, the problem is solved.

[Solved] Gradle Error: Could not find method api() for arguments….

The compile keyword for dependency is introduced into gradle for old projects. After upgrading gradle version 7. X, this keyword is enabled.

After checking the documentation, if the jar package of the project is to be exposed, use API. If the referenced jar package is only used by the project, use implementation.

Core, the jar package reference of the public module is changed to API, but an error is reported

A problem occurred evaluating project ':inkyi-common'.
> Could not find method api() for arguments [org.springframework.boot:spring-boot-starter-web:2.6.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

That means: without API, Baidu has said to upgrade gradle 3. X for a long time. Isn’t that bullshit

After reading the official website, the first sentence gives the answer: API belongs to the method in Java library

Put the in build.gradle

plugins {
    id 'java'
}

Change to

plugins {
    id 'java-library'
}

Just do it.

[Solved] Dubbo Project Service Startup Locally Error: org.apache.dubbo.remoting.remotingexception: client (URL: dubbo://192.168.56.1:20882

org.apache.dubbo.remoting.RemotingException: client(url: dubbo://192.168.56.1:20883/com.test.dubbo.dubbo.StorageDubboService
at org.apache.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:131)
    at org.apache.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:186)
    at org.apache.dubbo.remoting.transport.AbstractClient.reconnect(AbstractClient.java:242)
    at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeClient.reconnect(HeaderExchangeClient.java:152)
    at org.apache.dubbo.remoting.exchange.support.header.ReconnectTimerTask.doTask(ReconnectTimerTask.java:49)
    at org.apache.dubbo.remoting.exchange.support.header.AbstractTimerTask.run(AbstractTimerTask.java:87)
    at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:648)
    at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:727)
    at org.apache.dubbo.common.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:449)
    at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /192.168.56.1:20883
Caused by: java.net.ConnectException: Connection refused: no further information

Today, I reported the above error in debugging a local Dubbo project. After checking the online answer, there are two solutions as follows:

1. Change the host of the configured Dubbo to the IP of your local network card (it should be noted that some friends may have several adapter network IP (for example, they are connected to the wireless), and this error message will also include the same error message of your wireless address IP, but if your producer and consumer debug on the same device, it will not affect the registration call)

2. The configuration in the configuration file (YML or properties) is as follows:

dubbo.protocol.host=192.168.56.1 

It is important to note that both consumer and producer configurations should be added!

[Solved] org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part ‘file_data’ is not present

Background Error:org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part ‘file_data’ is not present
Reason:The front and backend parameters do not match, the frontend does not have the parameter file_data
@RequestMapping(value = “/importDept”, method = RequestMethod.POST)
@ResponseBody
public AjaxResult importDept(@RequestParam(value = “file_data”) MultipartFile file,
HttpServletRequest request) throws ParseException {

…..
}