[jcifs] [Forwarded to the list.]
Christopher R. Hertel
crh at ubiqx.mn.org
Sat Jul 6 06:55:43 EST 2002
I need to contact Tim and figure out why this message didn't make it to
the jCIFS list. In the meantime, I am forwarding it to the list.
Chris -)-----
----- Forwarded message from Greg Pavlik <greg_pavlik at mediagroks.com> -----
>
> From: Greg Pavlik <greg_pavlik at mediagroks.com>
> Date: Fri Jul 05, 2002 03:52:36 PM US/Eastern
> To: jcifs at lists.samba.org
> Subject: deadlock/hanging
>
>
> I am experiencing some strange behavior with JCIFS. When I run the
> client, the client hangs, and while this is repeatable, it doesn't
> happen in all test cases. It always occurs when I run inside of a
> more complicated Java program, in this case an app server -- though I
> am executing tests serially. I am accessing a share that is on my
> test box (the box that is running the client), a Windows2000 HP
> laptop.
>
> What is even more unexpected is that all clients will hang even if
> the test runner is restarted. I can not get an SMB client to not hang
> when connecting to my share unless I reboot the entire machine.
>
> My code at this point is creating a new SmbFile using the constructor
> public SmbFile( SmbFile file) -- ie, it is presumably leveraging an
> existing connection to resolve to a new resource.
>
> The following is a stack trace from the blocking thread. Any tips
> would be greatly appreciated. Thanks.
>
> "executor-1" prio=5 tid=0xd7ef598 nid=0x6ac waiting on monitor
> [0x10b5f000..0x10b5fdbc]
> at java.lang.Object.wait(Native Method)
> - waiting on <2b9f700> (a java.lang.Object)
> at java.lang.Object.wait(Object.java:420)
> at
> jcifs.UniAddress.lookupServerOrWorkgroup(UniAddress.java:162)
> - locked <2b9f700> (a java.lang.Object)
> at jcifs.UniAddress.getByName(UniAddress.java:253)
> at jcifs.smb.SmbURL.parseSmbURL(SmbURL.java:76)
> at jcifs.smb.SmbFile.<init>(SmbFile.java:371)
> at jcifs.smb.SmbFile.<init>(SmbFile.java:324)
> at
>
> com.mediagroks.distribution.smb.CIFSDestination.establishConnectionToResourc
>
> e(CIFSDestination.java:47)
> at
>
> com.mediagroks.distribution.smb.CIFSDestination.connect(CIFSDestination.java
>
> :40)
> at
>
> com.mediagroks.distribution.smb.CIFSDestination.connect(CIFSDestination.java
>
> :34)
> at
>
> com.mediagroks.integrators.distribution.jca.spi.DistributionManagedConnectio
>
> n.get(DistributionManagedConnection.java:143)
>
> at
> com.mediagroks.integrators.distribution.jca.GetInteractionSpec.visit
> (GetInte
> ractionSpec.java:64)
> at
>
> com.mediagroks.integrators.distribution.jca.DistributionInteraction.accept(
>
> D
> istributionInteraction.java:67)
> at
>
> com.mediagroks.integrators.distribution.jca.DistributionInteraction.execute(
>
> DistributionInteraction.java:49)
> at
> com.mediagroks.integrators.distribution.jca.TestServlet.doGet
> (TestServlet.ja
> va:129)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
> com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean$ServicePrivilegedAc
>
> tion.run(WebApplicationBean.java:4531)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
> at
> com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean.service
> (WebApplicat
> ionBean.java:1978)
> at
>
> com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forwardOrInclude
>
> (RequestDispatcherImpl.java:409)
> at
> com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forward
> (RequestD
> ispatcherImpl.java:134)
> at
>
> com.hp.mwlabs.j2ee.containers.servlet.ServletContainerBean.processRequest(
>
> Se
> rvletContainerBean.java:776)
> at
>
> com.hp.mwlabs.as.services.servlet.ServletContainerService.processRequest
>
> (Ser
> vletContainerService.java:542)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> com.hp.mw.common.util.PolymorphicInvocationHandler.invoke
> (PolymorphicInvocat
> ionHandler.java:223)
> at
> com.hp.mwlabs.csf.ServiceInvocationHandler.invoke
> (ServiceInvocationHandler.j
> ava:184)
> at $Proxy87.processRequest(Unknown Source)
> at
>
> com.hp.mwlabs.as.services.listeners.http.HttpRequestHandler.executeImpl
>
> (Http
> RequestHandler.java:229)
> at
> com.hp.mw.as.services.listeners.BaseRequestHandler.execute
> (BaseRequestHandle
> r.java:124)
> at
>
> com.hp.mwlabs.common.util.ExecutorPool$Entry.execute(ExecutorPool.java:400)
>
> at
>
> com.hp.mwlabs.common.util.PeriodicExecutor.run(PeriodicExecutor.java:630)
>
> at java.lang.Thread.run(Thread.java:484)
>
>
>
>
----- End forwarded message -----
More information about the jcifs
mailing list