Android 7.0中对java.net.Socket做了哪些改动?? 5C

针对android7.0的M3平板使用Socket.getOutPutStream().write()经常性地无法运行 并且还截取不到抛出的异常 经过outPutStream.toString()测试发现 获取到的是形似java.net.SocketOutPutStream@be0653 式样 而在其他设备上获取的却是java.net.PlainSocketImpI$PlainSocketOutPutStream@2a6107a8 造成这两者差异的原因是什么??

2个回答

是程序崩了没异常,还是单纯的没反应。

theskybelongstome
Flamingor 回复wkp111: 是有读取操作 但是同样的代码在低于android7.0的设备上就能正常运行了 我拿了两台M3平板做测试 android6.0的能够正常运行 只有升级到android7.0之后的才会出现这个问题
2 年多之前 回复
qq_38074369
wkp111 回复shinelucifer: 那你代码有输入流读取操作吗?因为读取操作是堵塞线程的,看上去就是没反应
2 年多之前 回复
theskybelongstome
Flamingor 是单纯的没有反应 通过wifi模块接收不到发送的数据 同时抛出的异常为null
2 年多之前 回复

是单纯的没有反应 通过wifi模块接收不到发送的数据 同时抛出的异常为null

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
报错java.net.SocketException: Software caused connection abort: recv failed 怎么办??

<div class="quote_title">写道</div> <div class="quote_div">在利用google搜索抓取结果页面的时候总抛出异常:</div> <div class="quote_div"> <span style="color: #ff0000;">java.net.SocketException: Software caused connection abort: recv failed</span><br> at java.net.SocketInputStream.socketRead0(Native Method)<br> at java.net.SocketInputStream.read(SocketInputStream.java:147)<br> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)<br> at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)<br> at java.io.BufferedInputStream.read(BufferedInputStream.java:317)<br> at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:697)<br> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:640)<br> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:662)<br> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)<br> at AttrExtractor.search(AttrExtractor.java:96)<br> at AttrExtractor.main(AttrExtractor.java:56)</div> <div class="quote_div">错误的地方说是在BufferedReader reader=new BufferedReader(new InputStreamReader(connection.getInputStream())); </div> <div class="quote_div">我是个菜鸟,不知道为什么报错,有没有大牛可以详细告诉我怎么办?!!!<img src="/images/smiles/icon_cry.gif" alt=""> </div> <div class="quote_div"><br></div> <div class="quote_div">url = new URL("http://www.google.com.hk/search?hl=en&amp;q="+ss+"&amp;ie=utf-8&amp;oe=utf-8&amp;start=0"); <br>HttpURLConnection connection=(HttpURLConnection) url.openConnection(); <br>connection.setConnectTimeout(12000); <br>connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"); <br>connection.setRequestProperty("Accept", " images/gif, image/x-xbitmap, image/jpeg ,*/*"); <br>connection.setRequestProperty("Accept-Encoding", "deflate"); <br>connection.setRequestProperty("Accept-Charset", "null"); <br>connection.setRequestProperty("Connection", "Keep-Alive"); <br>connection.setDoInput(true); <br>connection.setInstanceFollowRedirects(false); ///防止Server redirected too many times <br>connection.setRequestMethod("GET"); <br>connection.connect(); <br><br><span style="color: #ff0000;">BufferedReader reader=new BufferedReader(new InputStreamReader(connection.getInputStream())); <br></span>String line=null; <br>String s = ""; <br>StringBuffer sb = new StringBuffer(""); <br>//读取页面内容 <br>while ((s = reader.readLine()) != null) { <br>sb.append(s+"\r\n"); <br>}</div> <p> </p>

TOMCAT启动,报错、、、、、、、、、

## java.net.ConnectException: Connection refused: connect**** at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:476) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:408) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:497) 这个tomcat启动会报连接被拒绝是什么鬼,可是运行还是可以运行。

myeclipse Tomcat 无法停止? 新人求指教!

![图片说明](https://img-ask.csdn.net/upload/201611/07/1478501052_741471.jpg) java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:450) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487)

tomcat运行报错,端口占用,改变无效

启动框错 1.Server Tomcat v7.0 Server at localhost failed to start. tomcat运行报错 2.严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8221"] java.net.BindException: Address already in use: JVM_Bind <null>:8221 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:642) at org.apache.catalina.startup.Catalina.load(Catalina.java:667) 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:497) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400) ... 17 more 二月 10, 2016 11:32:45 上午 org.apache.catalina.core.StandardService initInternal 严重: Failed to initialize connector [Connector[HTTP/1.1-8221]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8221]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:642) at org.apache.catalina.startup.Catalina.load(Catalina.java:667) 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:497) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:980) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8221 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) ... 13 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400) ... 17 more 二月 10, 2016 11:32:45 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8223"] 二月 10, 2016 11:32:45 上午 org.apache.coyote.AbstractProtocol init 严重: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8223"] java.net.BindException: Address already in use: JVM_Bind <null>:8223 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:642) at org.apache.catalina.startup.Catalina.load(Catalina.java:667) 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:497) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400) ... 16 more

redhat7安装libX*失败,删除 redhat-release-server-7.0-1.el7.x86_64后,系统启动后黑屏

我在虚拟机上安装了redhat7,然后用centos7的yum源,在安装yum install libX*的时候报错 ![图片说明](https://img-ask.csdn.net/upload/202003/26/1585207880_288321.png),我从网上找到,说删除冲突包,然后就执行rpm -e redhat-release-server-7.0-1.el7.x86_64 –nodeps。后来再去执行yum install libX*,安装的过程中屏幕黑了,重启系统进入系统也是黑屏。 1.这个怎么解决黑屏的问题 2.图中PackageKit-0.8.9-11.el7.x86_64 has missing requires of PackageKit-backend怎么解决呢

tomcat 7.0,使用ssm,项目运行正常,但是启动过程上卡了100多秒,后面使用正常

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 十一月 16, 2017 4:26:23 下午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:357) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309) at org.springframework.web.context.ContextListener.post(ContextListener.java:59) at org.springframework.web.context.ContextListener.contextInitialized(ContextListener.java:38) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5110) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1700) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1690) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

空web工程启动tomcat为什么报错?求高手解决

严重: StandardServer.await: create[localhost:8005]: java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:422) at org.apache.catalina.startup.Catalina.await(Catalina.java:706) at org.apache.catalina.startup.Catalina.start(Catalina.java:652) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 一个新建的空的Web工程,启动tomcat就报这样的错,我修改了8005,8080,8009的端口,关掉了java相关的进程,甚至重启的电脑都不行,求大神帮忙解决下。

android7.0 apk检查更新出错

一下是错误信息 ``` java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getCanonicalPath()' on a null object reference at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:695) at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:400) at com.zeyi.up.UpdateManager.installApk(UpdateManager.java:309) at com.zeyi.up.UpdateManager.access$700(UpdateManager.java:37) at com.zeyi.up.UpdateManager$6.handleMessage(UpdateManager.java:293) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:160) at android.app.ActivityThread.main(ActivityThread.java:6200) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:874) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:764) ```

Android 7.0以上调用相机报错

Android 7.0以上调用相机报错 android.os.FileUriExposedException: file:///storage/emulated/0/file_image.jpg exposed beyond app through ClipData.Item.getUri()错误 在Application 中加入以下代码为什么就好了 ... 查了以下大家都是这样回复 却不知道为什么 有没有大神知道原理呀 ``` StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); builder.detectFileUriExposure(); ```

tomcat运行报错,改变端口无效

弹框错 1.Server Tomcat v7.0 Server at localhost failed to start. tomcat运行报错 2.严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8221"] java.net.BindException: Address already in use: JVM_Bind <null>:8221 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:642) at org.apache.catalina.startup.Catalina.load(Catalina.java:667) 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:497) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400) ... 17 more 二月 10, 2016 11:32:45 上午 org.apache.catalina.core.StandardService initInternal 严重: Failed to initialize connector [Connector[HTTP/1.1-8221]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8221]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:642) at org.apache.catalina.startup.Catalina.load(Catalina.java:667) 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:497) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:980) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8221 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) ... 13 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400) ... 17 more 二月 10, 2016 11:32:45 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8223"] 二月 10, 2016 11:32:45 上午 org.apache.coyote.AbstractProtocol init 严重: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8223"] java.net.BindException: Address already in use: JVM_Bind <null>:8223 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:642) at org.apache.catalina.startup.Catalina.load(Catalina.java:667) 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:497) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400) ... 16 more

android jni java.lang.UnsatisfiedLinkError

在调用jni时,报java.lang.UnsatisfiedLinkError: No implementation found for void com.eaglive.voip.VoipSdk.init(java.lang.String, int, java.lang.String) (tried Java_com_eaglive_voip_VoipSdk_init and Java_com_eaglive_voip_VoipSdk_init__Ljava_lang_String_2ILjava_lang_String_2) 还有调用了其他的so文件,但是这里出现的错误好像与它们无关,就暂时不贴出来了, 网上说的检查java类包名和jni方法名这个我检查了,没问题,还有使用命令查看了so文件是否加载到目录里,结果如下: ![图片说明](https://img-ask.csdn.net/upload/201709/04/1504532197_671134.png) System.loadLibrary("voip"); 这句也没报异常。跪求大牛帮我看看,还是哪里的问题。拜托,拜托……

webview访问https7.0系统兼容问题dlopen failed

先描述下:我这里是一个弹框,弹框里面是webview, 问题点:自从上了https,解析webview就开始报错了, 报错重点信息如下: Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class android.webkit.WebView Caused by: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.google.android.webview-2/lib/arm/libwebviewchromium.so" is 32-bit instead of 64-bit 在友盟统计里看到的报错信息如下: android.view.InflateException: Binary XML file line #31: Binary XML file line #31: Error inflating class android.webkit.WebView at Android.MODEL(VKY-AL00) at Android.OS.VERSION(7.0) at Android.FINGERPRINT(HUAWEI/VKY-AL00/HWVKY:7.0/HUAWEIVKY-AL00/C00B172:user/release-keys) at Android.WHERE() Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class android.webkit.WebView Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:430) at android.view.LayoutInflater.createView(LayoutInflater.java:656) at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:64) at com.android.internal.policy.HwPhoneLayoutInflater.onCreateView(HwPhoneLayoutInflater.java:107) at android.view.LayoutInflater.onCreateView(LayoutInflater.java:728) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:796) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738) at android.view.LayoutInflater.rInflate(LayoutInflater.java:869) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832) at android.view.LayoutInflater.rInflate(LayoutInflater.java:872) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at com.qwkj.wwlotery.view.dialog.H5PayDialog.init(H5PayDialog.java:106) at com.qwkj.wwlotery.view.dialog.H5PayDialog.<init>(H5PayDialog.java:101) at com.qwkj.wwlotery.asynctask.PublicPayRequest$1.onSuccess(PublicPayRequest.java:45) at com.app.real.util.net.HttpVolley$3.onResponse(HttpVolley.java:159) at comapp.real.util.net.HttpVolley$3.onResponse(HttpVolley.java:143) at com.app.real.util.net.BaseRequest.deliverResponse(BaseRequest.java:39) at com.app.real.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99) at android.os.Handler.handleCallback(Handler.java:761) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6577) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) Caused by: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:204) at android.webkit.WebView.getFactory(WebView.java:2325) at android.webkit.WebView.ensureProviderCreated(WebView.java:2320) at android.webkit.WebView.setOverScrollMode(WebView.java:2379) at android.view.View.<init>(View.java:4020) at android.view.View.<init>(View.java:4137) at android.view.ViewGroup.<init>(ViewGroup.java:578) at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55) at android.webkit.WebView.<init>(WebView.java:627) at android.webkit.WebView.<init>(WebView.java:572) at android.webkit.WebView.<init>(WebView.java:555) at android.webkit.WebView.<init>(WebView.java:542) ... 29 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:430) at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:198) ... 40 more Caused by: java.lang.RuntimeException: Cannot load WebView at com.android.webview.chromium.WebViewChromiumFactoryProvider.initialize(WebViewChromiumFactoryProvider.java:75) at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(WebViewChromiumFactoryProvider.java:31) ... 43 more Caused by: org.chromium.base.library_loader.ProcessInitException at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:71) at org.chromium.base.library_loader.LibraryLoader.loadNowOverrideApplicationContext(LibraryLoader.java:25) at com.android.webview.chromium.WebViewChromiumFactoryProvider.initialize(WebViewChromiumFactoryProvider.java:69) ... 44 more Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.google.android.webview-2/lib/arm/libwebviewchromium.so" is 32-bit instead of 64-bit at java.lang.Runtime.loadLibrary0(Runtime.java:994) at java.lang.System.loadLibrary(System.java:1533) at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:55) ... 46 more xml代码如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <LinearLayout android:id="@+id/h5_pay_top_linear_top" android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="2" android:background="#00000000" android:orientation="vertical"> </LinearLayout> <RelativeLayout android:id="@+id/h5_pay_relative_bottom" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="3" android:background="#ffffff"> <View android:id="@+id/h5_pay_line" android:layout_width="fill_parent" android:layout_height="1px" android:layout_alignParentTop="true" android:background="@color/public_dark_divide_line_bg"/> <WebView android:id="@+id/h5_pay_webview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="300dip" android:layout_below="@id/h5_pay_line" android:background="#ffffff" /> <ImageView android:id="@+id/h5_pay_progressbar" android:layout_width="20dip" android:layout_height="20dip" android:layout_centerInParent="true" android:scaleType="centerInside" android:background="@anim/loading_animation" android:visibility="visible" /> </RelativeLayout> </LinearLayout> 跪求高手帮忙解答,或者指点,感激不尽。

Android Studio 编译项目突然报错 Unsupported manifest version: 7.0.1.7829.

项目以前一直正常,且一直是在Android Studio平台下运行,这几天突然开始报下面这个错, FAILURE: Build failed with an exception. ``` * What went wrong: Execution failed for task ':app:packageDebug'. > Unsupported manifest version: 7.0.1.7829. ``` 网上说Rebuild之后可以解决,但是我Rebuild之后会报下面这个错 ``` * What went wrong: Execution failed for task ':app:clean'. > Unable to delete file: D:\dataFiles\comptition\CSdesign\ZZUPipe\app\build\outputs\apk\debug\app-debug.apk ``` 这个问题我关闭AS后可以手动删除,但下次在编译一次之后再次编译又会重复上面的问题,重启电脑也试过了,也是只能编译一次,求大佬解决一下。

在阿里云上部署java项目后,浏览器访问不了?

在阿里云上部署java项目后,用浏览器访问网页显示如下错误:![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556167_258315.png) 声明: 在网上也查了许多资料: 1,有说是阿里云安全规则配置哪里没设置![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556313_933513.png)![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556324_255015.png)![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556330_9396.png) 可是还是没用 2,然后根据网上说的看下tomcat日志: ``` Using CATALINA_BASE: /usr/java/tomcat7 Using CATALINA_HOME: /usr/java/tomcat7 Using CATALINA_TMPDIR: /usr/java/tomcat7/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/java/tomcat7/bin/bootstrap.jar:/usr/java/tomcat7/bin/tomcat-juli.jar Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server version: Apache Tomcat/7.0.93 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server built: Feb 16 2019 17:13:17 UTC Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server number: 7.0.93.0 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: OS Name: Linux Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: OS Version: 2.6.32-754.11.1.el6.x86_64 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Architecture: amd64 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Java Home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.211.x86_64/jre Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Version: 1.7.0_211-mockbuild_2019_03_11_17_56-b00 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Vendor: Oracle Corporation Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_BASE: /usr/java/tomcat7 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_HOME: /usr/java/tomcat7 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.util.logging.config.file=/usr/java/tomcat7/conf/logging.properties Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dignore.endorsed.dirs= Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.base=/usr/java/tomcat7 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.home=/usr/java/tomcat7 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.io.tmpdir=/usr/java/tomcat7/temp Mar 14, 2019 2:56:23 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"] java.net.BindException: Address already in use (Bind failed) <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 17 more Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardService initInternal SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:980) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.net.BindException: Address already in use (Bind failed) <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) ... 13 more Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 17 more Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"] java.net.BindException: Address already in use (Bind failed) <null>:8009 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 16 more Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardService initInternal SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:980) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.net.BindException: Address already in use (Bind failed) <null>:8009 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) ... 13 more Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 16 more Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1420 ms Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.93 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /usr/java/tomcat7/webapps/survey.war Mar 14, 2019 2:56:23 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile INFO: validateJarFile(/usr/java/tomcat7/webapps/survey/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class Mar 14, 2019 2:56:24 PM org.apache.catalina.deploy.WebXml setVersion WARNING: Unknown version string [3.1]. Default version will be used. Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined Mar 14, 2019 2:56:26 PM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.FileManager) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper) Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardContext startInternal SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/survey] startup failed due to previous errors Mar 14, 2019 2:56:27 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deployment of web application archive /usr/java/tomcat7/webapps/survey.war has finished in 3,963 ms Mar 14, 2019 2:56:27 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 4088 ms Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8005]: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at org.apache.catalina.core.StandardServer.await(StandardServer.java:444) at org.apache.catalina.startup.Catalina.await(Catalina.java:799) at org.apache.catalina.startup.Catalina.start(Catalina.java:745) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428) Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["ajp-bio-8009"] Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["ajp-bio-8009"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["ajp-bio-8009"] ``` 看了下是说tomcat端口占用? 杀掉tomcat后还是没作用 求各位大佬帮个帮忙 谢谢

EMUI5.0 Android7.0中开发遇到内存泄漏

com.zxsd.shoppingguide.activity.AggregationEntryActivity has leaked: GC ROOT static android.gestureboost.GestureBoostManager.sGestureBoostManager references android.gestureboost.GestureBoostManager.mContext leaks com.zxsd.shoppingguide.activity.AggregationEntryActivity instance Retaining: 4.9 KB. Reference Key: def072d8-5909-4709-9365-9a244a488e02 Device: HUAWEI honor FRD-AL10 FRD-AL10 Android Version: 7.0 API: 24 LeakCanary: 1.5 00f37f5 Durations: watch=5011ms, gc=173ms, heap dump=1862ms, analysis=103468ms Details: Class android.gestureboost.GestureBoostManager static sGestureBoostManager = android.gestureboost.GestureBoostManager@3172306 (0x12e88e50) static SWITCH_GESTURE_BOOST = 4 static $classOverhead = byte[652]@318563329 (0x12fce401) static TAG = java.lang.String@1896298 (0x71073638) static GESTURE_BOOST_CODE = 10001 static RMS_EXT_CODE_BASE = 10000 Instance of android.gestureboost.GestureBoostManager static sGestureBoostManager = android.gestureboost.GestureBoostManager@3172306 (0x12e88e50) static SWITCH_GESTURE_BOOST = 4 static $classOverhead = byte[652]@318563329 (0x12fce401) static TAG = java.lang.String@1896298 (0x71073638) static GESTURE_BOOST_CODE = 10001 static RMS_EXT_CODE_BASE = 10000 mAwareService = null mContext = com.zxsd.shoppingguide.activity.AggregationEntryActivity@3151232 (0x12c86600) mGestureBoostflag = false shadow$klass = android.gestureboost.GestureBoostManager shadow$monitor = 0 Instance of com.zxsd.shoppingguide.activity.AggregationEntryActivity static $change = null static $classOverhead = byte[4544]@316317697 (0x12daa001) static serialVersionUID = 0 appBarLayout = android.support.design.widget.AppBarLayout@3208130 (0x131f3800) btnLeft = android.support.v7.widget.AppCompatTextView@3211796 (0x1324d000) btnRight = android.support.v7.widget.AppCompatTextView@3212390 (0x1325b800) btnRightTwo = android.support.v7.widget.AppCompatTextView@3212267 (0x13258800) bundle = android.os.Bundle@3205945 (0x131be280) container = android.widget.FrameLayout@3214438 (0x1328d800) fragment = com.zxsd.shoppingguide.fragment.AggregationEntryFragment@3151228 (0x12c864c0) imgBack = android.support.v7.widget.AppCompatImageButton@3211827 (0x1324dc00) imgMore = android.support.v7.widget.AppCompatImageButton@3212369 (0x1325b000) layoutId = 2130968603 toolbar = android.support.v7.widget.Toolbar@3211560 (0x13247400) toolbarTitle = android.support.v7.widget.AppCompatTextView@3214479 (0x1328e800) mDelegate = android.support.v7.app.AppCompatDelegateImplN@3148888 (0x12c4d280) mEatKeyUpEvent = false mResources = null mThemeId = 2131361857 mCreated = true mFragments = android.support.v4.app.FragmentController@3164159 (0x12dc1fc0) mHandler = android.support.v4.app.FragmentActivity$1@319517120 (0x130b71c0) mNextCandidateRequestIndex = 0 mOptionsMenuInvalidated = false mPendingFragmentActivityResults = android.support.v4.util.SparseArrayCompat@3205947 (0x131be340) mReallyStopped = true mRequestedPermissionsFromFragment = false mResumed = false mRetaining = false mStopped = true mStartedActivityFromFragment = false mStartedIntentSenderFromFragment = false mExtraDataMap = android.support.v4.util.SimpleArrayMap@3204282 (0x131958c8) mActionBar = null mActionModeTypeStarting = 0 mActivityInfo = android.content.pm.ActivityInfo@3148902 (0x12c4d820) mActivityTransitionState = android.app.ActivityTransitionState@3191331 (0x130595b8) mApplication = com.zxsd.shoppingguide.base.App@3146104 (0x12c09308) mCalled = true mChangeCanvasToTranslucent = false mChangingConfigurations = false mComponent = android.content.ComponentName@3162928 (0x12da3f00) mConfigChangeFlags = 0 mCurrentConfig = android.content.res.Configuration@3158405 (0x12d35848) mCustActivity = android.app.HwCustActivityImpl@3204282 (0x131958f8) mDecor = null mDefaultKeyMode = 0 mDefaultKeySsb = null mDestroyed = true mDoReportFullyDrawn = false mEatKeyUpEvent = false mEmbeddedID = null mEnableDefaultActionBarUp = false mEnterTransitionListener = android.app.SharedElementCallback$1@1903589792 (0x717679a0) mExitTransitionListener = android.app.SharedElementCallback$1@1903589792 (0x717679a0) mFinished = true mFragments = android.app.FragmentController@3153430 (0x12cbc0d0) mHandler = android.os.Handler@3195173 (0x130b72c0) mHasCurrentPermissionsRequest = false mIdent = 132658027 mInstanceTracker = android.os.StrictMode$InstanceTracker@315343040 (0x12cbc0c0) mInstrumentation = android.app.Instrumentation@3148126 (0x12c3a8f8) mIntent = android.content.Intent@3168869 (0x12e34fc0) mIsFullFlag = false mLastNonConfigurationInstances = null mMainThread = android.app.ActivityThread@3147206 (0x12c24160) mManagedCursors = java.util.ArrayList@3204284 (0x131959a0) mManagedDialogs = null mMenuInflater = null mParent = null mReferrer = java.lang.String@3168862 (0x12e34cc0) mResultCode = 0 mResultData = null mResumed = false mSearchEvent = null mSearchManager = null mStartedActivity = false mStopped = true mTaskDescription = android.app.ActivityManager$TaskDescription@319517344 (0x130b72a0) mTemporaryPause = false mTitle = java.lang.String@1894097 (0x70e5a400) mTitleColor = 0 mTitleReady = true mToken = android.os.BinderProxy@3197227 (0x130e9500) mTranslucentCallback = null mUiThread = java.lang.Thread@2021072 (0x78771dd0) mVisibleBehind = false mVisibleFromClient = true mVisibleFromServer = true mVoiceInteractor = null mWindow = com.android.internal.policy.HwPhoneWindow@3167633 (0x12e16ce0) mWindowAdded = true mWindowManager = android.view.WindowManagerImpl@3198605 (0x1310af60) mInflater = com.android.internal.policy.HwPhoneLayoutInflater@3170012 (0x12e50e20) mOverrideConfiguration = null mResources = android.content.res.HwResources@3164745 (0x12dd04c0) mTheme = android.content.res.Resources$Theme@316415648 (0x12dc1ea0) mThemeResource = 2131361857 mBase = android.app.ContextImpl@3148388 (0x12c40f20) shadow$klass = com.zxsd.shoppingguide.activity.AggregationEntryActivity shadow$monitor = 1073743756 Excluded Refs: Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always) Thread:FinalizerWatchdogDaemon (always) Thread:main (always) Thread:LeakCanary-Heap-Dump (always) Class:java.lang.ref.WeakReference (always) Class:java.lang.ref.SoftReference (always) Class:java.lang.ref.PhantomReference (always) Class:java.lang.ref.Finalizer (always) Class:java.lang.ref.FinalizerReference (always) ![图片说明](https://img-ask.csdn.net/upload/201702/10/1486711588_136805.png)

android7.0设置MODE_WORLD_READABLE出现异常

android7.0给SharedPreferences设置Context.MODE_WORLD_READABLE或Context.MODE_WORLD_WRITEABLE,会触发SecurityException,这个怎么解决

Android 7.0开机广播的及时性

hi all 目前有个需求是重启机器后,要能马上从关机前的状态恢复。所以监听了 “android.intent.action.BOOT_COMPLETED” 此开机广播,但是此广播一般得在系统展示桌面后7秒钟左右才收到,所以会处理不及时。 后来我又注册了"android.media.AUDIO_BECOMING_NOISY",此广播比开机广播更早发出来,在还没看到锁屏或者桌面时,app已经收到此广播了。所以在Android6.0上能满足这需求,但是在Android7.0上,此media广播就没有发出。这是为什么呢?需要修改framework吗? 或者有没有其他重启后能及时发出的广播呢? 谢谢你。

android 7.0 通知栏设置.setWhen()但是不显示时间

![图片说明](https://img-ask.csdn.net/upload/201703/26/1490513416_328014.png) qq的标题后面带有一个 “.现在” 的时间,虽然我设置了.setWhen(System.currentTimeMillis())但是却不显示。 有哪位遇到过这个问题的,能指点下吗?

IntelliJ中启动tomcat报错

最近在使用IntelliJ这个IDE开发工具,但是配置好了tomcat之后,启动tomcat时报错: [color=red]cmd /c ""C:\Program Files\Java\jdk1.7.0\bin\java" "-Dcatalina.base=C:\Documents and Settings\Administrator\.IntelliJIdea8x\system\tomcat\Unnamed_ajaxfff20552" "-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0" "-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp" -jar "C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar" start" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:299) at java.net.URLClassLoader$1.run(URLClassLoader.java:288) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:287) at java.lang.ClassLoader.loadClass(ClassLoader.java:391) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:331) ... 1 more Exception in thread "main" Disconnected from server[/color] 有哪位遇到过类似的问题,帮忙指点指点啊!

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

Linux面试题(2020最新版)

文章目录Linux 概述什么是LinuxUnix和Linux有什么区别?什么是 Linux 内核?Linux的基本组件是什么?Linux 的体系结构BASH和DOS之间的基本区别是什么?Linux 开机启动过程?Linux系统缺省的运行级别?Linux 使用的进程间通信方式?Linux 有哪些系统日志文件?Linux系统安装多个桌面环境有帮助吗?什么是交换空间?什么是root帐户什么是LILO?什...

Linux命令学习神器!命令看不懂直接给你解释!

大家都知道,Linux 系统有非常多的命令,而且每个命令又有非常多的用法,想要全部记住所有命令的所有用法,恐怕是一件不可能完成的任务。 一般情况下,我们学习一个命令时,要么直接百度去搜索它的用法,要么就直接用 man 命令去查看守冗长的帮助手册。这两个都可以实现我们的目标,但有没有更简便的方式呢? 答案是必须有的!今天给大家推荐一款有趣而实用学习神器 — kmdr,让你解锁 Linux 学习新姿势...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

史上最全的 python 基础知识汇总篇,没有比这再全面的了,建议收藏

网友们有福了,小编终于把基础篇的内容全部涉略了一遍,这是一篇关于基础知识的汇总的文章,请朋友们收下,不用客气,不过文章篇幅肯能会有点长,耐心阅读吧爬虫(七十)多进程multiproces...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

85后蒋凡:28岁实现财务自由、34岁成为阿里万亿电商帝国双掌门,他的人生底层逻辑是什么?...

蒋凡是何许人也? 2017年12月27日,在入职4年时间里,蒋凡开挂般坐上了淘宝总裁位置。 为此,时任阿里CEO张勇在任命书中力赞: 蒋凡加入阿里,始终保持创业者的冲劲,有敏锐的...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

新一代神器STM32CubeMonitor介绍、下载、安装和使用教程

关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang最近ST官网悄悄新上线了一款比较强大的工具:STM32CubeMonitor V1.0.0。经过我研究和使用之...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

大学一路走来,学习互联网全靠这几个网站,最终拿下了一把offer

大佬原来都是这样炼成的

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

什么时候跳槽,为什么离职,你想好了么?

都是出来打工的,多为自己着想

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你期望月薪4万,出门右拐,不送,这几个点,你也就是个初级的水平

先来看几个问题通过注解的方式注入依赖对象,介绍一下你知道的几种方式@Autowired和@Resource有何区别说一下@Autowired查找候选者的...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

立即提问
相关内容推荐