浏览 3535 次
锁定老帖子 主题:OFBiz促销码生成解释
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2014-10-07
OFBiz 我的购物车 输入固定的邀请码实现优惠促销 需要解释一下输入促销码的位数,以及唯一性规则 这个促销码。 ofbiz可以按3种格式生成。 1 智能生成字母数字大小写的字符串,规避掉看起来类似的相同数字0和字母O 2 根据唯一性算法,生成一串字符,里面包含数字以及大小写的字母,估计0和O都包含 3 数字非连续的递增, 当然还有一种更完美的解决方案,我们先生成出来,然后通过execl的csv格式批量导入到ofbiz中 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2014-10-09
下载了ofbiz 13 安装运行了,结果报如下错,是为什么?
java.lang.IllegalArgumentException: Could not get next sequenced ID for sequence name: Visitor at org.ofbiz.entity.GenericDelegator.getNextSeqId(GenericDelegator.java:2319) ~[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericDelegator.getNextSeqId(GenericDelegator.java:2308) ~[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericEntity.setNextSeqId(GenericEntity.java:625) ~[ofbiz-entity-test.jar:?] at org.ofbiz.entity.GenericDelegator.createSetNextSeqId(GenericDelegator.java:746) ~[ofbiz-entity-test.jar:?] at org.ofbiz.webapp.stats.VisitHandler.getVisitor(VisitHandler.java:238) ~[ofbiz-webapp.jar:?] at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:195) ~[ofbiz-webapp.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) ~[servlet-api-3.0.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ~[servlet-api-3.0.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:750) ~[tomcat-7.0.55-jasper.jar:7.0.55] at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:720) ~[tomcat-7.0.55-jasper.jar:7.0.55] at org.apache.jsp.index_jsp._jspService(index_jsp.java:65) ~[?:?] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) ~[tomcat-7.0.55-jasper.jar:7.0.55] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ~[servlet-api-3.0.jar:?] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) ~[tomcat-7.0.55-jasper.jar:7.0.55] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) ~[tomcat-7.0.55-jasper.jar:7.0.55] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) ~[tomcat-7.0.55-jasper.jar:7.0.55] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ~[servlet-api-3.0.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:314) ~[ofbiz-webapp.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.ofbiz.content.content.ContentUrlFilter.doFilter(ContentUrlFilter.java:107) ~[ofbiz-content.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.ofbiz.product.category.CatalogUrlFilter.doFilter(CatalogUrlFilter.java:336) ~[ofbiz-product.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [tomcat-7.0.55-catalina.jar:7.0.55] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) [tomcat-7.0.55-tomcat-coyote.jar:7.0.55] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) [tomcat-7.0.55-tomcat-coyote.jar:7.0.55] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) [tomcat-7.0.55-tomcat-coyote.jar:7.0.55] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_55] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_55] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-7.0.55-tomcat-coyote.jar:7.0.55] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_55] |
|
返回顶楼 | |