Drools 在规则表中进行更改时出现意外的Drool错误

Drools 在规则表中进行更改时出现意外的Drool错误,drools,rules,Drools,Rules,我正在使用基于spring框架构建的应用程序中excel文件中维护的规则表。规则表包含一些键。 我附上excel文件的屏幕截图,让您有一个更好的想法。 出于某些测试目的,我想将“PROD”列中的键移动到“STAGE”列。当我这样做时,应用程序无法部署到jboss上。它给出了以下错误: 16:04:01,809 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 79) Conte

我正在使用基于spring框架构建的应用程序中excel文件中维护的规则表。规则表包含一些键。 我附上excel文件的屏幕截图,让您有一个更好的想法。

出于某些测试目的,我想将“PROD”列中的键移动到“STAGE”列。当我这样做时,应用程序无法部署到jboss上。它给出了以下错误:

16:04:01,809 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 79) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'paymentApprovalService' defined in ServletContext resource [/WEB-INF/spring-services.xml]: Invocation of init method failed; nested exception is java.lang.Exception: [8,9]: [ERR 101] Line 8:9 no viable alternative at input ''[22,9]: [ERR 101] Line 22:9 no viable alternative at input ''[35,9]: [ERR 101] Line 35:9 no viable alternative at input ''[48,9]: [ERR 101] Line 48:9 no viable alternative at input ''[61,9]: [ERR 101] Line 61:9 no viable alternative at input ''[74,9]: [ERR 101] Line 74:9 no viable alternative at input ''[87,9]: [ERR 101] Line 87:9 no viable alternative at input ''[100,9]: [ERR 101] Line 100:9 no viable alternative at input ''[113,9]: [ERR 101] Line 113:9 no viable alternative at input ''[126,9]: [ERR 101] Line 126:9 no viable alternative at input ''[139,9]: [ERR 101] Line 139:9 no viable alternative at input ''[152,9]: [ERR 101] Line 152:9 no viable alternative at input ''[165,9]: [ERR 101] Line 165:9 no viable alternative at input ''[178,9]: [ERR 101] Line 178:9 no viable alternative at input ''[191,9]: [ERR 101] Line 191:9 no viable alternative at input ''[204,9]: [ERR 101] Line 204:9 no viable alternative at input ''[217,9]: [ERR 101] Line 217:9 no viable alternative at input ''[230,9]: [ERR 101] Line 230:9 no viable alternative at input ''[243,9]: [ERR 101] Line 243:9 no viable alternative at input ''[256,9]: [ERR 101] Line 256:9 no viable alternative at input ''[269,9]: [ERR 101] Line 269:9 no viable alternative at input ''[282,9]: [ERR 101] Line 282:9 no viable alternative at input ''[295,9]: [ERR 101] Line 295:9 no viable alternative at input ''[308,9]: [ERR 101] Line 308:9 no viable alternative at input ''[321,9]: [ERR 101] Line 321:9 no viable alternative at input ''[334,9]: [ERR 101] Line 334:9 no viable alternative at input ''[347,9]: [ERR 101] Line 347:9 no viable alternative at input ''[360,9]: [ERR 101] Line 360:9 no viable alternative at input ''[373,9]: [ERR 101] Line 373:9 no viable alternative at input ''[386,9]: [ERR 101] Line 386:9 no viable alternative at input ''[399,9]: [ERR 101] Line 399:9 no viable alternative at input ''[412,9]: [ERR 101] Line 412:9 no viable alternative at input ''[425,9]: [ERR 101] Line 425:9 no viable alternative at input ''[438,9]: [ERR 101] Line 438:9 no viable alternative at input ''[451,9]: [ERR 101] Line 451:9 no viable alternative at input ''[464,9]: [ERR 101] Line 464:9 no viable alternative at input ''[477,9]: [ERR 101] Line 477:9 no viable alternative at input ''[490,9]: [ERR 101] Line 490:9 no viable alternative at input ''[500,9]: [ERR 101] Line 500:9 no viable alternative at input ''[513,9]: [ERR 101] Line 513:9 no viable alternative at input ''[523,9]: [ERR 101] Line 523:9 no viable alternative at input ''[536,9]: [ERR 101] Line 536:9 no viable alternative at input ''
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
    at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_121]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_121]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_121]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_121]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_121]
    at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: java.lang.Exception: [8,9]: [ERR 101] Line 8:9 no viable alternative at input ''[22,9]: [ERR 101] Line 22:9 no viable alternative at input ''[35,9]: [ERR 101] Line 35:9 no viable alternative at input ''[48,9]: [ERR 101] Line 48:9 no viable alternative at input ''[61,9]: [ERR 101] Line 61:9 no viable alternative at input ''[74,9]: [ERR 101] Line 74:9 no viable alternative at input ''[87,9]: [ERR 101] Line 87:9 no viable alternative at input ''[100,9]: [ERR 101] Line 100:9 no viable alternative at input ''[113,9]: [ERR 101] Line 113:9 no viable alternative at input ''[126,9]: [ERR 101] Line 126:9 no viable alternative at input ''[139,9]: [ERR 101] Line 139:9 no viable alternative at input ''[152,9]: [ERR 101] Line 152:9 no viable alternative at input ''[165,9]: [ERR 101] Line 165:9 no viable alternative at input ''[178,9]: [ERR 101] Line 178:9 no viable alternative at input ''[191,9]: [ERR 101] Line 191:9 no viable alternative at input ''[204,9]: [ERR 101] Line 204:9 no viable alternative at input ''[217,9]: [ERR 101] Line 217:9 no viable alternative at input ''[230,9]: [ERR 101] Line 230:9 no viable alternative at input ''[243,9]: [ERR 101] Line 243:9 no viable alternative at input ''[256,9]: [ERR 101] Line 256:9 no viable alternative at input ''[269,9]: [ERR 101] Line 269:9 no viable alternative at input ''[282,9]: [ERR 101] Line 282:9 no viable alternative at input ''[295,9]: [ERR 101] Line 295:9 no viable alternative at input ''[308,9]: [ERR 101] Line 308:9 no viable alternative at input ''[321,9]: [ERR 101] Line 321:9 no viable alternative at input ''[334,9]: [ERR 101] Line 334:9 no viable alternative at input ''[347,9]: [ERR 101] Line 347:9 no viable alternative at input ''[360,9]: [ERR 101] Line 360:9 no viable alternative at input ''[373,9]: [ERR 101] Line 373:9 no viable alternative at input ''[386,9]: [ERR 101] Line 386:9 no viable alternative at input ''[399,9]: [ERR 101] Line 399:9 no viable alternative at input ''[412,9]: [ERR 101] Line 412:9 no viable alternative at input ''[425,9]: [ERR 101] Line 425:9 no viable alternative at input ''[438,9]: [ERR 101] Line 438:9 no viable alternative at input ''[451,9]: [ERR 101] Line 451:9 no viable alternative at input ''[464,9]: [ERR 101] Line 464:9 no viable alternative at input ''[477,9]: [ERR 101] Line 477:9 no viable alternative at input ''[490,9]: [ERR 101] Line 490:9 no viable alternative at input ''[500,9]: [ERR 101] Line 500:9 no viable alternative at input ''[513,9]: [ERR 101] Line 513:9 no viable alternative at input ''[523,9]: [ERR 101] Line 523:9 no viable alternative at input ''[536,9]: [ERR 101] Line 536:9 no viable alternative at input ''
    at com.ge.epay.helpers.BusinessRulesHelper.readDecisionTable(BusinessRulesHelper.java:65) [classes:]
    at com.ge.epay.services.pvt.PaymentApprovalServiceImpl.afterPropertiesSet(PaymentApprovalServiceImpl.java:193) [classes:]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    ... 23 more
我甚至试图更改“环境”列中的值。我将PROD换成STAGE,STAGE换成PROD,即使这样,我还是得到了相同的错误。 我做错什么了吗? 奇怪的是,我最近更改了所有PROD行中的键。那个文件工作正常。但现在,当我交换这些值时,应用程序甚至没有部署。
任何帮助都将不胜感激。

这可能是Excel和朋友更喜欢使用的报价。确保使用引号字符(ASCII代码0x22)分隔字符串

默认情况下,我有一个开放访问“abc”,它是
e2 80 9c 61 62 63 e2 80 9d

我看不到PROD或STAGE列,只有一个条件列中有这样的字符串。我的不好。我指的是“戳”和“舞台”排。我试图交换他们的价值观,但我没有理解你。应用程序与现有文件一起工作正常。我试图将一个单元格的内容复制到另一个单元格中。这会改变分隔符吗?有没有办法找到答案?我之前也更改了值。那一次,我将一个网页中的键值复制到excel中并保存了它。效果很好,从图像上看不出来。我需要电子表格的前20行导致错误导出为CSV文本。我有一个类似的问题,这是因为不同的双引号版本。不正确:“正确: