Android Question Problem Library jcifs-ng

stefano cavallari

Member
Licensed User
Good evening,

i have a problem with a program.
I am performing the file transfer, using the SMB.
I am using the jcifs-ng library (v. 0.32).

I initialized the smbClient variable and when I call the SMBINIT procedure I get this message:

java.lang.NoSuchMethodError: No static method getBoolean(Ljava/util/Properties;Ljava/lang/String;Z)Z in class Ljcifs/Config; or its super classes (declaration of 'jcifs.Config' appears in base.apk)
at jcifs.config.PropertyConfiguration.<init>(PropertyConfiguration.java:46)
at de.donmanfred.SMBClientwrapper$1.run(SMBClientwrapper.java:67)
at de.donmanfred.SMBClientwrapper$1.run(SMBClientwrapper.java:67)


Do you think of what's generated?




B4X:
        ReadFile.Initialize(File.OpenInput(File.DirRootExternal & "/TentataVendita/Configurazione","Parameter.ini"))
        credential.Domain = ReadFile.ReadLine
        credential.Username = ReadFile.ReadLine
        credential.Password = ReadFile.ReadLine
        credential.Share = "smb://" & credential.Domain & "/" & ReadFile.ReadLine
        ReadFile.Close
    
        tipotrasferimento="scarico"
        SMBInit(credential)
        
        
        
Sub SMBInit(cred As SMBCred)
    smbClient.Initialize("SMBClient",cred.Domain,cred.Username,cred.Password,cred.Share)
End Sub



Thanks for your help
 

DonManfred

Expert
Licensed User
As already written: You should remove the line
B4X:
#additionallib:  jcifs-ng-2.1.2
as it is the cause for the double included classes...
 
Last edited:
Upvote 0

netsistemas

Active Member
Licensed User
I has problem with samba protocol transfer. And finally,
i change in my proyect, samba to ftp transfer (my customer, now, have a filezilla server running, and i do transfer by ftp).
good loock.
in future, may be open router ports and redirect trafic from out of intranet, to the server/pc with filezilla.
 
Upvote 0
Top