Uploaded image for project: 'Spring IDE'
  1. Spring IDE
  2. IDE-901

NullpointerException in getImports of class AbstractBeansConfig

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Component/s: beans.core
    • Labels:
      None
    • Environment:
      Windows XP, Eclipse 3.2 (RAD 7.0.0.7)

      Description

      Following you can see my .springBeans file which leads to the NullpointerException. The context file etliApplicationContext.xml is the root context which imports the other three context files. I tried both ways (with and without checked import support) with the same result. While building the workspace the same NullpointerException is thrown many times.

      <?xml version="1.0" encoding="UTF-8"?>
      <beansProjectDescription>
      	<version>1</version>
      	<pluginVersion><![CDATA[2.0.6.v200806241357]]></pluginVersion>
      	<configSuffixes>
      		<configSuffix><![CDATA[xml]]></configSuffix>
      	</configSuffixes>
      	<enableImports><![CDATA[false]]></enableImports>
      	<configs>
      		<config>resources/componentAspectsContext.xml</config>
      		<config>resources/componentCommonContext.xml</config>
      		<config>resources/componentProdContext.xml</config>
      		<config>resources/etliApplicationContext.xml</config>
      	</configs>
      	<configSets>
      		<configSet>
      			<name><![CDATA[ETLI-Prod-Context]]></name>
      			<allowBeanDefinitionOverriding>true</allowBeanDefinitionOverriding>
      			<incomplete>false</incomplete>
      			<configs>
      				<config>resources/componentCommonContext.xml</config>
      				<config>resources/componentProdContext.xml</config>
      				<config>resources/componentAspectsContext.xml</config>
      				<config>resources/etliApplicationContext.xml</config>
      			</configs>
      		</configSet>
      	</configSets>
      </beansProjectDescription>
      
      !ENTRY org.eclipse.ui.navigator 4 2 2008-07-06 12:31:42.718
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.navigator".
      !STACK 0
      java.lang.NullPointerException
      	at java.util.Collections$UnmodifiableCollection.<init>(Unknown Source)
      	at java.util.Collections$UnmodifiableSet.<init>(Unknown Source)
      	at java.util.Collections.unmodifiableSet(Unknown Source)
      	at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getImports(Unknown Source)
      	at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.checkForImportedBeansConfig(Unknown Source)
      	at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfigs(Unknown Source)
      	at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getConfig(Unknown Source)
      	at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.getConfig(Unknown Source)
      	at org.springframework.ide.eclipse.beans.core.BeansCoreUtils.isBeansConfig(Unknown Source)
      	at org.springframework.ide.eclipse.beans.core.internal.model.BeansModelPropertyTester.test(Unknown Source)
      	at org.eclipse.core.internal.expressions.Property.test(Unknown Source)
      	at org.eclipse.core.internal.expressions.TestExpression.evaluate(Unknown Source)
      	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(Unknown Source)
      	at org.eclipse.core.internal.expressions.AndExpression.evaluate(Unknown Source)
      	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(Unknown Source)
      	at org.eclipse.core.internal.expressions.OrExpression.evaluate(Unknown Source)
      	at org.eclipse.ui.internal.navigator.CustomAndExpression.evaluate(Unknown Source)
              . . .
      

        Attachments

          Activity

            People

            • Assignee:
              cdupuis Christian Dupuis
              Reporter:
              ukkm U. Kkm
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: