AW: [jcifs] NPE on Win XP Home but not on Pro

Michael B Allen mba2000 at ioplex.com
Sun Nov 12 02:43:23 GMT 2006


I have just applied a change that should prevent this exception from
occuring. If your VM does not support Cp850 (or whatever you specify for
jcifs.encoding) it will print a warning to the log and set the default
to US-ASCII.

Mike

On Fri, 25 Aug 2006 15:34:41 +0200
"Axel Seinsche" <axel.seinsche at innosystec.de> wrote:

> Hi,
> 
> that was the problem! Many thanks. Works perfect now.
> 
> Bye,
> Axel
> 
> -----Ursprüngliche Nachricht-----
> Von: Thomas Bley [mailto:thbley at gmail.com] Im Auftrag von Thomas Bley
> Gesendet: Freitag, 25. August 2006 15:10
> An: jcifs at lists.samba.org
> Cc: Axel Seinsche
> Betreff: Re: [jcifs] NPE on Win XP Home but not on Pro
> 
> Hi,
> 
> maybe you're running a JRE on the XP Home and a JDK on the XP Pro machine ?
> JRE doesn't support all the charset encodings that JDK does.
> 
> bye
> Thomas
> 
> Axel Seinsche wrote:
> > Hello list,
> >
> > I an new in this list and didn't find any thread matching my problem in
> the
> > archive. So maybe it was not discussed before, but I hope someone can help
> > me.
> >
> > I have written a little demo program to test file access via jcifs
> library.
> > This program works fine on my Windows XP Pro (SP2). When I run the program
> > on Windows XP Home (SP2) I get the following NullPointerException:
> >
> > Exception in thread "main" java.lang.NullPointerException
> >         at
> >
> jcifs.smb.SmbComSessionSetupAndX.writeParameterWordsWireFormat(SmbComSession
> > SetupAndX.java:58)
> >         at
> >
> jcifs.smb.AndXServerMessageBlock.writeAndXWireFormat(AndXServerMessageBlock.
> > java:94)
> >         at
> > jcifs.smb.AndXServerMessageBlock.encode(AndXServerMessageBlock.java:65)
> >         at jcifs.smb.SmbTransport.doSend(SmbTransport.java:402)
> >         at jcifs.util.transport.Transport.sendrecv(Transport.java:70)
> >         at jcifs.smb.SmbTransport.send(SmbTransport.java:602)
> >         at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:269)
> >         at jcifs.smb.SmbSession.send(SmbSession.java:225)
> >         at jcifs.smb.SmbTree.treeConnect(SmbTree.java:147)
> >         at jcifs.smb.SmbFile.connect(SmbFile.java:791)
> >         at jcifs.smb.SmbFile.connect0(SmbFile.java:761)
> >         at jcifs.smb.SmbFile.queryPath(SmbFile.java:1167)
> >         at jcifs.smb.SmbFile.exists(SmbFile.java:1253)
> >         at FileTester.main(FileTester.java:28)
> >
> > As the NPE does not occur in my code I think it's related to the
> differences
> > in the OS. 
> >
> > With the Windows Explorer I can access my files from both clients. The
> > properties I set are the same for both client. These are
> >
> > java.protocol.handler.pkgs
> > jcifs.smb.client.username
> > jcifs.smb.client.password
> > jcifs.smb.client.tcpNoDelay
> > jcifs.netbios.cachePolicy (set to -1)
> > jcifs.netbios.wins
> >
> > Any idea what's wrong here?
> >
> > Thanks,
> > Axel
> >
> >
> >   
> 
> 


-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list