Re: jcifs problem
Michael B Allen <[email protected]> Wed, 13 Mar 2013 23:41:27 -0400
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4ivkQvk2n-euSjL1L2=mger6FgMusOy6b7g8x_kyzEm3g@mail.gmail.com> |
Hi Luton, This sort of problem is best resolved by studying a network packet capture. I honestly cannot make sense of your debugging output. But no, this is not a common problem. If you are experiencing a delay, my best guess would be that there is some kind of network or server compatibility issue. In a typical enterprise environment jcifs is very fast. If you send me a network packet capture directly, I will at least look at it. Note: do not post captures to the mailing list. Send them only to me directly. Mike On Mar 13, 2013 6:46 AM, "Bentzvi, Liron" <[email protected]> wrote: > Hello!**** > > ** ** > > I'm writing an application in java, and I use SMB functions.**** > > ** ** > > there are several functions that delay the process:**** > > smbFiles.*getSecurity*() , smbFile.*connect*() ,*new*SmbFileInputStream(smbFile). > **** > > ** ** > > I will give examples from the rsm.log file:**** > > ** ** > > 1)**** > > <R,03/06/13 09:11:10 UTC,STDERR,[RSMScheduler_Worker-68]> > [FINE,LogSmb,deriveRemoteLocalDate] Timezone raw offset for hostName > elg90101.sl.dc2.sony.com.sg = (0 ms), DSTSavings offset = (0 ms), RSM > local date = (1362561070228 ms)**** > > <R,03/06/13 09:16:44 UTC,STDERR,[RSMScheduler_Worker-68]> > [WARNING,LogSmb,getLogFiles] Could not get security for > Matching_for_MARS.log**** > > <R,03/06/13 09:16:44 UTC,STDERR,[RSMScheduler_Worker-68]> > [FINEST,LogSmb,getLogFiles] Exception: The handle is invalid.**** > > ** ** > > The data gap Occurs when calling the function:**** > > smbFiles.*getSecurity*();**** > > ** ** > > ** ** > > 2)**** > > <R,03/06/13 09:07:31 UTC,STDERR,[RSMScheduler_Worker-68]> > [FINEST,LogSmb,getLogFiles] Path = smb://elg90101%3Bpatrol%3A******** > elg90101.sl.dc2.sony.com.sg/E$/IDS/03_SCE/93_Matching/Log_Copy/**** > > <R,03/06/13 09:10:04 UTC,STDERR,[RSMScheduler_Worker-68]> > [FINEST,LogSmb,getLogFiles] Established connection with > elg90101.sl.dc2.sony.com.sg**** > > ** ** > > The data gap Occurs when calling the function:**** > > smbFile.*connect*();**** > > ** ** > > ** ** > > 3)**** > > <R,03/06/13 09:17:17 UTC,STDERR,[RSMScheduler_Worker-68]> > [FINEST,LogSmb,countFileSizeInChars] SMB file length = 7413706**** > > <R,03/06/13 09:20:39 UTC,STDERR,[RSMScheduler_Worker-68]> > [FINEST,LogSmb,countFileSizeInChars] Start from beginning **** > > ** ** > > The data gap Occurs when calling the function:**** > > SmbFileInputStream tmpsmbInputStream = *new* SmbFileInputStream(smbFile);* > *** > > ** ** > > ** ** > > As you can see the problem causing delay while running the program..**** > > ** ** > > **1. **What could be causing the problem?**** > > **2. **How can we deal with this problem?**** > > **3. **Is this a common problem?**** > > ** ** > > I hope to receive from you an answer as soon as possible.**** > > ** ** > > Best Regards,**** > > Liron.**** >