Add a new post type
insert into mis.zyb_sf_type values('121','Yucai Fa characters','Yucai Fa characters',2,'0','1',21,NULL,'0','0','post template.doc','')An error occurred while creating the article.
Exception information:
File saving failed
Java.io.FileNotFoundException: E:/tomcat/jinzhongshi/jinzs_yuci/webapps/myDoJZS/word/template_fw/post template.doc (The specified file cannot be found in the system.) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at cn.com.ctdos.businessx.special.fw.service.SpFwDAOImpl.CopyFile(SpFwDAOImpl.java:990) at cn.com.ctdos.businessx.special.fw.service.SpFwDAOImpl.doNewZybFwAttach(SpFwDAOImpl.java:938) at cn.com.ctdos.businessx.special.fw.service.SpFwDAOImpl$$FassClassByCGLIB$$93d79680.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
The search for this directory file does exist, (E:/tomcat/jinzhongshi/jinzs_yuci/webapps/myDoJZS/word/template_fw/post template.doc) has been re-deployed twice, and it is still this problem. Could it be that there is a problem with the file itself? Create a new file, the name is the same, as the 11k on the right side of the picture, and the names of the two documents do not conflict.
Is it possible that it was created on a different operating system? So the character encoding is different? I don't know either.
Copy the file name of the original file on the left "Post Template.doc" and paste it in the SQL statement (the original SQL Chinese characters were typed on by yourself).
insert into mis.zyb_sf_type values('121','Yucai Fa characters','Yucai Fa characters',2,'0','1',21,NULL,'0','0','post template.doc','')Execute again and everything is fine.