起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2161|回复: 16

[处理中3] attachmentSimple下载失败

[复制链接]

19

主题

87

帖子

171

积分

初级会员

Rank: 2

积分
171
QQ
发表于 2016-6-12 21:12:27 | 显示全部楼层 |阅读模式
按照/UI2/demo/pai这个例子,自己定义attachmentSimple选择一个文件后,保存到baasdata成功,服务器上文件也生成成功。我双击attachmentSimple组件上的文件图标,报错无法下载“文件名、目录名或卷标语法不正确”请问这是什么回事?
QQ截图20160612211108.png

3

主题

6

帖子

64

积分

初级会员

Rank: 2

积分
64
QQ
发表于 2016-6-13 15:09:50 | 显示全部楼层
你好,你的图片上传怎么做的
回复 支持 反对

使用道具 举报

19

主题

87

帖子

171

积分

初级会员

Rank: 2

积分
171
QQ
 楼主| 发表于 2016-6-13 16:19:47 | 显示全部楼层
按照/UI2/demo/pai这个例子 做的,
回复 支持 反对

使用道具 举报

19

主题

87

帖子

171

积分

初级会员

Rank: 2

积分
171
QQ
 楼主| 发表于 2016-6-13 19:01:49 | 显示全部楼层
而且/UI2/demo/pai这个例子这个例子,在手机上点下载的时候,会死机
回复 支持 反对

使用道具 举报

19

主题

87

帖子

171

积分

初级会员

Rank: 2

积分
171
QQ
 楼主| 发表于 2016-6-14 08:51:38 | 显示全部楼层
我想是不是我调用baas路径设置的问题,我传了两个图,在地址栏,有个地址是我加了“/baas”,出现Baas模型没有编译但是,我其他使用baas的程序可以正常使用。所以现在就不知道怎么办

QQ图片20160614084609.png
QQ图片20160614084651.png
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36064
发表于 2016-6-15 10:59:26 | 显示全部楼层
X5具体用的什么版本?
看看服务端的控制台的完整错误信息是什么?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

19

主题

87

帖子

171

积分

初级会员

Rank: 2

积分
171
QQ
 楼主| 发表于 2016-6-15 15:50:04 | 显示全部楼层
我用的是WeX5_V3.5

错误信息如下:


2016-06-15 15:38:37 Action[justep/attachment/simpleFileStore]执行失败,E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at justep.SimpleFileStore.getFile(SimpleFileStore.java:108)
        at justep.SimpleFileStore.doGet(SimpleFileStore.java:82)
        at justep.SimpleFileStore.service(SimpleFileStore.java:36)
        at justep.Attachment__do.simpleFileStore(Attachment__do.java:43)
        ... 20 more
com.justep.baas.action.ActionException: Action[justep/attachment/simpleFileStore]执行失败,E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        ... 16 more
Caused by: java.io.FileNotFoundException: E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at justep.SimpleFileStore.getFile(SimpleFileStore.java:108)
        at justep.SimpleFileStore.doGet(SimpleFileStore.java:82)
        at justep.SimpleFileStore.service(SimpleFileStore.java:36)
        at justep.Attachment__do.simpleFileStore(Attachment__do.java:43)
        ... 20 more
六月 15, 2016 3:38:37 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet WeX5_Baas_Servlet threw exception
java.io.FileNotFoundException: E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at justep.SimpleFileStore.getFile(SimpleFileStore.java:108)
        at justep.SimpleFileStore.doGet(SimpleFileStore.java:82)
        at justep.SimpleFileStore.service(SimpleFileStore.java:36)
        at justep.Attachment__do.simpleFileStore(Attachment__do.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)

2016-06-15 15:38:41 Action[justep/attachment/simpleFileStore]执行失败,E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)

回复 支持 反对

使用道具 举报

19

主题

87

帖子

171

积分

初级会员

Rank: 2

积分
171
QQ
 楼主| 发表于 2016-6-15 15:50:22 | 显示全部楼层
Caused by: java.io.FileNotFoundException: E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at justep.SimpleFileStore.getFile(SimpleFileStore.java:108)
        at justep.SimpleFileStore.doGet(SimpleFileStore.java:82)
        at justep.SimpleFileStore.service(SimpleFileStore.java:36)
        at justep.Attachment__do.simpleFileStore(Attachment__do.java:43)
        ... 20 more
com.justep.baas.action.ActionException: Action[justep/attachment/simpleFileStore]执行失败,E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
六月 15, 2016 3:38:41 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet WeX5_Baas_Servlet threw exception
java.io.FileNotFoundException: E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at justep.SimpleFileStore.getFile(SimpleFileStore.java:108)
        at justep.SimpleFileStore.doGet(SimpleFileStore.java:82)
        at justep.SimpleFileStore.service(SimpleFileStore.java:36)
        at justep.Attachment__do.simpleFileStore(Attachment__do.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)

        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.action.Engine.execAction(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
        at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        ... 16 more
Caused by: java.io.FileNotFoundException: E:\WeX5_V3.5\apache-tomcat\webapps\..\..\runtime\BaasServer\..\..\data\attachmentSimple\[{"storeFileName":"C71BBAD05C400001168C150015CCB540","realFileName":"SAM_2005.JPG"}]\C71BBAD05C400001168C150015CCB540 (文件名、目录名或卷标语法不正确。)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at justep.SimpleFileStore.getFile(SimpleFileStore.java:108)
        at justep.SimpleFileStore.doGet(SimpleFileStore.java:82)
        at justep.SimpleFileStore.service(SimpleFileStore.java:36)
        at justep.Attachment__do.simpleFileStore(Attachment__do.java:43)
        ... 20 more
回复 支持 反对

使用道具 举报

64

主题

471

帖子

1127

积分

金牌会员

Rank: 6Rank: 6

积分
1127
发表于 2016-6-15 16:03:23 | 显示全部楼层
你在哪里请求的这个URL,参数给错了当然要出错,OWNID必须是主键ID,你怎么给了个JSON对象?
回复 支持 反对

使用道具 举报

19

主题

87

帖子

171

积分

初级会员

Rank: 2

积分
171
QQ
 楼主| 发表于 2016-6-15 16:14:06 | 显示全部楼层
我新建一个app。。仅加了一个attachmentSimple组件,任何代码没有写。我用浏览器运行,点attachmentSimple的加号,选择文件后就出现图片上的错误
attachmentSimple组件
QQ图片20160615161106.png
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-22 12:04 , Processed in 0.088792 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表