Author Archives: Robins

Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution

1. Change the table method.

It may be that your account does not allow remote login, only localhost. At this time, as long as you are on the localhost computer, after logging in to MySQL, change the “host” item in the “user” table in the “mysql” database, and change the name from “localhost” to “%”

mysql - u root - p

mysql > use mysql;

mysql > update  user  set host =  ' % '  where  user  =  ' root ' ;

mysql > select host, user  from  user ;

 

 

Note: Personally feel that it is not suitable!

 

[Error content]: SQL Error (2013): Lost connection to MySQL server at’waiting for initial communication packet’, system error: 0

[Error generation process]: Appears when connecting to MySQL.

[Solution]: Open my.ini, find the [mysqld] item, add a sentence after it: skip-name-resolve, save, and restart the mysql service~

 

The above is the full text introduction to solve MySQL Error (2013): Lost connection to MySQL server at waiting for initial communication packet, I hope it will be helpful for you to learn and use the database.

 

2. Authorization law.

 

1) For example, if you want myuser to use mypassword to connect to the mysql server from any host.

GRANT  ALL  PRIVILEGES  ON  * . *  TO  ' myuser ' @ ' % ' IDENTIFIED BY  ' mypassword '  WITH  GRANT  OPTION ;

FLUSH    PRIVILEGES ;

 

2) If you want to allow the user myuser to connect to the mysql server from the host whose ip is 192.168.1.6, and use mypassword as the password

GRANT  ALL  PRIVILEGES  ON  * . *  TO  ' myuser ' @ ' 192.168.1.3 ' IDENTIFIED BY  ' mypassword '  WITH  GRANT  OPTION ;

FLUSH    PRIVILEGES ;

 

3) If you want to allow the user myuser to connect to the dk database of the mysql server from the host whose ip is 192.168.1.6, and use mypassword as the password

GRANT  ALL  PRIVILEGES  ON dk. *  TO  ' myuser ' @ ' 192.168.1.3 ' IDENTIFIED BY  ' mypassword '  WITH  GRANT  OPTION ;

FLUSH    PRIVILEGES ;

 

 

The first method I used 1), and finally execute a statement mysql>FLUSH RIVILEGES to make the modification effective.

There is another method, but I haven’t tried it personally, I can find it on csdn.net, you can take a look.

Run on the machine where mysql is installed:

1. d: / mysql / bin /> mysql    - h localhost    - u root   // This should be able to enter the MySQL server

2. mysql > GRANT    ALL    PRIVILEGES    ON    * . *    TO    ' root ' @ ' % '    WITH    GRANT    OPTION   // Give any host access to data

3. mysql > FLUSH    PRIVILEGES   //The modification takes effect

4. mysql > EXIT   // Exit the MySQL server

 

In this way, you can log in as root on any other host!

Spark-shell startup error: Yarn application has already ended! It might have been killed or unable to launch application master

spark-shell does not support yarn cluster, start it in yarn client mode

spark-shell --master=yarn --deploy-mode=client

Start the log, the error message is as follows

 

Among them, “Neither spark.yarn.jars nor spark.yarn.archive is set, falling back to uploading libraries under SPARK_HOME” is just a warning. The official explanation is as follows:

Roughly speaking: if spark.yarn.jars and spark.yarn.archive are not configured, all jars under $SPAR_HOME/jars will be packaged into a zip file and uploaded to each work partition, so the packaging and distribution is automatically completed. It doesn’t matter to configure these two parameters.

 

“Yarn application has already ended! It might have been killed or unable to launch application master”, this is an exception, open the mr management page, mine is http://192.168.128.130/8088,

The focus is on the red box, the actual value of 2.2g of virtual memory exceeds the upper limit of 2.1g. That is to say, the virtual memory exceeds the limit, so the contratrainer is killed, the work is done in the container, the container is killed, and it is a fart.

solution

yarn-site.xml adds configuration:

2 configurations can choose one

1 <!--The following configuration is added to solve the problem of error reporting when spark-shell runs in yarn client mode. It is estimated that spark-summit will also have this problem. The problem can be solved by configuring only one of the two configurations. Of course, there is no problem with both configurations -->
 2 <!-- Whether the virtual memory setting is effective, if the actual virtual memory is greater than the set value, spark may report an error when running in client mode, " Yarn application has already ended! It might have been killed or unable to l " -->
 3 <property>
 4      <name>yarn.nodemanager.vmem-check-enabled</name>
 5      <value> false </value>
 6      <description>Whether virtual memory limits will be enforced for containers</description>
 7 </property>
 8 <!--Configure the value of virtual memory/physical memory, the default is 2.1 ,
<property>
 10      <name>yarn.nodemanager.vmem-pmem-ratio</name>
 11      <value> 4 </value>
 12      <description>Ratio between virtual memory to physical memory when setting memory limits for containers</description>
 13 </property>

 

After modification, start hadoop and spark-shell.

 

[Solved] Kettle Error: ../deploy does not exist, please create it.

The specific error is as follows:

Xlib:  extension "RANDR" missing on display "localhost:10.0".
11:08:13,538 INFO  [KarafInstance] 
*******************************************************************************
*** Karaf Instance Number: 1 at /home/crmsapp/soft/kettle/data-integration/ ***
*** ./system/carafe // data1 *** 
*** Carafe Port: 8801                                                          ***
*** OSGI Service Port:9050                                                  ***
************************************************** ***************************** 
October 17 , 2016  11 : 08 : 14 AM org.apache.karaf.main.Main$ KarafLockCallback lockAquired
Message: Lock acquired. Setting startlevel to 100
F:\kettle\pdi-ce-6.0.1.0-386\data-integration\system\karaf/deploy does not exist, please create it.
Root path does not exist: /home/crmsapp/soft/kettle/data-integration/F:\kettle\pdi-ce-6.0.1.0-386\data-integration\system\karaf/deploy
2016/10/17 11:08:16 - cfgbuilder - Warning: The configuration parameter [org] is not supported by the default configuration builder for scheme: sftp
*ERROR* [org.osgi.service.cm.ManagedService, id=246, bundle=47/mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.1.1]: Unexpected problem updating configuration org.apache.aries.transaction
java.lang.ExceptionInInitializerError
    at org.apache.aries.transaction.internal.TransactionManagerService.<init>(TransactionManagerService.java:114)
    at org.apache.aries.transaction.internal.Activator.updated(Activator.java:63)
    at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:148)
    at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:81)
    at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1448)
    at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1404)
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.MissingResourceException: Can't find bundle for base name org.apache.aries.transaction.txManager, locale zh_CN
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:1028)
    at org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:152)
    at org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:107)
    at org.apache.aries.transaction.internal.NLS.<clinit>(NLS.java:25)
    ... 8 more
2016-10-17 11:08:18.606:INFO:oejs.Server:jetty-8.1.15.v20140411
2016-10-17 11:08:18.664:INFO:oejs.AbstractConnector:Started [email protected]:9050
log4j:ERROR Could not parse url [file:/home/crmsapp/soft/kettle/data-integration/./system/osgi/log4j.xml].
java.io.FileNotFoundException: /home/crmsapp/soft/kettle/data-integration/./system/osgi/ log4j.xml (there is no such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at java.io.FileInputStream.<init>(FileInputStream.java:101)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream (FileURLConnection.java: 188 )
    at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:765)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    at org.apache.log4j.Logger.getLogger(Logger.java:104)
    at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:262)
    at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1025)
    at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:844)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
    at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.<clinit>(ContextLoaderListener.java:253)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:383)
    at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4336)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
    at org.apache.felix.framework.Felix.startBundle (Felix.java: 2064 )
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:745)
log4j:WARN No appenders could be found for logger (org.springframework.osgi.extender.internal.activator.ContextLoaderListener).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
十月 17, 2016 11:08:19 上午 org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/blueprint/core 
October 17 , 2016  11 : 08 : 19 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/configuration/beans 
October 17 , 2016  11 : 08 : 19 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/configuration/parameterized-types 
October 17 , 2016  11 : 08 : 19 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/configuration/security 
October 17 , 2016  11 : 08 : 19 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // schemas.xmlsoap.org/wsdl/ 
October 17 , 2016  11 : 08 : 19 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // www.w3.org/2005/08/addressing 
October 17 , 2016  11 : 08 : 19 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // schemas.xmlsoap.org/ws/2004/08/addressing 
October 17 , 2016  11 : 08 : 19 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-management (130) [org.apache.cxf.management.InstrumentationManager]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-wsdl (133) [org.apache.cxf.wsdl.WSDLManager]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml (135) [org.apache.cxf.binding.xml.XMLBindingFactory, org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap (136) [org.apache.cxf.binding.soap.SoapBindingFactory, org.apache.cxf.binding.soap.SoapTransportFactory]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered the Blueprint namespace Handler for HTTP: // cxf.apache.org/blueprint/bindings/soap 
Shiyue 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (137) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transport.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-policy (160) [org.apache.cxf.ws.policy.PolicyEngine, org.apache.cxf.policy.PolicyDataEngine, org.apache.cxf.ws.policy.AssertionBuilderRegistry, org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry, org.apache.cxf.ws.policy.PolicyBuilder, org.apache.cxf.ws.policy.PolicyAnnotationListener, org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider, org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry, org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.external.URIDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider, org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder, org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/transports/http/configuration 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/blueprint/simple 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-frontend-jaxws (139) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered the Blueprint namespace Handler for HTTP: // cxf.apache.org/blueprint/jaxws 
Shiyue 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered the Blueprint namespace Handler for HTTP: // cxf.apache.org/blueprint/jaxrs 
Shiyue 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/blueprint/jaxrs-client 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-corba (149) [org.apache.cxf.binding.corba.CorbaBindingFactory, org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/binding/coloc 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-local (151) [org.apache.cxf.transport.local.LocalTransportFactory]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-object (152) [org.apache.cxf.binding.object.ObjectBindingFactory]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/blueprint/binding/object 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-jetty (153) [org.apache.cxf.transport.http_jetty.JettyDestinationFactory, org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory, org.apache.cxf.transport.http.ContinuationProviderFactory]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/transports/http-jetty/configuration 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-jms (155) [org.apache.cxf.transport.jms.JMSTransportFactory, org.apache.cxf.transport.jms.wsdl11.JMSWSDLExtensionLoader]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-udp (157) [org.apache.cxf.transport.udp.UDPTransportFactory]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/policy 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // www.w3.org/ns/ws-policy 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // www.w3.org/2006/07/ws-policy 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // schemas.xmlsoap.org/ws/2004/09/policy 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd 
October 17 , 2016  11 : 08 : 20 AM org .apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd 
October 17 , 2016  11 : 08 : 20 AM org .apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // www.w3.org/2000/09/xmldsig# 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // docs.oasis-open.org/ws-sx/ws-securitypolicy/200702 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-addr (177) [org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider, org.apache.cxf.ws.addressing.impl.AddressingWSDLExtensionLoader, org.apache.cxf.ws.addressing.WSAddressingFeature$WSAddressingFeatureApplier, org.apache.cxf.ws.addressing.MAPAggregator$MAPAggregatorLoader]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/ws/addressing 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-mex (182) [org.apache.cxf.ws.mex.MEXServerListener]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-security (179) [org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader, org.apache.cxf.ws.security.cache.CacheCleanupListener]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-rm (181) [org.apache.cxf.ws.rm.RMManager, org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider, org.apache.cxf.ws.rm.policy.RM10AssertionBuilder, org.apache.cxf.ws.rm.policy.RM12AssertionBuilder, org.apache.cxf.ws.rm.policy.WSRMP12PolicyLoader, org.apache.cxf.ws.rm.policy.MC11PolicyLoader, org.apache.cxf.ws.rm.policy.RSPPolicyLoader]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/ws/rm/manager 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // schemas.xmlsoap.org/ws/2005/02/rm/policy 
October 17 , 2016  11 : 08 : 20 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
Message: Adding the extensions from bundle org.apache.cxf.cxf-rt-javascript (183) [org.apache.cxf.javascript.JavascriptServerListener]
October 17 , 2016  11 : 08 : 20 am org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
Information: Registered blueprint namespace handler for http: // cxf.apache.org/clustering 
October 17 , 2016  11 : 08 : 20 AM org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler$ 1 onSuccess
Information: New Caching Service registered
October 17 , 2016  11 : 08 : 20 am org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler$ 1 onSuccess
Information: New Caching Service registered
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/crmsapp/soft/kettle/data-integration/launcher/../lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/crmsapp/soft/kettle/data-integration/plugins/pentaho-big-data-plugin/lib/slf4j-log4j12-1.7.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
11:08:21,847 ERROR [WebjarsURLConnection] Error Transforming zip
java.io.IOException: Pipe closed
    at java.io.PipedInputStream.checkStateForReceive (PipedInputStream.java: 261 )
    at java.io.PipedInputStream.receive (PipedInputStream.java: 227 )
    at java.io.PipedOutputStream.write(PipedOutputStream.java:149)
    at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)
    at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:238)
    at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.transform(WebjarsURLConnection.java:190)
    at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.access$000(WebjarsURLConnection.java:54)
    at org.pentaho.osgi.platform.webjars.WebjarsURLConnection$2.call(WebjarsURLConnection.java:90)
    at org.pentaho.osgi.platform.webjars.WebjarsURLConnection$2.call(WebjarsURLConnection.java:87)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
October 17 , 2016  11 : 08 : 22 am org.apache.cxf.endpoint.ServerImpl initDestination
Message: Setting the server's publish address to be /lineage
11:08:22,825 ERROR [WebjarsURLConnection] Error Transforming zip
java.io.IOException: Pipe closed
    at java.io.PipedInputStream.checkStateForReceive (PipedInputStream.java: 261 )
    at java.io.PipedInputStream.receive (PipedInputStream.java: 227 )
    at java.io.PipedOutputStream.write(PipedOutputStream.java:149)
    at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)
    at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:238)
    at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.transform(WebjarsURLConnection.java:190)
    at org.pentaho.osgi.platform.webjars.WebjarsURLConnection.access$000(WebjarsURLConnection.java:54)
    at org.pentaho.osgi.platform.webjars.WebjarsURLCo

Solution:

This is an error caused by the cache file. Just find and delete the cache file in the ..\pdi-ce-6.0.1.0-386\data-integration\system\karaf directory. My cache file is as shown below:

Some may be in this directory, the file name is: cache

After deleting, restarting will not report an error.

Win7 start apache-activemq error report and solutions

Win7 starts apache-activemq and reports an error, as follows:

 

jvm 1 |
jvm 1 | Java Runtime: Oracle Corporation 1.8.0_74 C:\Program Files\Java\jdk1.
8.0_74\jre
jvm 1 | Heap sizes: current=121856k free=112966k max=932352k
jvm 1 | JVM args:- Dactivemq.home=../.. -Dactivemq.base=../.. -Djavax.net
.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djav
ax.net.ssl.keyStore=. ./../conf/broker.ks -Djavax.net.ssl.trustStore=../../conf/b
roker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRu nner
=true -Djava.util.logging.config.file=logging.properties -Dactivemq.conf=../
../conf -Dactivemq.data=../../data -Djava.security.auth.login.config=. ./../conf/
login.config -Xmx1024m -Djava.library.path=../../bin/win64 -Dwrapper.key=RvjK2sm
92XZHguAE -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port .m
ax=31999 -Dwrapper.pid=9316 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wra
pper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
jvm 1 | Extensions classpath:
jvm 1 | [ ..\..\lib,..\..\lib\camel,..\..\lib\optional,..\..\lib\web,..\..\l
ib\extra]
jvm 1 | ACTIVEMQ_HOME: ..\..
jvm 1 | ACTIVEMQ_BASE: ..\..
jvm 1 | ACTIVEMQ_CONF: ..\..\conf
jvm 1 | ACTIVEMQ_DATA: ..\..\data
jvm 1 | Loading message broker from : xbean:activemq.xml
jvm 1 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@4ef
5017d: startup date [Wed Apr 12 09:54:45 CST 2017]; root of context hierarchy
jvm 1 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[C:\Users\
Administrator\Downloads\apache-activemq-5.14.4\bin \win64\..\..\data\kahadb]
jvm 1 | INFO | KahaDB is version 6
jvm 1 | INFO | Recovering from the journal @1:1691
jvm 1 | INFO | Recovery replayed 106 operations from the journal in 0.028 se
conds.
jvm 1 | INFO | PListStore:[C:\Users\Administrator\Downloads\apache-activemq-
5.14.4\bin\win64\..\..\data\localhost\tmp_storage] started
jvm 1 | INFO | Apache ActiveMQ 5.14.4 (localhost, ID: 201603140297–57318-149
1962087799-0:1) is starting
jvm 1 | INFO | Listening for connections at: tcp://0.0.0.0:61616?maximumConn
ections=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector openwire started
jvm 1 | INFO | Listening for connections at: amqp:// 0.0.0.0:5672?maximumConn
ections=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector amqp started
jvm 1 | INFO | Listening for connections at: stomp://0.0.0.0:61613?maximumCo
nnections=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector stomp started
jvm 1 | INFO | Listening for connections at: mqtt://0.0.0.0:1883?maximumConn
ections=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector mqtt started
jvm 1 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:201603140297-
-57318-1491962087799-0:1], java.net.URISyntaxException: Illegal character in hos
tname at index 17: ws://201603140297-: 61614?maximumConnections=1000&wireFormat.m
axFrameSize=104857600)
jvm 1 | INFO | Apache ActiveMQ 5.14.4 (localhost, ID: 201603140297–57318-149
1962087799-0:1) is shutting down
jvm 1 | INFO | Connector openwire stopped
jvm 1 | INFO | Connector amqp stopped
jvm 1 | INFO | Connector stomp stopped
jvm 1 | INFO | Connector mqtt stopped
jvm 1 | INFO | Connector ws stopped
jvm 1 | INFO | PListStore:[C:\Users\Administrator\Downloads\apache- activemq-
5.14.4\bin\win64\..\..\data\localhost\tmp_storage] stopped
jvm 1 | INFO | Stopping async queue tasks
jvm 1 | INFO | Stopping async topic tasks
jvm 1 | INFO | Stopped KahaDB
jvm 1 | INFO | Apache ActiveMQ 5.14.4 (localhost, ID: 201603140297–57318-149
1962087799-0:1) uptime 0.515 seconds
jvm 1 | INFO | Apache ActiveMQ 5.14.4 (localhost, ID: 201603140297–57318-149
1962087799-0 :1) is shutdown
jvm 1 | INFO | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@4ef501
7d: startup date [Wed Apr 12 09:54:45 CST 2017]; root of context hierarchy
jvm 1 | WARN | Exception thrown from LifecycleProcessor on context close
jvm 1 | java.lang.IllegalStateException: LifecycleProcessor not initialized- call’refresh
‘ before invoking lifecycle methods via the context: org.apache.ac
tivemq.xbean.XBeanBrokerFactory$1@4ef5017d: startup date [Wed Apr 12 09:54:45 CS
T 2017]; root of context hierarchy
jvm 1 | at org.springframework.context.support.AbstractApplicationContex
t.getLifecycleProcessor(AbstractApplicationContext.java:357)[spring-context-4.1.
9.RELEASE.jar:4.1.9.RELEASE ]
jvm 1 | at org.springframework.context.support.AbstractApplicationContex
t.doClose(AbstractApplicationContext.java:884)[spring-context-4.1.9.RELEASE.jar:
4.1.9.RELEASE]
jvm 1 | at org.springframework .context.support.AbstractApplicationContex
t.close(AbstractApplicationContext.java:843)[spring-context-4.1.9.RELEASE.jar:4.
1.9.RELEASE]
jvm 1 | at org.apache.activemq.hooks.SpringContextHook.run(SpringContext
Hook.java: 30)[activemq-spring-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.broker.BrokerService.stop(BrokerService.j
ava:876)[activemq-broker-5.14.4.jar :5.14.4]
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBroker
Service.java:122)[activemq-spring-5.14.4.jar:5.14.4]
jvm 1 | at org.apache .activemq.broker.BrokerService.start(BrokerService.
java:630)[activemq-broker-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesS
et(XBeanBrokerService.java:73)[activemq-spring-5.14.4.jar:5.14.4]
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:
1.8.0_74]
jvm 1 | at sun.
reflect.NativeMethodAccessorImpl.invoke (NativeMethodAcces sorImpl.java:62)[:1.8.0_74]
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)[:1.8.0_74]
jvm 1 | at java. lang.reflect.Method.invoke(Method.java:498)[:1.8.0_74]
jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1
700)[spring-beans -4.1.9.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1639)[
spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org. springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1568)[spr
ing-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org.springframework.beans.factory .support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring
-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-b
eans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory .java:303)[spring-beans-4.1.9.RELEASE.jar:4.1.9.
RELEASE]
jvm 1 | at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[ spring-beans-4.1.9
.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.9 .RELEASE.jar:4.1.9.RE
LEASE]
jvm 1 | at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELE
ASE]
jvm 1 | at org. springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)[spring-bea
ns-4.1.9.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org.springframework.context.support .AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)[spring-co
ntext-4.1.9.RELEASE.jar:4.1.9.RELEASE]
jvm 1 | at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext .java:480)[spring-context-4.1.9.RELEASE.jar:
4.1.9.RELEASE]
jvm 1 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext
.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.2.jar:4.2]
jvm 1 | at org.apache .xbean.spring.context.ResourceXmlApplicationContext
.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.2.jar:4.2]
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBr
okerFactory.java:104)[activemq-spring-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicatio
nContext(XBeanBrokerFactory.java:104)[activemq-spring-5.14 .4.jar:5.14.4]
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBe
anBrokerFactory.java:67)[activemq-spring-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:71)[activemq-broker-5.14 .4.jar:5.14.4]
jvm 1 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:54)[activemq-broker-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.console.command.StartCommand.runTask(Star
tCommand.java:87)[activemq-console-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.console.command .AbstractCommand.execute(A
bstractCommand.java:63)[activemq-console-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.console.command.ShellCommand.runTask(Shel
lCommand.java:154)[activemq-console-5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.console.command.AbstractCommand.execute(A
bstractCommand.java:63)[activemq-console -5.14.4.jar:5.14.4]
jvm 1 | at org.apache.activemq.console.command.ShellCommand.main(ShellCo
mmand.java:104)[activemq-console-5.14.4.jar:5.14.4 ]
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:
1.8.0_74]
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:62)[:1.8.0_74]
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)[:1.8.0_74]
jvm 1 | at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_74]
jvm 1 | at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[
activemq .jar:5.14.4]
jvm 1 | at org.apache.activemq.console.Main.main(Main.java:115)[activemq
.jar:5.14.4]
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method)[:
1.8.0_74]
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:62)[:1.8.0_74]
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java :43)[:1.8.0_74]
jvm 1 | at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_74]
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)[wrapper.jar:3.2.3]
jvm 1 | at java.lang.Thread.run(Thread.java:745)[: 1.8.0_74]
jvm 1 | WARN | Exception encountered during context initialization-cancell
ing refresh attempt: org.springframework.beans.factory.BeanCreationException: Er
ror creating bean with name’org.apache.activemq.xbean.XBeanBrokerService #0′ def
ined in class path resource [activemq.xml]: Invocation of init method failed; ne
sted exception is java.net.URISyntaxException: Illegal character in hostname at
index 17: ws://201603140297-:61614?maximumConnections=1000&wireFormat.maxFrameSi
ze =104857600
jvm 1 | ERROR: java.lang.RuntimeException: Failed to execute start task. Reas
on: java.lang.IllegalStateException: BeanFactory not initialized or already clos
ed- call’refresh ‘ before accessing beans via the ApplicationContext
jvm 1 | java.lang .RuntimeException: Failed to execute start task. Reason: jav
a.lang.IllegalStateException: BeanFactory not initialized or already closed-ca ll’refresh
‘ before accessing beans via the ApplicationContext
jvm 1 | at org.apache.activemq.console.command. StartCommand.runTask(Star
tCommand.java:91)
jvm 1 | at org.apache.activemq.console.command.AbstractCommand.execute(A
bstractCommand.java:63)
jvm 1 | at org.apache.activemq.console.command.ShellCommand.runTask(Shel
lCommand.java:154)
jvm 1 | at org.apache.activemq.console.command.AbstractCommand.execute(A
bstractCommand.java:63)
jvm 1 | at org.apache.activemq.console.command.ShellCommand.main(ShellCo
mmand.java:104)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl. invoke(NativeMethodAcces
sorImpl.java:62)
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
jvm 1 | at java.lang.reflect.Method.invoke(Method.java:498)
jvm 1 | at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
jvm 1 | at org.apache.activemq.console.Main.main(Main.java:115)
jvm 1 | at sun. reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:62)
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet |
hodAccessorImpl.java:43)
jvm 1 at java.lang.reflect.Method.invoke(Method.java:498)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)
jvm 1 | at java.lang.Thread.run( Thread.java:745)
jvm 1 | Caused by: java.lang.IllegalStateException: BeanFactory not initializ
ed or already closed- call’refresh ‘ before accessing beans via the Application
Context
jvm 1 | at org.springframework.context.support.AbstractRefreshableApplic
ationContext.getBeanFactory(AbstractRefreshableApplicationContext. java:170)
jvm 1 | at org.springframework.context.support.AbstractApplicationContex
t.destroyBeans(AbstractApplicationContext.java:915)
jvm 1 | at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:493)
jvm 1 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext
.<init>(ResourceXmlApplicationContext.java:64)
jvm 1 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext
.<init>(ResourceXmlApplicationContext.java:52)
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBr
okerFactory.java: 104)
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicatio
nContext(XBeanBrokerFactory.java:104)
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBe
anBrokerFactory.java:67)
jvm 1 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:71)
jvm 1 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:54)
jvm 1 | at org.apache.activemq.console.command.StartCommand.runTask(Star
tCommand.java:87)
jvm 1 | … 16 more
jvm 1 | ERROR: java.lang.IllegalStateException: BeanFactory not initialized o
r already closed-call’refresh’ before accessing beans via the ApplicationCont
ext
jvm 1 | java.lang.IllegalStateException: BeanFactory not initialized or alrea
dy closed- call’refresh ‘ before accessing beans via the ApplicationContext
jvm 1 | at org.springframework.context. support.AbstractRefreshableApplic
ationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)
jvm 1 | at org.springframework.context.support.AbstractApplicationContex
t.destroyBeans(AbstractApplicationContext.java:915)
jvm 1 | at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:493)
jvm 1 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext
.< init>(ResourceXmlApplicationContext.java:64)
jvm 1 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext
.<init>(ResourceXmlApplicationContext.java:52)
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory$1. <init>(XBeanBr
okerFactory.java:104)
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicatio
nContext(XBeanBrokerFactory.java:104)
jvm 1 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBe
anBrokerFactory.java:67)
jvm 1 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:71)
jvm 1 | at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerF
actory.java:54)
jvm 1 | at org.apache.activemq.console.command.StartCommand.runTask(Star
tCommand.java:87)
jvm 1 | at org. apache.activemq.console.command.AbstractCommand.execute(A
bstractCommand.java:63)
jvm 1 | at org.apache.activemq.console.command.ShellCommand.runTask(Shel
lCommand.java:154)
jvm 1 | at org. apache.activemq.console.command.AbstractCommand.execute(A
bstractCommand.java:63)
jvm 1 | at org.apache.activemq.console.command.ShellCommand.main(ShellCo
mmand.java:104)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:62)
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
jvm 1 | at java.lang.reflect.Method.invoke(Method. java:498)
jvm 1 | at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
jvm 1 | at org.apache.activemq.console.Main.main(Main.java:115)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:62)
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
jvm 1 | at java.lang.reflect.Method. invoke(Method.java:498)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)
jvm 1 | at java.lang.Thread.run(Thread.java:745)
wrapper | < – Wrapper Stopped
please press any key to continue…

 

solution:

Modify the conf->activemq.xml configuration file

  <transportConnectors>
            <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
            <transportConnector name= " openwire " uri= " tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 " />
            <transportConnector name= " amqp " uri= " amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 " />
            <transportConnector name= " stomp " uri= " stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600 " />
            <transportConnector name= " mqtt " uri= " mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600 " />
            <transportConnector name= " ws " uri= " ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600 " />
        </transportConnectors>

for

1
2
3
4
5
6
7
8
<transportConnectors>
           <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
           <transportConnector name="openwire" uri="tcp://127.0.0.1:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
           <transportConnector name="amqp" uri="amqp://127.0.0.1:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
           <transportConnector name="stomp" uri="stomp://127.0.0.1:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
           <transportConnector name="mqtt" uri="mqtt://127.0.0.1:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
           <transportConnector name="ws" uri="ws://127.0.0.1:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
       </transportConnectors>

 

 

Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”

1. Problem

springboot startup error

"D:\Program Files\Java\jdk-11\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx. enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2019.1.2\lib\idea_rt.jar=59473:D:\Program Files \JetBrains\IntelliJ IDEA 2019.1.2\bin" -Dfile.encoding=UTF-8 -classpath D:\workroomMy\demoSpring\out\production\classes;D:\workroomMy\demoSpring\out\production\resources;C:\ Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-web\2.3.0.RELEASE\459a5d406c56770d9616c5b272bae9fbc777a994\spring-boot-starter-web-2.3.0 .RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.mybatis.spring.boot\mybatis-spring-boot-starter\2.1.2\724ae339bf7d1087612c7186133ed9701f103ddd\mybatis-spring-boot-starter-2.1.2.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter- json\2.3.0.RELEASE\dfdd3336ee920e4bc75f4ed726c3894c7821c31b\spring-boot-starter-json-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework. boot\spring-boot-starter-jdbc\2.3.0.RELEASE\ddc9ee3da589998143de4cada9d5e3aa1dc39f83\spring-boot-starter-jdbc-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\ files-2.1\org.springframework.boot\spring-boot-starter\2.3.0.RELEASE\7b65ef478cf4d21ec70432e11055c2c83371b305\spring-boot-starter-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\ modules-2\files-2.1\org.springframework.boot\spring-boot-starter-tomcat\2.3.0.RELEASE\a8038c9ce2beb7bd3c1980ecadd79f65f36d9311\spring-boot-starter-tomcat-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.mybatis.spring.boot\mybatis-spring-boot-autoconfigure\2.1.2\f322930f6a0d07c78481853e6625ffb779bcdeb7\mybatis-spring- boot-autoconfigure-2.1.2.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-autoconfigure\2.3.0.RELEASE\63e909ec18045377f5bcbedbf29f54691dc54ba0\ spring-boot-autoconfigure-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot\2.3.0.RELEASE\ 52fabd810811f5352ebf6a0a7049550f7d4ec1b9\spring-boot-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework.boot\spring-boot-starter-logging\2.3. 0.RELEASE\fe2b3809c5763dd7fe02ab174ebe5ee9ed708fbe\spring-boot-starter-logging-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework\spring-webmvc\5.2.6.RELEASE\fc54ea95c4c96cd0ab5272319905d4da5d632383\spring-webmvc-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework. boot\spring-boot-devtools\2.3.0.RELEASE\e13dced857910467ff468bba0656a3857deda524\spring-boot-devtools-2.3.0.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\ org.springframework\spring-web\5.2.6.RELEASE\8cc2dbd266eb8f02d2df0895c8e887269e8aed88\spring-web-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org. mybatis\mybatis\3.5.4\83853443357d61258d2634758079f355a0db69ee\mybatis-3.5.4.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.mybatis\mybatis-spring\2.0.4\ 3771548c4d9f78789be33bed01f42d6592757fe1\mybatis-spring-2.0.4.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jsr310\2.11.0\168b2d0e11478b9f0a1bfccd62d6b5e8547b1e6f\jackson-datatype-jsr310-2.11.0.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml. jackson.core\jackson-annotations\2.11.0\c626020ae55d19c690d25cb51c1532ba76e5890f\jackson-annotations-2.11.0.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson. datatype\jackson-datatype-jdk8\2.11.0\cca91d6375258fd7ff2a6abb7bf91eef492bd606\jackson-datatype-jdk8-2.11.0.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml. jackson.module\jackson-module-parameter-names\2.11.0\950a1e9a7c1093e7ffd92b216d5a0667f1e39058\jackson-module-parameter-names-2.11.0.jar;C:\Users\admin\.gradle\caches\modules-2\files- 2.1\com.fasterxml.jackson.core\jackson-core\2.11.0\f84302e14648f9f63c0c73951054aeb2ff0b810a\jackson-core-2.11.0.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.11.0\8f5aaf3878b0647ff3a16610af53b1a5c05d9f15\jackson-databind-2.11.0.jar;C:\Users\admin\.gradle\ caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-to-slf4j\2.13.2\7e2845170ed4fdeb87f1fdc9131b743c61645da3\log4j-to-slf4j-2.13.2.jar;C:\Users\admin\. gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.13.2\567ea514dedd8679c429c5b5b39b0d67b6464c3c\log4j-api-2.13.2.jar;C:\Users\admin\.gradle\ caches\modules-2\files-2.1\org.springframework\spring-context\5.2.6.RELEASE\f8f4420f268b054db12bf0dc7128adc09ab39a7\spring-context-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\ modules-2\files-2.1\org.springframework\spring-aop\5.2.6.RELEASE\84fffb7cad5816763683a3f251f942aa9f667a7e\spring-aop-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules- 2\files-2.1\org.springframework\spring-jdbc\5.2.6.RELEASE\43747a50376e662c2d889ce7b3cd5b9204962ff3\spring-jdbc-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\ org.springframework\spring-tx\5.2.6.RELEASE\965726c96c42025eedeec047c2afad884203145a\spring-tx-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org. springframework\spring-beans\5.2.6.RELEASE\d1b4c338e52dac001a48e29a605bb8f73572ad84\spring-beans-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework\ spring-expression\5.2.6.RELEASE\ae0bc9fdf6cf08d885b9aee26c21efa24245d46c\spring-expression-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework\spring- core\5.2.6.RELEASE\5533695a01f5a1163428932abf6c5ba70e837a2d\spring-core-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.springframework\spring-jcl\5.2.6.RELEASE\47b092c5c7a97ad330ae29d84d64e42c63a11b7a\spring-jcl-5.2.6.RELEASE.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.glassfish\ jakarta.el\3.0.3\dab46ee1ee23f7197c13d7c40fce14817c9017df\jakarta.el-3.0.3.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\com.zaxxer\HikariCP\3.4.5\ aa1a2c00aae8e4ba8308e19940711bb9525b103d\HikariCP-3.4.5.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\jakarta.annotation\jakarta.annotation-api\1.3.5\59eb84eecd0d6163332ffkarta065f616\jakarta. api-1.3.5.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-classic\1.2.3\7c4f3c474fb2c041d8028740440937705ebb473a\logback-classic-1.2. 3.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\ch.qos.logback\logback-core\1.2.3\864344400c3d4d92dfeb0a305dc87d953677c03c\logback-core-1.2.3.jar; C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.slf4j\jul-to-slf4j\1.7.30\d58bebff8cbf70ff52b59208586095f467656c30\jul-to-slf4j-1.7.30.jar; C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\1.7.30\b5a4b6d16ab13e34a88fae84c35cd5d68cac922c\slf4j-api-1.7.30.jar;C:\Users\admin \.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.26\a78a8747147d2c5807683e76ec2b633e95c14fe9\snakeyaml-1.26.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\ org.projectlombok\lombok\1.18.12\48e4e5d60309ebd833bc528dcf77668eab3cd72c\lombok-1.18.12.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\tomcat- embed-websocket\9.0.35\62ab2d7d7d029ea728ea8f8d3151ba93882b52ca\tomcat-embed-websocket-9.0.35.jar;C:\Users\admin\.gradle\caches\modules-2\files-2.1\org.apache.tomcat.embed\ tomcat-embed-core\9.0.35\8a99064fce4b152a7dc9bea1798ba828a2cecf0f\tomcat-embed-core-9.0.35.jar com.example.demo.DemoApplication

  . ____ _ __ _ _
 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
(()\___ |'_ |'_| |'_ \/ _` | \ \ \ \
 \\/ ___)| |_)| | | | | || (_| |))))
  '|____| .__|_| |_|_| |_\__, | / / / /
 ==========|_|==============|___/=/_/_/_/
 :: Spring Boot :: (v2.3.0.RELEASE)

2020-05-29 09:42:41.536 INFO 6888 --- [restartedMain] com.example.demo.DemoApplication: Starting DemoApplication on A01 with PID 6888 (D:\workroomMy\demoSpring\out\production\classes started by admin in D:\workroomMy\demoSpring)
2020-05-29 09:42:41.540 INFO 6888 --- [restartedMain] com.example.demo.DemoApplication: No active profile set, falling back to default profiles: default
2020-05-29 09:42:41.592 INFO 6888 --- [restartedMain] .e.DevToolsPropertyDefaultsPostProcessor: Devtools property defaults active! Set'spring.devtools.add-properties' to'false' to disable
2020-05-29 09:42:41.593 INFO 6888 --- [restartedMain] .e.DevToolsPropertyDefaultsPostProcessor: For additional web related logging consider setting the'logging.level.web' property to'DEBUG'
2020-05-29 09:42:42.120 WARN 6888 --- [restartedMain] omsmapper.ClassPathMapperScanner: No MyBatis mapper was found in'[com.example.demo]' package. Please check your configuration.
2020-05-29 09:42:42.453 INFO 6888 --- [restartedMain] osbwembedded.tomcat.TomcatWebServer: Tomcat initialized with port(s): 8080 (http)
2020-05-29 09:42:42.461 INFO 6888 --- [restartedMain] o.apache.catalina.core.StandardService: Starting service [Tomcat]
2020-05-29 09:42:42.461 INFO 6888 --- [restartedMain] org.apache.catalina.core.StandardEngine: Starting Servlet engine: [Apache Tomcat/9.0.35]
2020-05-29 09:42:42.529 INFO 6888 --- [restartedMain] oaccC[Tomcat].[localhost].[/]: Initializing Spring embedded WebApplicationContext
2020-05-29 09:42:42.529 INFO 6888 --- [restartedMain] osweb.context.ContextLoader: Root WebApplicationContext: initialization completed in 936 ms
2020-05-29 09:42:42.665 INFO 6888 --- [restartedMain] ossconcurrent.ThreadPoolTaskExecutor: Initializing ExecutorService'applicationTaskExecutor'
2020-05-29 09:42:42.753 WARN 6888 --- [restartedMain] ConfigServletWebServerApplicationContext: Exception encountered during context initialization-cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource ]: Factory method'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2020-05-29 09:42:42.753 INFO 6888 --- [restartedMain] ossconcurrent.ThreadPoolTaskExecutor: Shutting down ExecutorService'applicationTaskExecutor'
2020-05-29 09:42:42.755 INFO 6888 --- [restartedMain] o.apache.catalina.core.StandardService: Stopping service [Tomcat]
2020-05-29 09:42:42.766 INFO 6888 --- [restartedMain] ConditionEvaluationReportLoggingListener: 

Error starting ApplicationContext. To display the conditions report re-run your application with'debug' enabled.
2020-05-29 09:42:42.769 ERROR 6888 --- [restartedMain] osbdLoggingFailureAnalysisReporter: 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to configure a DataSource:'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

2020-05-29 09:42:42.780 WARN 6888 --- [restartedMain] osboot.SpringApplication: Unable to close ApplicationContext

org.springframework.beans.factory.BeanCreationException: Error creating bean with name'org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:603) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:245) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:197) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:134) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.boot.availability.AvailabilityChangeEvent.publish(AvailabilityChangeEvent.java:81) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
    at org.springframework.boot.availability.AvailabilityChangeEvent.publish(AvailabilityChangeEvent.java:67) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:167) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:978) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:814) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
    at com.example.demo.DemoApplication.main(DemoApplication.java:12) ~[classes/:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
    at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.3.0.RELEASE.jar:2.3.0.RELEASE]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:603) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:91) ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:109) ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:94) ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:76) ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:347) ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:299) ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:431) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    ... 33 common frames omitted
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:814) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1282) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:297) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor.postProcessBeforeInitialization(ConfigurationClassPostProcessor.java:456) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:416) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
    ... 56 common frames omitted


Process finished with exit code 0

 

2. Solution

Authentication see error prompt

Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

 

The error may be due to the lack of configuration database related information. If the project does not need to configure the database, you can add it to the startup class:

(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})

 

 perfect!

Solve the error report of the find command: paths must precede expression

I want to clear some pdf files in the server /tmp directory, about 10,000 files, when I execute the command

find /tmp -maxdepth 1 -mtime 30 -name *.pdf

An error occurred:

find : paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]

Then I checked it on the Internet, and I found an article. It probably said: When searching for multiple files, you need to add single quotation marks. Double quotation marks have always been used. I didn’t expect to use single quotation marks when looking for multiple files. Well, I learned another trick. After modification:
find ./ -mtime +30 -type f -name’*.php’
so that no more errors will be reported after execution, and a small problem will be solved.
Example explanation:
# Enter the tmp directory Create 4 new text files
# cd /tmp
# touch {1,2,3,4}.txt
# find .-name *.txt
find: paths must precede expression: 2.txt

This prompt appears because the asterisk is expanded to For all files in the current directory, such matching will of course be wrong. Look at this to know:
# echo *
1.txt 2.txt 3.txt 4.txt
# echo’*’
*
# echo \*
*

If you want the asterisk not to be expanded, you need to add parentheses or backslashes to escape , Knowing these we will know how to find
# find. -Name’*.txt’
find.
-Name ‘*.txt’ ./4.txt
./2.txt
./3.txt
./1.txt #Or
use backslash to
 find .-name \*.txt
./4.txt
./2.txt
./3.txt
./1.txt

[Solved] Compilation error: dereferencing pointer to incomplete type…

Today my colleague asked me a question. He reported an error when he made “Line 201 : dereferencing pointer to incomplete type”. I immediately checked a lot of information, but I didn’t see why. Finally, the problem was solved, and the principle was understood, so I recorded it.

His question is specifically like this.

1
2
3
4
5
6
#include <netinet/ip_icmp.h>
...
struct icmp* aaa;
    aaa = (struct icmp*)malloc(sizeof(struct icmp)); 行;
    aaa->icmp_type=1;
...

 

Error on line 201 during make: dereferencing pointer to incomplete type.

First of all, let me talk about the meaning of this error. In layman’s terms, I tried to access the variable pointed to by the pointer, but found that the variable was an incomplete type, and more errors occurred in accessing the members of the structure union. It can be seen from the code that the variable pointed to by icmp_type is actually accessed from line 201, and line 200 has not been accessed yet.

So I guessed, is struct icmp not defined? Then I checked the /usr/include/netinet/ip_icmp.h file and found that there is a definition of struct icmp. It’s weird, isn’t it? After writing some demo tests, the final conclusion is that there is really no definition of struct icmp!

It’s even stranger to see this. Why is this conclusion? Looking closely at the /usr/include/netinet/ip_icmp.h file, you will find that the definition of struct icmp is contained in a macro j, as shown below:

1
2
3
4
5
6
7
8
9
...
#ifdef __USE_BSD
...
struct icmp {
...
}
...
#endif /*END OF ifdef __USE_BSD*/
...

 

When you see this, you should understand. When compiling, if -D__USE_BSD is not added to the compile command gcc …, then the definition of struct icmp will not be included, so the previous line 201 error is reported: Dereferencing pointer to incomplete type, and that’s how it led me to start wondering why it is clearly defined, but it is said to be an incomplete type. So in order to verify this conclusion, I wrote a small demo to test, and found that the compiler will pass if -D__USE_BSD is added, otherwise it will fail to compile.

In the process of solving this problem, I wrote a lot of demos, let’s summarize below.

1. If the error “dereferencing pointer to incomplete type ” is reported , first try to find out whether the definition of the structure variable in the line can be found, you can use the grep “struct xxx” /usr/include -R command to recursively search the /usr/include directory If found, you can #include in the .c file. If it is a non-standard header file, add the -I header file directory to the compile command, for example (-I/usr/local/xxx/include).

2. If the error “dereferencing pointer to incomplete type ” is still reported after #include , try to check the file carefully to see if the definition of the structure is wrapped by a compiled macro. If it is indeed in the package of a compiled macro, Add -D compilation macro in the compilation command (such as -D__USE_BSD)

After the above two steps, the error of “dereferencing pointer to incomplete type ” can basically be solved

Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]

problem:

  After restarting the virtual machine, restarting nginx again will report an error: open() “/var/run/nginx/nginx.pid” failed (2: No such file or directory)

Solution:

  (1) Enter the cd /usr/local/nginx/conf/ directory and edit the configuration file nginx.conf;

  (2) There is a comment in the configuration file: #pid logs/nginx.pid;

 (3) Release the comment and modify it to: pid /usr/local/nginx/logs/nginx.pid;

  (4) Create a logs directory under the /usr/local/nginx directory: mkdir /usr/local/nginx/logs

  (5) Start nginx service: /usr/local/nginx/sbin/nginx

[Tomcat Error] SEVERE: Error listenerStart

System version: CentOS 6.6 x64

java version: 1.7.0_55

 

Problem Description:

An error appears in the log after the migration Tomcat project is started, and the content is as follows:

Jan 20, 2018 7:02:50 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jan 20, 2018 7:02:49 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Jan 20, 2018 7:02:49 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8680"]
Jan 20, 2018 7:02:49 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 30535 ms

The key information cannot be obtained from the above content, which only prompts that there is an error but does not indicate the point of failure. At this time, we need to modify the log level to print more information to help us troubleshoot. The method is as follows.

 

solution:

In the classes path of the tomcat project, add the following content to the file logging.properties , if there is no such file, create it directly.

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler  
org.apache.juli.FileHandler.level = FINE  
org.apache.juli.FileHandler.directory = ${catalina.base}/logs  
org.apache.juli.FileHandler.prefix = error-debug.   
java.util.logging.ConsoleHandler.level = FINE  
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

Next restart Tomcat, and then check the log, the problems I encountered are as follows:

Jan 20, 2018 7:07:20 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSourceHbe' defined in file
[/root/svn/busservice/WebContent/WEB-INF/classes/applicationContext_hbe.xml]: Could not resolve placeholder 'hbe.driver' in string value "${hbe.driver}"
    at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
    at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)
    at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:669)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

 

Use the above information to confirm that the problem is on the database connection. After re-modifying the connection information, restart Tomcat, and “SEVERE: Error listenerStart” does not appear again.

[Solved] Eval Error: Uncaught ReferenceError: False is not defined

var obj = {‘id’: 16,’name’:’Administrator’,’delflag’: False,’grade’: 1000000.0}
VM3614:1 Uncaught ReferenceError: False is not defined
at <anonymous>:1:47
( anonymous) @ VM3614:1
var obj
undefined
obj = (‘id’: 16,’name’:’Administrator’,’delflag’: False,’grade’: 1000000.0}
VM3633:1 Uncaught ReferenceError: False is not defined
at <anonymous>:1:43
(anonymous) @ VM3633:1
obj = “{‘id’: 16,’name’:’Administrator’,’delflag’: False,’grade’: 1000000.0}”
“{‘id ‘: 16,’name’:’Administrator’,’delflag’: False,’grade’: 1000000.0}”
alert(obj)
undefined
var oo =eval(“(“+obj+”)”)
VM3699:1 Uncaught ReferenceError: False is not defined
at eval (eval at <anonymous> ((index):1), <anonymous>:1:39)
at <anonymous>:1:9
(anonymous) @ VM3699:1
(anonymous) @ VM3698:1
var oo =eval (obj)
VM3724:1 Uncaught SyntaxError: Unexpected token:
at <anonymous>:1:14
(anonymous) @ VM3723:1
obj
“{‘id’: 16,’name’:’Administrator’,’delflag’: False ,’grade’: 1000000.0}”
typeof obj
“string”
obj ={‘id’: 16,’name’:’Administrator’,’delflag’: False,’grade’: 1000000.0}
VM3755:1 Uncaught ReferenceError: False is not defined
at <anonymous>:1:43
(anonymous) @ VM3755:1
obj = (‘id’: 16,’name’: ‘Administrator’,’grade’: 1000000.0}
{id: 16, name: “Administrator”, grade: 1000000}
alert(obj)
undefined
var test =eval(“(“+obj+”)”)
VM3847:1 Uncaught SyntaxError: Unexpected identifier
at <anonymous>:1:23
(anonymous) @ VM3846:1
var test =eval(“(“+”obj”+ “)”)
undefined
typeof test
“object”
alert(test)
undefined

The reason is: a False variable is stored in the dictionary, js cannot recognize it, SO reports an error,

More importantly, because it is not a regular json format, an error will be reported. The regular key must have double quotation marks. (Even single quotes will not work.)

 

error code:

var res = "[{id:1,name:'liming'},{id:2,name:'xiaobai'}]";
var objRes = JSON.parse(res);
console.log(objRes)

 

Correct code:

var res ='[{"id":1,"name":"liming"},{"id":2,"name":"xiaobai"}]';
var objRes = JSON.parse(res);
console .log(objRes)

 

The use of vue-echarts and compilation error solutions

1. Use vue-cli to quickly build vue projects and introduce vue-echarts components

installation:

   > npm i vue-echarts –save

 

Modify webpack.config.js configuration:

{
  test: /\.js$/,
  loader: 'babel-loader',
  include: [
     resolve('src'),
     resolve ( 'node_modules / vue-echarts' ),
     resolve('node_modules/resize-detector')
   ] 
},

 

Example usage:

<template>
   <v-chart :options="polar"/>
</template>

<script>
import ECharts from 'vue-echarts/components/ECharts'
import 'echarts/lib/chart/line'
import 'echarts/lib/component/polar'

export default {
  components: {
    'v-chart' : ECharts
  },
  data: function () {
    let data = []
 
    for (let i = 0; i <= 360; i++) {
        let t = i / 180 * Math.PI
        let r = Math.sin(2 * t) * Math.cos(2 * t)
        data.push([r, i])
    }
 
    return {
      polar: {
        title: {
          text: 'Polar coordinate dual value axis'
        },
        legend: {
          data: ['line']
        },
        polar: {
          center: ['50%', '54%']
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            type: 'cross'
          }
        },
        angleAxis: {
          type: 'value',
          startAngle: 0
        },
        radiusAxis: {
          min: 0
        },
        series: [
          {
            coordinateSystem: 'polar',
            name: 'line',
            type: 'line',
            showSymbol: false,
            data: data
          }
        ],
        animationDuration: 2000
      }
    }
  }
}
</script>
<style scoped>
    .echarts {
        width: 100%;
        height: 400px;
    }
</style>

 Effect picture:

 

For more usage, please check echarts official document  http://echarts.baidu.com/examples/

2. Matters needing attention

Problem description: When webpack builds the vue project and uses the vue-echarts component, npm run build compiles the production version and reports an error

ERROR in 0.build.js from UglifyJs

Unexpected token: name (raf) [./node_modules/resize-detector/esm/index.js

 

Reason: Because UglifyJs only supports ES5 and vue-echarts may introduce part of ES6, the webpack packaging fails.

Solution: delete the following sentence from webpack.config.js configuration, exclude means that the .js files in the /node_modules/ directory should not be babel-loader, which overwrites the previous sentence include setting

 

Hbase Shell startup error: [ERROR] Terminal initialization failed; falling back to unsupported

After starting hbase, I found that the hbase shell started to report an error:

version 2.0.0-alpha4, r5c4b985f89c99cc8b0f8515a4097c811a0848835, Tue Oct 31 16:00:33 PDT 2017
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
    at jline.TerminalFactory.create(TerminalFactory.java:101)
    at jline.TerminalFactory.get(TerminalFactory.java:159)
    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.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:438)
    at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:360)
    at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:40)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
    at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
    at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
    at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
    at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
    at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:328)
    at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:141)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:145)
    at org.jruby.RubyClass.newInstance(RubyClass.java:994)
    at org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
    at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
    at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
    at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
    at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:339)
    at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
    at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
    at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
    at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:109)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)
    at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)
    at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)
    at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)
    at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
    at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
    at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
    at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
    at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
    at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:144)
    at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:130)
    at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:318)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131)
    at usr.java.hbase_minus_2_dot_0_dot_0_minus_alpha4.bin.hirb.invokeOther148:print_banner(/usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:175)
    at usr.java.hbase_minus_2_dot_0_dot_0_minus_alpha4.bin.hirb.RUBY$script(/usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:175)
    at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
    at org.jruby.ir.Compiler$1.load(Compiler.java:95)
    at org.jruby.Ruby.runScript(Ruby.java:827)
    at org.jruby.Ruby.runNormally(Ruby.java:746)
    at org.jruby.Ruby.runNormally(Ruby.java:764)
    at org.jruby.Ruby.runFromMain(Ruby.java:577)
    at org.jruby.Main.doRunFromMain(Main.java:417)
    at org.jruby.Main.internalRun(Main.java:305)
    at org.jruby.Main.run(Main.java:232)
    at org.jruby.Main.main(Main.java:204)

Took 0.0120 seconds
Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
                     <init> at jline/console/ConsoleReader.java:228
                     <init> at jline/console/ConsoleReader.java:219
                     <init> at jline/console/ConsoleReader.java:207
               initReadline at org/jruby/ext/readline/Readline.java:105
      getHolderWithReadline at org/jruby/ext/readline/Readline.java:143
                 s_readline at org/jruby/ext/readline/Readline.java:169
                       call at org/jruby/ext/readline/Readline$INVOKER$s$s_readline.gen:-1
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:358
                       call at org/jruby/runtime/callsite/CachingCallSite.java:195
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:323
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
            INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
            commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
              yieldSpecific at org/jruby/runtime/IRBlockBody.java:84
              yieldSpecific at org/jruby/runtime/Block.java:134
              yieldSpecific at org/jruby/ir/runtime/IRRuntimeHelpers.java:419
                  interpret at org/jruby/ir/instructions/YieldInstr.java:74
             processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.java:187
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:111
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
                  callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                       call at org/jruby/runtime/callsite/CachingCallSite.java:177
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:332
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
            INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
            commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                       call at org/jruby/runtime/IRBlockBody.java:73
                       call at org/jruby/runtime/Block.java:124
                       call at org/jruby/RubyProc.java:289
                     call19 at org/jruby/RubyProc.java:273
                       call at org/jruby/RubyProc$INVOKER$i$0$0$call19.gen:-1
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:196
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
                       call at org/jruby/runtime/callsite/CachingCallSite.java:163
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:314
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:83
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:179
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:165
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:200
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:338
                       call at org/jruby/runtime/callsite/CachingCallSite.java:163
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:314
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:339
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
            INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
            commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
              yieldSpecific at org/jruby/runtime/IRBlockBody.java:84
              yieldSpecific at org/jruby/runtime/Block.java:134
                       loop at org/jruby/RubyKernel.java:1298
                       call at org/jruby/RubyKernel$INVOKER$s$0$0$loop.gen:-1
                       call at org/jruby/internal/runtime/methods/JavaMethod.java:498
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:298
                  callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
                       call at org/jruby/runtime/callsite/CachingCallSite.java:83
                  interpret at org/jruby/ir/instructions/CallBase.java:428
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:355
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
            INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:132
            commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:148
                    doYield at org/jruby/runtime/IRBlockBody.java:186
                      yield at org/jruby/runtime/BlockBody.java:116
                      yield at org/jruby/runtime/Block.java:165
                      enter at org/jruby/RubyContinuation.java:107
            rbCatch19Common at org/jruby/RubyKernel.java:1127
                  rbCatch19 at org/jruby/RubyKernel.java:1120
                       call at org/jruby/RubyKernel$INVOKER$s$rbCatch19.gen:-1
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
                  callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                       call at org/jruby/runtime/callsite/CachingCallSite.java:177
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:332
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:109
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:95
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:298
                  callBlock at org/jruby/runtime/callsite/CachingCallSite.java:79
                       call at org/jruby/runtime/callsite/CachingCallSite.java:83
                  interpret at org/jruby/ir/instructions/CallBase.java:428
                processCall at org/jruby/ir/interpreter/InterpreterEngine.java:355
                  interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:73
                  interpret at org/jruby/ir/interpreter/InterpreterEngine.java:77
           INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:144
                       call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:130
                       call at org/jruby/internal/runtime/methods/DynamicMethod.java:192
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
  invokeOther153:eval_input at usr/java/hbase_minus_2_dot_0_dot_0_minus_alpha4/bin//usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:199
             block in start at /usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:199
                yieldDirect at org/jruby/runtime/CompiledIRBlockBody.java:156
                      yield at org/jruby/runtime/BlockBody.java:114
                      yield at org/jruby/runtime/Block.java:165
                      enter at org/jruby/RubyContinuation.java:107
            rbCatch19Common at org/jruby/RubyKernel.java:1127
                  rbCatch19 at org/jruby/RubyKernel.java:1120
                       call at org/jruby/RubyKernel$INVOKER$s$rbCatch19.gen:-1
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:348
                  callBlock at org/jruby/runtime/callsite/CachingCallSite.java:173
                       call at org/jruby/runtime/callsite/CachingCallSite.java:177
       invokeOther195:catch at usr/java/hbase_minus_2_dot_0_dot_0_minus_alpha4/bin//usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:198
                      start at /usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:198
                       call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:77
                       call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:152
               cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:318
                       call at org/jruby/runtime/callsite/CachingCallSite.java:131
       invokeOther198:start at usr/java/hbase_minus_2_dot_0_dot_0_minus_alpha4/bin//usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:204
                     <main> at /usr/java/hbase-2.0.0-alpha4/bin/hirb.rb:204
        invokeWithArguments at java/lang/invoke/MethodHandle.java:627
                       load at org/jruby/ir/Compiler.java:95
                  runScript at org/jruby/Ruby.java:827
                runNormally at org/jruby/Ruby.java:746
                runNormally at org/jruby/Ruby.java:764
                runFromMain at org/jruby/Ruby.java:577
              doRunFromMain at org/jruby/Main.java:417
                internalRun at org/jruby/Main.java:305
                        run at org/jruby/Main.java:232
                       main at org/jruby/Main.java:204

Reason: /usr/java/hadoop-2.6.5/share/hadoop/yarn/lib/jline-0.9.94.jar version is lower

Solution: 

rm -rf  /usr/java/hadoop-2.6.5/share/hadoop/yarn/lib/jline-0.9.94.jar

cp /usr/java/apache-hive-2.1.1-bin/lib/jline-2.12.jar /usr/java/hadoop-2.6.5/share/hadoop/yarn/lib/