java.lang.NullPointerException

SpringSource Issue Tracker | Chad Lyon | 6 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

    I get the following when my spring context contains elements derived from schema-based extensions to the basic Spring XML format for defining and configuring beans. These elements are created/configured according to the following: http://static.springsource.org/spring/docs/2.0.x/reference/extensible-xml.html Error Sat Jul 23 17:28:15 EDT 2011 null java.lang.NullPointerException at com.springsource.sts.quickfix.validator.helper.BeanHelper.getElementName(BeanHelper.java:306) at com.springsource.sts.quickfix.validator.helper.BeanHelper.<init>(BeanHelper.java:56) at com.springsource.sts.quickfix.validator.PropertyValidator.validateAttributeWithConfig(PropertyValidator.java:51) at com.springsource.sts.quickfix.validator.BeanValidator.validateAttributeWithConfig(BeanValidator.java:152) at com.springsource.sts.quickfix.QuickfixUtils.validateAttribute(QuickfixUtils.java:519) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitAttributes(BeanValidatorVisitor.java:56) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:78) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitChildren(BeanValidatorVisitor.java:70) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:83) at com.springsource.sts.quickfix.BeansEditorValidator.validateNode(BeansEditorValidator.java:478) at com.springsource.sts.quickfix.BeansEditorValidator.validate(BeansEditorValidator.java:458) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:381) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:259) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

    SpringSource Issue Tracker | 6 years ago | Chad Lyon
    java.lang.NullPointerException
  2. 0

    I get the following when my spring context contains elements derived from schema-based extensions to the basic Spring XML format for defining and configuring beans. These elements are created/configured according to the following: http://static.springsource.org/spring/docs/2.0.x/reference/extensible-xml.html Error Sat Jul 23 17:28:15 EDT 2011 null java.lang.NullPointerException at com.springsource.sts.quickfix.validator.helper.BeanHelper.getElementName(BeanHelper.java:306) at com.springsource.sts.quickfix.validator.helper.BeanHelper.<init>(BeanHelper.java:56) at com.springsource.sts.quickfix.validator.PropertyValidator.validateAttributeWithConfig(PropertyValidator.java:51) at com.springsource.sts.quickfix.validator.BeanValidator.validateAttributeWithConfig(BeanValidator.java:152) at com.springsource.sts.quickfix.QuickfixUtils.validateAttribute(QuickfixUtils.java:519) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitAttributes(BeanValidatorVisitor.java:56) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:78) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitChildren(BeanValidatorVisitor.java:70) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:83) at com.springsource.sts.quickfix.BeansEditorValidator.validateNode(BeansEditorValidator.java:478) at com.springsource.sts.quickfix.BeansEditorValidator.validate(BeansEditorValidator.java:458) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:381) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:259) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

    SpringSource Issue Tracker | 6 years ago | Chad Lyon
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.springsource.sts.quickfix.validator.helper.BeanHelper.getElementName()
    2. com.springsource.sts
      BeansEditorValidator.validate
      1. com.springsource.sts.quickfix.validator.helper.BeanHelper.getElementName(BeanHelper.java:306)
      2. com.springsource.sts.quickfix.validator.helper.BeanHelper.<init>(BeanHelper.java:56)
      3. com.springsource.sts.quickfix.validator.PropertyValidator.validateAttributeWithConfig(PropertyValidator.java:51)
      4. com.springsource.sts.quickfix.validator.BeanValidator.validateAttributeWithConfig(BeanValidator.java:152)
      5. com.springsource.sts.quickfix.QuickfixUtils.validateAttribute(QuickfixUtils.java:519)
      6. com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitAttributes(BeanValidatorVisitor.java:56)
      7. com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:78)
      8. com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitChildren(BeanValidatorVisitor.java:70)
      9. com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:83)
      10. com.springsource.sts.quickfix.BeansEditorValidator.validateNode(BeansEditorValidator.java:478)
      11. com.springsource.sts.quickfix.BeansEditorValidator.validate(BeansEditorValidator.java:458)
      11 frames
    3. Structured Source Editor
      ReconcileStepForValidator.reconcileModel
      1. org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:381)
      2. org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:259)
      2 frames
    4. JFace Text
      AbstractReconcileStep.reconcile
      1. org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
      1 frame
    5. Structured Source Editor
      DirtyRegionProcessor$BackgroundThread.run
      1. org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
      2. org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:303)
      3. org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
      4. org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)
      4 frames