|
本帖最后由 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)
|
-
-
|