k8s statuefulset内的Headless service找不到域名 10C

在做基于k8s的有状态集群部署zookeeper,然后后台文件系统选用的clusterfs,
部署完之后发现zk启动失败,hosts文件中只有自己docker节点的域名,然后报错是无法解析其余两台zk主机的域名

2018-04-02 11:31:07,916 [myid:] - WARN [main:QuorumPeer$QuorumServer@173] - Failed to resolve address: zk-2.zk-hs.default.svc.cluster.local.
java.net.UnknownHostException: zk-2.zk-hs.default.svc.cluster.local.: Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)

server.1=zk-0.zk-hs.default.svc.cluster.local.:2888:3888
server.2=zk-1.zk-hs.default.svc.cluster.local.:2888:3888
server.3=zk-2.zk-hs.default.svc.cluster.local.:2888:3888

net

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求问!最近使用selenium+chrome的headless用于网页截图,但在加载坐标图的时候数字出现了位移,然后原因是浏览器是中文繁体的原因,但是无法修改浏览器字体为中文简体
求问!最近使用selenium+chrome的headless用于网页截图,但在加载坐标图的时候数字出现了位移,然后原因是浏览器是中文繁体的原因,改成中文简体就正常了,但是使用chrome的headless后台启动谷歌浏览器时它就是默认繁体,没有办法改过来, ``` ChromeOptions chromeOptions=new ChromeOptions(); chromeOptions.addArguments("--lang=" + "zh-cmn-hans"); chromeOptions.setHeadless(true); System.setProperty("webdriver.chrome.driver", "F:\\selenium\\drive\\chromedriver.exe"); WebDriver driver = new ChromeDriver(chromeOptions); ``` 想知道有没有其他方法可以在后台设置谷歌浏览器为中文简体的!!急!!谢谢各位了
selenium+headless chrome实现爬虫并根据url进行长网页快照截屏(Java)
如标题用selenium+headless chrome进行了网页爬取,然后讲爬取的网页进行快照截图,实现的都是当前页截图,怎么是实现将整个网页都截取下来,也可以不用headless chrome谷歌ie浏览器的都可以
Selenium+Chromedriver headless 无法下载文件怎么办?
如果不用 headless 则可以下载,使用 headless 则不行,有什么办法解决这个问题? 版本都是目前最新的:Selenium:3.141 Chromedriver:2.45 Chrome: 71.0.3578.80 配置如下: ``` chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--headless') chrome_options.add_argument("--disable-gpu") prefs = {'profile.default_content_settings.popups': 0, 'download.default_directory': 'E:/File/'} chrome_options.add_experimental_option('prefs', prefs) browser = webdriver.Chrome(executable_path='./chromedriver.exe', chrome_options=chrome_options) ```
关于selenium/standalone-chrome的启动报错Unable to determine type from: <. Last 1 characters read: <
### 1. java的报错信息 ```html Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to parse remote response: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="/assets/displayhelpservlet.css" media="all"/> <link href="/assets/favicon.ico" rel="icon" type="image/x-icon" /> <script src="/assets/jquery-3.1.1.min.js" type="text/javascript"></script> <script src="/assets/displayhelpservlet.js" type="text/javascript"></script> <script type="text/javascript"> var json = Object.freeze('{"consoleLink": "\u002fwd\u002fhub","type": "Standalone","class": "org.openqa.grid.web.servlet.DisplayHelpHandler$DisplayHelpServletConfig","version": "3.141.59"}'); </script> </head> <body> <div id="content"> <div id="help-heading"> <h1><span id="logo"></span></h1> <h2>Selenium <span class="se-type"></span>&nbsp;v.<span class="se-version"></span></h2> </div> <div id="content-body"> <p> Whoops! The URL specified routes to this help page. </p> <p> For more information about Selenium <span class="se-type"></span> please see the <a class="se-docs">docs</a> and/or visit the <a class="se-wiki">wiki</a>. <span id="console-item"> Or perhaps you are looking for the Selenium <span class="se-type"></span> <a class="se-console">console</a>. </span> </p> <p> Happy Testing! </p> </div> <div> <footer id="help-footer"> Selenium is made possible through the efforts of our open source community, contributions from these <a href="https://github.com/SeleniumHQ/selenium/blob/master/AUTHORS">people</a>, and our <a href="http://www.seleniumhq.org/sponsors/">sponsors</a>. </footer> </div> </div> </body> </html> at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144) at org.zhangmeng.zhi_hui_tree.ZhiHuiTreeApplication.main(ZhiHuiTreeApplication.java:21) Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: <. Last 1 characters read: < Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'zhangmengdeMacBook-Pro.local', ip: '127.0.0.1', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.2', java.version: '1.8.0_221' Driver info: driver.version: RemoteWebDriver at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122) at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140) at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126) at org.openqa.selenium.json.Json.toType(Json.java:69) at org.openqa.selenium.json.Json.toType(Json.java:55) at org.openqa.selenium.json.Json.toType(Json.java:50) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112) ... 7 more ``` ### 2. 运行环境 这个selenium/standalone-chrome我是拉的这个(镜像)[https://github.com/SeleniumHQ/docker-selenium] 然后就是启动镜像 ``` docker run -d -p 4444:4444 --shm-size=2g --name selenium selenium/standalone-chrome ``` 我的java代码是这样的 ```java SpringApplication.run(ZhiHuiTreeApplication.class, args); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("headless", "no-sandbox", "window-size=1200x800"); WebDriver webDriver = new RemoteWebDriver(new URL("http://127.0.0.1:4445"), chromeOptions); webDriver.get("https://www.baidu.com/"); Thread.sleep(2000); WebElement element = webDriver.findElement(By.xpath("//*[@id=\"tsf\"]/div[2]/div[1]/div[3]/center/input[1]")); System.out.println(element.getText()); webDriver.quit(); ``` 我的maven信息 ```java <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.59</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-chrome-driver</artifactId> <version>3.141.59</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-server</artifactId> <version>3.141.59</version> </dependency> ``` ### 3. 忙活半天了,不知道怎么解决,求懂的大神帮忙看看,感谢
zabbix 利用JMX 监控Java应用报错,如何配置Java应用
要在Linux Server上监控一款Java service,service原本的配置如下: ## -*- shell-script -*- ###################################################### ## ## ## JBoss Bootstrap Script Configuration ## ## ## ############################################################################## if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman" fi if [ "x$JAVA_OPTS" = "x" ]; then JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true" JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true" else echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS" fi JAVA_OPTS="$JAVA_OPTS -server" JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=256m" JAVA_OPTS="$JAVA_OPTS -XX:+UseParallelGC" JAVA_OPTS="$JAVA_OPTS -XX:ParallelGCThreads=8" JAVA_OPTS="$JAVA_OPTS -XX:-CreateMinidumpOnCrash" JAVA_OPTS="$JAVA_OPTS -Dprogram.name=standalone.bat" JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.resolver.warning=true" JAVA_OPTS="$JAVA_OPTS -Dsun.rmi.dgc.client.gcInterval=3600000" JAVA_OPTS="$JAVA_OPTS -Dsun.rmi.dgc.server.gcInterval=3600000" JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=org.jboss.byteman" JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true" JAVA_OPTS="$JAVA_OPTS -Dorg.tanukisoftware.wrapper.WrapperManager.mbean=false" JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone.xml" JAVA_OPTS="$JAVA_OPTS -Dlogging.configuration=file:$JBOSS_HOME/standalone/configuration/logging.properties" JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.boot.log.file=$JBOSS_HOME/standalone/log/boo JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager" JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImp" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true" 在这个配置的情况下service是可以正常运行的: ![图片说明](https://img-ask.csdn.net/upload/201911/29/1575016122_267386.jpg) 为了要利用Zabbix Java Gateway,我在配置最后面添加了如下: JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false" JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=10.10.93.17" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=17777" 添加后重启service就报错启动不起来了 ![图片说明](https://img-ask.csdn.net/upload/201911/29/1575016261_813037.jpg) 请教各位高手,大神帮忙指点一下,是哪里配置错了吗?还是需要怎么做?
ubuntu运行openoffice 监听不到?
为什么在ubuntu中运行了 “soffice --accept="socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" --norestore --nofirststartwizard --nologo --headless &”后,在ps进程中有soffice,但却在netstat -a中看不到8100端口,用jodconverter也提示连接不到这个openoffice服务。
spring boot 项目用winsw组件注册成windows服务的时候,访问接口 swing组件不显示的问题?
因为公司项目需要在windows下通过restful接口去调用本地设备,需要调用摄像头,我用opencv的方法去调用摄像头,用swing 组件去显示摄像头拍摄的视频,并通过按钮去去拍照,但是发现在idea中,用psotman去测试的时候项目完美运行,但是把项目打包成jar包,用winsw工具注册成windows服务,用psotman去调用的时候,就发生了异常,无法调用,显示一个java.awt.HeadlessException异常,按照官网的方式 new SpringApplicationBuilder(DemoSwingApplication.class) .headless(false).web(WebApplicationType.NONE) .run(args); 引入以后,发现摄像头灯亮了,但是swing那个界面一直未出现,当把那个headless(false)改为headless(true)时我的服务就直接挂掉了。 win10 64位 环境:jdk 1.8 工具:idea2019.2.2 opencv:4.1 spring boot:2.1.6 注册服务工具:winsw :2.2
elasticsearch容器无法访问
搭建springcloud的基础运行环境,elasticsearch容器访问不到,端口已经进行过影射了。 elasticsearch6.2版本在 虚拟机Ubuntu16.04 上的 Docker容器 docker内环境为CentOS7 虚拟机内存8G,el给了2G,ip也对,求救help!!!!! 下面出测试: ``` Ubuntu内测试 curl 192.168.9.131:9200 curl: (7) Failed to connect to 192.168.9.131 port 9200: 拒绝连接 虚拟机防火墙状态: root@SpringEnv:/home/mfz# systemctl status firewalld.service ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: inactive (dead) since 一 2019-11-11 21:27:25 CST; 57min ago Process: 866 ExecStart=/usr/sbin/firewalld --nofork --nopid (code=exited, status=0/SUCCESS) Main PID: 866 (code=exited, status=0/SUCCESS) ``` 在宿主机测试 ``` C:\Users\54185>telnet 192.168.9.131:9200 正在连接192.168.9.131:9200...无法打开到主机的连接。 在端口 23: 连接失败 ``` 容器在运行 ![图片说明](https://img-ask.csdn.net/upload/201911/11/1573482500_464628.png) 以下为配置文件: jvm.options ``` ## JVM configuration ################################################################ ## IMPORTANT: JVM heap size ################################################################ ## ## You should always set the min and max JVM heap ## size to the same value. For example, to set ## the heap to 4 GB, set: ## ## -Xms4g ## -Xmx4g ## ## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html ## for more information ## ################################################################ # Xms represents the initial size of total heap space # Xmx represents the maximum size of total heap space -Xms2g -Xmx2g ################################################################ ## Expert settings ################################################################ ## ## All settings below this section are considered ## expert settings. Don't tamper with them unless ## you understand what you are doing ## ################################################################ ## GC configuration -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly ## optimizations # pre-touch memory pages used by the JVM during initialization -XX:+AlwaysPreTouch ## basic # explicitly set the stack size -Xss1m # set to headless, just in case -Djava.awt.headless=true # ensure UTF-8 encoding by default (e.g. filenames) -Dfile.encoding=UTF-8 # use our provided JNA always versus the system one -Djna.nosys=true # turn off a JDK optimization that throws away stack traces for common # exceptions because stack traces are important for debugging -XX:-OmitStackTraceInFastThrow # flags to configure Netty -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 # log4j 2 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=${ES_TMPDIR} ## heap dumps # generate a heap dump when an allocation from the Java heap fails # heap dumps are created in the working directory of the JVM -XX:+HeapDumpOnOutOfMemoryError # specify an alternative path for heap dumps # ensure the directory exists and has sufficient space #-XX:HeapDumpPath=/heap/dump/path ## JDK 8 GC logging 8:-XX:+PrintGCDetails 8:-XX:+PrintGCDateStamps 8:-XX:+PrintTenuringDistribution 8:-XX:+PrintGCApplicationStoppedTime 8:-Xloggc:logs/gc.log 8:-XX:+UseGCLogFileRotation 8:-XX:NumberOfGCLogFiles=32 8:-XX:GCLogFileSize=64m # JDK 9+ GC logging 9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m # due to internationalization enhancements in JDK 9 Elasticsearch need to set the provider to COMPAT otherwise # time/date parsing will break in an incompatible way for some date patterns and locals 9-:-Djava.locale.providers=COMPAT ``` elasticsearch.yml ``` # ======================== Elasticsearch Configuration ========================= # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to tweak and tune the configuration, make sure you # understand what are you trying to accomplish and the consequences. # # The primary way of configuring a node is via this file. This template lists # the most important settings you may want to configure for a production cluster. # # Please consult the documentation for further information on configuration options: # https://www.elastic.co/guide/en/elasticsearch/reference/index.html # # ---------------------------------- Cluster ----------------------------------- # # Use a descriptive name for your cluster: # cluster.name: elasticsearch-application # # ------------------------------------ Node ------------------------------------ # # Use a descriptive name for the node: # #node.name: node-1 # # Add custom attributes to the node: # #node.attr.rack: r1 # # ----------------------------------- Paths ------------------------------------ # # Path to directory where to store the data (separate multiple locations by comma): # "elasticsearch.yml" 94L, 2864C # Path to log files: # #path.logs: /path/to/logs # # ----------------------------------- Memory ----------------------------------- # # Lock the memory on startup: # #bootstrap.memory_lock: true # # Make sure that the heap size is set to about half the memory available # on the system and that the owner of the process is allowed to use this # limit. # # Elasticsearch performs poorly when the system is swapping the memory. # # ---------------------------------- Network ----------------------------------- # # Set the bind address to a specific IP (IPv4 or IPv6): # # http.port: 9200 network.host: 0.0.0.0 # # Set a custom port for HTTP: # # # For more information, consult the network module documentation. # # --------------------------------- Discovery ---------------------------------- # # Pass an initial list of hosts to perform discovery when new node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # #discovery.zen.ping.unicast.hosts: ["host1", "host2"] # # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1): # #discovery.zen.minimum_master_nodes: # # For more information, consult the zen discovery module documentation. # # ---------------------------------- Gateway ----------------------------------- # # Block initial recovery after a full cluster restart until N nodes are started: # #gateway.recover_after_nodes: 3 # # For more information, consult the gateway module documentation. # # ---------------------------------- Various ----------------------------------- # # Require explicit names when deleting indices: # #action.destructive_requires_name: true ```
vue-cli3.0使用prerender-spa-plugin插件预渲染时 publicpath的配置问题
按照网上搜寻到的办法 配置预渲染 : **vue.config.js**: ``` // 这三项一定要有,因为下面configureWebpack中用到了 const PrerenderSPAPlugin = require('prerender-spa-plugin'); const Renderer = PrerenderSPAPlugin.PuppeteerRenderer; const path = require('path'); module.exports = { // 预渲染关键配置 configureWebpack: () => { if (process.env.NODE_ENV !== 'production') return; return { plugins: [ new PrerenderSPAPlugin({ // 生成文件的路径,也可以与webpakc打包的一致。 // 下面这句话非常重要!!! // 这个目录只能有一级,如果目录层次大于一级,在生成的时候不会有任何错误提示,在预渲染的时候只会卡着不动。 staticDir: path.join(__dirname, 'dist'), // 对应自己的路由文件,如果有参数需要写具体参数,比如/a/:id需要写/a/123456 routes: ['/', '/about'], // 这个很重要,如果没有配置这段,也不会进行预编译 renderer: new Renderer({ inject: { foo: 'bar' }, headless: false, // 在 main.js 中 document.dispatchEvent(new Event('render-event')),两者的事件名称要对应上。 renderAfterDocumentEvent: 'render-event' }) }) ] }; } }; ``` 修改成自己的: 1.添加 ``` publicPath: process.env.NODE_ENV === 'production' ? '/fish/' : '/', outputDir: 'fish', ``` 2.修改: ``` staticDir: path.join(__dirname, 'fish'), ``` 最终修改后**vue.config.js**: ``` // 这三项一定要有,因为下面configureWebpack中用到了 const PrerenderSPAPlugin = require('prerender-spa-plugin'); const Renderer = PrerenderSPAPlugin.PuppeteerRenderer; const path = require('path'); module.exports = { publicPath: process.env.NODE_ENV === 'production' ? '/fish/' : '/', outputDir: 'fish', // 预渲染关键配置 configureWebpack: () => { if (process.env.NODE_ENV !== 'production') return; return { plugins: [ new PrerenderSPAPlugin({ // 生成文件的路径,也可以与webpakc打包的一致。 // 下面这句话非常重要!!! // 这个目录只能有一级,如果目录层次大于一级,在生成的时候不会有任何错误提示,在预渲染的时候只会卡着不动。 staticDir: path.join(__dirname, 'fish'), // 对应自己的路由文件,如果有参数需要写具体参数,比如/a/:id需要写/a/123456 routes: ['/', '/about'], // 这个很重要,如果没有配置这段,也不会进行预编译 renderer: new Renderer({ inject: { foo: 'bar' }, headless: false, // 在 main.js 中 document.dispatchEvent(new Event('render-event')),两者的事件名称要对应上。 renderAfterDocumentEvent: 'render-event' }) }) ] }; } }; ``` 3.问题出现: 配置了publicPath后,进行打包编译时就会一直卡住不动,编译时弹出的浏览器一直白屏 控制台报两行看不懂的错: ![图片说明](https://img-ask.csdn.net/upload/201909/29/1569727333_173612.png) 求教如何正确配置 publicPath
求助如何利用Python +selenium实现长网页截图
个人在网上搜到一个利用Chrome headless 无头浏览器截图的方法,但是截出图片为空 代码如下: from selenium import webdriver from selenium.webdriver.chrome.options import Options import time chrome_options = Options() chrome_options.add_argument('--headless') chrome_options.add_argument('--disable-gpu') browser = webdriver.Chrome(options = chrome_options) browser.get('http://www,baidu.com') time.sleep(3) browser.get_screenshot_as_file(r'C:\Users\Desktop\pictures\12.png') 问题1:为什么以上代码运行后截图是空白的?求助 问题2:想利用Chrome Headless实现长网页的截图,该如何截图? 问题3:或者有其他方法实现长网页截图没,例如网址 https://www.so.com/s?q=%E4%BD%A0 ... 1c671edd7b6158708e6 ,若截取屏幕的话,该网页无法完全截图,想完整截图必须得滚动网页。 谢谢!
sonarqube.bat启动后自动关闭
第一次启动成功后再启动总是自动关闭,查看日志: --> Wrapper Started as Console Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 2019.09.07 11:24:07 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory D:\sonarqube-7.9.1\temp 2019.09.07 11:24:07 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2019.09.07 11:24:07 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [D:\sonarqube-7.9.1\elasticsearch]: C:\Program Files\Java\jdk-12.0.2\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=D:\sonarqube-7.9.1\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=D:\sonarqube-7.9.1\elasticsearch -Des.path.conf=D:\sonarqube-7.9.1\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch 2019.09.07 11:24:07 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. 2019.09.07 11:24:09 INFO app[][o.e.p.PluginsService] no modules loaded 2019.09.07 11:24:09 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2019.09.07 11:24:16 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1 2019.09.07 11:24:16 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped 2019.09.07 11:24:16 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped 2019.09.07 11:24:18 INFO app[][o.e.c.t.TransportClientNodesService] failed to get node info for {#transport#-1}{aLKfR7rmRFeznv4oZK4TVg}{127.0.0.1}{127.0.0.1:9001}, disconnecting... java.lang.IllegalStateException: Future got interrupted at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:60) at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:34) at org.elasticsearch.transport.ConnectionManager.internalOpenConnection(ConnectionManager.java:209) at org.elasticsearch.transport.ConnectionManager.openConnection(ConnectionManager.java:80) at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:367) at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:411) at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:362) at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(TransportClientNodesService.java:201) at org.elasticsearch.client.transport.TransportClient.addTransportAddress(TransportClient.java:342) at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:108) at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89) at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74) at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61) at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:88) at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:73) at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:58) at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:201) at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:258) Caused by: java.lang.InterruptedException: null at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1343) at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:251) at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:94) at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:57) ... 17 common frames omitted 请问是什么原因呢?
sonar 配置mysql 连接报错
sonar 版本 6.7 mysql 版本 8.0 配置:sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false sonar.jdbc.username=easy sonar.jdbc.password=nolove 错误信息:11:30:57.509 [WrapperSimpleAppMain] WARN org.sonar.application.config.JdbcSettings - JDBC URL is recommended to have the property 'useConfigs=maxPerformance' 2018.09.04 11:30:57 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory F:\service\sonarqube-6.7.4\temp 2018.09.04 11:30:57 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2018.09.04 11:30:57 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [F:\service\sonarqube-6.7.4\elasticsearch]: F:\service\jdk1.8\jre\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=F:\service\sonarqube-6.7.4\elasticsearch -cp lib/* org.elasticsearch.bootstrap.Elasticsearch -Epath.conf=F:\service\sonarqube-6.7.4\temp\conf\es 2018.09.04 11:30:57 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running 2018.09.04 11:30:57 INFO app[][o.e.p.PluginsService] no modules loaded 2018.09.04 11:30:57 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2018.09.04 11:31:05 INFO app[][o.s.a.SchedulerImpl] Process[es] is up 2018.09.04 11:31:05 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [F:\service\sonarqube-6.7.4]: F:\service\jdk1.8\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=F:\service\sonarqube-6.7.4\temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*;./lib/server/*;F:\service\sonarqube-6.7.4\lib\jdbc\mysql\mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer F:\service\sonarqube-6.7.4\temp\sq-process1179029085093446759properties Tue Sep 04 11:31:08 AWST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. 2018.09.04 11:31:09 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped 2018.09.04 11:31:09 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped 2018.09.04 11:31:09 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped 2018.09.04 11:31:09 WARN app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0xadc1a015, L:/127.0.0.1:53287 - R:/127.0.0.1:9001]], closing connection java.io.IOException: 远程主机强迫关闭了一个现有的连接。
Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used
一、控制台打印信息 "D:\Program Files\tomcat9.0.20\bin\catalina.bat" run [2019-10-26 08:59:45,240] Artifact Jia01.02:war exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\Administrator\.IntelliJIdea2018.2\system\tomcat\Unnamed_ekp" Using CATALINA_HOME: "D:\Program Files\tomcat9.0.20" Using CATALINA_TMPDIR: "D:\Program Files\tomcat9.0.20\temp" Using JRE_HOME: "D:\Program Files\Java\jdk1.8.0_181" Using CLASSPATH: "D:\Program Files\tomcat9.0.20\bin\bootstrap.jar;D:\Program Files\tomcat9.0.20\bin\tomcat-juli.jar" Connected to the target VM, address: '127.0.0.1:65083', transport: 'socket' 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.20 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.构建: May 3 2019 22:26:00 UTC 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.20.0 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 结.造: amd64 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: D:\Program Files\Java\jdk1.8.0_181\jre 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本: 1.8.0_181-b13 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Administrator\.IntelliJIdea2018.2\system\tomcat\Unnamed_ekp 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\Program Files\tomcat9.0.20 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2018.2\system\tomcat\Unnamed_ekp\conf\logging.properties 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:65083,suspend=y,server=n 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:C:\Users\Administrator\.IntelliJIdea2018.2\system\captureAgent\debugger-agent.jar=file:/C:/Users/Administrator/AppData/Local/Temp/capture11347.props 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms1024m 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx3072m 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:PermSize=256M 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxPermSize=512M 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmn256M 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Duser.timezone=Asia/Shanghai 26-Oct-2019 08:59:46.571 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.net.preferIPv4Stack=true 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms1024m 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx3072m 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:PermSize=256M 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxPermSize=512M 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmn256M 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Duser.timezone=Asia/Shanghai 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.net.preferIPv4Stack=true 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2018.2\system\tomcat\Unnamed_ekp 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\Program Files\tomcat9.0.20 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\Program Files\tomcat9.0.20\temp 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.6.5]. 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 26-Oct-2019 08:59:46.587 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1a 20 Nov 2018] 26-Oct-2019 08:59:46.962 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 26-Oct-2019 08:59:46.993 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["ajp-nio-8009"] 26-Oct-2019 08:59:46.993 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[827]毫秒内初始化 26-Oct-2019 08:59:47.056 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 26-Oct-2019 08:59:47.056 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.20] 26-Oct-2019 08:59:47.071 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 26-Oct-2019 08:59:47.103 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["ajp-nio-8009"] 26-Oct-2019 08:59:47.103 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in [103] milliseconds Connected to server [2019-10-26 08:59:47,353] Artifact Jia01.02:war exploded: Artifact is being deployed, please wait... 26-Oct-2019 08:59:57.450 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [D:\Program Files\tomcat9.0.20\webapps\manager] 26-Oct-2019 08:59:58.502 信息 [Catalina-utility-1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 26-Oct-2019 08:59:58.645 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Program Files\tomcat9.0.20\webapps\manager] has finished in [1,196] ms 26-Oct-2019 09:00:18.849 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 本地网络IP:192.168.58.1,网卡物理地址:00:50:56:c0:00:08 2019-10-26 09:00:20,447 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: com.landray.kmss.framework.plugin.loader.PluginContextLoaderListener.printHwadd(159) 获取本地网卡地址时,出现多个网卡,可能会导致正式版的license失效,建议通过JVM参数“-Djgroups.bind_addr=ip地址”,绑定本机地址 授权给:深圳市蓝凌软件股份有限公司开发演示许可 试用版:2019-11-09 Plugin Context is starting ... WebContentPath:/E:/idea_workSpace/jointsoon/20191025_ekp_v15/out/artifacts/Jia01.02.war 2019-10-26 09:01:13,491 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(133) No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/idea_workSpace/jointsoon/20191025_ekp_v15/out/artifacts/Jia01.02.war/WEB-INF/lib/ehcache-1.5.0.jar!/ehcache-failsafe.xml 2019-10-26 09:01:26,540 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: com.landray.kmss.sys.config.loader.KmssLookupListableBeanFactory.resolveBeanDefinition(151) Overriding bean definition for bean 'lbpmRobotNodeServiceAdapter for using @replace': replacing [bean name: lbpmRobotNodeServiceAdapter; defined in ServletContext resource [/WEB-INF/KmssConfig/sys/lbpmservice/node/robotnode/spring.xml]] with [bean name: @replace(lbpmRobotNodeServiceAdapter); defined in ServletContext resource [/WEB-INF/KmssConfig/sys/workflow/support/oa/spring.xml]] 2019-10-26 09:01:36,793 [INFO] ==== RMI TCP Connection(3)-127.0.0.1: com.alibaba.druid.pool.DruidDataSource.init(722) {dataSource-1} inited 2019-10-26 09:02:13,638 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: com.landray.kmss.sys.restservice.client.cloud.eureka.EkpCloudClientFactoryBean.getObject(78) UnusableRestClient will be created, it will throw RestClientException when invoked at any time. 2019-10-26 09:02:36,036 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: com.landray.kmss.sys.authentication.integration.KmssProcessingFilterProxy.init(126) com.landray.kmss.sys.authentication.integration.KmssAuthenticationProcessingFilter is a GenericFilterBean, cannot execute init with a null value, be sure this situation is accepted. 2019-10-26 09:02:36,233 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.security.web.access.intercept.FilterSecurityInterceptor.afterPropertiesSet(141) Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes() 2019-10-26 09:02:36,713 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(133) No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/idea_workSpace/jointsoon/20191025_ekp_v15/out/artifacts/Jia01.02.war/WEB-INF/lib/ehcache-1.5.0.jar!/ehcache-failsafe.xml 2019-10-26 09:02:36,726 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: net.sf.ehcache.CacheManager.detectAndFixDiskStorePathConflict(322) Creating a new instance of CacheManager using the diskStorePath "D:\Program Files\tomcat9.0.20\temp" which is already used by an existing CacheManager. The source of the configuration was classpath. The diskStore path for this CacheManager will be set to D:\Program Files\tomcat9.0.20\temp\ehcache_auto_created_1572051756726. To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance. 2019-10-26 09:03:02,518 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(133) No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/idea_workSpace/jointsoon/20191025_ekp_v15/out/artifacts/Jia01.02.war/WEB-INF/lib/ehcache-1.5.0.jar!/ehcache-failsafe.xml 2019-10-26 09:03:02,527 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: net.sf.ehcache.CacheManager.detectAndFixDiskStorePathConflict(322) Creating a new instance of CacheManager using the diskStorePath "D:\Program Files\tomcat9.0.20\temp" which is already used by an existing CacheManager. The source of the configuration was classpath. The diskStore path for this CacheManager will be set to D:\Program Files\tomcat9.0.20\temp\ehcache_auto_created_1572051782527. To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance. 2019-10-26 09:03:02,535 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: com.landray.kmss.third.ftsearch.cache.ehcache.EhCacheProvider.buildCache(94) Could not find configuration [indexSchemaCache]; using defaults. 2019-10-26 09:03:03,176 [INFO] ==== RMI TCP Connection(3)-127.0.0.1: net.paoding.analysis.knife.PaodingMaker.getProperties(138) config paoding analysis from: D:\Program Files\tomcat9.0.20\bin\file:\E:\idea_workSpace\jointsoon\20191025_ekp_v15\out\artifacts\Jia01.02.war\WEB-INF\lib\paoding-landray.jar!\paoding-analysis.properties;D:\Program Files\tomcat9.0.20\bin\file:\E:\idea_workSpace\jointsoon\20191025_ekp_v15\out\artifacts\Jia01.02.war\WEB-INF\lib\paoding-landray.jar!\paoding-analysis-default.properties;D:\Program Files\tomcat9.0.20\bin\file:\E:\idea_workSpace\jointsoon\20191025_ekp_v15\out\artifacts\Jia01.02.war\WEB-INF\lib\paoding-landray.jar!\paoding-analyzer.properties;D:\Program Files\tomcat9.0.20\bin\file:\E:\idea_workSpace\jointsoon\20191025_ekp_v15\out\artifacts\Jia01.02.war\WEB-INF\lib\paoding-landray.jar!\paoding-dic-home.properties;E:\idea_workSpace\jointsoon\20191025_ekp_v15\out\artifacts\Jia01.02.war\WEB-INF\dic\paoding-dic-names.properties;D:\Program Files\tomcat9.0.20\bin\file:\E:\idea_workSpace\jointsoon\20191025_ekp_v15\out\artifacts\Jia01.02.war\WEB-INF\lib\paoding-landray.jar!\paoding-knives.properties;D:\Program Files\tomcat9.0.20\bin\file:\E:\idea_workSpace\jointsoon\20191025_ekp_v15\out\artifacts\Jia01.02.war\WEB-INF\lib\paoding-landray.jar!\paoding-knives-user.properties 2019-10-26 09:03:03,185 [INFO] ==== RMI TCP Connection(3)-127.0.0.1: net.paoding.analysis.knife.PaodingMaker.createPaodingWithKnives(456) add knike: net.paoding.analysis.knife.CJKKnife 2019-10-26 09:03:03,190 [INFO] ==== RMI TCP Connection(3)-127.0.0.1: net.paoding.analysis.knife.PaodingMaker.createPaodingWithKnives(456) add knike: net.paoding.analysis.knife.LetterKnife 2019-10-26 09:03:03,193 [INFO] ==== RMI TCP Connection(3)-127.0.0.1: net.paoding.analysis.knife.PaodingMaker.createPaodingWithKnives(456) add knike: net.paoding.analysis.knife.NumberKnife 2019-10-26 09:03:08,969 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,044 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,124 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,312 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,409 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,515 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,615 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,721 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:09,925 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,015 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,104 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,210 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,315 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,399 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,529 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,664 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,753 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:10,956 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,045 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,142 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,252 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,317 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,377 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,451 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,559 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,638 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,724 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,885 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:11,976 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:12,047 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:12,128 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:12,228 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:12,298 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:12,386 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:12,467 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 2019-10-26 09:03:12,542 [WARN] ==== RMI TCP Connection(3)-127.0.0.1: org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodForActualAccess(123) Invalid JavaBean property 'forwards' being accessed! Ambiguous write methods found next to actually used [public abstract void com.landray.kmss.common.actions.IStrutsActionSupport.setForwards(java.util.Map)]: [public final void com.landray.kmss.common.actions.AbstractActionController.setForwards(java.util.Map)] 二、一直在控制台打印这个,非常影响时间,怎么解决?
启动sonar后自动stopping
2017.12.15 10:14:15 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /home/sonar/sonarqube-6.2/temp 2017.12.15 10:14:15 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[es]: /data/android/jdk/jdk1.8.0_151/jre/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/home/sonar/sonarqube-6.2/temp -javaagent:/data/android/jdk/jdk1.8.0_151/jre/lib/management-agent.jar -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /home/sonar/sonarqube-6.2/temp/sq-process5065419232036463929properties 2017.12.15 10:14:23 INFO app[][o.s.p.m.Monitor] Process[es] is up 2017.12.15 10:14:23 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[web]: /data/android/jdk/jdk1.8.0_151/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/home/sonar/sonarqube-6.2/temp -javaagent:/data/android/jdk/jdk1.8.0_151/jre/lib/management-agent.jar -cp ./lib/common/*:./lib/server/*:/home/sonar/sonarqube-6.2/lib/jdbc/mysql/mysql-connector-java-5.1.39.jar org.sonar.server.app.WebServer /home/sonar/sonarqube-6.2/temp/sq-process9006207429545419068properties 2017.12.15 10:14:24 INFO app[][o.s.p.m.Monitor] Process[es] is stopping 2017.12.15 10:14:24 ERROR app[][o.s.p.m.Monitor] Process[web] failed to start 2017.12.15 10:14:24 INFO app[][o.s.p.m.Monitor] Process[es] is stopped <-- Wrapper Stopped
为什么我的selenium爬虫有界面模式可以运行无界面就不可以啊
```# 启动Chromedriver之前,为Chrome开启实验性功能参数excludeSwitches 逃避淘宝通过js代码的反爬机制 option = webdriver.ChromeOptions() # option.add_argument('--headless') # option.add_argument('--disable-gpu') option.add_experimental_option('excludeSwitches', ['enable-automation']) driver =webdriver.Chrome(options=option) def Simulated_login():#模拟登录 driver.get('https://login.taobao.com/member/login.jhtml') time.sleep(3) # driver.maximize_window()#让窗口最大化 driver.implicitly_wait(5) driver.find_element_by_id('J_Quick2Static').click()#点击密码登录,它id属性为J_Quick2Static找到并点击 time.sleep(random.random()) # 随机休眠0-1秒 Input_time(driver.find_element_by_id('TPL_username_1'),'13056199018ph') # 模拟点击输入账号框口,输入淘宝账号 time.sleep(random.random())# 随机休眠0-1秒 Input_time(driver.find_element_by_id('TPL_password_1'),'panhao123') # 模拟点击输入密码框口,输入淘宝密码 time.sleep(random.random())# 随机休眠0-1秒 driver.implicitly_wait(3) if driver.find_element_by_id('nc_1_n1z'):#如果滑块验证出现了,找到它的位置,模拟鼠标滑动 Simulated_slider() else: Get_order() ```
<a href="javascript:void(0);" class="bars">::before ::after</a>怎么选取该标签?
<a href="javascript:void(0);" class="bars">::before ::after</a>怎么选取该标签?因为需要对其进行其他js得操作,需要选取,用.bars和class::before都选取不到 改过的 const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ headless: false, timeout: 30000, }); const page = await browser.newPage(); await page.goto('http://localhost:62114/Account/Login?ReturnUrl=%2F'); //await page.waitFor(500); await page.click("a[data-target='#TenantChangeModal']") await page.waitFor(1000); //await page.waitForSelector("input[name='TenancyName']"); await page.type("input[name='TenancyName']",'Default',{delay:100}) await page.waitFor(500); await page.click('.btn.btn-primary.save-button.waves-effect'); await page.waitFor(2000); await page.type("input[name='usernameOrEmailAddress']",'admin',{delay:100}); await page.waitFor(500); await page.type("input[name='Password']",'123qwe',{delay:100}); const navigationPromise = page.waitForNavigation(); await page.click('#LoginButton'); //然后点击 await page.waitFor(3000); await page.click( css('.bars::after{content:\'test\';font-size:80px;}')); //await page.click("a[class='bars::before']"); //然后点击 })(); var css=function(t,s){ s=document.createElement('style'); s.innerText=t; document.body.appendChild(s); };
sonar首次启动报错,百思不得。
--> Wrapper Started as Daemon Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 2015.12.15 17:22:49 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[search]: /usr/local/jdk1.8/jre/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/usr/local/sonar/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /tmp/sq-process293857443061072123properties 2015.12.15 17:22:49 INFO es[o.s.p.ProcessEntryPoint] Starting search 2015.12.15 17:22:49 INFO es[o.s.s.SearchSettings] Elasticsearch listening on 127.0.0.1:9001 2015.12.15 17:22:49 INFO es[o.elasticsearch.node] [sonar-1450171368610] version[1.7.2], pid[2571], build[e43676b/2015-09-14T09:49:53Z] 2015.12.15 17:22:49 INFO es[o.elasticsearch.node] [sonar-1450171368610] initializing ... 2015.12.15 17:22:49 INFO es[o.e.plugins] [sonar-1450171368610] loaded [], sites [] 2015.12.15 17:22:50 INFO es[o.elasticsearch.env] [sonar-1450171368610] using [1] data paths, mounts [[/ (/dev/sda3)]], net usable_space [111.1gb], net total_space [125.6gb], types [ext4] 2015.12.15 17:22:51 WARN es[o.e.bootstrap] JNA not found. native methods will be disabled. 2015.12.15 17:22:52 INFO es[o.elasticsearch.node] [sonar-1450171368610] initialized 2015.12.15 17:22:52 INFO es[o.elasticsearch.node] [sonar-1450171368610] starting ... 2015.12.15 17:22:52 INFO es[o.e.transport] [sonar-1450171368610] bound_address {inet[/127.0.0.1:9001]}, publish_address {inet[/127.0.0.1:9001]} 2015.12.15 17:22:52 INFO es[o.e.discovery] [sonar-1450171368610] sonarqube/OLzNZ47NQRa0wZYzKc659Q 2015.12.15 17:22:56 INFO es[o.e.cluster.service] [sonar-1450171368610] new_master [sonar-1450171368610][OLzNZ47NQRa0wZYzKc659Q][localhost][inet[/127.0.0.1:9001]]{rack_id=sonar-1450171368610}, reason: zen-disco-join (elected_as_master) 2015.12.15 17:22:56 INFO es[o.elasticsearch.node] [sonar-1450171368610] started 2015.12.15 17:22:56 INFO es[o.e.gateway] [sonar-1450171368610] recovered [1] indices into cluster_state Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0 2015.12.15 17:22:58 INFO app[o.s.p.m.Monitor] Process[search] is up 2015.12.15 17:22:58 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: /usr/local/jdk1.8/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx768m -Xms256m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=/usr/local/sonar/temp -cp ./lib/common/*:./lib/server/*:/usr/local/sonar/lib/jdbc/mysql/mysql-connector-java-5.1.35.jar org.sonar.server.app.WebServer /tmp/sq-process3225582527192006271properties 2015.12.15 17:22:59 INFO web[o.s.p.ProcessEntryPoint] Starting web 2015.12.15 17:22:59 INFO web[o.s.s.app.Webapp] Webapp directory: /usr/local/sonar/web 2015.12.15 17:23:00 INFO web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"] 2015.12.15 17:23:00 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read 2015.12.15 17:23:01 INFO web[o.e.plugins] [sonar-1450171368610] loaded [], sites [] 2015.12.15 17:23:02 INFO web[o.s.s.p.ServerImpl] SonarQube Server / 5.2 / f045be98be3ba032b6b19d71574038eeeb91803b 2015.12.15 17:23:02 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:mysql://192.168.22.220:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance 2015.12.15 17:23:03 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener org.sonar.api.utils.MessageException: Current version is too old. Please upgrade to Long Term Support version firstly. 2015.12.15 17:23:03 INFO web[jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14 [linux-amd64] **2015.12.15 17:23:03 INFO web[jruby.rack] using a shared (threadsafe!) runtime 2015.12.15 17:23:08 ERROR web[jruby.rack] initialization failed org.jruby.rack.RackInitializationException: java.lang.NullPointerException**** at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:31) ~[jruby-rack-1.1.13.2.jar:na] at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98) ~[jruby-rack-1.1.13.2.jar:na] at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50) ~[jruby-rack-1.1.13.2.jar:na] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720) [tomcat-embed-core-8.0.18.jar:8.0.18] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [tomcat-embed-core-8.0.18.jar:8.0.18]
tomcat crash之后日志输出的问题
tomcat 经常宕机,我想在宕机前输出日志,tomcat 的 catalina.sh 配置如下: JAVA_OPTS="-server -Xms3G -Xmx3G -Xmn1G -XX:PermSize=300M -XX:MaxPermSize=300M -Xss256k -XX:+UseParallelOldGC -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/tomcat7/logs/java_heapdump.hprof -Xloggc:gc.log -XX:ErrorFile=/emm/log/server/java_error_emm-web_%p.log" 现在只有 gc 能输出日志, HeapDump 和 ErrorFile 都不能输出日志。 我用的是tomcat7 ,请问一下,是我的配置有什么问题吗?
Kafka实战(三) - Kafka的自我修养与定位
Apache Kafka是消息引擎系统,也是一个分布式流处理平台(Distributed Streaming Platform) Kafka是LinkedIn公司内部孵化的项目。LinkedIn最开始有强烈的数据强实时处理方面的需求,其内部的诸多子系统要执行多种类型的数据处理与分析,主要包括业务系统和应用程序性能监控,以及用户行为数据处理等。 遇到的主要问题: 数据正确性不足 数据的收集主要...
volatile 与 synchronize 详解
Java支持多个线程同时访问一个对象或者对象的成员变量,由于每个线程可以拥有这个变量的拷贝(虽然对象以及成员变量分配的内存是在共享内存中的,但是每个执行的线程还是可以拥有一份拷贝,这样做的目的是加速程序的执行,这是现代多核处理器的一个显著特性),所以程序在执行过程中,一个线程看到的变量并不一定是最新的。 volatile 关键字volatile可以用来修饰字段(成员变量),就是告知程序任何对该变量...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
有哪些让程序员受益终生的建议
从业五年多,辗转两个大厂,出过书,创过业,从技术小白成长为基层管理,联合几个业内大牛回答下这个问题,希望能帮到大家,记得帮我点赞哦。 敲黑板!!!读了这篇文章,你将知道如何才能进大厂,如何实现财务自由,如何在工作中游刃有余,这篇文章很长,但绝对是精品,记得帮我点赞哦!!!! 一腔肺腑之言,能看进去多少,就看你自己了!!! 目录: 在校生篇: 为什么要尽量进大厂? 如何选择语言及方...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
GitHub开源史上最大规模中文知识图谱
近日,一直致力于知识图谱研究的 OwnThink 平台在 Github 上开源了史上最大规模 1.4 亿中文知识图谱,其中数据是以(实体、属性、值),(实体、关系、实体)混合的形式组织,数据格式采用 csv 格式。 到目前为止,OwnThink 项目开放了对话机器人、知识图谱、语义理解、自然语言处理工具。知识图谱融合了两千五百多万的实体,拥有亿级别的实体属性关系,机器人采用了基于知识图谱的语义感...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
微信支付崩溃了,但是更让马化腾和张小龙崩溃的竟然是……
loonggg读完需要3分钟速读仅需1分钟事件还得还原到昨天晚上,10 月 29 日晚上 20:09-21:14 之间,微信支付发生故障,全国微信支付交易无法正常进行。然...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小型人工智障。 知识可以运用在不同地方,不一定非是天气预报。
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
YouTube排名第一的励志英文演讲《Dream(梦想)》
Idon’t know what that dream is that you have, I don't care how disappointing it might have been as you've been working toward that dream,but that dream that you’re holding in your mind, that it’s po...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
相关热词 c# 引用mysql c#动态加载非托管dll c# 两个表数据同步 c# 返回浮点json c# imap 链接状态 c# 漂亮字 c# 上取整 除法 c#substring c#中延时关闭 c#线段拖拉
立即提问