This discussion is archived
1 Reply Latest reply: Apr 4, 2012 7:16 AM by user702595 RSS

11G Thin driver Kerberos auth error: Got minus one from a read call

826318 Newbie
Currently Being Moderated
I am using kerberos authentication to connect to oracle11g. SQLPlus, OCI are all succeed to connect oracle, but I got below exception when using the thin driver:



Found ticket for qa1@SUPPORT.NET to go to krbtgt/SUPPORT.NET@SUPPORT.NET expiring on Thu Dec 23 19:53:49 PST 2010
Entered Krb5Context.initSecContext with state=STATE_NEW
Found ticket for qa1@SUPPORT.NET to go to krbtgt/SUPPORT.NET@SUPPORT.NET expiring on Thu Dec 23 19:53:49 PST 2010
Service ticket not found in the subject
Credentials acquireServiceCreds: same realm
Using builtin default etypes for default_tgs_enctypes
default etypes for default_tgs_enctypes: 3 1 23 16 17.
CksumType: sun.security.krb5.internal.crypto.RsaMd5CksumType
EType: sun.security.krb5.internal.crypto.DesCbcMd5EType
KrbKdcReq send: kdc=qaad.support.net UDP:88, timeout=30000, number of retries =3, #bytes=1239
KDCCommunication: kdc=qaad.support.net UDP:88, timeout=30000,Attempt =1, #bytes=1239
KrbKdcReq send: #bytes read=1328
KrbKdcReq send: #bytes read=1328
KdcAccessibility: remove qaad.support.net
EType: sun.security.krb5.internal.crypto.DesCbcMd5EType
KrbApReq: APOptions are 00000000 00000000 00000000 00000000
EType: sun.security.krb5.internal.crypto.DesCbcMd5EType
Krb5Context setting mySeqNumber to: 746227407
Krb5Context setting peerSeqNumber to: 0
Created InitSecContextToken:
0000: 01 00 6E 82 04 DC 30 82 04 D8 A0 03 02 01 05 A1 ..n...0.........
0010: 03 02 01 0E A2 07 03 05 00 00 00 00 00 A3 82 04 ................
0020: 08 61 82 04 04 30 82 04 00 A0 03 02 01 05 A1 0D .a...0..........
0030: 1B 0B 53 55 50 50 4F 52 54 2E 4E 45 54 A2 30 30 ..SUPPORT.NET.00
0040: 2E A0 03 02 01 00 A1 27 30 25 1B 06 64 76 6B 72 .......'0%..dvkr
0050: 62 31 1B 1B 64 65 76 2D 6B 72 62 35 2D 6F 72 61 b1..dev-krb5-ora
0060: 31 31 67 2E 73 75 70 70 6F 72 74 2E 6E 65 74 A3 11g.support.net.
0070: 82 03 B6 30 82 03 B2 A0 03 02 01 03 A1 03 02 01 ...0............
0080: 03 A2 82 03 A4 04 82 03 A0 18 F9 25 59 B1 45 98 ...........%Y.E.
0090: 9F AE 87 6D 5A F7 C4 05 4F 4B 1A C0 A1 26 1A 2D ...mZ...OK...&.-
00A0: 0C BA 6C 70 66 0E 85 3E A0 3A 01 50 AA 15 CD FA ..lpf..>.:.P....
00B0: 15 47 EB 0E 3B 89 21 31 07 35 F5 D7 BB 31 6F D4 .G..;.!1.5...1o.
00C0: CF 19 AA 49 6A 40 B8 88 52 61 A7 85 DA C8 6A E8 ...Ij@..Ra....j.
00D0: 53 73 19 F4 09 F2 5C 8C F7 5A A5 41 56 0F C6 87 Ss....\..Z.AV...
00E0: A3 8D 4A 97 84 2B 18 82 ED 96 DB 5E D5 93 01 F0 ..J..+.....^....
00F0: 50 CF 01 C0 73 C7 75 F4 E3 3D A6 06 B1 C1 C6 E9 P...s.u..=......
0100: 4C B0 2D 45 0F 8C 87 FC 72 91 63 8E 19 33 ED 0D L.-E....r.c..3..
0110: 81 94 D7 31 EB 08 19 B2 4B 55 36 CC 5B 8C 68 AB ...1....KU6.[.h.
0120: 42 DA EA 66 BF D1 58 F3 B7 F6 E5 02 B7 A6 BE 05 B..f..X.........
0130: F4 F5 29 78 45 25 CF 75 B0 4A F1 C7 E3 45 67 27 ..)xE%.u.J...Eg'
0140: BB 02 33 02 D8 AE 27 5E B7 B2 CC 8F DA 7E AC 1A ..3...'^........
0150: 47 D1 3B 88 69 BE DA EB 40 80 6E A4 93 4E 0C 71 G.;.i...@.n..N.q
0160: 3B B4 18 56 9D C6 F4 94 F1 07 8A 49 69 CF 33 25 ;..V.......Ii.3%
0170: C3 25 89 36 C8 39 9F BC 94 1B BF D6 86 21 86 D2 .%.6.9.......!..
0180: 0E 43 A4 28 8A 82 38 8B A7 10 BE 3A A5 D8 7A BE .C.(..8....:..z.
0190: 8D 86 67 33 A0 5D C1 15 E2 7E 6C 33 B1 15 04 A7 ..g3.]....l3....
01A0: 6B 0D A9 03 1F A2 DF BA 78 0D FC 43 65 22 73 68 k.......x..Ce"sh
01B0: 7E 88 E8 97 15 86 67 F2 93 6F 51 ED 60 EF 4D 6C ......g..oQ.`.Ml
01C0: 06 15 79 8D 17 0D B6 4F 47 25 D5 23 8B 48 24 74 ..y....OG%.#.H$t
01D0: C4 C1 5F 4B 38 25 FF EF 94 94 49 26 23 BA 01 53 .._K8%....I&#..S
01E0: 58 53 FE C7 64 9F F2 1B DC 5A 8F 83 E2 FC C1 97 XS..d....Z......
01F0: 89 5E B1 A0 25 77 CE FD 65 AD 08 61 47 FD F2 7F .^..%w..e..aG...
0200: B4 2A A5 C7 11 33 47 43 95 CC D9 E4 2E B4 65 AE .*...3GC......e.
0210: CA 66 F7 4D 92 32 6F 8A 3C F5 BB 77 54 71 80 EC .f.M.2o.<..wTq..
0220: E0 74 EB B7 43 95 10 23 A9 4D C4 5D E3 E6 4A B9 .t..C..#.M.]..J.
0230: 7C 13 17 95 03 0A A8 9C EA A1 14 40 0B 64 18 BA ...........@.d..
0240: 7E 70 D2 E7 84 0B 7A E9 97 2C 9E AC 95 0A 16 F4 .p....z..,......
0250: 14 D4 58 9D 75 90 DA 9C 74 96 A6 46 C0 44 7A 62 ..X.u...t..F.Dzb
0260: 6A D7 C6 ED 8D 29 EB 52 4F 9F E0 4E F5 B1 FE 81 j....).RO..N....
0270: 62 07 F1 AC B5 73 CB 5D C4 45 E9 DB 26 DB 80 67 b....s.].E..&..g
0280: ED D9 BA 94 12 A6 69 FF A0 02 8A 0B 49 DA 0F DB ......i.....I...
0290: 0F 7A EA 0D 33 54 7D 93 DB 26 D8 11 83 78 74 EE .z..3T...&...xt.
02A0: ED 51 D5 40 1F 54 65 A1 48 43 2F A0 E2 D1 E7 C3 .Q.@.Te.HC/.....
02B0: 12 DD FC 6F 54 EB 92 2C 06 4C 8B F6 6D BD 6F B7 ...oT..,.L..m.o.
02C0: 4A 9A 6D 94 44 94 CF E6 FB 98 54 15 3C DB 0C 58 J.m.D.....T.<..X
02D0: D3 D7 52 E7 A9 D2 D3 32 22 28 BA 44 30 0F 99 DC ..R....2"(.D0...
02E0: F5 C7 27 EA FF 55 60 D9 E9 C0 B0 04 D3 95 CB C4 ..'..U`.........
02F0: 2B 17 DA F9 6B 37 58 8E 70 D5 03 7F 6B 33 59 8C +...k7X.p...k3Y.
0300: 5C 09 89 3F 86 72 3A 64 87 A1 53 2D 24 12 C6 89 \..?.r:d..S-$...
0310: 8D 13 2C A7 74 4F 80 29 C4 DB 51 58 A9 35 5D 60 ..,.tO.)..QX.5]`
0320: 4C 6B 0A 93 8D 13 56 98 F7 43 D9 24 0F 0F 35 D2 Lk....V..C.$..5.
0330: 8B AA D5 2E 22 F7 84 FC 29 D6 C1 E3 90 7A AE 68 ...."...)....z.h
0340: 38 6B F3 EB 46 05 C9 5F B1 C8 F5 6D 13 E5 45 39 8k..F.._...m..E9
0350: 6E DA D9 97 89 7D 44 0C 79 33 7D EC D5 9B CC 3C n.....D.y3.....<
0360: 36 8E 2E 37 F5 02 22 DD 69 E8 57 BE 76 3C 78 74 6..7..".i.W.v<xt
0370: A6 3B 14 77 27 C1 6F 30 B5 24 E3 9D 8B 52 87 1D .;.w'.o0.$...R..
0380: 85 22 E6 E0 FB B4 88 E6 32 AA 09 3C 52 B9 B5 3E ."......2..<R..>
0390: 52 1E 44 67 65 93 88 B6 7C 5B F7 CB D7 B4 DE 38 R.Dge....[.....8
03A0: FE 30 88 2B 6F E5 BE 07 8D 3A F4 8B 0B 73 9F 1E .0.+o....:...s..
03B0: 35 A1 6C 18 F4 7B 44 07 C1 BF 87 D3 CF 48 E9 3C 5.l...D......H.<
03C0: B0 3E C0 EB CB FE BB 15 C3 B6 EF 08 A9 9B 12 2F .>............./
03D0: C4 30 DE 49 A1 22 22 48 B9 A0 20 0A 34 72 72 7D .0.I.""H.. .4rr.
03E0: 6F C1 D7 D6 97 26 4D F1 26 0C A0 EF 4A 02 59 C3 o....&M.&...J.Y.
03F0: 1C BC 16 07 E7 9C CB 4B 49 68 33 F0 D8 2A 23 DC .......KIh3..*#.
0400: 60 67 3C EA E0 F1 FE 56 31 D0 9C DA 3D 2C BE 2C `g<....V1...=,.,
0410: FB 6B 68 4F A1 27 AE 51 55 CF 3E 52 3F 17 62 05 .khO.'.QU.>R?.b.
0420: 01 B4 43 E1 14 A2 BB 5D F1 A4 81 B6 30 81 B3 A0 ..C....]....0...
0430: 03 02 01 03 A2 81 AB 04 81 A8 64 73 9A AD 19 F0 ..........ds....
0440: 15 3F 60 7F BC 6E AD 1E 25 19 F7 E9 05 43 DD F8 .?`..n..%....C..
0450: 46 22 B8 63 D0 85 F3 27 55 84 39 E7 3D 39 2C EC F".c...'U.9.=9,.
0460: 38 5B B3 8A E6 03 75 57 C5 A0 2A FB 03 78 6C 09 8[....uW..*..xl.
0470: 13 C4 E2 44 42 2B 21 C8 D4 61 7B D7 67 D3 21 0C ...DB+!..a..g.!.
0480: 37 0B AE 10 6A AB 0E DE 63 78 E3 B1 AB 33 B9 3E 7...j...cx...3.>
0490: 65 B4 C1 62 B4 F0 9F 0D AD F7 34 22 B4 7F 64 D6 e..b......4"..d.
04A0: 16 74 46 D2 6E 33 F7 1B FC DC AC D0 4B DD 99 E1 .tF.n3......K...
04B0: 1A CF 3E E3 82 31 2D CB 9A 4F 7A F3 D7 D7 F3 40 ..>..1-..Oz....@
04C0: 5C D4 0D 5F C6 58 CF 49 4F 3B 6B B9 21 4A 85 D3 \.._.X.IO;k.!J..
04D0: 64 04 54 13 80 FD D9 1D 0B 18 BB C7 DD 0F 05 94 d.T.............
04E0: DD 42 .B

java.sql.SQLException: The service in process is not supported. Got minus one from a read call
     at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
     at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:480)
     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:413)
     at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
     at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
     at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
     at test.kerberos.TestMSSQLKerberos$2.run(TestMSSQLKerberos.java:107)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAs(Subject.java:396)
     at test.kerberos.TestMSSQLKerberos.testOracle(TestMSSQLKerberos.java:79)
     at test.kerberos.TestMSSQLKerberos.main(TestMSSQLKerberos.java:31)
Caused by: oracle.net.ns.NetException: The service in process is not supported. Got minus one from a read call
     at oracle.net.ano.AuthenticationService.h(Unknown Source)
     at oracle.net.ano.Ano.negotiation(Unknown Source)
     at oracle.net.ns.NSProtocol.connect(NSProtocol.java:405)
     at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:966)
     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
     ... 9 more
Oracle Connection: null



any suggestion are appreciated.

thanks!
  • 1. Re: 11G Thin driver Kerberos auth error: Got minus one from a read call
    user702595 Newbie
    Currently Being Moderated
    I have the same problem, but only from a particular windows node. Same code works ok on linux and some other windows nodes. Did you ever resolve this?

    java.sql.SQLException: IO Error: The service in process is not supported.
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at TestRepos.reposConnect(TestRepos.java:94)
    at TestRepos.main(TestRepos.java:25)
    Caused by: oracle.net.ns.NetException: The service in process is not supported.
    at oracle.net.ano.AuthenticationService.h(Unknown Source)
    at oracle.net.ano.Ano.negotiation(Unknown Source)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:439)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1102)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:320)
    ... 8 more
    Caused by: java.security.PrivilegedActionException: java.io.IOException: Got minus one from a read call
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    ... 13 more
    Caused by: java.io.IOException: Got minus one from a read call
    at oracle.net.ano.AnoComm.b(Unknown Source)
    at oracle.net.ano.AnoComm.n(Unknown Source)
    at oracle.net.ano.AnoComm.e(Unknown Source)
    at oracle.net.ano.AnoComm.e(Unknown Source)
    at oracle.net.ano.AuthenticationService.run(Unknown Source)
    ... 15 more

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points