在jbilling中进行ageing.process = true时低于错误

时间:2015-02-13 10:11:29

标签: jbilling

 I am getting below exception while trying to change run ageing flag to true.





 Jbillng.property file 
    process.frequency=5 
    # if true, all the passwords in the system are encrypted with a one-way method 
    # if false, only root and clerk are encrypted, the rest are not (needed if 
    # you will show passwords to the users in the invoices/notifications or for the 
    # lost password feature). 
    password_encrypt_all=true 
    # the password that the user account is set to when a user is locked out (too many login retries) 
    lockout_password=totalSecret 
    # if the daily batch includes running the billing process 
    process.run_billing=false 
    # if the daily batch includes running the ageing process 
    process.run_ageing=true

例外: 引起:java.lang.NullPointerException 2015-01-30 15:53:51,925 2095046 DEBUG [com.sapienter.jbilling.batch.ageing.AgeingProcessUserReader](taskExecutor-6 :)输入afterPropertiesSet() 2015-01-30 15:53:51,925 2095046 ERROR [com.sapienter.jbilling.batch.ExceptionSkipPolicy](taskExecutor-6 :)跳过用户的处理,异常: org.springframework.beans.factory.BeanCreationException:在ServletContext资源[/WEB-INF/spring/ageing-process-job-context.xml]中定义名为'scopedTarget.scopedTarget.scopedTarget.scopedTarget.ageingProcessUserReader'的bean创建错误:调用init方法失败;嵌套异常是java.lang.NullPointerException         在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)         在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)         在org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java:130)         在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)         在org.springframework.beans.factory.support.AbstractBeanFactory $ 2.getObject(AbstractBeanFactory.java:332)         在org.springframework.batch.core.scope.StepScope.get(StepScope.java:150)         在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:328)         在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)         在org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:33)         在org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:182)

2 个答案:

答案 0 :(得分:1)

实际上在jbilling telco中,如果你有更多的那家公司,那么这个错误就会出现。

请通过替换is_deleted = 1来删除数据库中的其他实体。并检查你是否会得到同样的错误。

答案 1 :(得分:0)

AgeingProcessUserReader,如果您共享代码可以提供帮助,因为从我看到的错误来看,问题出在代码中。如果你只是设置process.agieng = true的值true,jbilling就不会抱怨它。

检查此类“AgeingProcessUserReader”