java.lang.IllegalStateException: Cannot bind to placeholder: jobParameters['DOMAIN']

Spring JIRA | Holger Dunst | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    An optional parameter or a parameter with a key and without a value causes this error: java.lang.IllegalStateException: Cannot bind to placeholder: jobParameters['DOMAIN'] e.g. with this definition: <property name="domain" value="#{jobParameters['DOMAIN']}" /> Trace: : Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot bind to placeholder: jobParameters['DOMAIN'] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(AccessController.java:214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:302) at org.springframework.batch.core.scope.StepScope.get(StepScope.java:150) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.batch.core.scope.util.PlaceholderTargetSource.getTarget(PlaceholderTargetSource.java:185) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.getTarget(Cglib2AopProxy.java:666) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:616) at de.mazda.mets.scheduler.tasks.printinvoice.PrintInvoiceTasklet$$EnhancerByCGLIB$$33b22891.beforeStep(<generated>) at org.springframework.batch.core.listener.CompositeStepExecutionListener.beforeStep(CompositeStepExecutionListener.java:76) at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:192)

    Spring JIRA | 7 years ago | Holger Dunst
    java.lang.IllegalStateException: Cannot bind to placeholder: jobParameters['DOMAIN']
  2. 0

    An optional parameter or a parameter with a key and without a value causes this error: java.lang.IllegalStateException: Cannot bind to placeholder: jobParameters['DOMAIN'] e.g. with this definition: <property name="domain" value="#{jobParameters['DOMAIN']}" /> Trace: : Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot bind to placeholder: jobParameters['DOMAIN'] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(AccessController.java:214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:302) at org.springframework.batch.core.scope.StepScope.get(StepScope.java:150) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.batch.core.scope.util.PlaceholderTargetSource.getTarget(PlaceholderTargetSource.java:185) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.getTarget(Cglib2AopProxy.java:666) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:616) at de.mazda.mets.scheduler.tasks.printinvoice.PrintInvoiceTasklet$$EnhancerByCGLIB$$33b22891.beforeStep(<generated>) at org.springframework.batch.core.listener.CompositeStepExecutionListener.beforeStep(CompositeStepExecutionListener.java:76) at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:192)

    Spring JIRA | 7 years ago | Holger Dunst
    java.lang.IllegalStateException: Cannot bind to placeholder: jobParameters['DOMAIN']
  3. 0

    spring batch late binding doesn't work on unix

    Stack Overflow | 3 years ago | Laura Fang
    java.lang.IllegalStateException: Cannot bind to placeholder: filesTobeParsedHolder.get(stepExecutionContext['date.as.yyyyMMdd'].co ncat('.').concat(stepExecutionContext['instance']))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IllegalStateException: Cannot bind to placeholder: query.selectClause

    Stack Overflow | 2 years ago | Sujeet kumar
    java.lang.IllegalStateException: Cannot bind to placeholder: query.selectClause
  6. 0

    Issue Wiring an EntityManager from EntityManagerFactory

    Stack Overflow | 6 years ago | Quaternion
    java.lang.IllegalStateException: No bean class specified on bean definition

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot bind to placeholder: jobParameters['DOMAIN']

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      2 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(AccessController.java:214)
      1 frame
    4. Spring Beans
      AbstractBeanFactory$2.getObject
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      2. org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:302)
      2 frames
    5. Spring Batch Core
      StepScope.get
      1. org.springframework.batch.core.scope.StepScope.get(StepScope.java:150)
      1 frame
    6. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
      2. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      3 frames
    7. org.springframework.batch
      PlaceholderTargetSource.getTarget
      1. org.springframework.batch.core.scope.util.PlaceholderTargetSource.getTarget(PlaceholderTargetSource.java:185)
      1 frame
    8. Spring AOP
      Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.getTarget(Cglib2AopProxy.java:666)
      2. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:616)
      2 frames
    9. de.mazda.mets
      PrintInvoiceTasklet$$EnhancerByCGLIB$$33b22891.beforeStep
      1. de.mazda.mets.scheduler.tasks.printinvoice.PrintInvoiceTasklet$$EnhancerByCGLIB$$33b22891.beforeStep(<generated>)
      1 frame
    10. Spring Batch Core
      AbstractStep.execute
      1. org.springframework.batch.core.listener.CompositeStepExecutionListener.beforeStep(CompositeStepExecutionListener.java:76)
      2. org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:192)
      2 frames