[JBoss Remoting] - Invoke ejb remote, Classloader problem InitialContextFactory
by Fausto De La Torre
Fausto De La Torre [https://community.jboss.org/people/faustodelatog] created the discussion
"Invoke ejb remote, Classloader problem InitialContextFactory"
To view the discussion, visit: https://community.jboss.org/message/766711#766711
--------------------------------------------------------------
Hi,
I am trying to invoke a remote service from a jboss server to another jboss server, however when I intent to instantiate InitialContext to do the lookup, with jndi properties I get the next error: javax.naming.NamingException: JBAS011843: No logró instanciar InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory del cargador de clase ModuleClassLoader for Module myApp.war, it is because org.jboss.naming.remote.client.InitialContextFactory is not in the classpath of "myApp.war", right?
If JBOSS_HOMEbin/client/jboss-client.jar is packaged into myApp.war/WEB-INF/lib, InitialContextFactory is reconigzed in classpath and can instantiate InitialContext, however I do not want to do this, because
jboss-client.jar is a common library (or module?, I do not know), I would like that all applications share this library or module.
To to this I added a dependency into MANIFEST file to org.jboss.remote-naming module, this way InitialContextFactory is in classpath but other classes are not.
Question:
How can I do, all my applications (in deployments directory) and classes of jboss-client.jar are in the same classpath?
There is a module of jboss-client.jar?
Thanks in advance
Att.
Fausto
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/766711#766711]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[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, 1 month
[jBPM] - Re: Human task + HornetQ + persistence + MySQL => ununderstanding stacktrace
by Sandra Renaud
Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion
"Re: Human task + HornetQ + persistence + MySQL => ununderstanding stacktrace"
To view the discussion, visit: https://community.jboss.org/message/772558#772558
--------------------------------------------------------------
I add these lines after all named-queries to Taskorm.xml of human-task-core/META-INF/
> <entity class="org.jbpm.task.Task" metadata-complete="false">
> <attributes>
> <id name="id">
> <column name="id" />
> <generated-value strategy="IDENTITY "/>
> </id>
> </attributes>
> </entity>
After deployement my table task in MySQL have the option 'Auto Increment' check as I wanted but the error 'field id doesn't have default value' appears again :
> 14:31:34,615 ERROR [org.jbpm.task.service.TaskServerHandler] (Thread-70) Operation failed: java.lang.RuntimeException: Operation failed
> at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:994) [jbpm-human-task-core-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:186) [jbpm-human-task-core-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:144) [jbpm-human-task-core-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44) [jbpm-human-task-hornetq-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85) [jbpm-human-task-hornetq-5.3.0.Final.jar:5.3.0.Final]
> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
> Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Field 'id' doesn't have a default value
> at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:859) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> at org.jbpm.task.service.persistence.TaskPersistenceManager.saveEntity(TaskPersistenceManager.java:186) [jbpm-human-task-core-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.TaskServiceSession$1.doOperation(TaskServiceSession.java:188) [jbpm-human-task-core-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:979) [jbpm-human-task-core-5.3.0.Final.jar:5.3.0.Final]
> ... 5 more
> Caused by: org.hibernate.exception.GenericJDBCException: Field 'id' doesn't have a default value
> at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at $Proxy38.executeUpdate(Unknown Source) at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:96) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:55) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2757) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3268) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:78) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:304) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:195) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:128) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:78) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:208) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:151) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:717) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:710) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.spi.EJB3CascadingAction$1.cascade(EJB3CascadingAction.java:49) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:380) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:323) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:208) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascadeCollectionElements(Cascade.java:409) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:350) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:208) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:165) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:462) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:337) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:195) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:128) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:78) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:208) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:151) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:78) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:725) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:701) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:705) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:853) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
> ... 8 more
> Caused by: java.sql.SQLException: Field 'id' doesn't have a default value
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)
> at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330)
> at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)
> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) [:1.7.0_07]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_07]
> at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_07]
> at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
> ... 45 more
>
>
> 14:31:34,654 ERROR [org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler] (http--127.0.0.1-8080-3) Fri Oct 26 14:31:34 CEST 2012: Error when creating task on task server for work item id 1. Error reported by task server: Command AddTaskRequest faild due to Operation failed. Please contact task server administrator.: java.lang.RuntimeException: Command AddTaskRequest faild due to Operation failed. Please contact task server administrator.
> at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:662) [jbpm-human-task-core-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44) [jbpm-human-task-hornetq-5.3.0.Final.jar:5.3.0.Final]
> at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85) [jbpm-human-task-hornetq-5.3.0.Final.jar:5.3.0.Final]
> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772558#772558]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[Datasource Configuration] - Remote Jndi Datasource: ResultSet gets randomly closed
by manu patet
manu patet [https://community.jboss.org/people/troubleshooter] created the discussion
"Remote Jndi Datasource: ResultSet gets randomly closed"
To view the discussion, visit: https://community.jboss.org/message/772561#772561
--------------------------------------------------------------
Hello experts,
Let me give a short description of our deployment here before the issue.
We have multiple databases that our central reporting application reads. We do it by running multiple application servers (all JBoss 4.2.3.GA) on each of these boxes. The central application obtains Datasource objects by remote jndi lookup (see the http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/beta500/htm... note) and keeps them cached. We're totally ok with the caveats JBoss has mentioned since we don't run any distributed transactions. Moreover, this model has worked out beautifully so far and more importantly integrates with our existing model seamlessly.
The problem:
Under stress tests, the resultsets tend to close halfway and the underlying statement throws a SQLExcpetion. Here's a trace:
java.sql.SQLException: The result set is closed.
at org.jboss.resource.adapter.jdbc.WrappedResultSet.checkState(WrappedResultSet.java:1959)
at org.jboss.resource.adapter.jdbc.WrappedResultSet.getString(WrappedResultSet.java:885)
at sun.reflect.GeneratedMethodAccessor334.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.doResultSetMethod(WrapperDataSourceService.java:431)
at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:233)
at sun.reflect.GeneratedMethodAccessor326.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy78.getString(Unknown Source)
at com.aryaka.nos.stats.feeder.ChartMapperDb.getChart(ChartMapperDb.java:73)
at com.aryaka.nos.stats.StatsAPIImpl.getStats(StatsAPIImpl.java:171)
at com.aryaka.nos.stats.StatsAPIImpl.getLinkTimeseriesStats(StatsAPIImpl.java:724)
at com.aryaka.nos.stats.StatsAPIImpl.getAppTimeseriesStats(StatsAPIImpl.java:633)
at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
This particular exception got thrown in this code:
if(rs.next()) {
ArrayList<Formula> arrFormula = new ArrayList<Formula>();
ArrayList<ChartConstants> arrConst = new ArrayList<ChartConstants>();
ChartConstants graphConstant = null;
do{
//do stuff
}while(rs.next()); //<<OFFENDING LINE
}
The code is the same production code that runs just fine on local datasources. Statements/Connection closures are handled in finally blocks. There are no shared connections/statements. All statements close before fetching a new resultset. Each request pulls a new connection from pool. All standard stuff.
I'm clueless as to what might be causing resultsets to close randomly. Any help is appreciated!
-Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772561#772561]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month