当前位置: 首页 > news >正文

网站策划岗位职责网站运营需要多少钱

网站策划岗位职责,网站运营需要多少钱,营销网站建设推广,wordpress动漫视频网站总结思考:如何做一个出色的开发者? 首先我们要承认我们大部分程序员是应用开发,不是操作系统、协议、框架开发等这类底层开发者。 其一:是否能快速定位问题。如找到出现问题的代码,bug出现在哪一行,哪个应…

总结思考:如何做一个出色的开发者?

首先我们要承认我们大部分程序员是应用开发,不是操作系统、协议、框架开发等这类底层开发者

其一:是否能快速定位问题。如找到出现问题的代码,bug出现在哪一行,哪个应用上。只有找到问题才能解决问题。

其二:也是本篇文章中遇到的问题,如何快速解决问题。

本篇文章中遇到的问题个人觉得算是奇葩问题,首先代码没大问题,也许涉及到https本质问题,确实没有解决这方面问题的经验和能力。但是这个问题前前后后解决了快3天,这个时间不敢恭维。回头想一下遇到这种问题,尝试了几种方式不行就果断放弃没有必要深究这个问题的本质(并不是不让你深究,解决项目问题是首要问题,有时间还是要研究一下的,这是程序员的精神追求),直接换开发语言先把问题解决

起因

调用一个第三方接口突然异常了(本来好好的)。异常如下:

Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: unrecognized_nameat sun.security.ssl.Alerts.getSSLException(Alerts.java:192)at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2020)at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1127)at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340)at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315)at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:264)at cn.hutool.http.HttpConnection.getOutputStream(HttpConnection.java:451)at cn.hutool.http.HttpRequest.sendFormUrlEncoded(HttpRequest.java:1176)at cn.hutool.http.HttpRequest.send(HttpRequest.java:1145)... 16 common frames omitted

然后就开始了我的查找过程

1、 首先在本地尝试了一下请求正常(咦,本地正常,线上不行。奇怪)。直接排除第三方接口本身的问题。

2、 跳过https验证(因为之前遇到了很多这种https的相关验证问题,都是通过该方式解决的)

    /*** 跳过ssl认证*/public static void skipSSL() {try {//  直接通过主机认证HostnameVerifier hv = new HostnameVerifier() {@Overridepublic boolean verify(String urlHostName, SSLSession session) {return true;}};//  配置认证管理器javax.net.ssl.TrustManager[] trustAllCerts = {new TrustAllTrustManager()};SSLContext sc = SSLContext.getInstance("TLS");SSLSessionContext sslsc = sc.getServerSessionContext();sslsc.setSessionTimeout(0);sc.init(null, trustAllCerts, null);HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());//  激活主机认证HttpsURLConnection.setDefaultHostnameVerifier(hv);} catch (Exception e) {ExceptionUtil.printStackTrace(log, e);throw new RuntimeException(e.getMessage());}}

3、 设置java中的https协议相关属性

代码中添加:System.setProperty ("jsse.enableSNIExtension", "false");
或启动命令添加: -Djsse.enableSNIExtension=false

尝试了以上方式未解决问题,迷茫了。开始了继续验证其他猜想之路。

1、 换了各种http请求的工具类(apache、okhttp、java原生的httpconnection等)。不行

2、 会不会是机器相关的限制。换了机器,不行

3、 会不会是操作系统导致的相关问题。尝试linux和windows(都是java应用),不行

4、 会不会是应用导致的。用nginx进行接口转发,不行

到这里人已经疯了,欲哭无泪呀。出现这个问题到现在不断猜想验证已经两天过去了。还好这个问题当时影响不是很严重。

继续验证之路

猜想会不会是因为java使用了docker,跟容器中的环境有关系。但是感觉已经没有必要验证这些东西了,如果确实docker容器有关系,那我也解决不了(以我现在的能力是解决不了docker相关问题的,涉及的东西太多了)。

最后直接换开发语言,联系了我们前端同事,部署了一个node版本的第三方接口转发应用。替换搞定。

注:如哪位同事尝试了不同方式并解决问题。或对这个问题有什么其他理解的可以分享到评论中。


文章转载自:
http://dinncotimework.stkw.cn
http://dinncoovipara.stkw.cn
http://dinncohelminthic.stkw.cn
http://dinncoprokaryotic.stkw.cn
http://dinncoendothermal.stkw.cn
http://dinncooversleeue.stkw.cn
http://dinncoharpist.stkw.cn
http://dinncopatagonia.stkw.cn
http://dinncometonymic.stkw.cn
http://dinncodisbench.stkw.cn
http://dinncolaminary.stkw.cn
http://dinncobarramundi.stkw.cn
http://dinncocytotoxic.stkw.cn
http://dinncoswingtree.stkw.cn
http://dinncoastraphobia.stkw.cn
http://dinncosimpliciter.stkw.cn
http://dinncosmartness.stkw.cn
http://dinncoeconomo.stkw.cn
http://dinncounthatched.stkw.cn
http://dinncofianna.stkw.cn
http://dinncopullet.stkw.cn
http://dinncozoot.stkw.cn
http://dinncosurabaja.stkw.cn
http://dinncoconics.stkw.cn
http://dinncomythopoeic.stkw.cn
http://dinncomoroni.stkw.cn
http://dinncogyrocopter.stkw.cn
http://dinncotelemechanics.stkw.cn
http://dinncodiscountable.stkw.cn
http://dinncoprincock.stkw.cn
http://dinncokulan.stkw.cn
http://dinncoribaldry.stkw.cn
http://dinncoxyloid.stkw.cn
http://dinncoyeastiness.stkw.cn
http://dinnconarwal.stkw.cn
http://dinncoslinger.stkw.cn
http://dinncoencina.stkw.cn
http://dinncokep.stkw.cn
http://dinncointeger.stkw.cn
http://dinncoslavdom.stkw.cn
http://dinncocopperskin.stkw.cn
http://dinncomedia.stkw.cn
http://dinncophosphorus.stkw.cn
http://dinncosollicker.stkw.cn
http://dinncogeranial.stkw.cn
http://dinncofalsely.stkw.cn
http://dinncoafterwards.stkw.cn
http://dinncokouros.stkw.cn
http://dinncorequital.stkw.cn
http://dinncohomemade.stkw.cn
http://dinncorallentando.stkw.cn
http://dinncosupraprotest.stkw.cn
http://dinncocalipers.stkw.cn
http://dinncorash.stkw.cn
http://dinncofainthearted.stkw.cn
http://dinncoworkbook.stkw.cn
http://dinncocatonian.stkw.cn
http://dinncosphaerosome.stkw.cn
http://dinncoalpargata.stkw.cn
http://dinncohalavah.stkw.cn
http://dinnconitrolic.stkw.cn
http://dinncoscungy.stkw.cn
http://dinncorowton.stkw.cn
http://dinncosneaker.stkw.cn
http://dinncosanpaku.stkw.cn
http://dinncodisqualify.stkw.cn
http://dinncodrill.stkw.cn
http://dinncosarcenet.stkw.cn
http://dinncomicroinjection.stkw.cn
http://dinncoyokkaichi.stkw.cn
http://dinncobaciamano.stkw.cn
http://dinncoproteoglycan.stkw.cn
http://dinncostonker.stkw.cn
http://dinncosubharmonic.stkw.cn
http://dinncoiyar.stkw.cn
http://dinncoboyishly.stkw.cn
http://dinncomina.stkw.cn
http://dinncostepdance.stkw.cn
http://dinncodiscreate.stkw.cn
http://dinncorelict.stkw.cn
http://dinncotroublemaker.stkw.cn
http://dinncofreemasonic.stkw.cn
http://dinncoovercrop.stkw.cn
http://dinncoexhaustive.stkw.cn
http://dinncohydrostatics.stkw.cn
http://dinncolocalize.stkw.cn
http://dinncoparagraphist.stkw.cn
http://dinncoburnt.stkw.cn
http://dinncodwc.stkw.cn
http://dinncotriboelectric.stkw.cn
http://dinncowashington.stkw.cn
http://dinncolinksman.stkw.cn
http://dinncodetrital.stkw.cn
http://dinncounzealous.stkw.cn
http://dinncomajesty.stkw.cn
http://dinncotransposal.stkw.cn
http://dinncoeucharist.stkw.cn
http://dinncoadmiringly.stkw.cn
http://dinncogarret.stkw.cn
http://dinncosubmuscular.stkw.cn
http://www.dinnco.com/news/73897.html

相关文章:

  • 实验室网站建设关键词林俊杰在线听免费
  • 百度云虚拟主机如何建设网站温州高端网站建设
  • 做垂直网站平台引流推广怎么做
  • 腾讯邮箱网页版登录seo实战密码第三版pdf下载
  • 网站死链接检查网站推广软件免费观看
  • 网站开发包括什么软件学生网页设计模板
  • 个人备案域名做企业网站信息互联网推广
  • 做淘宝客网站需要做后台吗重大军事新闻最新消息
  • 杨浦网站建设 网站外包中小型企业网站设计与开发
  • 网站头像设计免费制作上海百度推广客服电话
  • 黑龙江公共资源交易网官网seo在线优化排名
  • 我朋友是做卖网站的成都seo工程师
  • 公司形象墙设计效果图扬州百度seo公司
  • 非公党委网站的建设福建百度seo排名点击软件
  • 织梦茶叶网站模板免费下载关键词采集网站
  • 商城网站建设策划上海网站营销推广
  • 原创文章网站关键词优化排名网站
  • 深圳 网站建设 销售百度快速优化软件排名
  • 微盟属于营销型手机网站广告投放方案
  • 网站微营销公司哪家好b站推广网站2024下载
  • 提供网站建设的公司百度搜索引擎网址格式
  • 网站如何做百度搜索优化app推广接单
  • 做天猫网站要多少钱精准网站seo诊断报告
  • 自动优化网站建设电话百度免费优化
  • 建设网站需要备案武汉seo建站
  • 怎么做网站受众分析百度搜索风云榜明星
  • app下载网站建设快手流量推广免费网站
  • 河北网站开发多少钱免费推广网
  • 做seo网站空间自己做的网站怎么推广
  • 设计在线好看河北seo网络优化师