[JBoss Remoting] - big outgoing traffic on remote call
by Berik Berentayev
Berik Berentayev [https://community.jboss.org/people/berik] created the discussion
"big outgoing traffic on remote call"
To view the discussion, visit: https://community.jboss.org/message/754287#754287
--------------------------------------------------------------
Hi!
While invoking a remote method on SLSB I have big outgoing traffic (~4KB per call).
Now we have outgoing traffic 10 times bigger that incoming. I think it's strange.
Here is the conent of outgoing packets captured by Wireshark while calling method that takes one parameter. Why it sends too many information?
Packet 1
0000 00 50 22 93 e2 e8 54 42 49 89 79 ae 08 00 45 00 .P"...TB I.y...E.
0010 05 14 48 8c 40 00 80 06 11 3b c0 a8 0d 66 c0 a8 ..H.@... .;...f..
0020 0d 66 06 25 0f 21 1a b1 a1 be 51 a7 b3 74 50 10 .f.%.!.. ..Q..tP.
0030 fc 33 be 62 00 00 77 01 16 79 73 72 00 24 6f 72 .3.b..w. .ysr.$or
0040 67 2e 6a 62 6f 73 73 2e 72 65 6d 6f 74 69 6e 67 g.jboss. remoting
0050 2e 49 6e 76 6f 63 61 74 69 6f 6e 52 65 71 75 65 .Invocat ionReque
0060 73 74 a2 be 53 16 45 d7 9c 37 02 00 06 4c 00 03 st..S.E. .7...L..
0070 61 72 67 74 00 12 4c 6a 61 76 61 2f 6c 61 6e 67 argt..Lj ava/lang
0080 2f 4f 62 6a 65 63 74 3b 4c 00 07 6c 6f 63 61 74 /Object; L..locat
0090 6f 72 74 00 23 4c 6f 72 67 2f 6a 62 6f 73 73 2f ort.#Lor g/jboss/
00a0 72 65 6d 6f 74 69 6e 67 2f 49 6e 76 6f 6b 65 72 remoting /Invoker
00b0 4c 6f 63 61 74 6f 72 3b 4c 00 0e 72 65 71 75 65 Locator; L..reque
00c0 73 74 50 61 79 6c 6f 61 64 74 00 0f 4c 6a 61 76 stPayloa dt..Ljav
00d0 61 2f 75 74 69 6c 2f 4d 61 70 3b 4c 00 0d 72 65 a/util/M ap;L..re
00e0 74 75 72 6e 50 61 79 6c 6f 61 64 71 00 7e 00 03 turnPayl oadq.~..
00f0 4c 00 09 73 65 73 73 69 6f 6e 49 64 74 00 12 4c L..sessi onIdt..L
0100 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 java/lan g/String
0110 3b 4c 00 09 73 75 62 73 79 73 74 65 6d 71 00 7e ;L..subs ystemq.~
0120 00 04 78 70 73 72 00 3d 6f 72 67 2e 6a 62 6f 73 ..xpsr.= org.jbos
0130 73 2e 65 6a 62 33 2e 70 72 6f 78 79 2e 69 6d 70 s.ejb3.p roxy.imp
0140 6c 2e 69 6e 76 6f 63 61 74 69 6f 6e 2e 53 74 61 l.invoca tion.Sta
0150 74 65 66 75 6c 52 65 6d 6f 74 65 49 6e 76 6f 63 tefulRem oteInvoc
0160 61 74 69 6f 6e 07 45 50 ea cc c3 e7 3d 0c 00 00 ation.EP ....=...
0170 78 72 00 28 6f 72 67 2e 6a 62 6f 73 73 2e 61 6f xr.(org. jboss.ao
0180 70 2e 6a 6f 69 6e 70 6f 69 6e 74 2e 4d 65 74 68 p.joinpo int.Meth
0190 6f 64 49 6e 76 6f 63 61 74 69 6f 6e ed c4 bc d8 odInvoca tion....
01a0 51 a5 12 4d 0c 00 00 78 72 00 26 6f 72 67 2e 6a Q..M...x r.&org.j
01b0 62 6f 73 73 2e 61 6f 70 2e 6a 6f 69 6e 70 6f 69 boss.aop .joinpoi
01c0 6e 74 2e 49 6e 76 6f 63 61 74 69 6f 6e 42 61 73 nt.Invoc ationBas
01d0 65 bc 45 e1 c2 b9 c8 19 47 02 00 01 4c 00 08 6d e.E..... G...L..m
01e0 65 74 61 64 61 74 61 74 00 27 4c 6f 72 67 2f 6a etadatat .'Lorg/j
01f0 62 6f 73 73 2f 61 6f 70 2f 6d 65 74 61 64 61 74 boss/aop /metadat
0200 61 2f 53 69 6d 70 6c 65 4d 65 74 61 44 61 74 61 a/Simple MetaData
0210 3b 78 70 77 08 6b ea 05 1c c4 74 2d a9 73 72 00 ;xpw.k.. ..t-.sr.
0220 19 6a 61 76 61 2e 72 6d 69 2e 4d 61 72 73 68 61 .java.rm i.Marsha
0230 6c 6c 65 64 4f 62 6a 65 63 74 7c bd 1e 97 ed 63 lledObje ct|....c
0240 fc 3e 02 00 03 49 00 04 68 61 73 68 5b 00 08 6c .>...I.. hash[..l
0250 6f 63 42 79 74 65 73 74 00 02 5b 42 5b 00 08 6f ocBytest ..[B[..o
0260 62 6a 42 79 74 65 73 71 00 7e 00 0c 78 70 cb 51 bjBytesq .~..xp.Q
0270 05 5f 70 75 72 00 02 5b 42 ac f3 17 f8 06 08 54 ._pur..[ B......T
0280 e0 02 00 00 78 70 00 00 00 78 ac ed 00 05 75 72 ....xp.. .x....ur
0290 00 13 5b 4c 6a 61 76 61 2e 6c 61 6e 67 2e 4f 62 ..[Ljava .lang.Ob
02a0 6a 65 63 74 3b 90 ce 58 9f 10 73 29 6c 02 00 00 ject;..X ..s)l...
02b0 78 70 00 00 00 01 73 72 00 0e 6a 61 76 61 2e 75 xp....sr ..java.u
02c0 74 69 6c 2e 55 55 49 44 bc 99 03 f7 98 6d 85 2f til.UUID .....m./
02d0 02 00 02 4a 00 0c 6c 65 61 73 74 53 69 67 42 69 ...J..le astSigBi
02e0 74 73 4a 00 0b 6d 6f 73 74 53 69 67 42 69 74 73 tsJ..mos tSigBits
02f0 78 70 88 74 63 51 24 13 36 90 7f 05 f6 5d 1d c9 xp.tcQ$. 6....]..
0300 4f 34 73 72 00 25 6f 72 67 2e 6a 62 6f 73 73 2e O4sr.%or g.jboss.
0310 61 6f 70 2e 6d 65 74 61 64 61 74 61 2e 53 69 6d aop.meta data.Sim
0320 70 6c 65 4d 65 74 61 44 61 74 61 ca 3f 5c 5f b0 pleMetaD ata.?\_.
0330 11 a1 0f 0c 00 00 78 70 74 00 0a 44 49 53 50 41 ......xp t..DISPA
0340 54 43 48 45 52 74 00 03 4f 49 44 74 00 45 6a 62 TCHERt.. OIDt.Ejb
0350 6f 73 73 2e 6a 32 65 65 3a 65 61 72 3d 4f 72 33 oss.j2ee :ear=Or3
0360 45 41 52 2e 65 61 72 2c 6a 61 72 3d 4f 72 33 45 EAR.ear, jar=Or3E
0370 4a 42 2e 6a 61 72 2c 6e 61 6d 65 3d 53 65 73 73 JB.jar,n ame=Sess
0380 69 6f 6e 4f 70 73 2c 73 65 72 76 69 63 65 3d 45 ionOps,s ervice=E
0390 4a 42 33 70 74 00 08 52 45 4d 4f 54 49 4e 47 74 JB3pt..R EMOTINGt
03a0 00 09 53 55 42 53 59 53 54 45 4d 74 00 03 41 4f ..SUBSYS TEMt..AO
03b0 50 74 00 0f 49 4e 56 4f 4b 45 52 5f 4c 4f 43 41 Pt..INVO KER_LOCA
03c0 54 4f 52 73 72 00 21 6f 72 67 2e 6a 62 6f 73 73 TORsr.!o rg.jboss
03d0 2e 72 65 6d 6f 74 69 6e 67 2e 49 6e 76 6f 6b 65 .remotin g.Invoke
03e0 72 4c 6f 63 61 74 6f 72 ba eb ef 03 0b 02 bb a7 rLocator ........
03f0 02 00 0b 49 00 04 70 6f 72 74 4c 00 0c 63 6f 6e ...I..po rtL..con
0400 6e 65 63 74 48 6f 6d 65 73 74 00 15 4c 6a 61 76 nectHome st..Ljav
0410 61 2f 75 74 69 6c 2f 41 72 72 61 79 4c 69 73 74 a/util/A rrayList
0420 3b 4c 00 09 68 6f 6d 65 49 6e 55 73 65 74 00 19 ;L..home InUset..
0430 4c 6f 72 67 2f 6a 62 6f 73 73 2f 72 65 6d 6f 74 Lorg/jbo ss/remot
0440 69 6e 67 2f 48 6f 6d 65 3b 4c 00 05 68 6f 6d 65 ing/Home ;L..home
0450 73 71 00 7e 00 1a 4c 00 04 68 6f 73 74 71 00 7e sq.~..L. .hostq.~
0460 00 04 4c 00 0b 6f 72 69 67 69 6e 61 6c 55 52 4c ..L..ori ginalURL
0470 71 00 7e 00 04 4c 00 0a 70 61 72 61 6d 65 74 65 q.~..L.. paramete
0480 72 73 71 00 7e 00 03 4c 00 04 70 61 74 68 71 00 rsq.~..L ..pathq.
0490 7e 00 04 4c 00 08 70 72 6f 74 6f 63 6f 6c 71 00 ~..L..pr otocolq.
04a0 7e 00 04 4c 00 05 71 75 65 72 79 71 00 7e 00 04 ~..L..qu eryq.~..
04b0 4c 00 03 75 72 69 71 00 7e 00 04 78 70 00 00 0f L..uriq. ~..xp...
04c0 21 73 72 00 13 6a 61 76 61 2e 75 74 69 6c 2e 41 !sr..jav a.util.A
04d0 72 72 61 79 4c 69 73 74 78 81 d2 1d 99 c7 61 9d rrayList x.....a.
04e0 03 00 01 49 00 04 73 69 7a 65 78 70 00 00 00 01 ...I..si zexp....
04f0 77 04 00 00 00 0a 73 72 00 17 6f 72 67 2e 6a 62 w.....sr ..org.jb
0500 6f 73 73 2e 72 65 6d 6f 74 69 6e 67 2e 48 6f 6d oss.remo ting.Hom
0510 65 72 bd 33 e8 b8 54 d4 33 02 00 02 49 00 04 70 er.3..T. 3...I..p
0520 6f 72 or
Packet 2:
0000 00 50 22 93 e2 e8 54 42 49 89 79 ae 08 00 45 00 .P"...TB I.y...E.
0010 05 14 48 8d 40 00 80 06 11 3a c0 a8 0d 66 c0 a8 ..H.@... .:...f..
0020 0d 66 06 25 0f 21 1a b1 a6 aa 51 a7 b3 74 50 10 .f.%.!.. ..Q..tP.
0030 fc 33 03 1b 00 00 74 4c 00 04 68 6f 73 74 71 00 .3....tL ..hostq.
0040 7e 00 04 78 70 00 00 0f 21 74 00 0e 31 39 32 2e ~..xp... !t..192.
0050 31 36 38 2e 31 33 2e 31 30 32 78 71 00 7e 00 20 168.13.1 02xq.~.
0060 73 71 00 7e 00 1d 00 00 00 01 77 04 00 00 00 0a sq.~.... ..w.....
0070 71 00 7e 00 20 78 71 00 7e 00 21 74 00 4e 73 6f q.~. xq. ~.!t.Nso
0080 63 6b 65 74 3a 2f 2f 31 39 32 2e 31 36 38 2e 31 cket://1 92.168.1
0090 33 2e 31 30 32 3a 33 38 37 33 2f 3f 69 6e 76 6f 3.102:38 73/?invo
00a0 6b 65 72 44 65 73 74 72 75 63 74 69 6f 6e 44 65 kerDestr uctionDe
00b0 6c 61 79 3d 31 38 30 30 30 30 26 6d 61 78 50 6f lay=1800 00&maxPo
00c0 6f 6c 53 69 7a 65 3d 31 30 30 30 30 73 72 00 11 olSize=1 0000sr..
00d0 6a 61 76 61 2e 75 74 69 6c 2e 54 72 65 65 4d 61 java.uti l.TreeMa
00e0 70 0c c1 f6 3e 2d 25 6a e6 03 00 01 4c 00 0a 63 p...>-%j ....L..c
00f0 6f 6d 70 61 72 61 74 6f 72 74 00 16 4c 6a 61 76 omparato rt..Ljav
0100 61 2f 75 74 69 6c 2f 43 6f 6d 70 61 72 61 74 6f a/util/C omparato
0110 72 3b 78 70 70 77 04 00 00 00 02 74 00 17 69 6e r;xppw.. ...t..in
0120 76 6f 6b 65 72 44 65 73 74 72 75 63 74 69 6f 6e vokerDes truction
0130 44 65 6c 61 79 74 00 06 31 38 30 30 30 30 74 00 Delayt.. 180000t.
0140 0b 6d 61 78 50 6f 6f 6c 53 69 7a 65 74 00 05 31 .maxPool Sizet..1
0150 30 30 30 30 78 74 00 01 2f 74 00 06 73 6f 63 6b 0000xt.. /t..sock
0160 65 74 74 00 30 69 6e 76 6f 6b 65 72 44 65 73 74 ett.0inv okerDest
0170 72 75 63 74 69 6f 6e 44 65 6c 61 79 3d 31 38 30 ructionD elay=180
0180 30 30 30 26 6d 61 78 50 6f 6f 6c 53 69 7a 65 3d 000&maxP oolSize=
0190 31 30 30 30 30 74 00 4e 73 6f 63 6b 65 74 3a 2f 10000t.N socket:/
01a0 2f 31 39 32 2e 31 36 38 2e 31 33 2e 31 30 32 3a /192.168 .13.102:
01b0 33 38 37 33 2f 3f 69 6e 76 6f 6b 65 72 44 65 73 3873/?in vokerDes
01c0 74 72 75 63 74 69 6f 6e 44 65 6c 61 79 3d 31 38 truction Delay=18
01d0 30 30 30 30 26 6d 61 78 50 6f 6f 6c 53 69 7a 65 0000&max PoolSize
01e0 3d 31 30 30 30 30 70 74 00 08 73 65 63 75 72 69 =10000pt ..securi
01f0 74 79 74 00 07 63 6f 6e 74 65 78 74 73 72 00 22 tyt..con textsr."
0200 6f 72 67 2e 6a 62 6f 73 73 2e 61 6f 70 2e 75 74 org.jbos s.aop.ut
0210 69 6c 2e 4d 61 72 73 68 61 6c 6c 65 64 56 61 6c il.Marsh alledVal
0220 75 65 ea cc e0 d1 f4 4a d0 99 0c 00 00 78 70 7a ue.....J .....xpz
0230 00 00 04 00 00 00 04 48 ac ed 00 05 73 72 00 2f .......H ....sr./
0240 6f 72 67 2e 6a 62 6f 73 73 2e 73 65 63 75 72 69 org.jbos s.securi
0250 74 79 2e 70 6c 75 67 69 6e 73 2e 4a 42 6f 73 73 ty.plugi ns.JBoss
0260 53 65 63 75 72 69 74 79 43 6f 6e 74 65 78 74 00 Security Context.
0270 00 00 00 00 00 00 01 02 00 07 5a 00 05 74 72 61 ........ ..Z..tra
0280 63 65 4c 00 0b 63 6f 6e 74 65 78 74 44 61 74 61 ceL..con textData
0290 74 00 0f 4c 6a 61 76 61 2f 75 74 69 6c 2f 4d 61 t..Ljava /util/Ma
02a0 70 3b 4c 00 13 69 53 65 63 75 72 69 74 79 4d 61 p;L..iSe curityMa
02b0 6e 61 67 65 6d 65 6e 74 74 00 28 4c 6f 72 67 2f nagement t.(Lorg/
02c0 6a 62 6f 73 73 2f 73 65 63 75 72 69 74 79 2f 49 jboss/se curity/I
02d0 53 65 63 75 72 69 74 79 4d 61 6e 61 67 65 6d 65 Security Manageme
02e0 6e 74 3b 4c 00 0d 69 6e 63 6f 6d 69 6e 67 52 75 nt;L..in comingRu
02f0 6e 41 73 74 00 1a 4c 6f 72 67 2f 6a 62 6f 73 73 nAst..Lo rg/jboss
0300 2f 73 65 63 75 72 69 74 79 2f 52 75 6e 41 73 3b /securit y/RunAs;
0310 4c 00 0d 6f 75 74 67 6f 69 6e 67 52 75 6e 41 73 L..outgo ingRunAs
0320 71 00 7e 00 03 4c 00 0e 73 65 63 75 72 69 74 79 q.~..L.. security
0330 44 6f 6d 61 69 6e 74 00 12 4c 6a 61 76 61 2f 6c Domaint. .Ljava/l
0340 61 6e 67 2f 53 74 72 69 6e 67 3b 4c 00 0b 73 75 ang/Stri ng;L..su
0350 62 6a 65 63 74 49 6e 66 6f 74 00 20 4c 6f 72 67 bjectInf ot. Lorg
0360 2f 6a 62 6f 73 73 2f 73 65 63 75 72 69 74 79 2f /jboss/s ecurity/
0370 53 75 62 6a 65 63 74 49 6e 66 6f 3b 78 70 00 73 SubjectI nfo;xp.s
0380 72 00 11 6a 61 76 61 2e 75 74 69 6c 2e 48 61 73 r..java. util.Has
0390 68 4d 61 70 05 07 da c1 c3 16 60 d1 03 00 02 46 hMap.... ..`....F
03a0 00 0a 6c 6f 61 64 46 61 63 74 6f 72 49 00 09 74 ..loadFa ctorI..t
03b0 68 72 65 73 68 6f 6c 64 78 70 3f 40 00 00 00 00 hreshold xp?@....
03c0 00 0c 77 08 00 00 00 10 00 00 00 00 78 73 72 00 ..w..... ....xsr.
03d0 34 6f 72 67 2e 6a 62 6f 73 73 2e 73 65 63 75 72 4org.jbo ss.secur
03e0 69 74 79 2e 70 6c 75 67 69 6e 73 2e 44 65 66 61 ity.plug ins.Defa
03f0 75 6c 74 53 65 63 75 72 69 74 79 4d 61 6e 61 67 ultSecur ityManag
0400 65 6d 65 6e 74 00 00 00 00 00 00 00 01 02 00 01 ement... ........
0410 4c 00 07 68 61 6e 64 6c 65 72 74 00 2e 4c 6a 61 L..handl ert..Lja
0420 76 61 78 2f 73 65 63 75 72 69 74 79 2f 61 75 74 vax/secu rity/aut
0430 68 2f 63 61 6c 6c 62 61 63 6b 2f 43 61 6c 6c 62 h/callba ck/Callb
0440 61 63 6b 48 61 6e 64 6c 65 72 3b 78 70 73 72 00 ackHandl er;xpsr.
0450 35 6f 72 67 2e 6a 62 6f 73 73 2e 73 65 63 75 72 5org.jbo ss.secur
0460 69 74 79 2e 61 75 74 68 2e 63 61 6c 6c 62 61 63 ity.auth .callbac
0470 6b 2e 4a 42 6f 73 73 43 61 6c 6c 62 61 63 6b 48 k.JBossC allbackH
0480 61 6e 64 6c 65 72 00 00 00 00 00 00 00 01 02 00 andler.. ........
0490 02 4c 00 0a 63 72 65 64 65 6e 74 69 61 6c 74 00 .L..cred entialt.
04a0 12 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 .Ljava/l ang/Obje
04b0 63 74 3b 4c 00 09 70 72 69 6e 63 69 70 61 6c 74 ct;L..pr incipalt
04c0 00 19 4c 6a 61 76 61 2f 73 65 63 75 72 69 74 79 ..Ljava/ security
04d0 2f 50 72 69 6e 63 69 70 61 6c 3b 78 70 70 70 70 /Princip al;xpppp
04e0 70 74 00 06 43 4c 49 45 4e 54 73 72 00 1e 6f 72 pt..CLIE NTsr..or
04f0 67 2e 6a 62 6f 73 73 2e 73 65 63 75 72 69 74 79 g.jboss. security
0500 2e 53 75 62 6a 65 63 74 49 6e 66 6f 00 00 00 00 .Subject Info....
0510 00 00 00 01 02 00 03 4c 00 14 61 75 74 68 65 6e .......L ..authen
0520 74 69 ti
Packet 3:
0000 00 50 22 93 e2 e8 54 42 49 89 79 ae 08 00 45 00 .P"...TB I.y...E.
0010 03 e9 48 8e 40 00 80 06 12 64 c0 a8 0d 66 c0 a8 ..H.@... .d...f..
0020 0d 66 06 25 0f 21 1a b1 ab 96 51 a7 b3 74 50 18 .f.%.!.. ..Q..tP.
0030 fc 33 fc 36 00 00 63 61 74 65 64 53 75 62 6a 65 .3.6..ca tedSubje
0040 63 74 74 00 1d 4c 6a 61 76 61 78 2f 73 65 63 75 ctt..Lja vax/secu
0050 72 69 74 79 2f 61 75 74 68 2f 53 75 62 6a 65 63 rity/aut h/Subjec
0060 74 3b 4c 00 0a 69 64 65 6e 74 69 74 69 65 73 74 t;L..ide ntitiest
0070 00 0f 4c 6a 61 76 61 2f 75 74 69 6c 2f 53 65 74 ..Ljava/ util/Set
0080 3b 4c 00 05 72 6f 6c 65 73 74 00 27 4c 6f 72 67 ;L..role st.'Lorg
0090 2f 6a 62 6f 73 73 2f 73 65 63 75 72 69 74 79 2f /jboss/s ecurity/
00a0 69 64 65 6e 74 69 74 79 2f 52 6f 6c 65 47 72 6f identity /RoleGro
00b0 75 70 3b 78 70 70 73 72 00 11 6a 61 76 61 2e 75 up;xppsr ..java.u
00c0 74 69 6c 2e 48 61 73 68 53 65 74 ba 44 85 95 96 til.Hash Set.D...
00d0 b8 b7 34 03 00 00 78 70 77 0c 00 00 00 10 3f 40 ..4...xp w.....?@
00e0 00 00 00 00 00 01 73 72 00 42 6f 72 67 2e 6a 62 ......sr .Borg.jb
00f0 6f 73 73 2e 73 65 63 75 72 69 74 79 2e 69 64 65 oss.secu rity.ide
0100 6e 74 69 74 79 2e 65 78 74 65 6e 73 69 6f 6e 73 ntity.ex tensions
0110 2e 43 72 65 64 65 6e 74 69 61 6c 49 64 65 6e 74 .Credent ialIdent
0120 69 74 79 46 61 63 74 6f 72 79 24 31 00 00 00 00 ityFacto ry$1....
0130 00 00 00 01 02 00 03 4c 00 08 76 61 6c 24 63 72 .......L ..val$cr
0140 65 64 71 00 7e 00 0d 4c 77 4c 00 0d 76 61 6c 24 edq.~..L wL..val$
0150 70 72 69 6e 63 69 70 61 6c 71 00 7e 00 0e 4c 00 principa lq.~..L.
0160 09 76 61 6c 24 72 6f 6c 65 73 74 00 22 4c 6f 72 .val$rol est."Lor
0170 67 2f 6a 62 6f 73 73 2f 73 65 63 75 72 69 74 79 g/jboss/ security
0180 2f 69 64 65 6e 74 69 74 79 2f 52 6f 6c 65 3b 78 /identit y/Role;x
0190 70 70 70 70 78 70 78 70 74 00 08 49 53 5f 4c 4f ppppxpxp t..IS_LO
01a0 43 41 4c 74 00 04 47 55 49 44 74 00 75 6a 62 6f CALt..GU IDt.ujbo
01b0 73 73 2e 6a 32 65 65 3a 65 61 72 3d 4f 72 33 45 ss.j2ee: ear=Or3E
01c0 41 52 2e 65 61 72 2c 6a 61 72 3d 4f 72 33 45 4a AR.ear,j ar=Or3EJ
01d0 42 2e 6a 61 72 2c 6e 61 6d 65 3d 53 65 73 73 69 B.jar,na me=Sessi
01e0 6f 6e 4f 70 73 2c 73 65 72 76 69 63 65 3d 45 4a onOps,se rvice=EJ
01f0 42 33 2c 56 4d 49 44 3d 37 61 64 61 65 39 35 62 B3,VMID= 7adae95b
0200 32 32 31 30 35 30 64 33 3a 64 62 37 61 36 34 32 221050d3 :db7a642
0210 3a 31 33 39 33 34 62 66 61 32 34 34 3a 2d 37 66 :13934bf a244:-7f
0220 66 65 70 74 00 11 53 65 73 73 69 6f 6e 49 6e 76 fept..Se ssionInv
0230 6f 63 61 74 69 6f 6e 74 00 0d 49 6e 76 6f 6b 65 ocationt ..Invoke
0240 64 4d 65 74 68 6f 64 73 72 00 2d 6f 72 67 2e 6a dMethods r.-org.j
0250 62 6f 73 73 2e 65 6a 62 33 2e 63 6f 6d 6d 6f 6e boss.ejb 3.common
0260 2e 6c 61 6e 67 2e 53 65 72 69 61 6c 69 7a 61 62 .lang.Se rializab
0270 6c 65 4d 65 74 68 6f 64 00 00 00 00 00 00 00 01 leMethod ........
0280 02 00 05 4c 00 0f 61 63 74 75 61 6c 43 6c 61 73 ...L..ac tualClas
0290 73 4e 61 6d 65 71 00 7e 00 04 5b 00 0d 61 72 67 sNameq.~ ..[..arg
02a0 75 6d 65 6e 74 54 79 70 65 73 74 00 13 5b 4c 6a umentTyp est..[Lj
02b0 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b ava/lang /String;
02c0 4c 00 12 64 65 63 6c 61 72 69 6e 67 43 6c 61 73 L..decla ringClas
02d0 73 4e 61 6d 65 71 00 7e 00 04 4c 00 04 6e 61 6d sNameq.~ ..L..nam
02e0 65 71 00 7e 00 04 4c 00 0a 72 65 74 75 72 6e 54 eq.~..L. .returnT
02f0 79 70 65 71 00 7e 00 04 78 70 74 00 2e 6b 7a 2e ypeq.~.. xpt..kz.
0300 74 61 6d 75 72 2e 6f 72 33 65 65 2e 73 65 72 76 tamur.or 3ee.serv
0310 65 72 2e 73 65 73 73 69 6f 6e 2e 53 65 73 73 69 er.sessi on.Sessi
0320 6f 6e 4f 70 73 52 65 6d 6f 74 65 75 72 00 13 5b onOpsRem oteur..[
0330 4c 6a 61 76 61 2e 6c 61 6e 67 2e 53 74 72 69 6e Ljava.la ng.Strin
0340 67 3b ad d2 56 e7 e9 1d 7b 47 02 00 00 78 70 00 g;..V... {G...xp.
0350 00 00 01 74 00 0e 6a 61 76 61 2e 75 74 69 6c 2e ...t..ja va.util.
0360 55 55 49 44 74 00 32 6b 7a 2e 74 61 6d 75 72 2e UUIDt.2k z.tamur.
0370 6f 72 33 65 65 2e 73 65 72 76 65 72 2e 73 65 73 or3ee.se rver.ses
0380 73 69 6f 6e 2e 53 65 73 73 69 6f 6e 4f 70 73 4f sion.Ses sionOpsO
0390 70 65 72 61 74 69 6f 6e 73 74 00 08 67 65 74 4e peration st..getN
03a0 6f 74 65 73 74 00 1b 5b 4c 63 6f 6d 2e 63 69 66 otest..[ Lcom.cif
03b0 73 2e 6f 72 32 2e 6b 65 72 6e 65 6c 2e 4e 6f 74 s.or2.ke rnel.Not
03c0 65 3b 70 70 78 70 78 70 70 70 74 00 25 35 63 34 e;ppxpxp ppt.%5c4
03d0 6f 35 66 31 2d 68 79 37 77 7a 39 2d 68 35 7a 62 o5f1-hy7 wz9-h5zb
03e0 37 74 75 35 2d 31 2d 68 35 7a 62 66 6a 77 78 2d 7tu5-1-h 5zbfjwx-
03f0 34 32 71 00 7e 00 17 42q.~..
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754287#754287]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - Re: [Jbpm5]how to get the image showing the current status of a workflow
by Amit Joshi
Amit Joshi [https://community.jboss.org/people/mailamitjoshi] created the discussion
"Re: [Jbpm5]how to get the image showing the current status of a workflow"
To view the discussion, visit: https://community.jboss.org/message/749800#749800
--------------------------------------------------------------
Hi,
Many thanks for your reply. I am trying the solution mentioned by you but I end up with the following exception:
org.jbpm.api.JbpmException: resource jbpm.cfg.xml does not exist
at org.jbpm.pvm.internal.stream.ResourceStreamInput.openStream(ResourceStreamInput.java:60)
at org.jbpm.pvm.internal.xml.Parse.getInputSource(Parse.java:146)
at org.jbpm.pvm.internal.xml.Parser.buildDocument(Parser.java:453)
at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:425)
at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)
at org.jbpm.api.Configuration.setResource(Configuration.java:79)
at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)
Is the missing file required in jbpm 5? Any workaround?
Thanks and regards,
Amit
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749800#749800]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[JBoss Microcontainer] - How to re-compile a class loader
by lavot
lavot [https://community.jboss.org/people/lavot] created the discussion
"How to re-compile a class loader"
To view the discussion, visit: https://community.jboss.org/message/746164#746164
--------------------------------------------------------------
Hi,
I'm completely new here. I've been requested to help to improve perf on a project that runs under jboss 5.1.0.
We've done a jstack and most of the threads that run our code are blocked in the class loader in loadClass(). I've downloaded 2.09.GA jar of the class loader which seemed to improve a little the perf but now most of the threads are blocked in doLoad().
I've activated the traces for BaseClassLoader to try to understand which classes are loaded as after a few minutes of execution, I would have expected that all the classes would have been already loaded.
And that seems to be true as far as I saw:
2012-07-03 14:21:46,429 [WorkManager(2)-3] TRACE org.jboss.classloader.spi.base.BaseClassLoader - BaseClassLoader@c9447{vfszip:/opt/ESG/absapp/jboss-5.1.0.GA/server/prime/deploy/prime-cap-sms-ejb.jar/} loadClass ...capabilities.common.adapter.CapOutgoingAdapterApi resolve=false
2012-07-03 14:21:46,431 [WorkManager(2)-3] TRACE org.jboss.classloader.spi.base.BaseClassLoader - BaseClassLoader@c9447{vfszip:/opt/ESG/absapp/jboss-5.1.0.GA/server/prime/deploy/prime-cap-sms-ejb.jar/} already loaded class interface ...capabilities.common.adapter.CapOutgoingAdapterApi{cl=BaseClassLoader@c9447{vfszip:/opt/ESG/absapp/jboss-5.1.0.GA/server/prime/deploy/prime-cap-sms-ejb.jar/} codeSource=(jar:file:/opt/ESG/absapp/jboss-5.1.0.GA/server/prime/deploy/prime-cap-sms-ejb.jar!/ <no signer certificates>)}
Therefore, I don't understand why my class loader goes to doLoad() and then there gets blocked on the synchronize.
So, after that long introduction, here is my point. I'd like to understand better what is done in the class loader. So, I've decided to recompile a class loader with more traces but I failed. Could someone help me ?
I checked out the code:
c:\Program Files (x86)\Apache-Subversion-1.7.5\bin\svn.exe" co http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/tags/2.0.9.GA http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/tags/2.0.9.GA 2.0.9.GA
And tried to compile:
mvn clean install
And got what I didn't understand:
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] JBoss ClassLoader Parent POM
[INFO] JBoss ClassLoader
[INFO] JBoss ClassLoading
[INFO] JBoss ClassLoading VFS
[INFO] JBoss ClassLoader Distribution Build
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss ClassLoader Parent POM
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[INFO] [enforcer:enforce {execution: enforce-java-version}]
[INFO] [enforcer:enforce {execution: enforce-maven-version}]
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [source:jar-no-fork {execution: attach-sources}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing C:\Users\Lionel\Documents\Dev\JBOSS_CL\2.
0.9.GA\pom.xml to C:\Users\Lionel\Documents\M2_REPO\reposit
ory\org\jboss\cl\jboss-cl\2.0.9.GA\jboss-cl-2.0.9.GA.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss ClassLoader
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting file set: C:\Users\Lionel\Documents\Dev\JBO
SS_CL\2.0.9.GA\classloader\target (included: [**], excluded: [])
[INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[INFO] [enforcer:enforce {execution: enforce-java-version}]
[INFO] [enforcer:enforce {execution: enforce-maven-version}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Lionel\Documents\
Dev\JBOSS_CL\2.0.9.GA\classloader\src\main\resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 52 source files to C:\Users\Lionel\Documents\
Dev\JBOSS_CL\2.0.9.GA\classloader\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
could not parse error message: warning: [options] bootstrap class path not set i
n conjunction with -source 1.5
C:\Users\Lionel\Documents\Dev\JBOSS_CL\2.0.9.GA\classloader
\src\main\java\org\jboss\classloader\spi\base\BaseClassLoader.java:115: warning:
[deprecation] isDebugEnabled() in Logger has been deprecated
if (log.isDebugEnabled())
^
C:\Users\Lionel\DocumentsDev\JBOSS_CL\2.0.9.GA\classloader
\src\main\java\org\jboss\classloader\test\support\IsolatedClassLoaderTest.java:[
61,22] error: name clash: suite(Class<?>) in IsolatedClassLoaderTest and suite(C
lass) in AbstractTestCaseWithSetup have the same erasure, yet neither hides the
other
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Jul 04 21:02:32 CEST 2012
[INFO] Final Memory: 32M/342M
[INFO] ------------------------------------------------------------------------
Thanks for help.
Lionel
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746164#746164]
Start a new discussion in JBoss Microcontainer at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - unable to retrieve results when getTasksAssignedAsPotentialOwner
by Skulled Field
Skulled Field [https://community.jboss.org/people/skulled] created the discussion
"unable to retrieve results when getTasksAssignedAsPotentialOwner"
To view the discussion, visit: https://community.jboss.org/message/760375#760375
--------------------------------------------------------------
h2. Hello,
I can't get tasks of user by userID with the method : getTasksAssignedAsPotentialOwner(userId, language, TaskSummaryResponseHandler). But with the same java code with another database it works.
I do a "select * from jbpm_peopleassignments_potown where entity_id = 'myuserid';" in my database and I get results.
I don't understand why this code return no results :
Java code :
BlockingTaskSummaryResponseHandler task = new BlockingTaskSummaryResponseHandler();
client.getTasksAssignedAsPotentialOwner( userId, "en-UK", task );
List<TaskSummary> tasks = task.getResults();
Error log :
h2. java.lang.RuntimeException: Timeout : unable to retrieve results
h2. at org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)
...
Please help me.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/760375#760375]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - jBpm 5.2 persistence problem - Oracle - Unknown entity: org.drools.persistence.info.SessionInfo
by Samrat Roy
Samrat Roy [https://community.jboss.org/people/whizkid.samrat] created the discussion
"jBpm 5.2 persistence problem - Oracle - Unknown entity: org.drools.persistence.info.SessionInfo"
To view the discussion, visit: https://community.jboss.org/message/717687#717687
--------------------------------------------------------------
Hi , I am setting up jBpm 5.2 with persistence for the first time and facing a LoT of issues. I am using jpm 5.2 with Spring 3.0 and Hibernate 3.5.6 on jBoss AS 7 server.
We all know that jBoss AS 7 comes with Hibernate 4 as the default hibernate , but I need to use the Hibernate 3 in my project so I installed hibernate 3 as a module in as7 and that is working as expected . I excluded Hibernate 4 with jboss-deployment-structure.xml and added org.jboss.as.jpa.hibernate:3 as a dependency in manifest.mf [refer http://badr-elhouari.blogspot.in/2011/10/how-to-use-hibernate-3-as-jpa-pr... here how I added hibernate:3 as a module in AS7]
That said , I have configured the entire knowledge base and knowledge session in spring so that I dont have to write code for that - Taking tips from drools - integration module and by using drools-grid-impl jar and drools-spring jar.
Drools-grid jar contains a persistence.xml which used in memory DB [h2] so I modified the xml to use oracle and hibernate 3 instead.
Here is my *application context*:
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" p:dataSource-ref="datasource">
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" p:database="${jpa.database}" p:showSql="${jpa.showSql}"/>
</property>
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml"/>
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>
<tx:annotation-driven transaction-manager="transactionManager"/>
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
<!-- First: declare JBPM JPA Session with a process definition -->
<jbpm:kbase id="kbase">
<jbpm:resources>
<jbpm:resource type="BPMN2" source="classpath:LeaveFlow.bpmn" />
</jbpm:resources>
</jbpm:kbase>
<jbpm:ksession id="ksession" type="stateful" kbase="kbase">
<jbpm:configuration>
<jbpm:jpa-persistence>
<jbpm:entity-manager-factory ref="entityManagerFactory"/>
<jbpm:transaction-manager ref="transactionManager"/>
</jbpm:jpa-persistence>
</jbpm:configuration>
</jbpm:ksession>
<!-- Declare a TaskServer -->
<bean class="org.jbpm.task.service.TaskService" id="taskService">
<constructor-arg ref="entityManagerFactory"/>
<constructor-arg>
<bean class="org.drools.SystemEventListenerFactory" factory-method="getSystemEventListener"/>
</constructor-arg>
</bean>
<bean class="org.jbpm.task.service.mina.MinaTaskServer" id="taskServer">
<constructor-arg ref="taskService"/>
<constructor-arg><value>${jbpm.task.server.port}</value></constructor-arg>
</bean>
<!-- And start TaskServer on the configured port -->
<bean class="java.lang.Thread" id="taskServerThread" init-method="start">
<constructor-arg ref="taskServer"/>
</bean>
<!-- Declare a TaskClient -->
<bean class="org.jbpm.task.service.mina.MinaTaskClientConnector" id="taskClientConnector">
<constructor-arg value="taskClient"/>
<constructor-arg>
<bean class="org.jbpm.task.service.mina.MinaTaskClientHandler">
<constructor-arg>
<bean class="org.drools.SystemEventListenerFactory" factory-method="getSystemEventListener"/>
</constructor-arg>
</bean>
</constructor-arg>
</bean>
<bean class="org.jbpm.task.service.TaskClient" id="taskClient">
<constructor-arg ref="taskClientConnector"/>
</bean>
<!-- Declare a HumanTaskHandler -->
<bean class="org.jbpm.task.service.AsyncTaskServiceWrapper"
id="humanTaskClient">
<constructor-arg ref="taskClient"/>
</bean>
<!-- It uses previously created TaskClient -->
<bean class="org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler" id="humanTaskHandler">
<constructor-arg ref="humanTaskClient"/>
<constructor-arg ref="ksession"/>
</bean>
<!-- Configure its connection to the local server -->
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="humanTaskHandler" id="setConnection">
<property name="targetObject" ref="humanTaskHandler"/>
<property name="targetMethod" value="setConnection"/>
<property name="arguments">
<list>
<value>${jbpm.task.client.address}</value>
<value>${jbpm.task.client.port}</value>
</list>
</property>
</bean>
<!-- And connect HumanTaskHandler (implicit TaskClient connection) -->
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="setConnection">
<property name="targetObject" ref="humanTaskHandler"/>
<property name="targetMethod" value="connect"/>
</bean>
<!-- Finnaly, register HumanTaskHandler in the session -->
<bean factory-bean="ksession" factory-method="getWorkItemManager" id="workItemManager"/>
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="workItemManager"/>
<property name="targetMethod" value="registerWorkItemHandler"/>
<property name="arguments">
<list>
<value>Human Task</value>
<ref bean="humanTaskHandler"/>
</list>
</property>
</bean>
The Exception I am getting while server startup is :
20:07:26,443 ERROR [org.drools.persistence.SingleSessionCommandService] (MSC service thread 1-3) Could not commit session: java.lang.IllegalArgumentException: *Unknown entity: org.drools.persistence.info.SessionInfo*
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:671) [hibernate-entitymanager-3.5.6-Final.jar:3.5.6-Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_23]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_23]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_23]
at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365) [org.springframework.orm-3.0.5.RELEASE.jar:]
at $Proxy32.persist(Unknown Source) at org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17) [drools-persistence-jpa-5.3.1.Final.jar:]
at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:152) [drools-persistence-jpa-5.3.1.Final.jar:]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_23]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_23]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_23]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_23]
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129) [drools-persistence-jpa-5.3.1.Final.jar:]
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67) [drools-persistence-jpa-5.3.1.Final.jar:]
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122) [knowledge-api-5.3.1.Final.jar:]
at org.drools.container.spring.beans.StatefulKnowledgeSessionBeanFactory.internalAfterPropertiesSet(StatefulKnowledgeSessionBeanFactory.java:85) [drools-spring-5.3.0.Final.jar:]
at org.drools.container.spring.beans.AbstractKnowledgeSessionBeanFactory.afterPropertiesSet(AbstractKnowledgeSessionBeanFactory.java:123) [drools-spring-5.3.0.Final.jar:]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [org.springframework.beans-3.0.5.RELEASE.jar:]
.......
This is driving me nuts as I have all the required jars in my classPath. Please help !!!
I am attaching important config files :
Application Ctxt of my application , MANIFEST.MF of my application , persistence.xml from my application and the persistence.xml which I modified in drools-grid jar
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717687#717687]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years