[jcifs] Strange problem with listFiles with JCifs 1.2.9 on J2ME

Till Heikamp t.heikamp at geniusbytes.com
Fri Jul 21 16:40:25 GMT 2006


hello,

i have a strange problem when trying to list the contents of an smb
folder on a win2k3 box (xp works) with jcifs 1.2.9 (1.2.1 works) on J2ME.

this seems to happen only on J2ME, if try it on a standard pc it works
just fine with 1.3.1, 1.4.2 and 1.5.0.

i attached two detailed log files with jcifs log level 10 enabled.

this is the code which leads to the exception (but the error appears at
the very beginning in listFiles):

> 	public void attachChildren(ProcudocSmbFolder folder, boolean update)
> 			throws MalformedURLException, SmbException {
> 
> 		SmbFile smbFile = new SmbFile(folder.getSmbUrl());
> 
> 		SmbFile[] children = smbFile.listFiles();
> 
> 		/*
> 		 * clearing old children, if we found new ones
> 		 */
> 		if (children.length > 0) {
> 			folder.clear();
> 		}
> 
> 		SmbFileProperties folderProperties = folder.getSmbFileProperties();
> 
> 		/*
> 		 * first we check for folders and add then 
> 		 */
> 		for (int i = 0; i < children.length; i++) {
> 			SmbFile file = children[i];
> 
> 			if (file.isDirectory() && !file.getName().endsWith("$/")) {
> 
> 				SmbFileProperties childProperties = getChildProperties(file, folderProperties);
> 				
> 				ProcudocSmbFolder newFolder = new ProcudocSmbFolder(null,
> 						folder, childProperties);
> 
> 				folder.add(newFolder);
> 			}
> 		}
> 		
> 		/*
> 		 * then we add all files
> 		 */
> 		for(int i = 0; i < children.length; i++) {
> 			
> 			SmbFile file = children[i];
> 
> 			if (file.isFile()) {
> 				
> 				SmbFileProperties childProperties = getChildProperties(file, folderProperties);
> 				ProcudocSmbFile newFile = new ProcudocSmbFile(null, folder,
> 						childProperties);
> 
> 				folder.add(newFile);
> 			}
> 		}
> 	}

and this is the resulting Nullpointer Exception:

> java.lang.NullPointerException
> 	at jcifs.smb.SmbComSessionSetupAndX.writeParameterWordsWireFormat([BI)I(Unknown Source)
> 	at jcifs.smb.AndXServerMessageBlock.writeAndXWireFormat([BI)I(Unknown Source)
> 	at jcifs.smb.AndXServerMessageBlock.encode([BI)I(Unknown Source)
> 	at jcifs.smb.SmbTransport.doSend(Ljcifs/util/transport/Request;)V(Unknown Source)
> 	at jcifs.util.transport.Transport.sendrecv(Ljcifs/util/transport/Request;Ljcifs/util/transport/Response;J)V(Unknown Source)
> 	at jcifs.smb.SmbTransport.send(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
> 	at jcifs.smb.SmbSession.sessionSetup(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
> 	at jcifs.smb.SmbSession.send(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
> 	at jcifs.smb.SmbTree.treeConnect(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
> 	at jcifs.smb.SmbFile.connect()V(Unknown Source)
> 	at jcifs.smb.SmbFile.connect0()V(Unknown Source)
> 	at jcifs.smb.SmbFile.send(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
> 	at jcifs.smb.SmbFile.doFindFirstNext(Ljava/util/ArrayList;ZLjava/lang/String;ILjcifs/smb/SmbFilenameFilter;Ljcifs/smb/SmbFileFilter;)V(Unknown Source)
> 	at jcifs.smb.SmbFile.listFiles(Ljava/lang/String;ILjcifs/smb/SmbFilenameFilter;Ljcifs/smb/SmbFileFilter;)[Ljcifs/smb/SmbFile;(Unknown Source)
> 	at jcifs.smb.SmbFile.listFiles()[Ljcifs/smb/SmbFile;(Unknown Source)
> 	at com.geniusbytes.embedded.smbbrowsing.JcifsSmbControler.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/ProcudocSmbFolder;Z)V(Unknown Source)
> 	at com.geniusbytes.embedded.smbbrowsing.JcifsSmbControler.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
> 	at com.geniusbytes.embedded.smbbrowsing.FolderController.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
> 	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.fetchFolder()V(Unknown Source)
> 	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.<init>(Ljp/co/ricoh/dsdk/panel/Window;IILcom/geniusbytes/products/imagus/ImagusXlet;Ljava/lang/String;Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;Lcom/geniusbytes/embedde(U
> 	at com.geniusbytes.products.imagus.threads.FileBrowserThread.run()V(Unknown Source)
> 	at java.lang.Thread.startup(Z)V(Unknown Source)
> com.geniusbytes.embedded.smbbrowsing.ChildAttachingException: caught exception when attaching children: null
> 	at com.geniusbytes.embedded.smbbrowsing.JcifsSmbControler.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
> 	at com.geniusbytes.embedded.smbbrowsing.FolderController.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
> 	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.fetchFolder()V(Unknown Source)
> 	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.<init>(Ljp/co/ricoh/dsdk/panel/Window;IILcom/geniusbytes/products/imagus/ImagusXlet;Ljava/lang/String;Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;Lcom/geniusbytes/embedde(U
> 	at com.geniusbytes.products.imagus.threads.FileBrowserThread.run()V(Unknown Source)
> 	at java.lang.Thread.startup(Z)V(Unknown Source)
> java.io.InterruptedIOException: Peek timed out
> 	at java.net.PlainDatagramSocketImpl.peek(Ljava/net/InetAddress;)I(Native Method)
> 	at java.net.DatagramSocket.receive(Ljava/net/DatagramPacket;)V(Unknown Source)
> 	at jcifs.netbios.NameServiceClient.run()V(Unknown Source)
> 	at java.lang.Thread.run()V(Unknown Source)
> 	at java.lang.Thread.startup(Z)V(Unknown Source)

it's not really important for me because i can stick with 1.2.1 for now
but i'm curious to know what leads to the NullPointer Exception. I have
another problem with JCifs not working with NT4 but jcifs 1.1.7 works in
this case and since we officially do not support NT4 this is not a
problem. but if you're interested i will also give detailed information
on this one.

with kind regards
till heikamp

-------------- next part --------------
DEBUG:[IM] (session.put) procudocFolder : smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (getInputValue) message = procudoc rocks
DEBUG:[IM] (session.get) smbController : com.geniusbytes.embedded.smbbrowsing.FolderController at 41a99a
DEBUG:[IM] (getInputValue) controller = com.geniusbytes.embedded.smbbrowsing.FolderController at 41a99a
DEBUG:[IM] (session.get) smbController : com.geniusbytes.embedded.smbbrowsing.FolderController at 41a99a
DEBUG:[IM] (session.get) procudocFolder : smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (getInputValue) procudocfolder = smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (session.get) procudocFolder : smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (getOutputValue) result ==> result
nix null
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[0] with coords (0,35,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[1] with coords (0,60,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[2] with coords (0,85,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[3] with coords (0,110,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[4] with coords (0,135,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[5] with coords (0,160,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[6] with coords (0,185,424,25)
DEBUG:[IM] (filesystembrowser.setSelected) setSelected -1
DEBUG:[IM] (fileSystemBrowser.repaint) trying to attach children
#JCIFS PROPERTIES
#Fri Jul 21 14:51:09 GMT+00:00 2006
java.j2me.version=1.0_fcs-bxx
java.library.builtin.net=yes
cvm.debug.stacktraces=true
sun.boot.library.path=../lib
java.vm.version=1.0.1_fcs-std-b12
dsdk.function.scan.color=BW
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http\://java.sun.com/
path.separator=\:
java.vm.name=CVM
file.encoding.pkg=sun.io
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/hdd/ts/16974848/obj
os.arch=lpux
java.io.tmpdir=/var/tmp/
dsdk.function.scan.maxsize=A3
line.separator=\n
java.vm.specification.vendor=Sun Microsystems Inc.
dsdk.vas.version=206
java.awt.fonts=
os.name=NetBSD
java.library.builtin.zip=yes
java.security.manager=
java.library.path=./../lib\:./../sdk/common
dsdk.machine.model.name=b0001
java.specification.name=J2ME Foundation API Specification
java.class.version=47.0
os.version=1.3.3
dsdk.function=MFP
user.home=?
user.timezone=GMT+00\:00
java.awt.printerjob=sun.awt.motif.PSPrinterJob
file.encoding=ISO8859_1
java.specification.version=1.0
jcifs.util.loglevel=10
dsdk.function.print.maxsize=A3
user.name=?
java.class.path=./../lib/dsdk.jar\:./../xlet/11030101/taskbar.jar\:./../xlet/11030100/kunlun.jar\:./../xlet/11030102/warningXlet.jar\:./../lib
dsdk.xam.version=1.20
dsdk.function.print.color=BW
java.vm.specification.version=1.0a
java.home=./..
dsdk.dsdk.version=1.20
dsdk.machine.serialcode=J8344400290
java.specification.vendor=Sun Microsystems Inc.
user.language=en
dsdk.imghlib.version=206
java.vm.info=interpreter loop
java.version=J2ME Foundation 1.0
java.ext.dirs=
sun.boot.class.path=./../lib/foundation.jar
dsdk.cvm.version=1.20
java.vendor=Sun Microsystems Inc.
java.library.builtin.math=yes
file.separator=/
sun.cpu.endian=big
sun.io.unicode.encoding=UnicodeBig
dsdk.machine.system.version=1.04\u0000\u0000\u0000\u0000\u0000\u0000
user.region=US
sun.cpu.isalist=
doFindFirstNext: \
New data read: Transport1[0.0.0.0<00>/192.168.107.65:445]
00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00  |�SMBr......�....|
00010: 00 00 00 00 00 00 00 00 00 00 5F E2 00 00 01 00  |.........._�....|

byteCount=54 but readBytesWireFormat returned 32
NodeStatusRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=*<00>,questionType=0x0021,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
00000: 00 01 00 00 00 01 00 00 00 00 00 00 20 43 4B 41  |............ CKA|
00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41  |AAAAAAAAAAAAAAAA|
00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21  |AAAAAAAAAAAAA..!|
00030: 00 01                                            |..              |

NetBIOS: new data read from socket
NodeStatusResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=0,answerCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionClass=IN,recordName=*<00>,recordType=0x0021,recordClass=IN,ttl=0,rDataLength=191]
00000: 00 01 84 00 00 00 00 01 00 00 00 00 20 43 4B 41  |............ CKA|
00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41  |AAAAAAAAAAAAAAAA|
00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21  |AAAAAAAAAAAAA..!|
00030: 00 01 00 00 00 00 00 BF 08 57 32 30 30 33 54 45  |.......�.W2003TE|
00040: 53 54 20 20 20 20 20 20 00 04 00 47 45 4E 49 55  |ST      ...GENIU|
00050: 53 42 59 54 45 53 31 20 20 20 00 84 00 47 45 4E  |SBYTES1   ...GEN|
00060: 49 55 53 42 59 54 45 53 31 20 20 20 1C 84 00 57  |IUSBYTES1   ...W|
00070: 32 30 30 33 54 45 53 54 20 20 20 20 20 20 20 04  |2003TEST       .|
00080: 00 47 45 4E 49 55 53 42 59 54 45 53 31 20 20 20  |.GENIUSBYTES1   |
00090: 1B 04 00 47 45 4E 49 55 53 42 59 54 45 53 31 20  |...GENIUSBYTES1 |
000A0: 20 20 1E 84 00 47 45 4E 49 55 53 42 59 54 45 53  |  ...GENIUSBYTES|
000B0: 31 20 20 20 1D 04 00 01 02 5F 5F 4D 53 42 52 4F  |1   .....__MSBRO|
000C0: 57 53 45 5F 5F 02 01 84 00 00 0C 6E 47 9E 91 00  |WSE__......nG...|
000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00120: 00 00 00 00 00 00 00 00 00 00 00 00 00           |.............   |

treeConnect: unc=\\W2003TEST\SCANS,service=?????
sessionSetup: accountName=uehl,primaryDomain=?
LM_COMPATIBILITY=0
00000: 06 FD ED D2 FA 3B 23 3A 1A 60 54 E3 62 5B CB 52  |.����;#:.`T�b[�R|
00010: 5E 3F 49 31 F7 4D AF E1 E3 BA 51 57 97 11 FC 1C  |^?I1�M���QW..�.|
00020: 2A 91 A7 77 29 20 3B 56                          |*.�w) ;V        |

update: 0 0:40
00000: 06 FD ED D2 FA 3B 23 3A 1A 60 54 E3 62 5B CB 52  |.����;#:.`T�b[�R|
00010: 5E 3F 49 31 F7 4D AF E1 E3 BA 51 57 97 11 FC 1C  |^?I1�M���QW..�.|
00020: 2A 91 A7 77 29 20 3B 56                          |*.�w) ;V        |

update: 1 4:204
00000: FF 53 4D 42 73 00 00 00 00 18 07 C0 00 00 00 00  |�SMBs......�....|
00010: 00 00 00 00 00 00 00 00 00 00 5F E2 00 00 02 00  |.........._�....|
00020: 0D 75 00 96 00 04 41 0A 00 01 00 00 00 00 00 18  |.u....A.........|
00030: 00 18 00 00 00 00 00 54 10 00 00 59 00 E4 57 36  |.......T...Y.�W6|
00040: 5A 1D 2D 3B B5 49 98 F2 C4 F0 55 04 E4 0F 8E 73  |Z.-;�I.���U.�..s|
00050: 07 AA 4C 90 AE 5E 3F 49 31 F7 4D AF E1 E3 BA 51  |.�L.�^?I1�M���Q|
00060: 57 97 11 FC 1C 2A 91 A7 77 29 20 3B 56 00 75 00  |W..�.*.�w) ;V.u.|
00070: 65 00 68 00 6C 00 00 00 3F 00 00 00 4E 00 65 00  |e.h.l...?...N.e.|
00080: 74 00 42 00 53 00 44 00 00 00 6A 00 43 00 49 00  |t.B.S.D...j.C.I.|
00090: 46 00 53 00 00 00 04 FF 00 00 00 00 00 01 00 2B  |F.S....�.......+|
000A0: 00 00 5C 00 5C 00 57 00 32 00 30 00 30 00 33 00  |..\.\.W.2.0.0.3.|
000B0: 54 00 45 00 53 00 54 00 5C 00 53 00 43 00 41 00  |T.E.S.T.\.S.C.A.|
000C0: 4E 00 53 00 00 00 3F 3F 3F 3F 3F 00              |N.S...?????.    |

digest: 
00000: 58 74 1F CB 45 3F 93 43 51 72 3A E3 D2 D9 CA 3A  |Xt.�E?.CQr:����:|

SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=The operation completed successfully.,flags=0x0018,flags2=0xC007,signSeq=0,tid=0,pid=57951,uid=0,mid=2,wordCount=13,byteCount=89,andxCommand=0x75,andxOffset=150,snd_buf_size=16644,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,passwordLength=24,unicodePasswordLength=24,capabilities=4180,accountName=uehl,primaryDomain=?,NATIVE_OS=NetBSD,NATIVE_LANMAN=jCIFS]
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=The operation completed successfully.,flags=0x0018,flags2=0x0000,signSeq=0,tid=0,pid=57951,uid=0,mid=0,wordCount=4,byteCount=43,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\W2003TEST\SCANS,service=?????]
00000: FF 53 4D 42 73 00 00 00 00 18 07 C0 00 00 58 74  |�SMBs......�..Xt|
00010: 1F CB 45 3F 93 43 00 00 00 00 5F E2 00 00 02 00  |.�E?.C...._�....|
00020: 0D 75 00 96 00 04 41 0A 00 01 00 00 00 00 00 18  |.u....A.........|
00030: 00 18 00 00 00 00 00 54 10 00 00 59 00 E4 57 36  |.......T...Y.�W6|
00040: 5A 1D 2D 3B B5 49 98 F2 C4 F0 55 04 E4 0F 8E 73  |Z.-;�I.���U.�..s|
00050: 07 AA 4C 90 AE 5E 3F 49 31 F7 4D AF E1 E3 BA 51  |.�L.�^?I1�M���Q|
00060: 57 97 11 FC 1C 2A 91 A7 77 29 20 3B 56 00 75 00  |W..�.*.�w) ;V.u.|
00070: 65 00 68 00 6C 00 00 00 3F 00 00 00 4E 00 65 00  |e.h.l...?...N.e.|
00080: 74 00 42 00 53 00 44 00 00 00 6A 00 43 00 49 00  |t.B.S.D...j.C.I.|
00090: 46 00 53 00 00 00 04 FF 00 00 00 00 00 01 00 2B  |F.S....�.......+|
000A0: 00 00 5C 00 5C 00 57 00 32 00 30 00 30 00 33 00  |..\.\.W.2.0.0.3.|
000B0: 54 00 45 00 53 00 54 00 5C 00 53 00 43 00 41 00  |T.E.S.T.\.S.C.A.|
000C0: 4E 00 53 00 00 00 3F 3F 3F 3F 3F 00              |N.S...?????.    |

New data read: Transport1[W2003TEST<00>/192.168.107.65:445]
00000: FF 53 4D 42 73 00 00 00 00 98 07 C0 00 00 5D 88  |�SMBs......�..].|
00010: 12 49 C1 7D ED E3 00 00 02 C0 5F E2 02 50 02 00  |.I�}��...�_�.P..|

update: 0 0:40
00000: 06 FD ED D2 FA 3B 23 3A 1A 60 54 E3 62 5B CB 52  |.����;#:.`T�b[�R|
00010: 5E 3F 49 31 F7 4D AF E1 E3 BA 51 57 97 11 FC 1C  |^?I1�M���QW..�.|
00020: 2A 91 A7 77 29 20 3B 56                          |*.�w) ;V        |

update: 1 4:84

digest: 
00000: DD B8 E2 27 E4 F2 FB CF D3 53 91 3F 6F 73 40 C9  |ݸ�'�����S.?os@�|

Trans2FindFirst2[command=SMB_COM_TRANSACTION2,received=false,errorCode=The operation completed successfully.,flags=0x0018,flags2=0xC007,signSeq=2,tid=49154,pid=57951,uid=20482,mid=3,wordCount=15,byteCount=19,totalParameterCount=18,totalDataCount=0,maxParameterCount=10,maxDataCount=65535,maxSetupCount=0,flags=0x00,timeout=0,parameterCount=18,parameterOffset=66,parameterDisplacement=0,dataCount=0,dataOffset=84,dataDisplacement=0,setupCount=1,pad=1,pad1=0,searchAttributes=0x16,searchCount=200,flags=0x00,informationLevel=0x104,searchStorageType=0,filename=\]
00000: FF 53 4D 42 32 00 00 00 00 18 07 C0 00 00 DD B8  |�SMB2......�..ݸ|
00010: E2 27 E4 F2 FB CF 00 00 02 C0 5F E2 02 50 03 00  |�'����...�_�.P..|
00020: 0F 12 00 00 00 0A 00 FF FF 00 00 00 00 00 00 00  |.......��.......|
00030: 00 00 00 12 00 42 00 00 00 00 00 01 00 01 00 13  |.....B..........|
00040: 00 00 16 00 C8 00 00 00 04 01 00 00 00 00 5C 00  |....�.........\.|
00050: 2A 00 00 00                                      |*...            |

java.io.InterruptedIOException: Peek timed out
	at java.net.PlainDatagramSocketImpl.peek(Ljava/net/InetAddress;)I(Native Method)
	at java.net.DatagramSocket.receive(Ljava/net/DatagramPacket;)V(Unknown Source)
	at jcifs.netbios.NameServiceClient.run()V(Unknown Source)
	at java.lang.Thread.run()V(Unknown Source)
	at java.lang.Thread.startup(Z)V(Unknown Source)
New data read: Transport1[W2003TEST<00>/192.168.107.65:445]
00000: FF 53 4D 42 32 00 00 00 00 98 07 C0 00 00 87 23  |�SMB2......�...#|
00010: DE 8D 76 BD 31 AF 00 00 02 C0 5F E2 02 50 03 00  |�.v�1�...�_�.P..|

update: 0 0:40
00000: 06 FD ED D2 FA 3B 23 3A 1A 60 54 E3 62 5B CB 52  |.����;#:.`T�b[�R|
00010: 5E 3F 49 31 F7 4D AF E1 E3 BA 51 57 97 11 FC 1C  |^?I1�M���QW..�.|
00020: 2A 91 A7 77 29 20 3B 56                          |*.�w) ;V        |

update: 1 4:14
00000: FF 53 4D 42 32 00 00 00 00 98 07 C0 00 00        |�SMB2......�..  |

update: 2 0:8
00000: 03 00 00 00 00 00 00 00                          |........        |

update: 3 26:686
00000: 00 00 02 C0 5F E2 02 50 03 00 0A 0A 00 80 02 00  |...�_�.P........|
00010: 00 0A 00 38 00 00 00 80 02 44 00 00 00 00 00 8D  |...8.....D......|
00020: 02 00 06 18 06 00 01 00 00 00 10 02 00 00 60 00  |..............`.|
00030: 00 00 00 00 00 00 E0 A9 A0 25 0E FE C4 01 EE C7  |......੠%.��.��|
00040: EB BE CF AC C6 01 6C E3 DF E4 B9 AA C6 01 6C E3  |�Ϭ�.l��乪�.l�|
00050: DF E4 B9 AA C6 01 00 00 00 00 00 00 00 00 00 00  |�乪�...........|
00060: 00 00 00 00 00 00 10 00 00 00 02 00 00 00 00 00  |................|
00070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00080: 00 00 00 00 00 00 00 00 00 00 00 00 2E 00 68 00  |..............h.|
00090: 00 00 00 00 00 00 E0 A9 A0 25 0E FE C4 01 EE C7  |......੠%.��.��|
000A0: EB BE CF AC C6 01 6C E3 DF E4 B9 AA C6 01 6C E3  |�Ϭ�.l��乪�.l�|
000B0: DF E4 B9 AA C6 01 00 00 00 00 00 00 00 00 00 00  |�乪�...........|
000C0: 00 00 00 00 00 00 10 00 00 00 04 00 00 00 00 00  |................|
000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000E0: 00 00 00 00 00 00 00 00 00 00 00 00 2E 00 2E 00  |................|
000F0: 00 00 00 00 00 00 70 00 00 00 00 00 00 00 4E F6  |......p.......N�|

digest: 
00000: 87 23 DE 8D 76 BD 31 AF 18 2E E9 50 F2 FF FA A3  |.#�.v�1�..�P���|

 folder1 ordner2 test3 Thumbs.dbupdate: 0 0:40
00000: 06 FD ED D2 FA 3B 23 3A 1A 60 54 E3 62 5B CB 52  |.����;#:.`T�b[�R|
00010: 5E 3F 49 31 F7 4D AF E1 E3 BA 51 57 97 11 FC 1C  |^?I1�M���QW..�.|
00020: 2A 91 A7 77 29 20 3B 56                          |*.�w) ;V        |

update: 1 4:37
00000: FF 53 4D 42 34 00 00 00 00 18 07 C0 00 00 04 00  |�SMB4......�....|
00010: 00 00 00 00 00 00 00 00 02 C0 5F E2 02 50 04 00  |.........�_�.P..|
00020: 01 06 18 00 00                                   |.....           |

digest: 
00000: 49 F1 12 5B AA CA 20 16 04 BB 8C E3 7C 85 8A A9  |I�.[�� ..�.�|..�|

SmbComFindClose2[command=SMB_COM_FIND_CLOSE2,received=false,errorCode=The operation completed successfully.,flags=0x0018,flags2=0xC007,signSeq=4,tid=49154,pid=57951,uid=20482,mid=4,wordCount=1,byteCount=0,sid=6150]
00000: FF 53 4D 42 34 00 00 00 00 18 07 C0 00 00 49 F1  |�SMB4......�..I�|
00010: 12 5B AA CA 20 16 00 00 02 C0 5F E2 02 50 04 00  |.[�� ....�_�.P..|
00020: 01 06 18 00 00                                   |.....           |

New data read: Transport1[W2003TEST<00>/192.168.107.65:445]
00000: FF 53 4D 42 34 00 00 00 00 98 07 C0 00 00 C7 AC  |�SMB4......�..Ǭ|
00010: A3 82 DB F2 DC 6F 00 00 02 C0 5F E2 02 50 04 00  |�.���o...�_�.P..|

update: 0 0:40
00000: 06 FD ED D2 FA 3B 23 3A 1A 60 54 E3 62 5B CB 52  |.����;#:.`T�b[�R|
00010: 5E 3F 49 31 F7 4D AF E1 E3 BA 51 57 97 11 FC 1C  |^?I1�M���QW..�.|
00020: 2A 91 A7 77 29 20 3B 56                          |*.�w) ;V        |

update: 1 4:14
00000: FF 53 4D 42 34 00 00 00 00 98 07 C0 00 00        |�SMB4......�..  |

update: 2 0:8
00000: 05 00 00 00 00 00 00 00                          |........        |

update: 3 26:13
00000: 00 00 02 C0 5F E2 02 50 04 00 00 00 00           |...�_�.P.....   |

digest: 
00000: C7 AC A3 82 DB F2 DC 6F C6 21 02 A5 A9 EC 34 5C  |Ǭ�.���o�!.���4\|

DEBUG:[IM] (fileSystemBrowser.repaint) children attached

-------------- next part --------------
DEBUG:[IM] (session.put) procudocFolder : smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (getInputValue) message = procudoc rocks
DEBUG:[IM] (session.get) smbController : com.geniusbytes.embedded.smbbrowsing.FolderController at 6a417d
DEBUG:[IM] (getInputValue) controller = com.geniusbytes.embedded.smbbrowsing.FolderController at 6a417d
DEBUG:[IM] (session.get) smbController : com.geniusbytes.embedded.smbbrowsing.FolderController at 6a417d
DEBUG:[IM] (session.get) procudocFolder : smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (getInputValue) procudocfolder = smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (session.get) procudocFolder : smb://uehl:********@192.168.107.65/scans/
DEBUG:[IM] (getOutputValue) result ==> result
nix null
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[0] with coords (0,35,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[1] with coords (0,60,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[2] with coords (0,85,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[3] with coords (0,110,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[4] with coords (0,135,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[5] with coords (0,160,424,25)
DEBUG:[IM] (fileSystemBrowser.initializeButtons) added fileListingButton[6] with coords (0,185,424,25)
DEBUG:[IM] (filesystembrowser.setSelected) setSelected -1
DEBUG:[IM] (fileSystemBrowser.repaint) trying to attach children
#JCIFS PROPERTIES
#Fri Jul 21 14:38:19 GMT+00:00 2006
java.j2me.version=1.0_fcs-bxx
java.library.builtin.net=yes
cvm.debug.stacktraces=true
sun.boot.library.path=../lib
java.vm.version=1.0.1_fcs-std-b12
dsdk.function.scan.color=BW
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http\://java.sun.com/
path.separator=\:
java.vm.name=CVM
file.encoding.pkg=sun.io
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/hdd/ts/16974848/obj
os.arch=lpux
java.io.tmpdir=/var/tmp/
dsdk.function.scan.maxsize=A3
line.separator=\n
java.vm.specification.vendor=Sun Microsystems Inc.
dsdk.vas.version=206
java.awt.fonts=
os.name=NetBSD
java.library.builtin.zip=yes
java.security.manager=
java.library.path=./../lib\:./../sdk/common
dsdk.machine.model.name=b0001
java.specification.name=J2ME Foundation API Specification
java.class.version=47.0
os.version=1.3.3
dsdk.function=MFP
user.home=?
user.timezone=GMT+00\:00
java.awt.printerjob=sun.awt.motif.PSPrinterJob
file.encoding=ISO8859_1
java.specification.version=1.0
jcifs.util.loglevel=10
dsdk.function.print.maxsize=A3
user.name=?
java.class.path=./../lib/dsdk.jar\:./../xlet/11030101/taskbar.jar\:./../xlet/11030100/kunlun.jar\:./../xlet/11030102/warningXlet.jar\:./../lib
dsdk.xam.version=1.20
dsdk.function.print.color=BW
java.vm.specification.version=1.0a
java.home=./..
dsdk.dsdk.version=1.20
dsdk.machine.serialcode=J8344400290
java.specification.vendor=Sun Microsystems Inc.
user.language=en
dsdk.imghlib.version=206
java.vm.info=interpreter loop
java.version=J2ME Foundation 1.0
java.ext.dirs=
sun.boot.class.path=./../lib/foundation.jar
dsdk.cvm.version=1.20
java.vendor=Sun Microsystems Inc.
java.library.builtin.math=yes
file.separator=/
sun.cpu.endian=big
sun.io.unicode.encoding=UnicodeBig
dsdk.machine.system.version=1.04\u0000\u0000\u0000\u0000\u0000\u0000
user.region=US
sun.cpu.isalist=
doFindFirstNext: \
SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=64948,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT LM 0.12]
00000: FF 53 4D 42 72 00 00 00 00 18 03 C0 00 00 00 00  |�SMBr......�....|
00010: 00 00 00 00 00 00 00 00 00 00 B4 FD 00 00 01 00  |..........��....|
00020: 00 0C 00 02 4E 54 20 4C 4D 20 30 2E 31 32 00     |....NT LM 0.12. |

New data read: Transport1[0.0.0.0<00>/192.168.107.65:445]
00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00  |�SMBr......�....|
00010: 00 00 00 00 00 00 00 00 00 00 B4 FD 00 00 01 00  |..........��....|

byteCount=54 but readBytesWireFormat returned 32
SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=64948,uid=0,mid=1,wordCount=17,byteCount=54,wordCount=17,dialectIndex=0,securityMode=0xF,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0001F3FD,serverTime=Fri Jul 21 14:40:24 GMT+00:00 2006,serverTimeZone=65416,encryptionKeyLength=8,byteCount=54,encryptionKey=0x9A8BFDBCC734384E,oemDomainName=GENIUSBYTES1]
00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00  |�SMBr......�....|
00010: 00 00 00 00 00 00 00 00 00 00 B4 FD 00 00 01 00  |..........��....|
00020: 11 00 00 0F 32 00 01 00 04 41 00 00 00 00 01     |....2....A..... |

NodeStatusRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=*<00>,questionType=0x0021,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
00000: 00 01 00 00 00 01 00 00 00 00 00 00 20 43 4B 41  |............ CKA|
00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41  |AAAAAAAAAAAAAAAA|
00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21  |AAAAAAAAAAAAA..!|
00030: 00 01                                            |..              |

NetBIOS: new data read from socket
NodeStatusResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=0,answerCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionClass=IN,recordName=*<00>,recordType=0x0021,recordClass=IN,ttl=0,rDataLength=191]
00000: 00 01 84 00 00 00 00 01 00 00 00 00 20 43 4B 41  |............ CKA|
00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41  |AAAAAAAAAAAAAAAA|
00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21  |AAAAAAAAAAAAA..!|
00030: 00 01 00 00 00 00 00 BF 08 57 32 30 30 33 54 45  |.......�.W2003TE|
00040: 53 54 20 20 20 20 20 20 00 04 00 47 45 4E 49 55  |ST      ...GENIU|
00050: 53 42 59 54 45 53 31 20 20 20 00 84 00 47 45 4E  |SBYTES1   ...GEN|
00060: 49 55 53 42 59 54 45 53 31 20 20 20 1C 84 00 57  |IUSBYTES1   ...W|
00070: 32 30 30 33 54 45 53 54 20 20 20 20 20 20 20 04  |2003TEST       .|
00080: 00 47 45 4E 49 55 53 42 59 54 45 53 31 20 20 20  |.GENIUSBYTES1   |
00090: 1B 04 00 47 45 4E 49 55 53 42 59 54 45 53 31 20  |...GENIUSBYTES1 |
000A0: 20 20 1E 84 00 47 45 4E 49 55 53 42 59 54 45 53  |  ...GENIUSBYTES|
000B0: 31 20 20 20 1D 04 00 01 02 5F 5F 4D 53 42 52 4F  |1   .....__MSBRO|
000C0: 57 53 45 5F 5F 02 01 84 00 00 0C 6E 47 9E 91 00  |WSE__......nG...|
000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00120: 00 00 00 00 00 00 00 00 00 00 00 00 00           |.............   |

treeConnect: unc=\\W2003TEST\SCANS,service=?????
sessionSetup: accountName=uehl,primaryDomain=?
LM_COMPATIBILITY=0
00000: 06 FD ED D2 FA 3B 23 3A 1A 60 54 E3 62 5B CB 52  |.����;#:.`T�b[�R|
00010: DB AA 27 04 E3 DE 13 F1 8C 8E D1 AE C3 F7 BB 9A  |۪'.��.�..Ѯ��.|
00020: EC AA 67 9F B6 FD F0 B8                          |�g.���        |

java.lang.NullPointerException
	at jcifs.smb.SmbComSessionSetupAndX.writeParameterWordsWireFormat([BI)I(Unknown Source)
	at jcifs.smb.AndXServerMessageBlock.writeAndXWireFormat([BI)I(Unknown Source)
	at jcifs.smb.AndXServerMessageBlock.encode([BI)I(Unknown Source)
	at jcifs.smb.SmbTransport.doSend(Ljcifs/util/transport/Request;)V(Unknown Source)
	at jcifs.util.transport.Transport.sendrecv(Ljcifs/util/transport/Request;Ljcifs/util/transport/Response;J)V(Unknown Source)
	at jcifs.smb.SmbTransport.send(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
	at jcifs.smb.SmbSession.sessionSetup(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
	at jcifs.smb.SmbSession.send(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
	at jcifs.smb.SmbTree.treeConnect(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
	at jcifs.smb.SmbFile.connect()V(Unknown Source)
	at jcifs.smb.SmbFile.connect0()V(Unknown Source)
	at jcifs.smb.SmbFile.send(Ljcifs/smb/ServerMessageBlock;Ljcifs/smb/ServerMessageBlock;)V(Unknown Source)
	at jcifs.smb.SmbFile.doFindFirstNext(Ljava/util/ArrayList;ZLjava/lang/String;ILjcifs/smb/SmbFilenameFilter;Ljcifs/smb/SmbFileFilter;)V(Unknown Source)
	at jcifs.smb.SmbFile.listFiles(Ljava/lang/String;ILjcifs/smb/SmbFilenameFilter;Ljcifs/smb/SmbFileFilter;)[Ljcifs/smb/SmbFile;(Unknown Source)
	at jcifs.smb.SmbFile.listFiles()[Ljcifs/smb/SmbFile;(Unknown Source)
	at com.geniusbytes.embedded.smbbrowsing.JcifsSmbControler.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/ProcudocSmbFolder;Z)V(Unknown Source)
	at com.geniusbytes.embedded.smbbrowsing.JcifsSmbControler.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
	at com.geniusbytes.embedded.smbbrowsing.FolderController.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.fetchFolder()V(Unknown Source)
	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.<init>(Ljp/co/ricoh/dsdk/panel/Window;IILcom/geniusbytes/products/imagus/ImagusXlet;Ljava/lang/String;Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;Lcom/geniusbytes/embedde(U
	at com.geniusbytes.products.imagus.threads.FileBrowserThread.run()V(Unknown Source)
	at java.lang.Thread.startup(Z)V(Unknown Source)
com.geniusbytes.embedded.smbbrowsing.ChildAttachingException: caught exception when attaching children: null
	at com.geniusbytes.embedded.smbbrowsing.JcifsSmbControler.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
	at com.geniusbytes.embedded.smbbrowsing.FolderController.attachChildren(Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;)V(Unknown Source)
	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.fetchFolder()V(Unknown Source)
	at com.geniusbytes.products.imagus.ui.FileSystemBrowserWidget.<init>(Ljp/co/ricoh/dsdk/panel/Window;IILcom/geniusbytes/products/imagus/ImagusXlet;Ljava/lang/String;Lcom/geniusbytes/generic/procudocapi/filesystem/IProcudocFolder;Lcom/geniusbytes/embedde(U
	at com.geniusbytes.products.imagus.threads.FileBrowserThread.run()V(Unknown Source)
	at java.lang.Thread.startup(Z)V(Unknown Source)
java.io.InterruptedIOException: Peek timed out
	at java.net.PlainDatagramSocketImpl.peek(Ljava/net/InetAddress;)I(Native Method)
	at java.net.DatagramSocket.receive(Ljava/net/DatagramPacket;)V(Unknown Source)
	at jcifs.netbios.NameServiceClient.run()V(Unknown Source)
	at java.lang.Thread.run()V(Unknown Source)
	at java.lang.Thread.startup(Z)V(Unknown Source)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 890 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20060721/17076497/signature-0001.bin


More information about the jcifs mailing list