Category Archives: Error

[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>

 

 

[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

[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/

[Solved] Postman Error: Unsupported Media Type

The error message is as follows:

{
 " timestamp " : " 2018-12-06T01:37:11.184+0000 " ,
 " status " : 415 ,
 " error " : " Unsupported Media Type " ,
 " message " : " Content type'text/plain;charset=UTF -8' not supported " ,
 " path " : " /testgu/ycyzharry " 
}

problem causes:

Media Type, which is Internet Media Type, is also called MIME type. In the Http protocol message header, Content-Type is used to indicate the media type information in the specific request.
For example: Content-Type: text/html;charset:utf-8;
Common media format types are as follows:

text/ html: HTML format 
text / plain: plain text format       
text / xml: XML format 
image / gif: gif picture format     
image / jpeg: jpg picture format 
image /png: png picture format

Media format types beginning with application:

application/xhtml+ xml: XHTML format 
application / xml: XML data format 
application /atom+ xml: Atom XML aggregation format     
application / json: JSON data format 
application / pdf: pdf format   
application / msword: Word document format 
application /octet- stream: Binary Streaming data (such as common file downloads) 
application /x-www-form-urlencoded: The default encType in <form encType="”>, the form data is encoded in key/value format and sent to the server (the default submission data of the form Format)

Another common media format is used when uploading files:

multipart/form-data: When you need to upload files in the form, you need to use this format

The above is the content format of the content-type that we often use. The message information in this example indicates that the post request does not support the “text/plain” plain text format type.

Solution: Select the “application/json” JSON data format type to send a Post request, and successfully get the interface return value.

Centos pip install uwsgi error: “fatal error: Python.h: No such file or directory”

Halfway through the writing of the flask project, I was going to try to run it on the server. I thought that app.run() could not be used in the production environment, but Baidu wanted to use Ngix+uwsgi.

In line with the principle of pip all the way, first came a beautiful

1
pip3 install uwsgi

  Unfortunately reported an error

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[gcc -pthread] core/zlib.o
    [gcc -pthread] core/regexp.o
    [gcc -pthread] core/routing.o
    [gcc -pthread] core/yaml.o
    [gcc -pthread] core/ssl.o
    [gcc -pthread] core/legion.o
    [gcc -pthread] core/xmlconf.o
    [gcc -pthread] core/dot_h.o
    [gcc -pthread] core/config_py.o
    *** uWSGI compiling embedded plugins ***
    [gcc -pthread] plugins/python/python_plugin.o
    In file included from plugins/python/python_plugin.c:1:0:
    plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    ----------------------------------------
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dsr9i4nq/uwsgi/setup.py';f=getattr(tokenize, 'open'open)(__file__);code=f.read().replace('\r\n''\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-9835ofpr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-dsr9i4nq/uwsgi/

I can’t find python.h. It must be a dependency problem. A search on the Internet shows that the basic answer is to install python-dev and build-essential. I tried yum and found that the package was not found.

1
2
3
4
5
6
7
8
9
[root@VM_0_13_centos python3]# yum install python-dev
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package python-dev available.
Error: Nothing to do

  Think about yourself as python3, change your posture

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@VM_0_13_centos python3]# yum install python3-dev
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package python3-dev available.
Error: Nothing to do
[root@VM_0_13_centos python3]# yum install python34-dev
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package python34-dev available.
Error: Nothing to do

This is fascinating

 

Solution:

Although the error reports are not consistent, I can’t find <python.h> anyway.

1
yum install python34-devel

After the installation is complete, then pip install uwsgi, a smooth journey.

Windows: Nginx configuration error GetFileAttributesEx

Because there are bright spots on the computer screen, I took it to change the screen, so I used the windows environment and installed the wlmp environment

When configuring Nginx, I found that there is no problem with the configuration, but I can’t access it all the time.

, 2015 / 08 / 24  15 : 03 : 59 [Crit] 4560 # 3796 : * 222 GetFileAttributesEx () " D: \ wwwroot \ hj_app 
ES / CSS / Web / coach_join.css / index.html " failed (123: of The filename, directory name, or volume label syntax is incorrect)

Sister, it depends on the situation that the root directory is incorrect. At first, I always thought it was a rewrite problem. The key is the main domain name I configured.

A The virtual host root configuration is: access to the secondary directory root d:\wwwroot\a is no problem, but the configured resource domain name

The configuration of B virtual host root is: access to the third-level directory root d:\wwwroot\a\bb, and an error is reported.

What the log shows is:

CreateFile() " D:\wwwroot\abb /css/web/coach_join.css " failed (123: The filename CreateFile() "D:\wwwroot\hj_app es/css/web/coach_join.css" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: ares.haojian.dev, request: "GET /css/web/coach_join.css HTTP/1.1", host: "ares.test .dev"

 

Solution:

Is the problem of backslashes

Just change root d:\wwwroot\a\bb to d:/wwwroot/a/bb

How to Solve NPM run dev error: missing script:dev

When running the Vue project today, an error was reported when running npm run dev as shown below:

Open the package.js folder and find that the scripts in the folder have dev as shown below:

,

But I can’t find it. What is the reason? The last time I saw that the path was wrong, when vue init webpack my-project, I created a folder by myself, and I couldn’t get the dev in the corresponding package.js.

cd to the corresponding folder, re-run npm run dev and it will be OK .

And the scripts in package.js do not have dev, in this case 

Enter vue init webpack to download the missing package.json again:

   “dev”: “webpack-dev-server –inline –progress –config build/webpack.dev.conf.js”,
    “start”: “npm run dev”,
    “build”: “node build/build. js”

 Then install dependencies in npm intall, and finally npm run dev

Also suitable for solving start, build loss

SpringCloud: gateway module startup error [How to Solve]

1. Error message

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'routeDefinitionRouteLocator' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'routeDefinitionRouteLocator' parameter 4; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.core.convert.ConversionService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=webFluxConversionService)}
   
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.core.convert.ConversionService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=webFluxConversionService)}
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1662) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1221) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1175) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760) ~[spring-beans-5.1.10.RELEASE.jar:5.1.10.RELEASE]
    ... 19 common frames omitted

2. Reason

At the same time introduce dependencies: spring-cloud-starter-gateway and spring-boot-starter-web

The web module has been referenced in the gateway, so it will cause conflicts. I actually noticed this when I was learning about the gateway, but I still reported an error.

The pom.xml file is as follows

<dependencies>
        <dependency>
            <groupId>com.fdzang.microservice</groupId>
            <artifactId>api-common</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
            <version>${spring.cloud.starter.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
            <version>${spring.cloud.starter.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <version>${spring.boot.version}</version>
            <optional>true</optional>
        </dependency>
    </dependencies>

I did not rely on the web module in my pom, and I still reported an error, so I tried to exclude the web from the gateway, but to no avail.

After various attempts, I found that the web module was referenced in the common module I cited, and the case was solved.

So remove

<dependency>
  <groupId>com.fdzang.microservice</groupId>
  <artifactId>api-common</artifactId>
  <version>1.0-SNAPSHOT</version>
  <exclusions>
    <exclusion>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
    </exclusion>
  </exclusions>
</dependency>

It runs successfully.