Connection in Error Connection Refused

View: New views
2 Messages — Rating Filter:   Alert me  

Connection in Error Connection Refused

by Dan Grossen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've created a portlet in vignette that allows a user to upload a file and submit it to a windows share folder.  Also, the folder exists in a domain-based DFS.   
 
The application works, but periodically it fails.  I see the same error everytime it fails:
 
2008-07-08 13:19:05,455 [ExecuteThread: '39' for queue: 'weblogic.kernel.Default'] ERROR org.selecthealth.applyonline.portlet.ApplyOnlineService - A samba error occured while saving the file to network folder, NTSTATUS value: -1073741823
jcifs.smb.SmbException: Connection in error
jcifs.util.transport.TransportException: Connection in error
jcifs.util.transport.TransportException
java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
 at java.net.Socket.connect(Socket.java:452)
 at java.net.Socket.connect(Socket.java:402)
 at java.net.Socket.<init>(Socket.java:309)
 at java.net.Socket.<init>(Socket.java:124)
 at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:245)
 at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:305)
 at jcifs.util.transport.Transport.run(Transport.java:240)
 at java.lang.Thread.run(Thread.java:534)
 
 at jcifs.util.transport.Transport.run(Transport.java:256)
 at java.lang.Thread.run(Thread.java:534)
 
 at jcifs.util.transport.Transport.connect(Transport.java:158)
 at jcifs.smb.SmbTransport.connect(SmbTransport.java:290)
 at jcifs.smb.SmbTree.treeConnect(SmbTree.java:139)
 at jcifs.smb.SmbFile.doConnect(SmbFile.java:847)
 at jcifs.smb.SmbFile.connect(SmbFile.java:890)
 at jcifs.smb.SmbFile.connect0(SmbFile.java:816)
 at jcifs.smb.SmbFile.open0(SmbFile.java:906)
 at jcifs.smb.SmbFile.open(SmbFile.java:940)
 at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
 at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
 at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:82)
 at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:54)
I'm currently using version 1.2.22 of jcifs.  Would this be a DFS issue- is there an additional jcifs property that would avoid this error.  Or is this simply a connection issue between the application server and the windows server?
 
Any comments would be helpful,
 
Thanks 
 
Dan Grossen

Re: Connection in Error Connection Refused

by Michael B Allen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 7/8/08, Dan Grossen <Dan.Grossen@...> wrote:
>
>
> I've created a portlet in vignette that allows a user to upload a file and
> submit it to a windows share folder.  Also, the folder exists in a
> domain-based DFS.
>
> The application works, but periodically it fails.  I see the same error
> everytime it fails:
<snip>
> java.net.ConnectException: Connection refused
>  at java.net.PlainSocketImpl.socketConnect(Native Method)

JCIFS does not artificially induce such a ConnectException anywhere so
I think you really are getting a "Connection refused" from the server.

Mike

--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
LightInTheBox - Buy quality products at wholesale price