java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • On hitting content assist at the position [*] in the following definition {code} <bean id="componentChoice" class="uk.ac.cam.caret.rsf.testcomponents.beans.ComponentChoiceBean"> <property name="requestBeanLocator" ref="req[*]></property> <property name="dateEvolvers" ref="dateEvolvers" /> <property name="textEvolvers" ref="textEvolvers" /> <property name="localeSetter" ref="localeSetter" /> </bean> {code} I received the following NPE {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.BeansEditorUtils.getBeansFromConfigSets(BeansEditorUtils.java:157) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addBeanReferenceProposals(BeansContentAssistProcessor.java:500) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:800) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:477) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeAttributeValueProposals(AbstractContentAssistProcessor.java:1164) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1198) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:102) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1303) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:113) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:233) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1612) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:473) {code} The project does have a valid config set populated with 6 context files.
    via by Imported,
  • On hitting content assist at the position [*] in the following definition {code} <bean id="componentChoice" class="uk.ac.cam.caret.rsf.testcomponents.beans.ComponentChoiceBean"> <property name="requestBeanLocator" ref="req[*]></property> <property name="dateEvolvers" ref="dateEvolvers" /> <property name="textEvolvers" ref="textEvolvers" /> <property name="localeSetter" ref="localeSetter" /> </bean> {code} I received the following NPE {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.BeansEditorUtils.getBeansFromConfigSets(BeansEditorUtils.java:157) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addBeanReferenceProposals(BeansContentAssistProcessor.java:500) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:800) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:477) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeAttributeValueProposals(AbstractContentAssistProcessor.java:1164) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1198) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:102) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1303) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:113) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:233) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1612) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:473) {code} The project does have a valid config set populated with 6 context files.
    via by Imported,
  • While invoking content assist the following NPE is thrown {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.BeansEditorUtils.getBeansFromConfigSets(BeansEditorUtils.java:51) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addBeanReferenceProposals(BeansContentAssistProcessor.java:548) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:866) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:526) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeAttributeValueProposals(AbstractContentAssistProcessor.java:1139) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1173) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:91) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1278) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:101) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:232) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301) {code}
    via by Christian Dupuis,
  • Typing <content assist char> at, e.g., the place marked (*) triggers the following trace: {code} <bean id="portletRedirectHandler" factory-bean="portletRequestHandler" factory-method="(*)" {code} The parent bean does exist, and it doesn't seem to matter whether I place the closing tag on the end or not. {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.BeansEditorUtils.getClassNamesOfBean(BeansEditorUtils.java:264) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:782) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:492) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeAttributeValueProposals(AbstractContentAssistProcessor.java:1139) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1173) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:91) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1278) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:101) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:232) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access####13(CompletionProposalPopup.java:298) at org.eclipse.jface.text.contentassist.CompletionProposalPopup####2.run(CompletionProposalPopup.java:261) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) {code}
    via by Imported,
  • I get an NPE when invoking content-assist on attribute representing factory-method - assist point is marked with ** in the following line: {code} <bean id="fallbackBeans" factory-bean="rsacBeanLocator" factory-method="**"> </bean> {code} Config: Spring IDE 1.2.5, Eclipse 3.1.1 stable with WST "all-in-one". May possibly be duplicate of #237. {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:788) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:522) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeEqualsProposals(AbstractContentAssistProcessor.java:1429) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1162) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:91) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1278) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:101) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:232) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access####13(CompletionProposalPopup.java:298) at org.eclipse.jface.text.contentassist.CompletionProposalPopup####2.run(CompletionProposalPopup.java:261) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) {code}
    via by Imported,
  • While invoking content assist the following NPE is thrown {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.BeansEditorUtils.getBeansFromConfigSets(BeansEditorUtils.java:51) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addBeanReferenceProposals(BeansContentAssistProcessor.java:548) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:866) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:526) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeAttributeValueProposals(AbstractContentAssistProcessor.java:1139) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1173) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:91) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1278) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:101) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:232) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301) {code}
    via by Christian Dupuis,
  • I get an NPE when invoking content-assist on attribute representing factory-method - assist point is marked with ** in the following line: {code} <bean id="fallbackBeans" factory-bean="rsacBeanLocator" factory-method="**"> </bean> {code} Config: Spring IDE 1.2.5, Eclipse 3.1.1 stable with WST "all-in-one". May possibly be duplicate of #237. {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:788) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:522) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeEqualsProposals(AbstractContentAssistProcessor.java:1429) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1162) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:91) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1278) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:101) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:232) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access####13(CompletionProposalPopup.java:298) at org.eclipse.jface.text.contentassist.CompletionProposalPopup####2.run(CompletionProposalPopup.java:261) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) {code}
    via by Imported,
  • Typing <content assist char> at, e.g., the place marked (*) triggers the following trace: {code} <bean id="portletRedirectHandler" factory-bean="portletRequestHandler" factory-method="(*)" {code} The parent bean does exist, and it doesn't seem to matter whether I place the closing tag on the end or not. {code} java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.BeansEditorUtils.getClassNamesOfBean(BeansEditorUtils.java:264) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:782) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:492) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeAttributeValueProposals(AbstractContentAssistProcessor.java:1139) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1173) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:91) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1278) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:101) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:232) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access####13(CompletionProposalPopup.java:298) at org.eclipse.jface.text.contentassist.CompletionProposalPopup####2.run(CompletionProposalPopup.java:261) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) {code}
    via by Imported,
    • java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.editor.BeansEditorUtils.getBeansFromConfigSets(BeansEditorUtils.java:157) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addBeanReferenceProposals(BeansContentAssistProcessor.java:500) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.computeAttributeValueProposals(BeansContentAssistProcessor.java:800) at org.springframework.ide.eclipse.beans.ui.editor.contentassist.BeansContentAssistProcessor.addAttributeValueProposals(BeansContentAssistProcessor.java:477) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeAttributeValueProposals(AbstractContentAssistProcessor.java:1164) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1198) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:102) at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1303) at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:113) at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:233) at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1612) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:473)
    No Bugmate found.