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

QQ登录

只需一步,快速开始

查看: 4564|回复: 7

[处理中5] 条码问题

[复制链接]

494

主题

1317

帖子

3275

积分

论坛元老

Rank: 8Rank: 8

积分
3275
QQ
发表于 2017-6-17 15:20:13 | 显示全部楼层 |阅读模式
本帖最后由 zhangql8 于 2017-6-18 06:57 编辑

type:code128
如附件1,{mw:0.6}时条码下文本太小,修改mw:0.4后,文本变大,条码又不清晰了,怎么设置好。附件2是其他软件生成的条码。

增加hrsize:1.7mm设置后报错
2017-06-18 06:50:00 syntax error, position at 0, name hrsize
javax.servlet.ServletException: com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.justep.ui.servlet.MainServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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: com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:466)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1073)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1042)
at com.alibaba.fastjson.JSON.parse(JSON.java:97)
at com.alibaba.fastjson.JSON.parse(JSON.java:88)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:159)
at GenBarcode.execute(GenBarcode.java:21)
at com.justep.ui.JavaServer.runJava(Unknown Source)
at com.justep.ui.JavaServer.doJ(Unknown Source)
at com.justep.ui.JavaServer.service(Native Method)
... 17 more
六月 18, 2017 6:50:00 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet main-servlet threw exception
com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:466)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1073)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1042)
at com.alibaba.fastjson.JSON.parse(JSON.java:97)
at com.alibaba.fastjson.JSON.parse(JSON.java:88)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:159)
at GenBarcode.execute(GenBarcode.java:21)
at com.justep.ui.JavaServer.runJava(Unknown Source)
at com.justep.ui.JavaServer.doJ(Unknown Source)
at com.justep.ui.JavaServer.service(Native Method)
at com.justep.ui.servlet.MainServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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)
2017-06-18 06:50:05 syntax error, position at 0, name hrsize
javax.servlet.ServletException: com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.justep.ui.servlet.MainServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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: com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:466)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1073)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1042)
at com.alibaba.fastjson.JSON.parse(JSON.java:97)
at com.alibaba.fastjson.JSON.parse(JSON.java:88)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:159)
at GenBarcode.execute(GenBarcode.java:21)
at com.justep.ui.JavaServer.runJava(Unknown Source)
at com.justep.ui.JavaServer.doJ(Unknown Source)
at com.justep.ui.JavaServer.service(Native Method)
... 17 more
六月 18, 2017 6:50:05 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet main-servlet threw exception
com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:466)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1073)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1042)
at com.alibaba.fastjson.JSON.parse(JSON.java:97)
at com.alibaba.fastjson.JSON.parse(JSON.java:88)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:159)
at GenBarcode.execute(GenBarcode.java:21)
at com.justep.ui.JavaServer.runJava(Unknown Source)
at com.justep.ui.JavaServer.doJ(Unknown Source)
at com.justep.ui.JavaServer.service(Native Method)
at com.justep.ui.servlet.MainServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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)


bex5.PNG
捕获.PNG

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-6-19 10:23:01 | 显示全部楼层
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

494

主题

1317

帖子

3275

积分

论坛元老

Rank: 8Rank: 8

积分
3275
QQ
 楼主| 发表于 2017-6-19 11:16:08 | 显示全部楼层
jishuang 发表于 2017-6-19 10:23
http://bbs.wex5.com/forum.php?mod=viewthread&tid=54297&extra=page%3D1

config的配置就是标准的 ...

就是按这个设置的,请你设置hrsize试试,谢谢!
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-6-19 14:39:17 | 显示全部楼层
设置字体大小的,不是mm
report.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

494

主题

1317

帖子

3275

积分

论坛元老

Rank: 8Rank: 8

积分
3275
QQ
 楼主| 发表于 2017-6-19 15:00:14 | 显示全部楼层
jishuang 发表于 2017-6-19 14:39
设置字体大小的,不是mm

你版本是3.7吗?
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-6-19 16:01:14 | 显示全部楼层
这个设置跟什么版本无关
studio.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

494

主题

1317

帖子

3275

积分

论坛元老

Rank: 8Rank: 8

积分
3275
QQ
 楼主| 发表于 2017-6-19 22:27:12 | 显示全部楼层
jishuang 发表于 2017-6-19 14:39
设置字体大小的,不是mm

案例:$model/UI2/system/components/justep/barcode/demo/demoBarcodeImage.w
按附件设置hrsize,报错
2017-06-19 22:24:54
com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:466)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1073)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1042)
at com.alibaba.fastjson.JSON.parse(JSON.java:97)
at com.alibaba.fastjson.JSON.parse(JSON.java:88)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:159)
at GenBarcode.execute(GenBarcode.java:21)
at com.justep.ui.JavaServer.runJava(Unknown Source)
at com.justep.ui.JavaServer.doJ(Unknown Source)
at com.justep.ui.JavaServer.service(Native Method)
at com.justep.ui.servlet.MainServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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)
2017-06-19 22:24:54 编码: JUSTEP002026; 提示: .J(/UI2/system/components/justep/barcode/server/genBarcode.j)执行失败
javax.servlet.ServletException: com.justep.ui.exception.UIException: 编码: JUSTEP002026; 提示: .J(/UI2/system/components/justep/barcode/server/genBarcode.j)执行失败
at com.justep.ui.servlet.MainServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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: com.justep.ui.exception.UIException: 编码: JUSTEP002026; 提示: .J(/UI2/system/components/justep/barcode/server/genBarcode.j)执行失败
at com.justep.ui.exception.UIException.create(Unknown Source)
at com.justep.ui.JavaServer.doJ(Unknown Source)
at com.justep.ui.JavaServer.service(Native Method)
... 17 more
Caused by: com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:466)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1073)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1042)
at com.alibaba.fastjson.JSON.parse(JSON.java:97)
at com.alibaba.fastjson.JSON.parse(JSON.java:88)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:159)
at GenBarcode.execute(GenBarcode.java:21)
at com.justep.ui.JavaServer.runJava(Unknown Source)
... 19 more
六月 19, 2017 10:24:54 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet main-servlet threw exception
com.alibaba.fastjson.JSONException: syntax error, position at 0, name hrsize
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:466)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1073)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1042)
at com.alibaba.fastjson.JSON.parse(JSON.java:97)
at com.alibaba.fastjson.JSON.parse(JSON.java:88)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:159)
at GenBarcode.execute(GenBarcode.java:21)
at com.justep.ui.JavaServer.runJava(Unknown Source)
at com.justep.ui.JavaServer.doJ(Unknown Source)
at com.justep.ui.JavaServer.service(Native Method)
at com.justep.ui.servlet.MainServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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)

捕获.PNG
捕获.PNG
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2017-6-20 10:54:59 | 显示全部楼层
这个是barcodeImag组件的缺陷,已提交到产品组(内部编号:2017062000002),感谢楼主的支持与配合。

4楼的是报表中的设置,不是组件中的设置
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 19:54 , Processed in 0.104432 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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