[jcifs] changing last modified from a folder failed

dasKleineb at gmx.net dasKleineb at gmx.net
Sat Jan 20 12:35:51 GMT 2007


hi,

I am using the jcifs 1.2.13b4 libary.
  (think i made a mistake and the libary is fine)

After creating a folder with the mkdir() method from SmbFile
   smfFile.mkDirs(); // worked fine

I got an exception when I try to set the last modified date :
   smbFile.setLastModified(Long.parseLong(lastMod));  // failed
   // no problems to change for files

Anyone has an idea what's wrong with my code. There is no
exception message but I added the stack trace.

I did not find a tutorial and I am new with this stuff.

thanks for help,

bastian



25313 [ajp-11361-1] INFO  de.server.controller.SmbController
    -mkdir done

25313 [ajp-11361-1]
    INFO  de.server.controller.SmbController  

25320 [ajp-11361-1] ERROR de.server.exception.ExceptionHandler 
    -THIRD PARTY EXCEPTION (jcifs):


de.server.controller.MainController.handleUploadFiles(Unknown Source)
        at 
de.server.controller.MainController.handleRequestMessage(Unknown Source)
        at de.
server.controller.MainController.initRequest(Unknown Source)
        at
de.server.controller.BxSyncServlet.redirectMethod(Unknown Source)
        at
de.server.controller.BxSyncServlet.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        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.ajp.AjpAprProcessor.process(AjpAprProcessor.java:425)
        at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:452)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
        at java.lang.Thread.run(Thread.java:595)

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the jcifs mailing list