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

Axel Seinsche axel.seinsche at
Fri Aug 25 13:34:41 GMT 2006


that was the problem! Many thanks. Works perfect now.


-----Ursprüngliche Nachricht-----
Von: Thomas Bley [mailto:thbley at] Im Auftrag von Thomas Bley
Gesendet: Freitag, 25. August 2006 15:10
An: jcifs at
Cc: Axel Seinsche
Betreff: Re: [jcifs] NPE on Win XP Home but not on Pro


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.


Axel Seinsche wrote:
> Hello list,
> I an new in this list and didn't find any thread matching my problem in
> 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
> 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
>         at
> java:94)
>         at
> jcifs.smb.AndXServerMessageBlock.encode(
>         at jcifs.smb.SmbTransport.doSend(
>         at jcifs.util.transport.Transport.sendrecv(
>         at jcifs.smb.SmbTransport.send(
>         at jcifs.smb.SmbSession.sessionSetup(
>         at jcifs.smb.SmbSession.send(
>         at jcifs.smb.SmbTree.treeConnect(
>         at jcifs.smb.SmbFile.connect(
>         at jcifs.smb.SmbFile.connect0(
>         at jcifs.smb.SmbFile.queryPath(
>         at jcifs.smb.SmbFile.exists(
>         at FileTester.main(
> As the NPE does not occur in my code I think it's related to the
> 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

More information about the jcifs mailing list