AngularJS 与jersey进行通讯备忘

DPA应用使用angular 的$http与Jersey的RESTFul接口进行ajax访问,之前一直比较顺畅,没出过什么问题。近日在**电信的计费库部署时发现,部分功能不能正常使用。
检查jersey端输出:

Apr 02, 2018 5:37:37 PM org.glassfish.jersey.server.ServerRuntime$Responder writeResponse
SEVERE: An I/O error has occurred while writing a response message entity to the container output stream.
org.glassfish.jersey.server.internal.process.MappableException: org.apache.catalina.connector.ClientAbortException: java.net.SocketException: Broken pipe (Write failed)
at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:96
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149
at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1139
at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:574
at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:381
at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:371
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:262
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267
at org.glassfish.jersey.internal.Errors.process(Errors.java:315
at org.glassfish.jersey.internal.Errors.process(Errors.java:297
at org.glassfish.jersey.internal.Errors.process(Errors.java:267
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1010
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:382
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:345
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:220

能看到broken pipe,写入错误,ClientAbortException等字样…… 服务器端代码执行时间可能略长一些,前端angular可能有默认超时机制——这个我们之前没有考虑这一点,因为没出过这个问题。查看AngularJS文档,修改angular:

dpaModule.config(function($httpProvider) {
$httpProvider.interceptors.push('myHttpInterceptor');
var spinnerFunction = function (data, headersGetter) {
$('#mydiv').show(); return data; };
$httpProvider.defaults.transformRequest.push(spinnerFunction); $httpProvider.defaults.timeout = 10*60*1000; });

把默认超时时间设置为10分钟,各项功能这回正常了

417 Comments

  1. Pingback: womens gym training shoes nike free tr focus flyknit 844817 300 hyper jade

  2. Pingback: white nike sneakers for women

  3. Pingback: kyrie shoes 2018 pinterest.com

  4. Pingback: celebrity sneaker watch fabolous previews new air jordan iii 3 bright crimson

  5. Pingback: mens washington capitals nicklas backstrom fanatics branded red breakaway player jersey

  6. Pingback: what is size 7 in boy shoes

  7. Pingback: american nfl jerseys twitter.com

  8. Pingback: schwarz lila gazelle

  9. Pingback: nike air more uptempo qs airair819151 001

  10. Pingback: july 2016 new shoes nike flyknit air max womens

  11. Pingback: nigo x adidas originals collection

  12. Pingback: 锌褍褉锌褍褉薪褘泄 锌褍褉锌褍褉薪褘泄 nike air max flight 11

  13. Pingback: adidas predator adidas predator mania

  14. Pingback: blanco amarillo nike air huaraches

  15. Pingback: r酶d gr氓 kvinders kobe 1 protro

  16. Pingback: asics gel lyte runner core black

  17. Pingback: uk trainers rihanna creepers black suede

  18. Pingback: mens knit hat

  19. Pingback: uk trainers nike air more uptempo faded olive

  20. Pingback: oro oro converse us collective version

  21. Pingback: the north face vortex triclimate jacket mens glo green

  22. Pingback: azul marr贸n adidas pharrell williams tennis hu pw human race

  23. Pingback: sandals men adidas originals adilette easy coralsun glow 8

  24. Pingback: nike roshe nike prime hype df

  25. Pingback: cheap computer bags for men

  26. Pingback: penny 5 suns

  27. Pingback: men boots timberland pro wilshire 44105 marron timberland ireland

  28. Pingback: hamilton jazzmaster lord automatic chronograph

  29. Pingback: adidas ace 17 adidas ace tango 17

  30. Pingback: timberland kenniston 6 lace

  31. Pingback: brand new whitelight pink puma sneakers size 9 womens shoespuma sneakersblack pumaofficial supplier

  32. Pingback: mens black balenciaga runners

  33. Pingback: air jordan reveal peach beige

  34. Pingback: rare basketball shorts basketball shorts elite womens nike reveal

  35. Pingback: 2018 where to buy adidas originals superstar ba9916 unisex shoes sneakers white blanc moonlight blue02 youth

  36. Pingback: uk trainers beach wading sandal light bone

  37. Pingback: black flowy off the shoulder dress wine

  38. Pingback: line off the shoulder sweep train light sky blue satin prom dress

  39. Pingback: puma suede platform rihanna 2 silk sneakers flatform

  40. Pingback: 褏邪泻懈 斜械谢褘泄 kobe 6

  41. Pingback: logic says he wants a part hip hops legacy

  42. Pingback: perlai

  43. Pingback: floornhome

  44. Pingback: nike hats with no topadidas hat white

  45. Pingback: mlb stlouis cardinals snapback hat 1 online 5.9 www

  46. Pingback: power support air jacket iphone 3g 3gs hello kitty pink bow apple 40 liked on polyvore

  47. Pingback: britishtokens

  48. Pingback: yanaena

  49. Pingback: jlchatlaw

  50. Pingback: dronesofusa

  51. Pingback: winnercells

  52. Pingback: puurderleven

  53. Pingback: gym bags 68816 meal management bag 6 pack portion control containers gym fitness lunch prep

  54. Pingback: yufnsyb

  55. Pingback: fabloomsilk

  56. Pingback: prada velvet sneakers prada sneakers prada women special offer

  57. Pingback: faithboxwomen

  58. Pingback: jschwimmermd

  59. Pingback: gldstore

  60. Pingback: infantocursos

  61. Pingback: sethba

  62. Pingback: abbiemorrison

  63. Pingback: steamfestnz

  64. Pingback: selfdriverbus

  65. Pingback: denisgoulart

  66. Pingback: atemspende

  67. Pingback: rejuvmedia

  68. Pingback: iphone 5 case iphone 5s case honeyake bling diamond sparkly handmade crystal rhinestone cover soft

  69. Pingback: fincasagaro

  70. Pingback: mustard suedette stiletto heel chelsea shoe boots new look

  71. Pingback: cool running leggings shorts

  72. Pingback: royalpinkwax

  73. Pingback: mikeorlandoni

  74. Pingback: 8z1143o9

  75. Pingback: pennphone

  76. Pingback: alchemaerie

  77. Pingback: ourfamilywebs

  78. Pingback: nike air classic bw persian violet

  79. Pingback: luftfotosepp

  80. Pingback: bootsoffprice

  81. Pingback: hvactampafl

  82. Pingback: acebelfast

  83. Pingback: new zealand wings pro 2 trail shoes slateblue light onix granny green salomon shoes

  84. Pingback: nike air max 96 rose madder san francisco

  85. Pingback: man u football jerseys

  86. Pingback: ppfbfq42

  87. Pingback: tracyrn

  88. Pingback: trncizolasyon

  89. Pingback: bettansdesign

  90. Pingback: kristyhuston

  91. Pingback: nike roshe run printpara caballeros zapatos

  92. Pingback: cynshq

  93. Pingback: yicailottery

  94. Pingback: ycbrowsbeauty

  95. Pingback: liquidputter

  96. Pingback: boston red sox kids apparel

  97. Pingback: emmamoney

  98. Pingback: ykloans

  99. Pingback: kidtokidboise

  100. Pingback: biyotestatik

  101. Pingback: haceryeni

  102. Pingback: bobby rainey 43 jersey uk

  103. Pingback: barber shop leather keyring clipper brown

  104. Pingback: fiorentina s forward jersey shirt

  105. Pingback: rasta hat baby boygirl 8yrs crochetedknitted hippie etsy

  106. Pingback: feelsafeinc

  107. Pingback: russian artist makes classical baroque wigs out of paper

  108. Pingback: iphone 6 6s wallet case design flower stylish with owl rose

  109. Pingback: spring summer 2016 headwear trends pork pie boater hats

  110. Pingback: marr贸n rosado fila trailblazer boots

  111. Pingback: nike sb colgate lightweight woven long sleeve shirt s

  112. Pingback: bucket hats johannesburg

  113. Pingback: illustrateh

  114. Pingback: caveduperreux

  115. Pingback: gandoff

  116. Pingback: prostekrasna

  117. Pingback: turquoise wedding hair comb teal white mint green bridal flower

  118. Pingback: kamilotomotiv

  119. Pingback: dianaandwill

  120. Pingback: 37cmfwoq

  121. Pingback: nike lunarglide 6 herre sort edition

  122. Pingback: ruoiled

  123. Pingback: hirepeyton

  124. Pingback: araricambi

  125. Pingback: dcssattorneys

  126. Pingback: seonnagittens

  127. Pingback: surlion

  128. Pingback: gmanswindle

  129. Pingback: asics gel solution lyte 3 mens court shoes blue comuk 3886

  130. Pingback: maschio nike air max tailwind 6 viola nero

  131. Pingback: nike free 5.0 men running 10.5

  132. Pingback: albainmaz

  133. Pingback: tiaracara

  134. Pingback: fitbodysoul

  135. Pingback: mens nike denver broncos 94 demarcus ware elite white team rice 2016 pro bowl nfl jersey

  136. Pingback: ncctifton

  137. Pingback: nedshare

  138. Pingback: bishoplitman

  139. Pingback: ucllnl

  140. Pingback: dkslawn

  141. Pingback: air jordan 8 retro sugar ray noir vert

  142. Pingback: trionbrain

  143. Pingback: nike george iloka mens black elite jersey 43 nfl home cincinnati bengals

  144. Pingback: robe tube blanche 脿 manche longue pompom et strass fashionf221 pas cher

  145. Pingback: myfraimz

  146. Pingback: meinscreen

  147. Pingback: calendarxs

  148. Pingback: instabitgram

  149. Pingback: incommonblog

  150. Pingback: jesusinprison

  151. Pingback: adidas men clothing adidas trefoil hoodie with maroon adidas hoodies sweaters x47a4026

  152. Pingback: cosonventa

  153. Pingback: hanayaflowers

  154. Pingback: thebatchseven

  155. Pingback: easternmeter

  156. Pingback: jifivillage

  157. Pingback: argentina 9 icardi home soccer country jersey

  158. Pingback: canditatenext

  159. Pingback: although we re only in the first few days of spring 2016 that doesn t mean we re blind to what 2017 will bring the air jordan 15 stealth will make its way

  160. Pingback: miaclearbras

  161. Pingback: racquetlady

  162. Pingback: healtobfree

  163. Pingback: jordan 11 nc bleu

  164. Pingback: toddler rompers

  165. Pingback: prettypleaseonline

  166. Pingback: myfaccia

  167. Pingback: elite customized jersey buffalo bills team road two tone

  168. Pingback: jennymarston

  169. Pingback: perokokbijak

  170. Pingback: mousetoyou

  171. Pingback: nike air max 1 red and white

  172. Pingback: procomedian

  173. Pingback: gracalor

  174. Pingback: kvinders nike roshe run hyp gr氓 gul

  175. Pingback: cacikvideo

  176. Pingback: kneten

  177. Pingback: juraamei

  178. Pingback: oldoyopark

  179. Pingback: joubertets

  180. Pingback: maplebeyond

  181. Pingback: hamshrd

  182. Pingback: fullscreentours

  183. Pingback: rodriguesjose

  184. Pingback: elifeinsnow

  185. Pingback: black bodycon dress with lace sleeves

  186. Pingback: converse chuck taylor all star hi off white

  187. Pingback: kouder

  188. Pingback: bradleycountryacres

  189. Pingback: buffaloquaker

  190. Pingback: red mesh snap back flat brim hat by adidas

  191. Pingback: nike hypervenom phantom 2 2017

  192. Pingback: wwe new era hat

  193. Pingback: milapioffret

  194. Pingback: nike internationalist shoes

  195. Pingback: foxyfoot

  196. Pingback: trustnetgroup

  197. Pingback: rahsaskatoon

  198. Pingback: cheapcoatsfr

  199. Pingback: ikmsdkravmaga

  200. Pingback: lbclubmitu

  201. Pingback: trickyourride

  202. Pingback: adidas originals stan smith nero and bianca

  203. Pingback: irecaconfort

  204. Pingback: kfmimarlik

  205. Pingback: mysonno

  206. Pingback: thebiarritz

  207. Pingback: kvinders nike roshe run speckle guld r酶d

  208. Pingback: nipiservices

  209. Pingback: usstatebanks

  210. Pingback: mens asics gel sendai 2 white grey

  211. Pingback: rcfitcamp

  212. Pingback: bluerosegear

  213. Pingback: theprintjobs

  214. Pingback: lmbaidu

  215. Pingback: treehousecats

  216. Pingback: nike air max 90 essential mens gold grey

  217. Pingback: stevenrobins

  218. Pingback: asics gel kinsei 2 hommes orange

  219. Pingback: fila cross black casual shoes

  220. Pingback: ray ban rb3016 clubmaster sunglasses

  221. Pingback: btmtecled

  222. Pingback: chapter 18 classification ppt download

  223. Pingback: adidas zx flux k w schuhe schwarz

  224. Pingback: mariusen

  225. Pingback: jrelselaw

  226. Pingback: this guy is taken by a hot teacher womens hoodie

  227. Pingback: schokostueck

  228. Pingback: jordan 11 retro noir and rouge for vente

  229. Pingback: authentic discount men s dallas cowboys era navy sideline official original fit 9fifty snapback

  230. Pingback: drwestergaard

  231. Pingback: voydnet

  232. Pingback: netlandcafe

  233. Pingback: kvinders nike huarache utility lyser酶d

  234. Pingback: herre nike air max tn lyser酶d bl氓

  235. Pingback: acforlessllc

  236. Pingback: uk trainers womens nike air max 2012 chili

  237. Pingback: imagimp

  238. Pingback: air jordan imminent noir gris

  239. Pingback: mrleston

  240. Pingback: flibroactiv

  241. Pingback: polo ralph lauren rouge polo shirt

  242. Pingback: chiragsblog

  243. Pingback: annomaplexel

  244. Pingback: supermarketes

  245. Pingback: salomon xt wings 3 s酶lv svart

  246. Pingback: mylinkstv

  247. Pingback: tragemaus

  248. Pingback: nike dynamo free ps kinder blau

  249. Pingback: danaperth

  250. Pingback: quickbeautyhq

  251. Pingback: gfatraining

  252. Pingback: new balance 574 navy gold

  253. Pingback: christian shirts christian t shirts christian shirts for women religious shirts bible verse shirts religious t shirts womens fitted v neck

  254. Pingback: gemmatyndall

  255. Pingback: hot rosado nike huarache

  256. Pingback: herren nike air max 90 vt gold schwarz

  257. Pingback: jeffreya

  258. Pingback: christinabox

  259. Pingback: kvinners nike flyknit agility khaki

  260. Pingback: nike shox rivalry femme

  261. Pingback: nike mercurial victory v firm ground mens outdoor football boots

  262. Pingback: napscase

  263. Pingback: centerofsport

  264. Pingback: alexiancancer

  265. Pingback: swnblog

  266. Pingback: danceaution

  267. Pingback: doularhythms

  268. Pingback: slipoverfx

  269. Pingback: mens vintage canvas leather satchel school military shoulder messenger crossbody hiking bag walmart.com

  270. Pingback: dxnkofe

  271. Pingback: rpnailsalon

  272. Pingback: adidas zx 630 gris jaune

  273. Pingback: ahmztradefx

  274. Pingback: lagunawoodsre

  275. Pingback: salomon xt hawk blanco azul

  276. Pingback: orkansport

  277. Pingback: nike hyperdunk yellow and red dragon

  278. Pingback: vindianescort

  279. Pingback: satonni

  280. Pingback: andre iguodala signed jersey

  281. Pingback: nike air force 1 rosado plata

  282. Pingback: kidding around 2 piece shirt and short set in white grey

  283. Pingback: cohenhypnosis

  284. Pingback: umuttekelbayi

  285. Pingback: denver broncos jeff heuerman ash nike 82 nfl t shirt backer

  286. Pingback: herren nike free tr flyknit 5.0 gr眉n grau

  287. Pingback: lavaforchange

  288. Pingback: websiteopmaat

  289. Pingback: eczacinim

  290. Pingback: lolalolincoln

  291. Pingback: hugandpups

  292. Pingback: vuduchoan

  293. Pingback: lifepakused

  294. Pingback: christian louboutin 12cm black spike pumps

  295. Pingback: nike basketball jordan shoes 30

  296. Pingback: nike air pegasus 83 off hvid

  297. Pingback: jlredcross

  298. Pingback: kvinders nike kyrie 2 s酶lv gul

  299. Pingback: nike free 5.0 leo pack for sale

  300. Pingback: nike air max 1 pack south beach

  301. Pingback: zoom kobe 7 system bhm black history month 12 nike 530961

  302. Pingback: lintvan

  303. Pingback: lebosmartlipo

  304. Pingback: firagandia

  305. Pingback: adidas neo label azul adidas team court hombre mujer zapatillas

  306. Pingback: justwhatilove

  307. Pingback: steel folding indoor 5 a side goals unisport

  308. Pingback: jobstodayng

  309. Pingback: zeneventsja

  310. Pingback: nike air force 1 low foamposite new gr眉n

  311. Pingback: nike air max 2017 cuero gray negro naranja roll

  312. Pingback: fizalisfresh

  313. Pingback: hieuphamdmd

  314. Pingback: adidas stan smith woven yellow theukprobioticsconference2015

  315. Pingback: manufacturers supply nike hyperchase premium 705369 001 black white metallic silver

  316. Pingback: nike air max thea electric purple yam

  317. Pingback: renitemare

  318. Pingback: hugo boss damen pullover pullover aus leichter baumwolle mit seide und kaschmir

  319. Pingback: ksjfifgmif

  320. Pingback: ray ban round metal black

  321. Pingback: ua clutchfit drive 3 low laptop

  322. Pingback: fidgefingers

  323. Pingback: darkangelsmd

  324. Pingback: gladatassen

  325. Pingback: air jordan retro 5 mujeres naranja rosado

  326. Pingback: taaliminfos

  327. Pingback: moreheaddotts

  328. Pingback: armedangels bruce shorts stoff solid acid black

  329. Pingback: firmayoga

  330. Pingback: pdxwoof

  331. Pingback: jul archives

  332. Pingback: air jordan retro 7 silver grey

  333. Pingback: enescomert

  334. Pingback: coach new york mens shoes

  335. Pingback: polo hombres zip up sweater

  336. Pingback: fooksung

  337. Pingback: cnovas

  338. Pingback: minicomposer

  339. Pingback: jljingshi

  340. Pingback: nike free 3.0 v5 fusion rot color

  341. Pingback: thepinpress

  342. Pingback: hiltonskyshop

  343. Pingback: frissedenkers

  344. Pingback: webbgiganten

  345. Pingback: bitcashgram

  346. Pingback: uk trainers high ankle shoes

  347. Pingback: bandaangatu

  348. Pingback: nike new orleans saints blank black elite jersey

  349. Pingback: wearspeedbird

  350. Pingback: bgaddiict

  351. Pingback: davidmyre

  352. Pingback: polo hombres zip up sweater

  353. Pingback: under armour curry one negro verde

  354. Pingback: nike air huarache ultra tout blanc

  355. Pingback: chilangorails

  356. Pingback: tommy hi figer k apki szare k apki damskie marki tommy hi figer

  357. Pingback: goodmedusa

  358. Pingback: lapaktoko

  359. Pingback: zinmanlaw

  360. Pingback: nike huarache neon rosado

  361. Pingback: o produto tenis vans atwood verme ho e branco

  362. Pingback: prorilasia

  363. Pingback: stopdenguenow

  364. Pingback: tubetotext

  365. Pingback: xaviersarrate

  366. Pingback: prada saffiano gardeners tote

  367. Pingback: new balance 996 tenis. 550 brasov

  368. Pingback: nike free run 3 rosado blanco

  369. Pingback: monsterplate

  370. Pingback: najmodniejsze buty na jesie艅 2018 allani trendy

  371. Pingback: new balance 574 uomo offerta scarpe running new balance 574 rosse

  372. Pingback: herre ralph lauren shirt brun beige

  373. Pingback: theweedaddict

  374. Pingback: radioramabc

  375. Pingback: poluscompany

  376. Pingback: xthbgc

  377. Pingback: emazoncentral

  378. Pingback: dishyhair

  379. Pingback: adidas iniki runner roxo branco sapatilhas adidas masculino feminino baratas

  380. Pingback: maracamp

  381. Pingback: burkkinc

  382. Pingback: torilsdesign

  383. Pingback: air jordan retro 3 kvinders gr酶n lyser酶d

  384. Pingback: ncaa basketball jerseys north carolina 33 larry bird white ncaa basketball jerseys

  385. Pingback: nike hyperdunk 2014 tout noir

  386. Pingback: calvin klein smooth essential5cc coin

  387. Pingback: liaqui

  388. Pingback: dita designer frames central austin eye doctor

  389. Pingback: checkupmental

  390. Pingback: kentimpendik

  391. Pingback: colintilley

  392. Pingback: etnoyamal

  393. Pingback: partnersspa

  394. Pingback: connectbsl

  395. Pingback: nike free flyknit 3.0 for verkauf georgia

  396. Pingback: polyphonyma

  397. Pingback: nike mercurial victory v ag royal bleu orange noir

  398. Pingback: condor atacadista produto oculos rj jaguar kalipso

  399. Pingback: domcilios

  400. Pingback: nike air presto skull kvinners oransje

  401. Pingback: prada cat eye tortoiseshell acetate sunglasses

  402. Pingback: air jordan 2s smurf blue candy pack gs

  403. Pingback: brantfordpark

  404. Pingback: frodoshop

  405. Pingback: adidas boys red lk disney graphic spiderman print round neck t shirt

  406. Pingback: muftimuneer

  407. Pingback: 6.25 soccer ball gender reveal soccer gender reveal etsy

  408. Pingback: sconto allingrosso nike air force 1 high af1 nero rainbow scarpe outlet nike air force sport 1 100 autentico

  409. Pingback: air jordan 13 xiii retro university blue flint grey shoes jordans newest collection

  410. Pingback: mpdcir

  411. Pingback: vans 29 x lazy oaf collab at

  412. Pingback: apconcierge

  413. Pingback: womens navy converse chuck 70 wordmark wool high

  414. Pingback: adidas messi fg soccer cleats mens blue blue mens aq3109 ebay 9b5321

  415. Pingback: shoes one star pro ox

  416. Pingback: jordan son of mars low noir grape ice

  417. Pingback: festivalstayz

Leave Comment