[jcifs] Re: InvalidOperationException

Shane shane.downey at epa.qld.gov.au
Tue Mar 22 22:52:04 GMT 2005


Michael B Allen <mba2000 <at> ioplex.com> writes:

> 
> Shane said:
> > Gidday,
> >
> > Have just started using jcifs 1.1.9 for the first time and i'm getting an
> > SmbException InvalidOperation on workgroup or server while trying a
> > copyTo()
> > operation.
> 
> What is the stack trace and what URLs are you using?
> 
> Mike
> 
> 
I think I might have fixed it.. I was building up the path from a string that 
had MS-DOS style '\' characters and not '/'. Some java classes allow this but 
aparently not jcifs. But that's fine - I just did a string replacement on it.

I am getting a new error now which I'll dump here. I've been talking to our 
network people who said that Smb protocol is enabled but prefixing the path 
with smb:// won't work.

22-03-05 12:10:13,051 DEBUG HttpRequestHandler-6187805 file.ejb.FileBO:298  - 
register the SmbURLHandler
22-03-05 12:10:13,051 DEBUG HttpRequestHandler-6187805 file.ejb.FileBO:301  - 
move the files
22-03-05 12:10:13,051 DEBUG HttpRequestHandler-6187805 file.ejb.FileBO:305  - 
smb path: 
smb://user:pass@server/cdimdr/TechOne/SoeOnlineDev/Home/ANZECC_A_10/Current/NOXt
rends.jpg
22-03-05 12:10:13,051 DEBUG HttpRequestHandler-6187805 file.ejb.FileBO:310  - 
smb path: 
smb://user:pass@server/cdimdr/TechOne/SoeOnlineDev/Home/ANZECC_A_10/Archived/200
5-03-22/NOXtrends.jpg
22-03-05 12:10:13,067 DEBUG HttpRequestHandler-6187805 file.ejb.FileBO:332  - 
Exception occured: jcifs.smb.SmbException: Failed to negotiate
jcifs.smb.SmbException: Timeout trying to open socket
java.io.IOException: Failed to establish session with server/10.16.3.21
	at jcifs.smb.SmbTransport.run(SmbTransport.java:363)
	at java.lang.Thread.run(Unknown Source)

	at jcifs.smb.SmbTransport.start(SmbTransport.java:315)
	at jcifs.smb.SmbTransport.negotiate0(SmbTransport.java:865)
	at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:941)
	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:119)
	at jcifs.smb.SmbFile.connect(SmbFile.java:827)
	at jcifs.smb.SmbFile.connect0(SmbFile.java:797)
	at jcifs.smb.SmbFile.copyTo(SmbFile.java:2022)
	at au.gov.qld.epa.soe.file.ejb.FileBO.moveFile(FileBO.java:315)
	at au.gov.qld.epa.soe.file.ejb.FileBO.moveDirectory(FileBO.java:374)
	at au.gov.qld.epa.soe.file.ejb.FileBO.doManageDataFiles(FileBO.java:233)
	at FileBOLocal_StatelessSessionBeanWrapper240.doManageDataFiles
(FileBOLocal_StatelessSessionBeanWrapper240.java:123)
	at au.gov.qld.epa.soe.data.ejb.DataObjectValidator.doMoveFiles
(DataObjectValidator.java:499)
	at au.gov.qld.epa.soe.data.ejb.DataObjectValidator.saveValidate
(DataObjectValidator.java:170)
	at com.t1.tb.bus.AValidator.saveValidate(AValidator.java:176)
	at au.gov.qld.epa.soe.data.ejb.ADataObjectFacadeBean.doSave
(ADataObjectFacadeBean.java:362)
	at au.gov.qld.epa.soe.data.ejb.ADataObjectFacadeBean.doSave
(ADataObjectFacadeBean.java:253)
	at DataObjectFacadeRemote_StatelessSessionBeanWrapper218.doSave
(DataObjectFacadeRemote_StatelessSessionBeanWrapper218.java:859)
	at au.gov.qld.epa.soe.data.dui.SODAT010Controller.actionSave
(SODAT010Controller.java:686)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.t1.tb.dui.ctl.ABasicFunctionController.execute
(ABasicFunctionController.java:432)
	at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:484)
	at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:274)
	at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1482)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.evermind.server.http.ServletRequestDispatcher.invoke
(ServletRequestDispatcher.java:721)
	at com.evermind.server.http.ServletRequestDispatcher.forwardInternal
(ServletRequestDispatcher.java:306)
	at com.evermind.server.http.HttpRequestHandler.processRequest
(HttpRequestHandler.java:767)
	at com.evermind.server.http.HttpRequestHandler.run
(HttpRequestHandler.java:259)
	at com.evermind.server.http.HttpRequestHandler.run
(HttpRequestHandler.java:106)
	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run
(PooledExecutor.java:803)
	at java.lang.Thread.run(Unknown Source)






More information about the jcifs mailing list