2017-10-06 10 views
0

Je travaille avec la feuille de règles gérée dans un fichier Excel dans une application basée sur le framework Spring. La feuille de règles contient des clés. Je joins la capture d'écran du fichier Excel pour vous donner une meilleure idée.
enter image description here

enter image description hereErreur de Drool inattendue lors de modifications apportées à la feuille de règles

Pour certaines fins de test, je veux déplacer les clés dans la colonne 'PROD' à la colonne 'STAGE'. Lorsque je fais cela, l'application ne parvient pas à se déployer sur jboss. Il donne l'erreur suivante:

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 

J'ai même essayé de changer la valeur dans la colonne d'environnement. J'ai échangé le PROD à STAGE et STAGE à PROD, même alors j'ai eu la même erreur.
Est-ce que je fais quelque chose de mal?
La chose étrange est que j'ai récemment changé les clés dans toutes les rangées de PROD. Ce fichier a fonctionné correctement. Mais maintenant, quand je permute les valeurs, l'application ne se déploie même pas.
Toute aide sera appréciée.

+0

Je ne vois pas un "PROD" ou une "scène" de la colonne *, * que cette chaînes dans l'une des colonnes de condition. – laune

+0

Mon mauvais. Je voulais dire les lignes PROD et STAGE. J'essayais d'échanger leurs valeurs. – Waquar

Répondre

0

Il pourrait être un cas des citations Excel & amis préfèrent utiliser. Assurez-vous que vos chaînes sont délimitées en utilisant le caractère de citation, le code ASCII 0x22.

Par défaut, j'ai (dans Open Access) « abc » qui est e2 80 9c 61 62 63 e2 80 9d

+0

Je ne t'ai pas eu. App fonctionnait bien avec le fichier existant. J'ai essayé de copier le contenu d'une cellule dans une autre. Cela changera-t-il le délimiteur? Y a-t-il un moyen de le savoir? – Waquar

+0

Aussi j'ai changé les valeurs plus tôt. Cette fois, j'ai copié les valeurs de clés d'une page Web dans l'Excel et l'a sauvé. Cela a bien fonctionné. – Waquar

+0

Je ne peux pas dire à partir d'une image. J'ai besoin des 20 premières lignes de la feuille de calcul provoquant l'erreur exportée en tant que texte CSV. – laune