jcifs.smb.SmbException:

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

jcifs.smb.SmbException:

Indika Prasad
Hi all,
i use jcifs login method to login my system.For windows 2000,xp it works fine. But when some one try to login using windows 98 pc it gives following error. all the machine connect to the network and using same domain.

pls tell me the issue!

hear is the error.
=============error massage===============================
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
jcifs.smb.SmbException:
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at jcifs.smb.SigningDigest.<init>(SigningDigest.java:42)
at jcifs.smb.SmbSession.sessionSetup (SmbSession.java:267)
at jcifs.smb.SmbSession.send(SmbSession.java:228)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:134)
at jcifs.smb.SmbSession.logon(SmbSession.java:159)
at jcifs.smb.SmbSession.logon(SmbSession.java :152)
at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:155)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

jcifs.smb.SigningDigest.<init>(SigningDigest.java:59)
jcifs.smb.SmbSession.sessionSetup(SmbSession.java:267)
jcifs.smb.SmbSession.send(SmbSession.java :228)
jcifs.smb.SmbTree.treeConnect(SmbTree.java:134)
jcifs.smb.SmbSession.logon(SmbSession.java:159)
jcifs.smb.SmbSession.logon(SmbSession.java:152)
jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:155)

======================end of error massage=========================
Hear is my web.xml file

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilter</filter-class>
<init-param>
<param-name> jcifs.smb.client.domain</param-name>
<param-value>doman_name</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-value>ip of server</param-value>
</init-param>
</filter>
<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name> jcifs.smb.lmCompatibility</param-name>
<param-value>3</param-value>
</init-param>
<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<session-config>
<session-timeout>30</session-timeout>
</session-config>


</web-app>

thanks..
Reply | Threaded
Open this post in threaded view
|

Re: jcifs.smb.SmbException:

Michael B Allen-4
Does 1.1.11 have the same problem?

On Sat, 26 Nov 2005 12:44:04 +0600
Indika Prasad <[hidden email]> wrote:

> Hi all,
> i use jcifs login method to login my system.For windows 2000,xp it works
> fine. But when some one try to login using windows 98 pc it gives following
> error. all the machine connect to the network and using same domain.
>
> pls tell me the issue!
>
> hear is the error.
> =============error massage===============================
> type Exception report
> message
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
> exception
> jcifs.smb.SmbException:
> java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at jcifs.smb.SigningDigest.<init>(SigningDigest.java:42)
> at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:267)
> at jcifs.smb.SmbSession.send(SmbSession.java:228)
> at jcifs.smb.SmbTree.treeConnect(SmbTree.java:134)
> at jcifs.smb.SmbSession.logon(SmbSession.java:159)
> at jcifs.smb.SmbSession.logon(SmbSession.java:152)
> at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:155)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:214)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :825)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Http11Protocol.java:738)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:526)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
> jcifs.smb.SigningDigest.<init>(SigningDigest.java:59)
> jcifs.smb.SmbSession.sessionSetup(SmbSession.java:267)
> jcifs.smb.SmbSession.send(SmbSession.java:228)
> jcifs.smb.SmbTree.treeConnect(SmbTree.java:134)
> jcifs.smb.SmbSession.logon(SmbSession.java:159)
> jcifs.smb.SmbSession.logon(SmbSession.java:152)
> jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:155)
>
> ======================end of error massage=========================
> Hear is my web.xml file
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
>
> <web-app>
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
>
> <filter>
> <filter-name>NtlmHttpFilter</filter-name>
> <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
> <init-param>
> <param-name>jcifs.smb.client.domain</param-name>
> <param-value>doman_name</param-value>
> </init-param>
> <init-param>
> <param-name>jcifs.netbios.wins</param-name>
> <param-value>ip of server</param-value>
> </init-param>
> </filter>
> <init-param>
> <param-name>jcifs.util.loglevel</param-name>
> <param-value>2</param-value>
> </init-param>
> <init-param>
> <param-name>jcifs.smb.lmCompatibility</param-name>
> <param-value>3</param-value>
> </init-param>
> <filter-mapping>
> <filter-name>NtlmHttpFilter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <session-config>
> <session-timeout>30</session-timeout>
> </session-config>
>
>
> </web-app>
>
> thanks..
>