java - Problems with jCifs authentication on oracle RDMS embedded jvm -


i'm using jcifs 1.3.17 connect , list files on remote windows share. works fine on local jre(5,6,7), same code executed on oracle 11g database (11.2.0.3.0) crashes following stack:

jcifs.smb.smbauthexception: logon failure: unknown user name or bad password. @ jcifs.smb.smbtransport.checkstatus(smbtransport.java:546) @ jcifs.smb.smbtransport.send(smbtransport.java) @ jcifs.smb.smbsession.sessionsetup(smbsession.java) @ jcifs.smb.smbsession.send(smbsession.java:218) @ jcifs.smb.smbtree.treeconnect(smbtree.java:176) @ jcifs.smb.smbfile.doconnect(smbfile.java:911) @ jcifs.smb.smbfile.connect(smbfile.java:954) @ jcifs.smb.smbfile.connect0(smbfile.java:880) @ jcifs.smb.smbfile.exists(smbfile.java) @ pl.openlife.cifsconnect.listcifsfiles(cifsconnect.java:49)

i found out, user password lenght might cause problem: 1. windows env jdk1.5.0_22 -> works long passwords 2. oracle linux, rdms embeded jvm -> works short password (8 characters) 3. oracle linux, rdms embeded jvm -> long password fails error shown above.

sample code:

ntlmpasswordauthentication auth = new ntlmpasswordauthentication(domain,                    username,                    password);              smbfile dir = new smbfile(path,auth);              if(!dir.exists()){                // above check fails             } 

i heard somewhere problems oracle embedded jvm , bugs in jce, shouldn't case, jcifs have own implementation of algorithms such rc4 or des. have clue can case? there way walk around?

unfortunately didn't find answer issue mentioned above. walkaround, have used older version of jcifs (jcifs-1.2.25), seems work oracle db embedded jvm.

update: have imported jcifs lib again (1.3.17) , working charm. ended conclusion, java library not imported properly. reimport (loadjava) option "-force" , manual compilation of invalid objects solves problem always, (i cant't figure why) in case must loaded in following order : 1. load program lib (will cause errors) 2. load jcifs lib force option 3. compile , resolve

it seems oracle jvm unpredictable :)


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -