BCB 中调用system("netsh use z: \\BR") 外部命令

borland C++ Builder 中调用外部命令system("netsh use z: \br") 这个双反斜路径要怎么表达啊?

1个回答

路径分割符只有一个斜杠。但是斜杠需要转义,所以在C++里面写就是双斜杠。

pipilu_2004
pipilu_2004 回复caozhy: 谢谢
大约 2 年之前 回复
caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复pipilu_2004: ftp不行,但是网络共享可以,不需要盘符。\\机器名\\共享名\\路径
4 年多之前 回复
pipilu_2004
pipilu_2004 这个z:盘是映射到服务器的, 用netsh的外部命令时是z: \\br的,类似于FTP的\\. 或者换种说法时,调用外部FTP:\\的时候怎么表达?
4 年多之前 回复
pipilu_2004
pipilu_2004 这个z:盘是映射到服务器的, 用netsh的外部命令时是z: \\br的,类似于FTP的\\. 或者换种说法时,调用外部FTP:\\的时候怎么表达?
4 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
是否可以用rsa加密cookie?

框架使用springcloud 渠道 + 注册中心 +服务 因为渠道转发各个服务,要做统一登录验证,方案是在cookie中存token,考虑到cookie可能被篡改的风险。要对cookie加密。 暂定rsa加密,公钥加密用户Id生成token,私钥在后台解密获取用户Id。存在以下问题。 1.方案是否可行(后续有没有坑) 2.rsa是否可以加密cookie (以实现rsa加密解密,cookie存密文时报错) ![图片说明](https://img-ask.csdn.net/upload/201904/19/1555664680_778217.png) cookie 存放 密文时报错 密文长这样 ��v�:T����L��4x� ̺_�K+1��v�uڧ=Rh�-9?J"a�"ūwʔ���᯶�� ��l�D��|�ӱ���\�-�� �bS���K�>��� ��=�

嵌套在MySQL(PHP)中的JSON

<div class="post-text" itemprop="text"> <p>Database table articles holds parent articles and articles variants. Variant articles have empty NAME fields, their PARENTID is related to the parents id. Not every article has variants.</p> <pre><code>parent articles: ID, NAME variant articles: ID, PARENTID, VARIANT </code></pre> <p>How can ι get a JSON like this? Only articles with child articles</p> <pre><code>{ "ID": "dfe17b", "NAME": "this is a very good movie", "variants": [ { "ID": "6bcb7", "VARIANT": "DVD", }, { "ID": "75a9b", "VARIANT": "Blu-ray", }, { "ID": "fe3b3", "VARIANT": "VHS", } ] }, { "ID": "dfe156", "NAME": "this is a pretty nice movie", "variants": [ { "ID": "5j4h7", "VARIANT": "online", }, { "ID": "95c9s", "VARIANT": "Blu-ray", } ] } </code></pre> <p><strong>SQL:</strong></p> <pre><code>SELECT o.ID, o.PARENTID, IFNULL(oa.TITLE, o.TITLE) AS TITLE, o.VARNAME, o.VARSELECT FROM articles o LEFT JOIN articles oa ON oa.ID = o.PARENTID WHERE o.VARNAME IS NOT NULL ORDER BY TITLE ASC </code></pre> <p>gives</p> <pre><code>{ "ID": "dfe17b", "NAME": "this is a very good movie", "VARIANT": "", ... }, { "ID": "6bcb7", "NAME": "this is a very good movie", "VARIANT": "DVD", ... }, { "ID": "75a9b", "NAME": "this is a very good movie", "VARIANT": "Blu-ray", ... }, { "ID": "fe3b3", "NAME": "this is a very good movie", "VARIANT": "VHS", ... }, { "ID": "dfe156", "NAME": "this is a pretty nice movie", "VARIANT": "", ... }, { "ID": "5j4h7", "NAME": "this is a pretty nice movie", "VARIANT": "online", ... }, { "ID": "95c9s", "NAME": "this is a pretty nice movie", "VARIANT": "Blu-ray", ... } </code></pre> </div>

从UPCitemdb API获取PHP中JSON的特定值[重复]

<div class="post-text" itemprop="text"> <div class="question-status question-originals-of-duplicate"> <p>This question already has an answer here:</p> <ul> <li> <a href="/questions/29308898/how-do-i-extract-data-from-json-with-php" dir="ltr">How do I extract data from JSON with PHP?</a> <span class="question-originals-answer-count"> 5 answers </span> </li> </ul> </div> <p>I am trying to only one attribute-value pair called title.</p> <p>This is a sample code from the website and it returns the whole JSON data. How do I get it to just return title and then store it as a string variable in php?</p> <pre><code> &lt;&lt;?php $user_key = 'only_for_dev_or_pro'; $endpoint = 'https://api.upcitemdb.com/prod/trial/lookup'; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_MAXREDIRS, 5); curl_setopt($ch, CURLOPT_HTTPHEADER, array( )); // HTTP GET curl_setopt($ch, CURLOPT_POST, 0); curl_setopt($ch, CURLOPT_URL, $endpoint.'?upc=4002293401102'); $response = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($httpcode != 200) echo "error status $httpcode... "; else echo $response." "; /* if you need to run more queries, do them in the same connection. * use rawurlencode() instead of URLEncode(), if you set search string * as url query param */ sleep(2); // proceed with other queries curl_close($ch); </code></pre> <p>JSON:</p> <blockquote> <p>HTTP/1.1 200 OK Server: openresty/1.9.7.4 Date: Fri, 14 Apr 2017 14:33:27 GMT Content-Type: application/json; charset=utf-8 Content-Length: 2986 Connection: keep-alive X-Powered-By: Express X-RateLimit-Limit: 100 X-RateLimit-Reset: 1492263082 X-RateLimit-Remaining: 87 ETag: W/"baa-nUP5zq4A0eSpWOkpnkUZVg" Vary: Accept-Encoding Access-Control-Allow-Origin: <a href="http://www.upcitemdb.com" rel="nofollow noreferrer">http://www.upcitemdb.com</a> Access-Control-Allow-Methods: GET, POST, OPTIONS Access-Control-Allow-Headers: Content-Type,Accept Access-Control-Expose-Headers: Content-Type,X-RateLimit-Remaining,X-RateLimit-Limit,X-RateLimit-Reset,total,offset {"code":"OK","total":1,"offset":0,"items":[{"ean":"4002293401102","title":"Wusthof Gourmet 3-Inch Serrated Paring Knife","description":"A Wusthof Gourmet stamped knife is great for newer cooks or for use in a second home. These value priced knives are quite sharp. Thanks to their high-carbon stainless steel, their sharp edge is long lasting. Triple riveted handles are extremely durable. Hand wash only. Lifetime warranty from Wusthof with normal use and proper care. Made in Solingen Germany.","brand":"W?sthof","model":"4011-7","color":"Multi","size":"","dimension":"8 X 1X 1 inches","weight":"0.1 Pounds","currency":"","lowest_recorded_price":12.99,"images":["<a href="http://www.chefscatalog.com/img/products/500x500/99528_500.jpg" rel="nofollow noreferrer">http://www.chefscatalog.com/img/products/500x500/99528_500.jpg</a>","<a href="http://img1.r10.io/PIC/84707643/0/1/250/84707643.jpg" rel="nofollow noreferrer">http://img1.r10.io/PIC/84707643/0/1/250/84707643.jpg</a>","<a href="http://c.shld.net/rpx/i/s/pi/mp/33108/2456981411?src=http%3A%2F%2Fwww.chefscatalog.com%2Fimg%2Fproducts%2F1000x1000%2F99528_1000.jpg&amp;d=8ba15ee3bfc8785ae78e62c3c0762bcb86214ed4" rel="nofollow noreferrer">http://c.shld.net/rpx/i/s/pi/mp/33108/2456981411?src=http%3A%2F%2Fwww.chefscatalog.com%2Fimg%2Fproducts%2F1000x1000%2F99528_1000.jpg&amp;d=8ba15ee3bfc8785ae78e62c3c0762bcb86214ed4</a>","<a href="http://images10.newegg.com/ProductImageCompressAll200/A0NV_1_20120523_5340513.jpg" rel="nofollow noreferrer">http://images10.newegg.com/ProductImageCompressAll200/A0NV_1_20120523_5340513.jpg</a>","<a href="http://images.prosperentcdn.com/images/250x250/cdn.metrokitchen.com/images/uploads/wu-4011-zoomed.jpg" rel="nofollow noreferrer">http://images.prosperentcdn.com/images/250x250/cdn.metrokitchen.com/images/uploads/wu-4011-zoomed.jpg</a>"],"offers":[{"merchant":"MetroKitchen","domain":"metrokitchen.com","title":"Wusthof Gourmet 3 inch Serrated Paring Knife","currency":"","list_price":"","price":19.95,"shipping":"","condition":"New","availability":"","link":"<a href="http://www.upcitemdb.com/norob/alink/?id=y2x203y2x26384&amp;tid=1&amp;seq=1492180407&amp;plt=8e28d8273c644252688700da99d3ae40" rel="nofollow noreferrer">http://www.upcitemdb.com/norob/alink/?id=y2x203y2x26384&amp;tid=1&amp;seq=1492180407&amp;plt=8e28d8273c644252688700da99d3ae40</a>","updated_t":1466567204},{"merchant":"Newegg.com","domain":"newegg.com","title":"Wusthof Gourmet - 3\" Serrated Utility Knife","currency":"","list_price":"","price":15.95,"shipping":"5.95","condition":"New","availability":"","link":"<a href="http://www.upcitemdb.com/norob/alink/?id=v2t2z2u2v2x2c4a4&amp;tid=1&amp;seq=1492180407&amp;plt=353d82b7403f611d0a99d3a14c1aeba2" rel="nofollow noreferrer">http://www.upcitemdb.com/norob/alink/?id=v2t2z2u2v2x2c4a4&amp;tid=1&amp;seq=1492180407&amp;plt=353d82b7403f611d0a99d3a14c1aeba2</a>","updated_t":1481154945},{"merchant":"Sears","domain":"sears.com","title":"Wusthof Gourmet 3-in. Serrated Paring Knife","currency":"","list_price":"","price":19.95,"shipping":"","condition":"New","availability":"","link":"<a href="http://www.upcitemdb.com/norob/alink/?id=u2p2631343x2a4d4x2&amp;tid=1&amp;seq=1492180407&amp;plt=47ce957e7b574db04285b40e11ed5816" rel="nofollow noreferrer">http://www.upcitemdb.com/norob/alink/?id=u2p2631343x2a4d4x2&amp;tid=1&amp;seq=1492180407&amp;plt=47ce957e7b574db04285b40e11ed5816</a>","updated_t":1425619323},{"merchant":"Rakuten(Buy.com)","domain":"rakuten.com","title":"Wusthof Gourmet - 3 Serrated Utility Knife","currency":"","list_price":"","price":19.95,"shipping":"8.95","condition":"New","availability":"","link":"<a href="http://www.upcitemdb.com/norob/alink/?id=w2v233w21303c444&amp;tid=1&amp;seq=1492180407&amp;plt=57e9f7ffdcf388e9c3c4e81403c0ddc9" rel="nofollow noreferrer">http://www.upcitemdb.com/norob/alink/?id=w2v233w21303c444&amp;tid=1&amp;seq=1492180407&amp;plt=57e9f7ffdcf388e9c3c4e81403c0ddc9</a>","updated_t":1476903025},{"merchant":"Chefs Catalog","domain":"chefscatalog.com","title":"Wusthof Gourmet 3-in. Serrated Paring Knife - Wusthof Gourmet","currency":"","list_price":26,"price":15.95,"shipping":"Free Shipping","condition":"New","availability":"","link":"<a href="http://www.upcitemdb.com/norob/alink/?id=u2o243z2w203b454s2&amp;tid=1&amp;seq=1492180407&amp;plt=b3a67678a759c8e8d949c4e7b26d0207" rel="nofollow noreferrer">http://www.upcitemdb.com/norob/alink/?id=u2o243z2w203b454s2&amp;tid=1&amp;seq=1492180407&amp;plt=b3a67678a759c8e8d949c4e7b26d0207</a>","updated_t":1448989675}],"asin":"B0000DJYE3","elid":"192088094351"}]}</p> </blockquote> </div>

Aws CloudFront格式错误的政策

<div class="post-text" itemprop="text"> <p>I have been trying to create a signed url for cloud front (that points to my s3 bucket) with limited privileges in php , but I keep getting malformed policy error. </p> <p>I am using : </p> <pre><code>$customPolicy = '{"Id":"Policy1319566876317","Statement":[{"Sid":"Stmt1319566860498","Action":["s3:GetObject"],"Effect":"Allow","Resource":"arn:aws:s3:::my-bucket/*","Principal":{"CanonicalUser":["92cd670939a0460a1b48cbbfedcb5178139bcb315881d9ec3833e497a9e62959762d560feec321a749217754e5d02e5f"]}}]}'; // Create a signed URL for the resource using the canned policy $signedUrlCannedPolicy = $cloudFront-&gt;getSignedUrl([ 'url' =&gt; $streamHostUrl . '/' . $resourceKey, 'private_key' =&gt; base_path().'/'.'mypem file', 'key_pair_id' =&gt; 'myid', 'policy' =&gt; $customPolicy ]); </code></pre> <p>Basically , i want the receiver of this signed url to have only those s3 object privileges that I specify (in the code above, its set to getObject, sometimes it may be put object ,sometimes it may be delete object. How do I achieve that in cloud front ?</p> </div>

在JAVA如何将ASCII码转为utf输出到一个文本文档中?

各位大神,情况是这样的,领导交代我一直在爬网,现在已经爬到了回复处,在各位大神的帮助下,小弟已经找到了回复的源码,不过源码却是ASCII格式的,请问如何将其转换为utf格式,方便存入文本文档中。源码如下: 这是一个回复内容数据: ``` \u975e\u5e38\u4e0d\u9519\u7684\u4e00\u7bc7\u6587\u7ae0\uff0c\u5e72\u8d27\uff0c\u5e72\u8d27\u3002\u628a\u793e\u4ea4\u8fd0\u8425\u8bb2\u7684\u900f\u5f7b\u3002 ``` 这个全部回复JS的相应数据: ``` {"errno":0,"data":{"hasmore":true,"comments":[{"user_name":"Fei52012345","user_pic":"http:\/\/tb.himg.baidu.com\/sys\/portraitn\/item\/e8474665693532303132333435da38","user_type":"0","ts":"1431394929000","id":"507196","text":"\u975e\u5e38\u4e0d\u9519\u7684\u4e00\u7bc7\u6587\u7ae0\uff0c\u5e72\u8d27\uff0c\u5e72\u8d27\u3002\u628a\u793e\u4ea4\u8fd0\u8425\u8bb2\u7684\u900f\u5f7b\u3002","from":"weibo","support_count":"1","vip_intro":"","format_ts":"23\u5206\u949f\u524d"},{"user_name":"\u5584\u826f\u7684\u5e73\u6c11","user_pic":"http:\/\/tb.himg.baidu.com\/sys\/portraitn\/item\/21e0c9c6c1bcb5c4c6bdc3f11228","user_type":"0","ts":"1431394912000","id":"507198","text":"\u6709\u601d\u60f3\uff01\u900f\u8fc7\u73b0\u8c61\u770b\u5230\u672c\u8d28\uff01\u73b0\u5728\u7684\u98ce\u6c14\u5c31\u662f\u592a\u6d6e\u4e86\uff0c\u8ba4\u4e3a\u81ea\u5df1\u53ef\u4ee5\u4f5c\u4efb\u4f55\u4e8b\uff0c\u4efb\u4f55\u90fd\u53ef\u80fd\u6210\u529f\uff0c\u5728\u9047\u5230\u95ee\u9898\u4e4b\u524d\u5c31\u8ba4\u4e3a\u81ea\u5df1\u7684\u60f3\u6cd5\u548c\u4f5c\u6cd5\u662f\u771f\u7406\uff01","from":"weibo","support_count":"0","vip_intro":"","format_ts":"23\u5206\u949f\u524d"}],"ts":"1431327560000"}} ```

C++Builder TValue的问题

环境:XE7 Firemonkey 我给Button做了一个Style,然后想在程序中动态给Style中的属性赋值 这样: btnImage->StylesData["imagestyle"] = TValue::From<String>("Wnd_Close.png"); btnImage->StylesData["backgroundrectanglestyle.Opacity"] = TValue::From<float>(0.6); btnImage->StylesData["backgroundanicolor.StopValue"] = TValue::From<TAlphaColor>(claRed); 但是如果TBitmap的话下面这样就不对了,应该是TValue::From不能使用指针的问题 Button2->StylesData["circlestyle.Fill.Bitmap.Bitmap"] = TValue::From<TBitmap*>(ImageControl1.Bitmap); 但是在Delphi中就是可以的 Button2.StylesData['circlestyle.Fill.Bitmap.Bitmap'] := TValue.From<TBitmap>(ImageControl1.Bitmap); 这个应该如何处理呢?

如何从php中的json文件中提取特定数据以在mysql中提交

<div class="post-text" itemprop="text"> <p>My json file gets inserted into my php file from jquery</p> <p>Then I want to use php to send the json contents to mysql </p> <p>My json file consists of a question answer format/ the name of the question and the answer following it. </p> <p>How can I pick specific data from the file to insert directly. </p> <p>This is my jquery code </p> <pre><code>var surveyJSON = {pages:[{name:"Demographics",elements:[{type:"html",name:"question3",html:"Please answer the following questions about yourself. "},{type:"comment",name:"question4",title:"What is your age?",isRequired:true},{type:"checkbox",name:"Describe your race/ethnicity. Please check all that apply.",title:"Describe your race/ethnicity. Please check all that apply.",valueName:"Describe your race/ethnicity Please check all that apply",isRequired:true,hasOther:true,choices:["Black/African","American White/Caucasian","Asian or Asian American","Hawaiian or Pacific Islander","Native American or Alaskan Native","Hispanic or Latino/a"],choicesOrder:"asc",otherText:"A race not listed here (describe)",colCount:2},{type:"radiogroup",name:"Are you an international student?",title:"Are you an international student?",isRequired:true,choices:["Yes","No"],colCount:2},{type:"radiogroup",name:"What is your sexual orientation?",title:"What is your sexual orientation?",isRequired:true,hasOther:true,choices:["Gay","Lesbian","Bisexual","Heterosexual/Straight"],choicesOrder:"asc",otherText:"A sexual orientation not listed here (describe)",colCount:2},{type:"radiogroup",name:"What year of school are you in?",title:"What year of school are you in?",isRequired:true,choices:["First year undergraduate","Second year undergraduate","Third year undergraduate","Fourth year undergraduate","Fifth or more year undergraduate","Graduate","Professional (e.g. law, medicine, veterinary, dentistry)"],colCount:2},{type:"checkbox",name:"Since you've been a student at ${e://Field/INSTITUTION}, have you been a member or participated in any of the following? Please check all that apply. ",title:"Since you've been a student at ${e://Field/INSTITUTION}, have you been a member or participated in any of the following? Please check all that apply. ",valueName:"Since you've been a student at ${e://Field/INSTITUTION}, have you been a member or participated in any of the following? Please check all that apply",isRequired:true,hasOther:true,choices:["Honor society or professional group related to your major, field of study","Student government","Fraternity or sorority (pledge or member)","Media organization (e.g., newspaper, radio, magazine)","Intercollegiate athletic team","ROTC/Cadet","Intramural or club athletic team","Political or social action group"],otherText:"Other student organization or group",colCount:2},{type:"radiogroup",name:"Which of the following best describes your living situation?",title:"Which of the following best describes your living situation?",isRequired:true,choices:["On-campus residence hall/dormitory","Off-campus housing non-university sponsored","Other on campus housing (apartment, house)","At home with parent(s) or guardian(s)","Fraternity or sorority house","Other off campus","Off-campus university-sponsored apartment/house"],colCount:2}]},{name:"Sexual Harrasment",elements:[{type:"matrix",name:"question8",startWithNewLine:false,title:"Since you enrolled at ${e://Field/INSTITUTION}, have you been in a situation in which a faculty member, instructor or staff member:",isRequired:true,columns:["Never","Once or twice","Sometimes","Often","Many times"],rows:["Treated you “differently” because of your sex?","Displayed, used, or distributed sexist or suggestive materials?","Made offensive sexist remarks?","Put you down or was condescending to you because of your sex?","Repeatedly told sexual stories or jokes that were offensive to you?","Made unwelcome attempts to draw you into a discussion of sexual matters?","Made offensive remarks about your appearance, body, or sexual activities?","Made gestures or used body language of a sexual nature which embarrassed or offended you?","Made unwanted attempts to establish a romantic sexual relationship with you despite your efforts to discourage it?","Touched you in a way that made you feel uncomfortable?","Made unwanted attempts to stroke, fondle, or kiss you?","Made you feel like you were being bribed with a reward to engage in sexual behavior?","Made you feel threatened with some sort of retaliation for not being sexually cooperative?","Treated you badly for refusing to have sex?","Implied better treatment if you were sexually cooperative?"]}],title:"Sexual Harrasment"},{name:"Sexual Harassment Follow Up",elements:[{type:"html",name:"question1",html:"Think about the situations that happened to you that involved the behaviors you marked on the last screen. Now think about the ONE SITUATION that had the greatest effect on you and answer the following questions. "},{type:"checkbox",name:"question9",title:"The situation involved (check all that apply):",isRequired:true,choices:["Sexist or sexually offensive language, gestures or pictures","Unwanted sexual attention","Unwanted touching","Subtle or explicit bribes or threats"]},{type:"radiogroup",name:"question10",title:"Please describe the gender of the person(s) who committed the behavior.",isRequired:true,hasOther:true,choices:["Man","Woman"],otherText:"Other "},{type:"radiogroup",name:"question11",title:"Please describe the status of the person(s) who committed the behavior.",isRequired:true,hasOther:true,choices:["Faculty member","Staff member","Graduate student instructor"],otherText:"Other "},{type:"radiogroup",name:"question12",title:"Did this happen on campus?",isRequired:true,choices:["Yes","No"],otherText:"Other "},{type:"checkbox",name:"question13",title:"Please tell us how you reacted to the situation (check all that apply). ",isRequired:true,choices:["I ignored the person and did nothing.","I avoided the person as much as possible.","I treated it like a joke.","I told the person to stop.","I reported the person.","I asked someone for advice and/or support."],otherText:"Other "}],visibleIf:"{question8.Displayed, used, or distributed sexist or suggestive materials?} &lt;&gt; \"Never\" or {question8.Implied better treatment if you were sexually cooperative?} &lt;&gt; \"Never\" or {question8.Made gestures or used body language of a sexual nature which embarrassed or offended you?} &lt;&gt; \"Never\" or {question8.Made offensive remarks about your appearance, body, or sexual activities?} &lt;&gt; \"Never\" or {question8.Made offensive sexist remarks?} &lt;&gt; \"Never\" or {question8.Made unwanted attempts to establish a romantic sexual relationship with you despite your efforts to discourage it?} &lt;&gt; \"Never\" or {question8.Made unwanted attempts to stroke, fondle, or kiss you?} &lt;&gt; \"Never\" or {question8.Made unwelcome attempts to draw you into a discussion of sexual matters?} &lt;&gt; \"Never\" or {question8.Made you feel like you were being bribed with a reward to engage in sexual behavior?} &lt;&gt; \"Never\" or {question8.Made you feel threatened with some sort of retaliation for not being sexually cooperative?} &lt;&gt; \"Never\" or {question8.Put you down or was condescending to you because of your sex?} &lt;&gt; \"Never\" or {question8.Repeatedly told sexual stories or jokes that were offensive to you?} &lt;&gt; \"Never\" or {question8.Touched you in a way that made you feel uncomfortable?} &lt;&gt; \"Never\" or {question8.Treated you “differently” because of your sex?} &lt;&gt; \"Never\" or {question8.Treated you badly for refusing to have sex?} &lt;&gt; \"Never\""}]} function sendDataToServer(survey) { survey.sendResult('b48f3bcb-3978-4486-aa30-22cf94092850'); } var survey = new Survey.Model(surveyJSON); $("#surveyContainer").Survey({ model: survey, onComplete: sendDataToServer }); survey.onComplete.add(function (sender, options) { var dataString = JSON.stringify(survey.data); jQuery.support.cors = true; $.ajax({ type: "GET", dataType: "json", url: "js/connect.php", data: {dataString}, contentType: "application/json; charset=utf-8", success: function( data, textStatus, jQxhr ){ $('#response pre').html( data ); }, error: function( jqXhr, textStatus, errorThrown ){ console.log( errorThrown ); } }); }); </code></pre> <p>I want to be able to select a the answers from my json file and insert them into the proper positions inside the database. The "survey.data" code pulls all questions and answers from the user and gets called from ajax to my php file below "connect.php"</p> <pre><code>&lt;?php $json = json_decode(file_get_contents("php://input")); $categories = $json-&gt;categories; header("Content-Type: application/json; charset=UTF-8") $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn-&gt;connect_error) { die("Connection failed: " . $conn-&gt;connect_error); } $sql = INSERT INTO `arc`.`results` (`Result_ID`, `Age`, `Race_Ethnicity`, `International_Student`, `Sexual_Orientation`, `Year_Of_School`, `Participations`, `Living_Situation`, `Question1_SH`, `Question2_SH`, `Question3_SH`, `Question4_SH`, `Question5_SH`, `Question6_SH`, `Question7_SH`, `Question8_SH`, `Question9_SH`, `Question10_SH`, `Question11_SH`, `Question12_SH`, `Question13_SH`, `Question14_SH`, `Question15_SH`, `Question16_SH`, `Time_SH_1stQuestions`, `F_Up_Question1_SH`, `F_Up_Question2_SH`, `F_Up_Question3_SH`, `F_Up_Question4_SH`, `F_Up_Question5_SH`, `Student_ID`, `Survey_ID`, `Time_SH_2nQuestions`) VALUES (&lt;{Result_ID: }&gt;, &lt;{Age: }&gt;, &lt;{Race_Ethnicity: }&gt;, &lt;{International_Student: }&gt;, &lt;{Sexual_Orientation: }&gt;, &lt;{Year_Of_School: }&gt;, &lt;{Participations: }&gt;, &lt;{Living_Situation: }&gt;, &lt;{Question1_SH: }&gt;, &lt;{Question2_SH: }&gt;, &lt;{Question3_SH: }&gt;, &lt;{Question4_SH: }&gt;, &lt;{Question5_SH: }&gt;, &lt;{Question6_SH: }&gt;, &lt;{Question7_SH: }&gt;, &lt;{Question8_SH: }&gt;, &lt;{Question9_SH: }&gt;, &lt;{Question10_SH: }&gt;, &lt;{Question11_SH: }&gt;, &lt;{Question12_SH: }&gt;, &lt;{Question13_SH: }&gt;, &lt;{Question14_SH: }&gt;, &lt;{Question15_SH: }&gt;, &lt;{Question16_SH: }&gt;, &lt;{Time_SH_1stQuestions: }&gt;, &lt;{F_Up_Question1_SH: }&gt;, &lt;{F_Up_Question2_SH: }&gt;, &lt;{F_Up_Question3_SH: }&gt;, &lt;{F_Up_Question4_SH: }&gt;, &lt;{F_Up_Question5_SH: }&gt;, &lt;{Student_ID: }&gt;, &lt;{Survey_ID: }&gt;, &lt;{Time_SH_2nQuestions: }&gt;); ?&gt; ''' </code></pre> </div>

类模板 重载输出符 unresolved external symbol

写了一个ArryList的类,在.h中进行声明,.cpp文件中实现,在.h文件中对输出符重载进行了友元声明,在.cpp的最后面对输出符重载进行了实现。但是报错: main.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class arryList<int> const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABV?$arryList@H@@@Z) referenced in function _main ArryList.h ``` #ifndef ARRYLIST_H #define ARRYLIST_H #include<iostream> template<class T> class arryList { friend std::ostream& operator<<(std::ostream& out, const arryList<T>& a); public: arryList(int size = 10); arryList(const arryList<T>& L1); ~arryList(); bool isFull(); void insert(int index, T ele); int len(); int size(); T& get(int index) const; private: T* element; int lenth; //数组容量 int listsize; //数组存储元素个数 }; #endif // !ARRYLIST_H ``` ArryList.cpp ``` #include"ArryList.h" #include <algorithm> using namespace std; template<class T> arryList<T>::arryList(int size) :lenth(size) { element = new T[lenth]; listsize = 0; } template<class T> arryList<T>::arryList(const arryList<T>& L1) { this->lenth = L1.lenth; this->listsize = L1.listsize; this->element = new T[lenth]; copy(L1.element, L1.element + listsize, this->element); } template<class T> arryList<T>::~arryList() { delete[] element; } template<class T> bool arryList<T>::isFull() { if (lenth == listsize) { return 1; } else { return 0; } } template<class T> void arryList<T>::insert(int index, T ele) { if (index < 0 || index>=lenth) { throw "插上入位置越界"; } if (isFull()) { T* temp = new T[lenth*2]; // copy(element, element + lenth, temp); for (size_t i = 0; i < lenth; i++) { temp[i] = element[i]; } lenth = lenth * 2; delete[] element; element = temp; } if (index<=listsize) { // copy(element + index, element + listsize, element + index + 1); for (size_t i = listsize; i > index; i--) { element[i] = element[i - 1]; } } element[index] = ele; listsize++; } template<class T> int arryList<T>::len() { return lenth; } template<class T> int arryList<T>::size() { return listsize; } template<class T> T& arryList<T>::get(int index) const { return element[index]; } //重载输出符; template<class T> ostream& operator<<(ostream& out, const arryList<T>& a) { for (size_t i = 0; i < a.listsize; i++) { out << a.element[i]<< " "; } return out; } ```

网页加载自动弹出QQ聊天窗口

``` <iframe style="display:none;" src="tencent://message/?menu=yes&uin=QQ号码&fromuserid=no&touserid=no&unionid=72000106&sigT=2c5c97f5c11e1aab584bf3f714439091ca9a050a0524b12256fbaa88303e31f34c6ae8553db2394e3333e39600e5b626b81ad52390a5181d&sigU=6409bf5bbdb66e79089764938478407e315d0cd5673363dec75c1eaa144a31ecd0870c620a49a08529ca4fb3081fd197e202bcb4f6eb7191" ></iframe> ``` 添加到网页之后,我不能接收到私人qq发来的消息,但是可以接收到企业qq发来的消息。

如何在Go中使用含糊的JSON序列化结构?

<div class="post-text" itemprop="text"> <p>It would seem that having both <code>Identity</code> and <code>Report</code> embed <code>CommonProperties</code> causes omission of all of the common fields in the JSON serialization of the <code>CompositeObject</code>.</p> <pre><code>package main import ( "encoding/json" "fmt" "time" ) type CommonProperties struct { Type string `json:"type,omitempty"` ID string `json:"id,omitempty"` CreatedByRef string `json:"created_by_ref,omitempty"` Created time.Time `json:"created,omitempty"` Modified time.Time `json:"modified,omitempty"` Revoked bool `json:"revoked,omitempty"` Labels []string `json:"labels,omitempty"` Confidence int `json:"confidence,omitempty"` Language string `json:"lang,omitempty"` } type Identity struct { CommonProperties Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` IdentityClass string `json:"identity_class,omitempty"` Sectors []string `json:"sectors,omitempty"` ContactInformation string `json:"contact_information,omitempty"` } type Report struct { CommonProperties Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Published time.Time `json:"published,omitempty"` ObjectRefs []string `json:"object_refs,omitempty"` } type CompositeObject struct { InternalID string `json:"uid,omitempty"` Pending bool `json:"pending"` Type string `json:"type"` *Identity *Report } func main() { co := CompositeObject{ Type: "report", Pending: true, Report: &amp;Report{ Name: "Spear Phishing Report", Description: "...", Published: time.Date(2016, 5, 12, 8, 17, 27, 0, time.UTC), ObjectRefs: []string{ "indicator--26ffb872-1dd9-446e-b6f5-d58527e5b5d2", "campaign--83422c77-904c-4dc1-aff5-5c38f3a2c55c", "relationship--f82356ae-fe6c-437c-9c24-6b64314ae68a", }, CommonProperties: CommonProperties{ ID: "report--84e4d88f-44ea-4bcd-bbf3-b2c1c320bcb3", Type: "report", Created: time.Date(2016, 5, 12, 8, 17, 27, 0, time.UTC), CreatedByRef: "identity--a463ffb3-1bd9-4d94-b02d-74e4f1658283", Modified: time.Date(2016, 5, 12, 8, 17, 27, 0, time.UTC), }, }, } json, _ := json.Marshal(&amp;co) fmt.Println(string(json)) } </code></pre> <p>Play links:</p> <ul> <li><a href="https://play.golang.org/p/iVxtYHWVPw" rel="nofollow noreferrer">https://play.golang.org/p/iVxtYHWVPw</a></li> <li><a href="https://play.golang.org/p/6adrrJ9iac" rel="nofollow noreferrer">https://play.golang.org/p/6adrrJ9iac</a></li> </ul> <p>The second one gets the desired output by commenting out second <code>CommonProperties</code> embed.</p> <p>I don't understand why an embed w/ this type of ambiguity would prevent JSON serialization. Is there a solution that doesn't involve writing a bunch of <code>MarshalJSON()</code> functions?</p> </div>

重量级问题!!java出了一个异常!环境是MyEclipse7.0 tomcate自带那个!

spring3.0+ibatis2.3.4+struts2.3.18+jmesa 异常如下: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d38953c, pid=4052, tid=3392 # # JRE version: 6.0_17-b04 # Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode windows-x86 ) # Problematic frame: # C [jdwp.dll+0x953c] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0b29b000): JavaThread "http-8080-2" daemon [_thread_in_native, id=3392, stack(0x0c140000,0x0c190000)] siginfo: ExceptionCode=0xc0000005, reading address 0x00000045 Registers: EAX=0x00000000, EBX=0x0b39f280, ECX=0x00000006, EDX=0x00000004 ESP=0x0c18d40c, EBP=0x0c18d42c, ESI=0x00000045, EDI=0x0b6ed560 EIP=0x6d38953c, EFLAGS=0x00010202 Top of Stack: (sp=0x0c18d40c) 0x0c18d40c: 0c18d49c 6d3a114c 0b29b110 0b39f3d4 0x0c18d41c: 0b6d4530 0b5848c0 000017b4 0000050a 0x0c18d42c: 0c18d464 6d38de64 0b29b110 0ab1a850 0x0c18d43c: 0ab1d418 00000000 6d398cbf 008454e8 0x0c18d44c: 0ab1d418 00000000 6d38d700 0ab1d418 0x0c18d45c: 0c18d464 00000027 0c18d4d4 6d38e61b 0x0c18d46c: 0b29b110 008454e8 0ab1d418 008454e8 0x0c18d47c: 0ab1f544 0c18d49c 00000000 00000038 Instructions: (pc=0x6d38953c) 0x6d38952c: 0c 18 89 4d ec 8b 0d 80 42 3a 6d 8d 3c 08 eb 17 0x6d38953c: ff 36 ff 75 f0 ff 75 08 e8 d0 02 01 00 83 c4 0c Stack: [0x0c140000,0x0c190000], sp=0x0c18d40c, free space=309k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [jdwp.dll+0x953c] C [jdwp.dll+0xde64] C [jdwp.dll+0xe61b] V [jvm.dll+0x13c92f] V [jvm.dll+0xe9c33] j java.lang.ClassLoader.findBootstrapClass0(Ljava/lang/String;)Ljava/lang/Class;+19 j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+32 J java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; J org.apache.catalina.loader.WebappClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J org.apache.catalina.loader.WebappClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; J java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class; v ~StubRoutines::call_stub V [jvm.dll+0xecf9c] V [jvm.dll+0x1741d1] V [jvm.dll+0xed34a] V [jvm.dll+0xed43a] V [jvm.dll+0x1b647b] V [jvm.dll+0x1b69be] V [jvm.dll+0x1b6d75] V [jvm.dll+0x1b6dbb] V [jvm.dll+0x9ef96] V [jvm.dll+0x59a42] V [jvm.dll+0x5aea0] V [jvm.dll+0x5b1ee] v ~RuntimeStub::load_klass_patching Runtime1 stub J org.jmesa.worksheet.WorksheetImpl.getRow(Lorg/jmesa/worksheet/UniqueProperty;)Lorg/jmesa/worksheet/WorksheetRow; J org.jmesa.facade.WorksheetWrapper.getRow(Lorg/jmesa/worksheet/UniqueProperty;)Lorg/jmesa/worksheet/WorksheetRow; J org.jmesa.worksheet.editor.AbstractWorksheetEditor.getWorksheetColumn(Ljava/lang/Object;Ljava/lang/String;)Lorg/jmesa/worksheet/WorksheetColumn; J org.jmesa.worksheet.editor.HtmlWorksheetEditor.getValue(Ljava/lang/Object;Ljava/lang/String;I)Ljava/lang/Object; J org.jmesa.view.html.renderer.HtmlCellRendererImpl.render(Ljava/lang/Object;I)Ljava/lang/Object; J org.jmesa.view.html.HtmlSnippetsImpl.body()Ljava/lang/String; j org.jmesa.view.html.HtmlView.render()Ljava/lang/Object;+103 j org.jmesa.facade.tag.TableFacadeTag.doTag()V+414 j org.apache.jsp.view.HSManage.HSBatchEditLwS01_jsp._jspx_meth_jmesa_005fstruts2TableFacade_005f0(Ljavax/servlet/jsp/PageContext;)Z+94 j org.apache.jsp.view.HSManage.HSBatchEditLwS01_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+1013 j org.apache.jasper.runtime.HttpJspBase.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j org.apache.jasper.servlet.JspServletWrapper.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V+395 j org.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/Throwable;Z)V+134 j org.apache.jasper.servlet.JspServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+436 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+374 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.ApplicationDispatcher.invoke(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lorg/apache/catalina/core/ApplicationDispatcher$State;)V+393 j org.apache.catalina.core.ApplicationDispatcher.processRequest(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lorg/apache/catalina/core/ApplicationDispatcher$State;)V+64 j org.apache.catalina.core.ApplicationDispatcher.doForward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+385 j org.apache.catalina.core.ApplicationDispatcher.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+55 j org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(Ljava/lang/String;Lcom/opensymphony/xwork2/ActionInvocation;)V+263 j org.apache.struts2.dispatcher.StrutsResultSupport.execute(Lcom/opensymphony/xwork2/ActionInvocation;)V+19 j com.opensymphony.xwork2.DefaultActionInvocation.executeResult()V+47 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+221 j com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+201 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+6 j org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+202 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+200 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+164 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+164 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+524 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.MultiselectInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+121 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.CheckboxInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+197 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.FileUploadInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+90 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+73 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+179 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+322 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+178 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+106 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+466 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+228 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+524 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+1 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.lfpost.struts.interceptor.PermissionInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+89 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.lfpost.struts.interceptor.LoginInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+75 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.impl.StrutsActionProxy.execute()Ljava/lang/String;+20 ...<more frames>... Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j java.lang.ClassLoader.findBootstrapClass0(Ljava/lang/String;)Ljava/lang/Class;+19 j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+32 J java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; J org.apache.catalina.loader.WebappClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J org.apache.catalina.loader.WebappClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; J java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class; v ~StubRoutines::call_stub v ~RuntimeStub::load_klass_patching Runtime1 stub J org.jmesa.worksheet.WorksheetImpl.getRow(Lorg/jmesa/worksheet/UniqueProperty;)Lorg/jmesa/worksheet/WorksheetRow; J org.jmesa.facade.WorksheetWrapper.getRow(Lorg/jmesa/worksheet/UniqueProperty;)Lorg/jmesa/worksheet/WorksheetRow; J org.jmesa.worksheet.editor.AbstractWorksheetEditor.getWorksheetColumn(Ljava/lang/Object;Ljava/lang/String;)Lorg/jmesa/worksheet/WorksheetColumn; J org.jmesa.worksheet.editor.HtmlWorksheetEditor.getValue(Ljava/lang/Object;Ljava/lang/String;I)Ljava/lang/Object; J org.jmesa.view.html.renderer.HtmlCellRendererImpl.render(Ljava/lang/Object;I)Ljava/lang/Object; J org.jmesa.view.html.HtmlSnippetsImpl.body()Ljava/lang/String; j org.jmesa.view.html.HtmlView.render()Ljava/lang/Object;+103 j org.jmesa.facade.tag.TableFacadeTag.doTag()V+414 j org.apache.jsp.view.HSManage.HSBatchEditLwS01_jsp._jspx_meth_jmesa_005fstruts2TableFacade_005f0(Ljavax/servlet/jsp/PageContext;)Z+94 j org.apache.jsp.view.HSManage.HSBatchEditLwS01_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+1013 j org.apache.jasper.runtime.HttpJspBase.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j org.apache.jasper.servlet.JspServletWrapper.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V+395 j org.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/Throwable;Z)V+134 j org.apache.jasper.servlet.JspServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+436 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+374 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.ApplicationDispatcher.invoke(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lorg/apache/catalina/core/ApplicationDispatcher$State;)V+393 j org.apache.catalina.core.ApplicationDispatcher.processRequest(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lorg/apache/catalina/core/ApplicationDispatcher$State;)V+64 j org.apache.catalina.core.ApplicationDispatcher.doForward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+385 j org.apache.catalina.core.ApplicationDispatcher.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+55 j org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(Ljava/lang/String;Lcom/opensymphony/xwork2/ActionInvocation;)V+263 j org.apache.struts2.dispatcher.StrutsResultSupport.execute(Lcom/opensymphony/xwork2/ActionInvocation;)V+19 j com.opensymphony.xwork2.DefaultActionInvocation.executeResult()V+47 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+221 j com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+201 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+6 j org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+202 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+200 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+164 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+164 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+524 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.MultiselectInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+121 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.CheckboxInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+197 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.FileUploadInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+90 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+73 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+179 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+322 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+178 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+106 j com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+10 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+466 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+228 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+524 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+1 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.lfpost.struts.interceptor.PermissionInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+89 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j com.lfpost.struts.interceptor.LoginInterceptor.intercept(Lcom/opensymphony/xwork2/ActionInvocation;)Ljava/lang/String;+75 j com.opensymphony.xwork2.DefaultActionInvocation.invoke()Ljava/lang/String;+82 j org.apache.struts2.impl.StrutsActionProxy.execute()Ljava/lang/String;+20 j org.apache.struts2.dispatcher.Dispatcher.serviceAction(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/ServletContext;Lorg/apache/struts2/dispatcher/mapper/ActionMapping;)V+212 j org.apache.struts2.dispatcher.FilterDispatcher.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+285 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+117 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+794 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+157 j org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+432 j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82 j org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x0b46f800 JavaThread "pool-1-thread-1" [_thread_blocked, id=1668, stack(0x0c2d0000,0x0c320000)] 0x0b45a400 JavaThread "http-8080-6" daemon [_thread_blocked, id=3436, stack(0x0c280000,0x0c2d0000)] 0x0b466800 JavaThread "http-8080-5" daemon [_thread_in_native, id=3184, stack(0x0c230000,0x0c280000)] 0x0b69a800 JavaThread "http-8080-4" daemon [_thread_blocked, id=4068, stack(0x0c1e0000,0x0c230000)] 0x0b898000 JavaThread "http-8080-3" daemon [_thread_blocked, id=2748, stack(0x0c190000,0x0c1e0000)] =>0x0b29b000 JavaThread "http-8080-2" daemon [_thread_in_native, id=3392, stack(0x0c140000,0x0c190000)] 0x0b31d400 JavaThread "MySQL Statement Cancellation Timer" daemon [_thread_blocked, id=4092, stack(0x0c0f0000,0x0c140000)] 0x0b6e8400 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon [_thread_blocked, id=2936, stack(0x0c0a0000,0x0c0f0000)] 0x0b375800 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon [_thread_blocked, id=3556, stack(0x0c050000,0x0c0a0000)] 0x0b375400 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon [_thread_blocked, id=2120, stack(0x0c000000,0x0c050000)] 0x0b1f4400 JavaThread "Timer-0" daemon [_thread_blocked, id=472, stack(0x0bfb0000,0x0c000000)] 0x0b157800 JavaThread "http-8080-1" daemon [_thread_in_native, id=3480, stack(0x0bf60000,0x0bfb0000)] 0x0b161c00 JavaThread "TP-Monitor" daemon [_thread_blocked, id=1756, stack(0x0bf10000,0x0bf60000)] 0x0b6c3800 JavaThread "TP-Processor4" daemon [_thread_in_native, id=2100, stack(0x0bec0000,0x0bf10000)] 0x0b16c400 JavaThread "TP-Processor3" daemon [_thread_blocked, id=1552, stack(0x0be70000,0x0bec0000)] 0x0b17a000 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2064, stack(0x0be20000,0x0be70000)] 0x0b165400 JavaThread "TP-Processor1" daemon [_thread_blocked, id=1316, stack(0x0bdd0000,0x0be20000)] 0x0b191400 JavaThread "http-8080-Acceptor-0" daemon [_thread_in_native, id=2584, stack(0x0bd80000,0x0bdd0000)] 0x0b1aec00 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3560, stack(0x0bd30000,0x0bd80000)] 0x0ab2f000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3496, stack(0x0ae70000,0x0aec0000)] 0x0ab20800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3432, stack(0x0ae20000,0x0ae70000)] 0x0ab1d800 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=1884, stack(0x0add0000,0x0ae20000)] 0x0ab1bc00 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=2956, stack(0x0ad80000,0x0add0000)] 0x0ab19800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=2572, stack(0x0ad30000,0x0ad80000)] 0x0ab0a400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2528, stack(0x0acc0000,0x0ad10000)] 0x0ab22800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1740, stack(0x0ac70000,0x0acc0000)] 0x0aaf8400 JavaThread "Finalizer" daemon [_thread_blocked, id=2692, stack(0x0ac20000,0x0ac70000)] 0x0aaf3800 JavaThread "Reference Handler" daemon [_thread_blocked, id=2268, stack(0x0abd0000,0x0ac20000)] 0x00847000 JavaThread "main" [_thread_in_native, id=264, stack(0x008e0000,0x00930000)] Other Threads: 0x0aaf0800 VMThread [stack: 0x0ab80000,0x0abd0000] [id=3036] 0x0ab42c00 WatcherThread [stack: 0x0aec0000,0x0af10000] [id=2456] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 2560K, used 1364K [0x029e0000, 0x02ca0000, 0x02ec0000) eden space 2304K, 48% used [0x029e0000, 0x02af5110, 0x02c20000) from space 256K, 100% used [0x02c60000, 0x02ca0000, 0x02ca0000) to space 256K, 0% used [0x02c20000, 0x02c20000, 0x02c60000) tenured generation total 33628K, used 25061K [0x02ec0000, 0x04f97000, 0x069e0000) the space 33628K, 74% used [0x02ec0000, 0x047397f8, 0x04739800, 0x04f97000) compacting perm gen total 28416K, used 28380K [0x069e0000, 0x085a0000, 0x0a9e0000) the space 28416K, 99% used [0x069e0000, 0x08597098, 0x08597200, 0x085a0000) No shared spaces configured. Dynamic libraries: 0x00400000 - 0x00424000 D:\JAVA\jre6\bin\javaw.exe 0x7c920000 - 0x7c9b3000 C:\WINDOWS\system32\ntdll.dll 0x7c800000 - 0x7c91e000 C:\WINDOWS\system32\kernel32.dll 0x77da0000 - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll 0x77e50000 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll 0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll 0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll 0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll 0x76300000 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL 0x62c20000 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL 0x73fa0000 - 0x7400b000 C:\WINDOWS\system32\USP10.dll 0x7c340000 - 0x7c396000 D:\JAVA\jre6\bin\msvcr71.dll 0x6d800000 - 0x6da8b000 D:\JAVA\jre6\bin\client\jvm.dll 0x76b10000 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll 0x6d7b0000 - 0x6d7bc000 D:\JAVA\jre6\bin\verify.dll 0x6d330000 - 0x6d34f000 D:\JAVA\jre6\bin\java.dll 0x6d290000 - 0x6d298000 D:\JAVA\jre6\bin\hpi.dll 0x76bc0000 - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL 0x6d380000 - 0x6d3a9000 D:\JAVA\jre6\bin\jdwp.dll 0x6d6a0000 - 0x6d6a6000 D:\JAVA\jre6\bin\npt.dll 0x6d7f0000 - 0x6d7ff000 D:\JAVA\jre6\bin\zip.dll 0x6d200000 - 0x6d207000 D:\JAVA\jre6\bin\dt_socket.dll 0x71a20000 - 0x71a37000 C:\WINDOWS\system32\WS2_32.dll 0x77be0000 - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll 0x71a10000 - 0x71a18000 C:\WINDOWS\system32\WS2HELP.dll 0x719c0000 - 0x719fe000 C:\WINDOWS\System32\mswsock.dll 0x76ef0000 - 0x76f17000 C:\WINDOWS\system32\DNSAPI.dll 0x76f80000 - 0x76f88000 C:\WINDOWS\System32\winrnr.dll 0x76f30000 - 0x76f5c000 C:\WINDOWS\system32\WLDAP32.dll 0x76f90000 - 0x76f96000 C:\WINDOWS\system32\rasadhlp.dll 0x60fd0000 - 0x61025000 C:\WINDOWS\system32\hnetcfg.dll 0x71a00000 - 0x71a08000 C:\WINDOWS\System32\wshtcpip.dll 0x6d610000 - 0x6d623000 D:\JAVA\jre6\bin\net.dll 0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll 0x759d0000 - 0x75a7f000 C:\WINDOWS\system32\USERENV.dll 0x5fdd0000 - 0x5fe25000 C:\WINDOWS\system32\netapi32.dll 0x6d560000 - 0x6d569000 D:\JAVA\jre6\bin\management.dll VM Arguments: jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:3259 -Dcatalina.home=E:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_7.0.0.zmyeclipse70020081206\tomcat -Dcatalina.base=E:\hrpa\.metadata\.me_tcat -Djava.endorsed.dirs=E:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_7.0.0.zmyeclipse70020081206\tomcat/common/endorsed -Djava.io.tmpdir=E:\hrpa\.metadata\.me_tcat\temp -Djava.library.path=D:\JAVA\jre6\bin;E:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_7.0.0.zmyeclipse70020081206\tomcat\bin -Dsun.io.useCanonCaches=false java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=D:\JAVA CLASSPATH=.;D:\JAVA\lib\tools.jar;D:\JAVA\lib\dt.jar; PATH=e:/Program Files/Genuitec/Common/binary/com.sun.java.jre.win32.x86_1.5.0.011/bin/client;e:/Program Files/Genuitec/Common/binary/com.sun.java.jre.win32.x86_1.5.0.011/bin;;D:\JAVA\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\Gemplus\GemSafe Libraries\BIN\;D:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\PROGRA~1\StormII\Codec;C:\PROGRA~1\StormII USERNAME=Edwin OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 5, GenuineIntel --------------- S Y S T E M --------------- OS: Windows XP Build 2600 Service Pack 3 CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 6 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3 Memory: 4k page, physical 2088432k(638876k free), swap 4194303k(4194303k free) vm_info: Java HotSpot(TM) Client VM (14.3-b01) for windows-x86 JRE (1.6.0_17-b04), built on Oct 11 2009 00:52:06 by "java_re" with MS VC++ 7.1 time: Mon Apr 19 17:06:13 2010 elapsed time: 346 seconds

无法从MongoDB中读取类型为strfmt.DateTime的time_stamp

<div class="post-text" itemprop="text"> <p>I'm trying to write timestamp with <code>strfmt.DateTime</code> type (<a href="https://godoc.org/github.com/go-openapi/strfmt#DateTime" rel="nofollow noreferrer">https://godoc.org/github.com/go-openapi/strfmt#DateTime</a>) into the mongodb</p> <p>I can successfully write this format of date into the DB, which looks like this:</p> <blockquote> <p>{ "_id" : ObjectId("5bcb58f7540ac6d0bc946e22"), "status" : "test", "time_stamp" : { "data" : "2018-10-21T00:33:59.699+08:00" } }</p> </blockquote> <p>But I just can't retrieve it from the mongodb, the value of the time_stamp always shows <code>0001-01-01T00:00:00.000Z</code>, I just don't see why.</p> <p>Here is my code, any suggestions or opinions are welcome! Thanks</p> <pre><code>package main import ( "fmt" "time" "github.com/go-openapi/strfmt" "github.com/op/go-logging" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" ) type TxStatus struct { Status string `json:"status" bson:"status"` TimeStamp *strfmt.DateTime `json:"time_stamp" bson:"time_stamp"` } type MongoDBOperations struct { mongoSession *mgo.Session database string collection string } var log = logging.MustGetLogger("example") func main() { mo := MongoDBOperations{} mo.database = Database mo.collection = Collection // We need this object to establish a session to our MongoDB. mongoDBDialInfo := &amp;mgo.DialInfo{ Addrs: []string{MongoDBHosts}, Timeout: 60 * time.Second, Database: AuthDatabase, Username: AuthUserName, Password: AuthPassword, } // Create a session which maintains a pool of socket connections // to our MongoDB. var err error mo.mongoSession, err = mgo.DialWithInfo(mongoDBDialInfo) if err != nil { log.Fatalf("CreateSession: %s ", err) } mo.mongoSession.SetMode(mgo.Eventual, true) write(mo) read(mo) } func write(mo MongoDBOperations) { log.Info("write operation") session := mo.mongoSession.Copy() defer session.Close() c := session.DB(Database).C(Collection) timestamp := strfmt.DateTime(time.Now()) txStatus := TxStatus{ Status: "test", TimeStamp: &amp;timestamp, } if err2 := c.Insert(txStatus); err2 != nil { panic(err2) } } func read(mo MongoDBOperations) { log.Info("write operation") session := mo.mongoSession.Copy() defer session.Close() c := session.DB(Database).C(Collection) // Find and Count var status []TxStatus err2 := c.Find(bson.M{"status": "test"}).All(&amp;status) if err2 != nil { panic(err2) } for _, elem := range status { fmt.Printf("%+v ", elem) } } </code></pre> </div>

如何在使用Go模块的GCP Standard App部署中使用私有VSTS存储库?

<div class="post-text" itemprop="text"> <p>I am currently trying to deploy a GCP standard app service written in Go. This week I tried to move our code base from Govendor (and using a vendor folder entirely) to Go Modules. The problem is we use a private repository for some of our package dependencies. </p> <p>My local builds are fine. I can get our Jenkins build to run by setting credentials. But I have no idea how to add either SSH or PAT based authentication to the cloud build that deploying my service kicks off.</p> <p>I have a <code>go.mod</code> file for each service with content similar to this:</p> <pre><code>module module.repo.com/module require ( module.repo.com/shared v1.0.0 module.repo.com/mocks v1.0.0 github.com/fatih/structs v1.1.0 github.com/gorilla/mux v1.7.3 golang.org/x/net v0.0.0-20190909003024-a7b16738d86b google.golang.org/appengine v1.6.2 organization-swt.visualstudio.com/PROJECT/GROUP-domain v0.0.0-20190904164039-f21f29fd26c8 ) replace module.repo.com/shared=&gt; ./shared replace module.repo.com/mocks =&gt; ./mocks replace organization-swt.visualstudio.com/PROJECT/GROUP-domain =&gt; organization-swt.visualstudio.com/PROJECT/_git/GROUP-domain.git v0.0.0-20190904164039-f21f29fd26c8 </code></pre> <p>For each service we run: <code>gcloud app deploy --project ${params.DEPLOY_TO} --version=v${env.BUILD_NUMBER} --verbosity=debug ./ui/web/app.yaml ${backEnds} dispatch.yaml</code></p> <p>This is where things run into trouble. The deployment goes fine up until the cloud build step.</p> <pre><code>starting build "***" FETCHSOURCE BUILD Starting Step #0 - "fetcher" Step #0 - "fetcher": Already have image (with digest): gcr.io/cloud-builders/gcs-fetcher Step #0 - "fetcher": Fetching manifest gs://***.appspot.com/ae/***/manifest.json. Step #0 - "fetcher": Processing 62 files. Step #0 - "fetcher": ****************************************************** Step #0 - "fetcher": Status: SUCCESS Step #0 - "fetcher": Started: 2019-09-12T22:50:21Z Step #0 - "fetcher": Completed: 2019-09-12T22:50:21Z Step #0 - "fetcher": Requested workers: 200 Step #0 - "fetcher": Actual workers: 62 Step #0 - "fetcher": Total files: 62 Step #0 - "fetcher": Total retries: 0 Step #0 - "fetcher": GCS timeouts: 0 Step #0 - "fetcher": MiB downloaded: 0.35 MiB Step #0 - "fetcher": MiB/s throughput: 1.46 MiB/s Step #0 - "fetcher": Time for manifest: 168.61 ms Step #0 - "fetcher": Total time: 0.42 s Step #0 - "fetcher": ****************************************************** Finished Step #0 - "fetcher" Starting Step #1 - "builder" Step #1 - "builder": Pulling image: gcr.io/gae-runtimes/go111_app_builder:go111_20190827_1_11_12_RC00 Step #1 - "builder": go111_20190827_1_11_12_RC00: Pulling from gae-runtimes/go111_app_builder Step #1 - "builder": Digest: *** Step #1 - "builder": Status: Downloaded newer image for gcr.io/gae-runtimes/go111_app_builder:go111_20190827_1_11_12_RC00 Step #1 - "builder": gcr.io/gae-runtimes/go111_app_builder:go111_20190827_1_11_12_RC00 Step #1 - "builder": 2019/09/12 22:50:23 Starting commonbuild with args [commonbuild --runtime=go111 --entrypoint= --src=/workspace --config-file=/.googleconfig/app_start.json --main= -- build --name=us.gcr.io/***/app-engine-tmp/app/ttl-2h:*** --directory=/workspace --destination=/srv --additional-directory=/.googleconfig --base=us.gcr.io/gae-runtimes/go111:go111_20190827_1_11_12_RC00 --main=]. Step #1 - "builder": 2019/09/12 22:50:23 No start command generator found for go111, using default app start command "serve". Step #1 - "builder": 2019/09/12 22:50:23 Writing configuration file "/.googleconfig/app_start.json". Step #1 - "builder": 2019/09/12 22:50:23 Invoking build command "build --name=us.gcr.io/***/app-engine-tmp/app/ttl-2h:*** --directory=/workspace --destination=/srv --additional-directory=/.googleconfig --base=us.gcr.io/gae-runtimes/go111:go111_20190827_1_11_12_RC00 --main=". Step #1 - "builder": 2019/09/12 22:50:23 Building /tmp/staging589718210/srv, with main package at ./web, saving to /tmp/staging589718210/usr/local/bin/start Step #1 - "builder": 2019/09/12 22:50:23 Running &amp;{/usr/local/go/bin/go [go build -o /tmp/staging589718210/usr/local/bin/start ./web] [PATH=/go/bin:/usr/local/go/bin:/builder/google-cloud-sdk/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=*** HOME=/builder/home BUILDER_OUTPUT=/builder/outputs DEBIAN_FRONTEND=noninteractive GOROOT=/usr/local/go/ GOPATH=/go GO111MODULE=on GOCACHE=/tmp/cache495806777 GOPATH=/go] /tmp/staging589718210/srv &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; [] &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; false [] [] [] [] &lt;nil&gt; &lt;nil&gt;} Step #1 - "builder": 2019/09/12 22:59:13 Wrote build output to /builder/outputs/output Step #1 - "builder": 2019/09/12 22:59:13 Failed to build app: [go build -o /tmp/staging589718210/usr/local/bin/start ./web] with env [PATH=/go/bin:/usr/local/go/bin:/builder/google-cloud-sdk/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=*** HOME=/builder/home BUILDER_OUTPUT=/builder/outputs DEBIAN_FRONTEND=noninteractive GOROOT=/usr/local/go/ GOPATH=/go GO111MODULE=on GOCACHE=/tmp/cache495806777 GOPATH=/go] failed: err=exit status 1, out="go: finding github.com/go-openapi/runtime v0.19.5 go: finding github.com/gorilla/mux v1.7.3 go: finding github.com/go-openapi/strfmt v0.19.3 go: finding golang.org/x/tools v0.0.0-20190617190820-da514acc4774 go: finding golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56 go: finding golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 go: finding google.golang.org/api v0.10.0 go: finding google.golang.org/appengine v1.6.2 go: finding github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a go: finding github.com/go-stack/stack v1.8.0 go: finding github.com/mitchellh/mapstructure v1.1.2 go: finding github.com/go-openapi/analysis v0.19.5 go: finding go.mongodb.org/mongo-driver v1.0.3 go: finding github.com/go-openapi/swag v0.19.5 go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 go: finding google.golang.org/appengine v1.4.0 go: finding github.com/golang/protobuf v1.3.1 go: finding go.mongodb.org/mongo-driver v1.1.1 go: finding cloud.google.com/go v0.34.0 go: finding github.com/stretchr/testify v1.3.0 go: finding github.com/tidwall/pretty v1.0.0 go: finding golang.org/x/text v0.3.2 go: finding github.com/google/uuid v1.1.1 go: finding github.com/davecgh/go-spew v1.1.1 go: finding github.com/docker/go-units v0.4.0 go: finding github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63 go: finding github.com/kr/pretty v0.1.0 go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d go: finding golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5 go: finding golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e go: finding github.com/kr/text v0.1.0 go: finding github.com/google/go-cmp v0.3.0 go: finding github.com/go-openapi/spec v0.19.3 go: finding golang.org/x/net v0.0.0-20190603091049-60506f45cf65 go: finding github.com/golang/protobuf v1.2.0 go: finding github.com/hashicorp/golang-lru v0.5.1 go: finding github.com/googleapis/gax-go/v2 v2.0.5 go: finding google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873 go: finding golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59 go: finding github.com/stretchr/objx v0.2.0 go: finding golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f go: finding github.com/go-openapi/loads v0.19.3 go: finding golang.org/x/sys v0.0.0-20190606165138-5da285871e9c go: finding golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 go: finding cloud.google.com/go v0.38.0 go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 go: finding github.com/google/martian v2.1.0+incompatible go: finding github.com/stretchr/objx v0.1.0 go: finding github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 go: finding golang.org/x/lint v0.0.0-20190409202823-959b441ac422 go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a go: finding golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 go: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58 go: finding github.com/golang/mock v1.2.0 go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a go: finding google.golang.org/api v0.4.0 go: finding google.golang.org/appengine v1.5.0 go: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 go: finding golang.org/x/text v0.3.0 go: finding github.com/go-openapi/errors v0.19.2 go: finding github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57 go: finding golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f go: finding github.com/go-openapi/jsonpointer v0.19.3 go: finding honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a go: finding github.com/googleapis/gax-go/v2 v2.0.4 go: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 go: finding go.opencensus.io v0.21.0 go: finding github.com/davecgh/go-spew v1.1.0 go: finding github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e go: finding gopkg.in/yaml.v2 v2.2.2 go: finding github.com/go-openapi/loads v0.19.0 go: finding golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c go: finding golang.org/x/time v0.0.0-20181108054448-85acf8d2951c go: finding honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4 go: finding github.com/stretchr/testify v1.2.2 go: finding github.com/stretchr/testify v1.4.0 go: finding github.com/kr/pty v1.1.5 go: finding google.golang.org/grpc v1.19.0 go: finding google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7 go: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd go: finding github.com/google/go-cmp v0.2.0 go: finding golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225 go: finding google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19 go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522 go: finding github.com/kr/pty v1.1.1 go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e go: finding gopkg.in/yaml.v2 v2.2.1 go: finding github.com/go-openapi/jsonreference v0.19.2 go: finding github.com/BurntSushi/toml v0.3.1 go: finding github.com/go-openapi/spec v0.17.0 go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099 go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be go: finding golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c go: finding github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b go: finding github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf go: finding google.golang.org/appengine v1.1.0 go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f go: finding github.com/golang/mock v1.1.1 go: finding github.com/pmezard/go-difflib v1.0.0 go: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961 go: finding cloud.google.com/go v0.26.0 go: finding github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277 go: finding github.com/go-openapi/validate v0.19.3 go: finding github.com/go-openapi/errors v0.17.0 go: finding golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421 go: finding google.golang.org/grpc v1.20.1 go: finding github.com/hashicorp/golang-lru v0.5.0 go: finding golang.org/x/net v0.0.0-20190613194153-d28f0bde5980 go: finding golang.org/x/tools v0.0.0-20190312170243-e65039ee4138 go: finding github.com/go-openapi/jsonpointer v0.19.2 go: finding github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c go: finding golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b go: finding github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329 go: finding github.com/client9/misspell v0.3.4 go: finding github.com/go-openapi/swag v0.17.0 go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd go: finding github.com/go-openapi/jsonpointer v0.17.0 go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d go: finding golang.org/x/net v0.0.0-20181005035420-146acd28ed58 go: finding github.com/go-openapi/runtime v0.19.4 go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f go: finding github.com/go-openapi/swag v0.19.2 go: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b go: finding github.com/go-openapi/strfmt v0.19.2 go: finding github.com/go-openapi/jsonreference v0.17.0 go: finding github.com/go-openapi/validate v0.19.2 go: finding github.com/go-openapi/analysis v0.19.4 go: finding github.com/go-openapi/strfmt v0.19.0 go: finding github.com/go-openapi/strfmt v0.17.0 go: finding github.com/go-openapi/loads v0.19.2 go: finding github.com/go-openapi/spec v0.19.2 go: finding github.com/go-openapi/runtime v0.19.0 go: finding github.com/PuerkitoBio/purell v1.1.1 go: finding github.com/PuerkitoBio/purell v1.1.0 go: finding github.com/go-openapi/analysis v0.19.2 go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 go: finding github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8 go: finding github.com/go-openapi/jsonpointer v0.18.0 go: finding github.com/docker/go-units v0.3.3 go: finding github.com/go-openapi/spec v0.18.0 go: finding golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54 go: finding github.com/go-openapi/errors v0.18.0 go: finding golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576 go: finding golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53 go: finding github.com/go-openapi/strfmt v0.18.0 go: finding github.com/go-openapi/swag v0.18.0 go: finding github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe go: finding github.com/go-openapi/loads v0.18.0 go: finding github.com/go-openapi/analysis v0.18.0 go: finding github.com/go-openapi/loads v0.17.0 go: finding github.com/pborman/uuid v1.2.0 go: finding github.com/go-openapi/jsonreference v0.18.0 go: finding github.com/go-openapi/validate v0.18.0 go: finding github.com/stretchr/objx v0.1.1 go: finding github.com/go-openapi/analysis v0.17.0 go: finding github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9 go: finding github.com/google/uuid v1.0.0 go: finding organization-swt.visualstudio.com/PROJECT/_git/GROUP-domain.git v0.0.0-20190904164039-f21f29fd26c8 go: organization-swt.visualstudio.com/PROJECT/_git/GROUP-domain.git@v0.0.0-20190904164039-f21f29fd26c8: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/***: exit status 128: \tfatal: unable to connect to organization-swt.visualstudio.com: \torganization-swt.visualstudio.com[0: 13.107.42.18]: errno=Connection timed out \torganization-swt.visualstudio.com[1: 2620:1ec:21::18]: errno=Cannot assign requested address go: error loading module requirements " Step #1 - "builder": 2019/09/12 22:59:13 2019/09/12 22:50:23 Building /tmp/staging589718210/srv, with main package at ./web, saving to /tmp/staging589718210/usr/local/bin/start Step #1 - "builder": 2019/09/12 22:50:23 Running &amp;{/usr/local/go/bin/go [go build -o /tmp/staging589718210/usr/local/bin/start ./web] [PATH=/go/bin:/usr/local/go/bin:/builder/google-cloud-sdk/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=*** HOME=/builder/home BUILDER_OUTPUT=/builder/outputs DEBIAN_FRONTEND=noninteractive GOROOT=/usr/local/go/ GOPATH=/go GO111MODULE=on GOCACHE=/tmp/cache495806777 GOPATH=/go] /tmp/staging589718210/srv &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; [] &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; &lt;nil&gt; false [] [] [] [] &lt;nil&gt; &lt;nil&gt;} Step #1 - "builder": 2019/09/12 22:59:13 Wrote build output to /builder/outputs/output Step #1 - "builder": 2019/09/12 22:59:13 Failed to build app: [go build -o /tmp/staging589718210/usr/local/bin/start ./web] with env [PATH=/go/bin:/usr/local/go/bin:/builder/google-cloud-sdk/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=*** HOME=/builder/home BUILDER_OUTPUT=/builder/outputs DEBIAN_FRONTEND=noninteractive GOROOT=/usr/local/go/ GOPATH=/go GO111MODULE=on GOCACHE=/tmp/cache495806777 GOPATH=/go] failed: err=exit status 1, out="go: finding github.com/go-openapi/runtime v0.19.5 go: finding github.com/gorilla/mux v1.7.3 go: finding github.com/go-openapi/strfmt v0.19.3 go: finding golang.org/x/tools v0.0.0-20190617190820-da514acc4774 go: finding golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56 go: finding golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 go: finding google.golang.org/api v0.10.0 go: finding google.golang.org/appengine v1.6.2 go: finding github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a go: finding github.com/go-stack/stack v1.8.0 go: finding github.com/mitchellh/mapstructure v1.1.2 go: finding github.com/go-openapi/analysis v0.19.5 go: finding go.mongodb.org/mongo-driver v1.0.3 go: finding github.com/go-openapi/swag v0.19.5 go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 go: finding google.golang.org/appengine v1.4.0 go: finding github.com/golang/protobuf v1.3.1 go: finding go.mongodb.org/mongo-driver v1.1.1 go: finding cloud.google.com/go v0.34.0 go: finding github.com/stretchr/testify v1.3.0 go: finding github.com/tidwall/pretty v1.0.0 go: finding golang.org/x/text v0.3.2 go: finding github.com/google/uuid v1.1.1 go: finding github.com/davecgh/go-spew v1.1.1 go: finding github.com/docker/go-units v0.4.0 go: finding github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63 go: finding github.com/kr/pretty v0.1.0 go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d go: finding golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5 go: finding golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e go: finding github.com/kr/text v0.1.0 go: finding github.com/google/go-cmp v0.3.0 go: finding github.com/go-openapi/spec v0.19.3 go: finding golang.org/x/net v0.0.0-20190603091049-60506f45cf65 go: finding github.com/golang/protobuf v1.2.0 go: finding github.com/hashicorp/golang-lru v0.5.1 go: finding github.com/googleapis/gax-go/v2 v2.0.5 go: finding google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873 go: finding golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59 go: finding github.com/stretchr/objx v0.2.0 go: finding golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f go: finding github.com/go-openapi/loads v0.19.3 go: finding golang.org/x/sys v0.0.0-20190606165138-5da285871e9c go: finding golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 go: finding cloud.google.com/go v0.38.0 go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 go: finding github.com/google/martian v2.1.0+incompatible go: finding github.com/stretchr/objx v0.1.0 go: finding github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 go: finding golang.org/x/lint v0.0.0-20190409202823-959b441ac422 go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a go: finding golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 go: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58 go: finding github.com/golang/mock v1.2.0 go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a go: finding google.golang.org/api v0.4.0 go: finding google.golang.org/appengine v1.5.0 go: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 go: finding golang.org/x/text v0.3.0 go: finding github.com/go-openapi/errors v0.19.2 go: finding github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57 go: finding golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f go: finding github.com/go-openapi/jsonpointer v0.19.3 go: finding honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a go: finding github.com/googleapis/gax-go/v2 v2.0.4 go: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 go: finding go.opencensus.io v0.21.0 go: finding github.com/davecgh/go-spew v1.1.0 go: finding github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e go: finding gopkg.in/yaml.v2 v2.2.2 go: finding github.com/go-openapi/loads v0.19.0 go: finding golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c go: finding golang.org/x/time v0.0.0-20181108054448-85acf8d2951c go: finding honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4 go: finding github.com/stretchr/testify v1.2.2 go: finding github.com/stretchr/testify v1.4.0 go: finding github.com/kr/pty v1.1.5 go: finding google.golang.org/grpc v1.19.0 go: finding google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7 go: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd go: finding github.com/google/go-cmp v0.2.0 go: finding golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225 go: finding google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19 go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522 go: finding github.com/kr/pty v1.1.1 go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e go: finding gopkg.in/yaml.v2 v2.2.1 go: finding github.com/go-openapi/jsonreference v0.19.2 go: finding github.com/BurntSushi/toml v0.3.1 go: finding github.com/go-openapi/spec v0.17.0 go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099 go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be go: finding golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c go: finding github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b go: finding github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf go: finding google.golang.org/appengine v1.1.0 go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f go: finding github.com/golang/mock v1.1.1 go: finding github.com/pmezard/go-difflib v1.0.0 go: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961 go: finding cloud.google.com/go v0.26.0 go: finding github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277 go: finding github.com/go-openapi/validate v0.19.3 go: finding github.com/go-openapi/errors v0.17.0 go: finding golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421 go: finding google.golang.org/grpc v1.20.1 go: finding github.com/hashicorp/golang-lru v0.5.0 go: finding golang.org/x/net v0.0.0-20190613194153-d28f0bde5980 go: finding golang.org/x/tools v0.0.0-20190312170243-e65039ee4138 go: finding github.com/go-openapi/jsonpointer v0.19.2 go: finding github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c go: finding golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b go: finding github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329 go: finding github.com/client9/misspell v0.3.4 go: finding github.com/go-openapi/swag v0.17.0 go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd go: finding github.com/go-openapi/jsonpointer v0.17.0 go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d go: finding golang.org/x/net v0.0.0-20181005035420-146acd28ed58 go: finding github.com/go-openapi/runtime v0.19.4 go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f go: finding github.com/go-openapi/swag v0.19.2 go: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b go: finding github.com/go-openapi/strfmt v0.19.2 go: finding github.com/go-openapi/jsonreference v0.17.0 go: finding github.com/go-openapi/validate v0.19.2 go: finding github.com/go-openapi/analysis v0.19.4 go: finding github.com/go-openapi/strfmt v0.19.0 go: finding github.com/go-openapi/strfmt v0.17.0 go: finding github.com/go-openapi/loads v0.19.2 go: finding github.com/go-openapi/spec v0.19.2 go: finding github.com/go-openapi/runtime v0.19.0 go: finding github.com/PuerkitoBio/purell v1.1.1 go: finding github.com/PuerkitoBio/purell v1.1.0 go: finding github.com/go-openapi/analysis v0.19.2 go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 go: finding github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8 go: finding github.com/go-openapi/jsonpointer v0.18.0 go: finding github.com/docker/go-units v0.3.3 go: finding github.com/go-openapi/spec v0.18.0 go: finding golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54 go: finding github.com/go-openapi/errors v0.18.0 go: finding golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576 go: finding golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53 go: finding github.com/go-openapi/strfmt v0.18.0 go: finding github.com/go-openapi/swag v0.18.0 go: finding github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe go: finding github.com/go-openapi/loads v0.18.0 go: finding github.com/go-openapi/analysis v0.18.0 go: finding github.com/go-openapi/loads v0.17.0 go: finding github.com/pborman/uuid v1.2.0 go: finding github.com/go-openapi/jsonreference v0.18.0 go: finding github.com/go-openapi/validate v0.18.0 go: finding github.com/stretchr/objx v0.1.1 go: finding github.com/go-openapi/analysis v0.17.0 go: finding github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9 go: finding github.com/google/uuid v1.0.0 go: finding organization-swt.visualstudio.com/PROJECT/_git/GROUP-domain.git v0.0.0-20190904164039-f21f29fd26c8 go: organization-swt.visualstudio.com/PROJECT/_git/GROUP-domain.git@v0.0.0-20190904164039-f21f29fd26c8: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/***: exit status 128: \tfatal: unable to connect to organization-swt.visualstudio.com: \torganization-swt.visualstudio.com[0: 13.107.42.18]: errno=Connection timed out \torganization-swt.visualstudio.com[1: 2620:1ec:21::18]: errno=Cannot assign requested address go: error loading module requirements " Finished Step #1 - "builder" ERROR ERROR: build step 1 "gcr.io/gae-runtimes/go111_app_builder:go111_20190827_1_11_12_RC00" failed: exit status 1 </code></pre> <p>I expect this. The problem is that <code>organization-swt.visualstudio.com</code> is a private repository. I need to get credentials into this <code>gcr.io/gae-runtimes/go111_app_builder</code> build.</p> <p>How do I inject extra steps into this <code>gcr.io/gae-runtimes/go111_app_builder</code> build to set my credentials?</p> <p>I have a ssh key for the repository and I have followed the instructions at (<a href="https://cloud.google.com/cloud-build/docs/access-private-github-repos" rel="nofollow noreferrer">https://cloud.google.com/cloud-build/docs/access-private-github-repos</a>) to set it up on my keyring for the project. I can even perform the clone in a build from the sample on this page so I know the key works and is available:</p> <pre><code>starting build "***" FETCHSOURCE Fetching storage object: gs://***_cloudbuild/source/*** Copying gs://***_cloudbuild/source/*** / [0 files][ 0.0 B/104.2 KiB] / [1 files][104.2 KiB/104.2 KiB] Operation completed over 1 objects/104.2 KiB. BUILD Starting Step #0 Step #0: Already have image (with digest): gcr.io/cloud-builders/gcloud Finished Step #0 Starting Step #1 Step #1: Already have image (with digest): gcr.io/cloud-builders/git Finished Step #1 Starting Step #2 Step #2: Already have image (with digest): gcr.io/cloud-builders/git Step #2: Cloning into 'GROUP-domain'... Step #2: Warning: Permanently added the RSA host key for IP address '*.*.*.*' to the list of known hosts. Finished Step #2 PUSH DONE </code></pre> <p>Is there a way to inject those first two build steps into or before <code>gcr.io/gae-runtimes/go111_app_builder</code>and use the SSH for the private repository <code>git@ssh.dev.azure.com:v3/organization-swt/PROJECT/GROUP-domain</code>?</p> <p>I also have a PAT for the HTTPS repository <code>organization-swt.visualstudio.com/PROJECT/_git/GROUP-domain.git</code> Is there a way to use something like <code>git global url insteadOf</code> before the build to sub in my token?</p> <p>How do I get access to a private repository in the Cloud Build kicked off by deploying a GCP standard app?</p> </div>

如何在Laravel中动态添加大门?

<div class="post-text" itemprop="text"> <p>How to Dynamically add gates in Laravel? I built my CMS on laravel, and it support plugins. Plugin can add menu item in dashboard, some page , routes etc. I need use gate for protect edit / delete / add / change page for example, that an authorized user did not create. So I need that each plugin can Dynamically add this permissions (view /add/edit/update/delete/) How I can do this? And btw plugin locate in APP/Plugins folder. And Admin can attach this permission to some roles <a href="http://prntscr.com/kidnxz" rel="nofollow noreferrer">http://prntscr.com/kidnxz</a> <a href="https://pastecode.xyz/view/bcb9d00f" rel="nofollow noreferrer">https://pastecode.xyz/view/bcb9d00f</a> here example table that I have. and problem that I need also add in permissions table permission I use laravel 5.6</p> <p>Here example of simple plugin pastecode.xyz/view/75d2fa28 Calls boot when plugin loaded And onActivate when user activate this plugin</p> <p>I'm looking for something like dynamic Policies</p> <p>or like <a href="https://octobercms.com/docs/plugin/registration" rel="nofollow noreferrer">https://octobercms.com/docs/plugin/registration</a> </p> <pre><code> 'permissions' =&gt; ['acme.blog.*'], </code></pre> </div>

服务器未运行body multipart / form-data

<div class="post-text" itemprop="text"> <p>I send on server multipart/form-data but not Error. No nothing! Simple 200 code request. I try to send multipart self.</p> <p>I add header: </p> <pre><code>connection.addRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary); </code></pre> <p>And send body:</p> <pre><code>--------b3a2fb0a4742753e0c507301a6bcb2bc Content-Disposition: form-data; name="Test" test --------b3a2fb0a4742753e0c507301a6bcb2bc-- </code></pre> <p>But PHP not showing $_POST variable Test</p> <p>Java-code</p> <pre><code>void onWriteBody(String boundary, OutputStream outputStream) throws Exception { for (int i = 0; i &lt; data.size(); i++) { // Reference for data Data data = this.data.get(i); // Start multi-part/data outputStream.write((boundary + " ").getBytes(StandardCharsets.UTF_8)); // Add content-disposition outputStream.write(("Content-Disposition: form-data; name=\"" + URLEncoder.encode(data.getName(), "UTF-8") + "\"").getBytes(StandardCharsets.UTF_8)); // If file then add tag for file if (data instanceof Data.File) { outputStream.write(("; filename=\"" + URLEncoder.encode(((Data.File) data).getFileName(), "UTF-8") + "\" ").getBytes(StandardCharsets.UTF_8)); outputStream.write(("Content-Type: " + ((Data.File) data).getContentType()).getBytes(StandardCharsets.UTF_8)); } // Add new line outputStream.write(" ".getBytes()); // Write to output stream this.writeToOutputStream(outputStream, data); // End multi-part/data outputStream.write((" " + boundary + (i == this.data.size() - 1 ? "--" : " ")).getBytes(StandardCharsets.UTF_8)); } // After end the operation close output stream outputStream.flush(); outputStream.close(); } </code></pre> </div>

jni的问题 自己的dll 调用了PI SDK 的dll,在运行测试时出错

自己的dll调用了PI SDK的dll,在自己的dll里不加PISDK的内容时。能够正确执行。但加上就出错。 我现在已经做个工作,将应用到的几个dll都和自己的dll一起拷贝到了。jdk的bin目下了。全都拷贝到system32下也不能解决。 是路径有问题吗?还是其他问题。 我的开发工具是vc8,myeclipes6,jdk1.6,pisdk3 以下是错误: # # An unexpected error has been detected by Java Runtime Environment: # # Internal Error (0xe06d7363), pid=3860, tid=3836 # # Java VM: Java HotSpot(TM) Client VM (11.2-b01 mixed mode, sharing windows-x86) # Problematic frame: # C [kernel32.dll+0x12afb] # # An error report file with more information is saved as: # E:\workspace\Server\hs_err_pid3860.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (0xe06d7363), pid=3984, tid=1244 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode) # Problematic frame: # C [kernel32.dll+0x12afb] # --------------- T H R E A D --------------- Current thread (0x00824c90): JavaThread "main" [_thread_in_native, id=1244] siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x0006f9d4 0x100033e0 Registers: EAX=0x0006f93c, EBX=0x008377c4, ECX=0x00000000, EDX=0x0006f9d4 ESP=0x0006f938, EBP=0x0006f98c, ESI=0x0006f9c4, EDI=0x0006fa14 EIP=0x7c812afb, EFLAGS=0x00000206 Top of Stack: (sp=0x0006f938) 0x0006f938: 00824d50 e06d7363 00000001 00000000 0x0006f948: 7c812afb 00000003 19930520 0006f9d4 0x0006f958: 100033e0 0006f984 769b0575 10003134 0x0006f968: 00000000 00000017 00000000 00000001 0x0006f978: 00000000 0006f9cc 00000000 0006f9a8 0x0006f988: 769b0544 0006f9c4 7857dbf9 e06d7363 0x0006f998: 00000001 00000003 0006f9b8 e06d7363 0x0006f9a8: 00000001 00000000 00000000 00000003 Instructions: (pc=0x7c812afb) 0x7c812aeb: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 10 15 80 7c 0x7c812afb: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc Stack: [0x00030000,0x00070000), sp=0x0006f938, free space=254k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [kernel32.dll+0x12afb] C [MSVCR90.dll+0x5dbf9] C [piplugin.dll+0x1b00] C [piplugin.dll+0x1a41] C [piplugin.dll+0x15e6] j com.bdxyit.pi.Piplugin.getPIValueList()Ljava/util/List;+0 j com.bdxyit.pi.Piplugin.main([Ljava/lang/String;)V+211 v ~StubRoutines::call_stub V [jvm.dll+0x871a8] V [jvm.dll+0xdf462] V [jvm.dll+0x87079] V [jvm.dll+0x8e0d5] C [javaw.exe+0x14c5] C [javaw.exe+0x3151] C [kernel32.dll+0x17077] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.bdxyit.pi.Piplugin.getPIValueList()Ljava/util/List;+0 j com.bdxyit.pi.Piplugin.main([Ljava/lang/String;)V+211 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x00832300 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2728] 0x00831730 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1944] 0x00830500 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3028] 0x0082fd90 JavaThread "Finalizer" daemon [_thread_blocked, id=1620] 0x0082ea80 JavaThread "Reference Handler" daemon [_thread_blocked, id=3124] =>0x00824c90 JavaThread "main" [_thread_in_native, id=1244] Other Threads: 0x0082ddf0 VMThread [id=3960] 0x00835600 WatcherThread [id=3684] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 576K, used 459K [0x02be0000, 0x02c80000, 0x030c0000) eden space 512K, 89% used [0x02be0000, 0x02c52cd0, 0x02c60000) from space 64K, 0% used [0x02c60000, 0x02c60000, 0x02c70000) to space 64K, 0% used [0x02c70000, 0x02c70000, 0x02c80000) tenured generation total 1408K, used 0K [0x030c0000, 0x03220000, 0x06be0000) the space 1408K, 0% used [0x030c0000, 0x030c0000, 0x030c0200, 0x03220000) compacting perm gen total 8192K, used 1981K [0x06be0000, 0x073e0000, 0x0abe0000) the space 8192K, 24% used [0x06be0000, 0x06dcf5b8, 0x06dcf600, 0x073e0000) No shared spaces configured. Dynamic libraries: 0x00400000 - 0x0040d000 D:\taptools\MyEclipse6\jre\bin\javaw.exe 0x7c920000 - 0x7c9b6000 C:\WINDOWS\system32\ntdll.dll 0x7c800000 - 0x7c91e000 C:\WINDOWS\system32\kernel32.dll 0x77da0000 - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll 0x77e50000 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll 0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll 0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll 0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll 0x77be0000 - 0x77c38000 C:\WINDOWS\system32\MSVCRT.dll 0x76300000 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL 0x62c20000 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL 0x73fa0000 - 0x7400b000 C:\WINDOWS\system32\USP10.dll 0x6d640000 - 0x6d7dd000 D:\taptools\MyEclipse6\jre\bin\client\jvm.dll 0x76b10000 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll 0x6d290000 - 0x6d298000 D:\taptools\MyEclipse6\jre\bin\hpi.dll 0x76bc0000 - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL 0x6d610000 - 0x6d61c000 D:\taptools\MyEclipse6\jre\bin\verify.dll 0x6d310000 - 0x6d32d000 D:\taptools\MyEclipse6\jre\bin\java.dll 0x6d630000 - 0x6d63f000 D:\taptools\MyEclipse6\jre\bin\zip.dll 0x10000000 - 0x10007000 C:\Program Files\Java\jdk1.6.0_12\bin\piplugin.dll 0x76990000 - 0x76acd000 C:\WINDOWS\system32\ole32.dll 0x770f0000 - 0x7717b000 C:\WINDOWS\system32\OLEAUT32.dll 0x78520000 - 0x785c3000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\MSVCR90.dll VM Arguments: jvm_args: -Xbootclasspath/a:D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\javaee.jar;D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\jsf-impl.jar;D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\jsf-api.jar;D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\jstl-1.2.jar java_command: com.bdxyit.pi.Piplugin Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12 CLASSPATH=.D:\IBM\SQLLIB\java\db2java.zip;D:\IBM\SQLLIB\java\db2jcc.jar;D:\IBM\SQLLIB\java\sqlj.zip;D:\IBM\SQLLIB\java\db2jcc_license_cu.jar;D:\IBM\SQLLIB\bin;D:\IBM\SQLLIB\java\common.jar;C:\Program Files\Java\jdk1.6.0_12\lib PATH=C:\Program Files\Java\jdk1.6.0_12\bin;D:\oracle\product\10.2.0\db_1\bin;D:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Subversion\bin;C:\Program Files\Sybase\SQL Anywhere 8\win32;C:\Program Files\Sybase\Shared\win32;C:\Program Files\Sybase\Shared\Sybase Central 4.1;C:\Program Files\Sybase\PowerDynamo\win32;C:\Program Files\Sybase\Shared\PowerBuilder;C:\Program Files\Sybase\InfoMaker 9.0\Tutorial;C:\Program Files\Sybase\Shared\Web Targets;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\IBM\SQLLIB\BIN;D:\IBM\SQLLIB\FUNCTION;D:\IBM\SQLLIB\SAMPLES\REPL;C:\Sun\SDK\bin;C:\Program Files\PIPC USERNAME=Administrator OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel --------------- S Y S T E M --------------- OS: Windows XP Build 2600 Service Pack 3 CPU:total 2 (cores per cpu 2, threads per core 1) family 6 model 7 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2 Memory: 4k page, physical 2094996k(928400k free), swap 3510488k(2283752k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0

挂在AWS Lambda上的数据库连接

<div class="post-text" itemprop="text"> <p>I am trying to do basic db connection in AWS Lambda with Go, and for some reason, it got stuck at db.prepare() and no log is presented in cloudwatch.</p> <pre><code>func Handler(request Request) (Response, error) { db, err := sql.Open("mysql", dbUsername+":"+dbPassword+"@tcp("+dbURL+":"+dbPort+")/"+dbName) if err != nil { log.Fatal(err) } defer db.Close() stmt, err := db.Prepare("SELECT id, password FROM package_passwords WHERE password = ?") return Response{ Message: "rows", Ok: false, }, nil } </code></pre> <p>weird thing is that the code above stuck at least more than 5 second in AWS Lambda while it works fine in plain go run/ go build.</p> </div>

使用go mod下载时,什么会导致“模式匹配任何模块依赖性”?

<div class="post-text" itemprop="text"> <p>When running <strong>go mod download</strong> the warning (warning: pattern "all" matched no module dependencies) is shown and none of the modules in my go.mod file are download to the local cache.</p> <p>I've spent the last hour on google trying to find similar errors but have been stuck with the only results being broken CI build logs. </p> <p>My go.mod file is as follows:</p> <pre><code>module github.com/j4ng5y/scraper-api go 1.12 require ( github.com/PuerkitoBio/goquery v1.5.0 // indirect github.com/antchfx/htmlquery v1.0.0 // indirect github.com/antchfx/xmlquery v1.0.0 // indirect github.com/antchfx/xpath v0.0.0-20190319080838-ce1d48779e67 // indirect github.com/go-yaml/yaml v2.1.0+incompatible github.com/gobwas/glob v0.2.3 // indirect github.com/gocolly/colly v1.2.0 // indirect github.com/gorilla/mux v1.7.1 github.com/kennygrant/sanitize v1.2.4 // indirect github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect github.com/temoto/robotstxt v0.0.0-20180810133444-97ee4a9ee6ea // indirect golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 // indirect google.golang.org/appengine v1.5.0 // indirect ) </code></pre> <p>I would expect <strong>go mod download</strong> to pull all of the modules to the local cache but instead I get the warning and nothing is downloaded.</p> </div>

aria2的下载过程中出现的问题

![图片说明](https://img-ask.csdn.net/upload/202001/25/1579953732_414237.png) 如上,都下载了三分之二了,但是出现了这个问题,再之后我重新下载都是0%了,这个文件是百度云里的一个压缩包,请问我要怎么解决呢? 链接里面是这样的内容 {"error_code":31326,"error_msg":"user is not authorized, hitcode:109","error_info":"","request_id":576012996596119898} 日志文件里是以下错误 2020-01-25 19:21:54.674205 [ERROR] [AbstractCommand.cc:351] CUID#46 - Download aborted. URI=https://pcs.baidu.com/rest/2.0/pcs/file?method=download&app_id=250528&path=%2F%E6%88%91%E7%9A%84%E8%B5%84%E6%BA%90%2FAdode%202020%20Win%20SP%E7%8B%AC%E7%AB%8B%E8%BD%AF%E4%BB%B6%E7%89%88%2FAdobe_Premiere_Pro_2020_14.0.0.572_SP_20191104.rar Exception: [AbstractCommand.cc:351] errorCode=22 URI=https://qdall01.baidupcs.com/file/f95a0d1622194300c97e7bc5eab1c517?bkt=en-26dcfdb4e5ee1a49eaf26265901af17c7cb1a8d473b7b2d0f89e135eb3b16b6cd6f92cd7a24beab5&fid=2319825596-250528-146821423475030&time=1579951314&sign=FDTAXGERLQlBHSKfWa-DCb740ccc5511e5e8fedcff06b081203-rFw%2BC6T4CpDgPr9iQzMzPJVhIg8%3D&to=92&size=1746725415&sta_dx=1746725415&sta_cs=15995&sta_ft=rar&sta_ct=5&sta_mt=1&fm2=MH%2CYangquan%2CAnywhere%2C%2Chebei%2Ccnc&ctime=1572880951&mtime=1579814977&resv0=-1&resv1=0&resv2=rlim&resv3=5&resv4=1746725415&vuk=2319825596&iv=-2&htype=&randtype=&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=en-c2a2fca1773dfa1364bc3730768be1bcb4cf5bef3ca0d927cbb5764460f95e026aacd80c89972ca5&sl=80740430&expires=8h&rt=pr&r=256240782&mlogid=575341430521813490&vbdid=-&fin=Adobe_Premiere_Pro_2020_14.0.0.572_SP_20191104.rar&fn=Adobe_Premiere_Pro_2020_14.0.0.572_SP_20191104.rar&rtype=1&dp-logid=575341430521813490&dp-callid=0.1.1&hps=1&tsl=15&csl=78&fsl=-1&csign=JtHNlwtNujNMslqmqqjzpnVG2os%3D&so=0&ut=8&uter=4&serv=0&uc=1549241048&ti=39965399e74cce840cd661163e109ade9588392c4c4ffa4f&reqlabel=250528_d_67e5f81d750fb4c6056140b161259bf8_-1_b0231fc6c5c41d1af6d537905b85ad8f&by=themis -> [HttpSkipResponseCommand.cc:240] errorCode=22 The response status is not successful. status=403

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

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

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

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

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

和黑客斗争的 6 天!

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

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

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

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

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

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

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

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

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

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

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

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

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

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

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

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

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

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

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

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

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

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

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

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

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

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

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

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

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

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

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

《Oracle Java SE编程自学与面试指南》最佳学习路线图2020年最新版(进大厂必备)

正确选择比瞎努力更重要!

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

字节跳动面试官竟然问了我JDBC?

轻松等回家通知

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐