Uploaded image for project: 'IvyDE (Retired)'
  1. IvyDE (Retired)
  2. IVYDE-158

NullPointerException from IvyDE on startup.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Eclipse Ganymede, Windows XP Pro, java 6, IvyDE 2.0.0.beta1

    Description

      When starting eclipse all projects with any ivy dependency library in their build path generate this error :

      An internal error occurred during: "Resolve project 'acceptance' and ivy file 'ivy.xml' dependencies".

      I also notice that although the ivy.xml file is still present in the project root the library entry (which usually appears underneath the JRE System Library entry) is not present.

      Work Around
      -----------
      If I remove the ivy library from the build path , close the dialog and then re-open the dialog and re-attached the ivy library then everything compiles correctly.

      Stack Trace
      -----------
      java.lang.NullPointerException
      at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfiguration.setConfStatus(IvyClasspathContainerConfiguration.java:361)
      at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfiguration.getModuleDescriptor(IvyClasspathContainerConfiguration.java:688)
      at org.apache.ivyde.eclipse.cpcontainer.IvyResolveJob.run(IvyResolveJob.java:197)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

      ivysettings.xml
      ---------------
      <?xml version="1.0" encoding="utf-8"?>
      <ivysettings>
      <classpath file="${ivy.settings.dir}/lib/ivysvnresolver.jar" />
      <classpath file="${ivy.settings.dir}/lib/trilead.jar" />
      <classpath file="${ivy.settings.dir}/lib/svnkit.jar" />
      <properties file="${ivy.settings.dir}/ivy.properties" override="true" />
      <typedef name="svn" classname="fm.last.ivy.plugins.svnresolver.SvnResolver" />
      <settings defaultResolver="trunkresolver" />
      <caches defaultCacheDir="${ivy.cache.dir}" />
      <resolvers checkModified="${ivy.resolver.default.check.modified}">
      <svn name="ivysvn"
      repositoryRoot="${repository.root}"
      userName="${svn.user}"
      userPassword="${svn.password}">
      <ivy
      pattern="${ivy.repository}/[organisation]/[module]/[revision]/ivy.xml" />
      <artifact
      pattern="${ivy.repository}/[organisation]/[module]/[revision]/[artifact].[ext]" />
      </svn>
      <filesystem name="filesystem">
      <ivy pattern="${trunk.dir}/[module]/ivy.xml" />
      <artifact pattern="${trunk.dir}/[module]/module.jar" />
      </filesystem>
      <chain name="trunkresolver" returnFirst="true" >
      <resolver ref="ivysvn" />
      <resolver ref="filesystem" />
      </chain>
      </resolvers>
      </ivysettings>

      ivyconfs.xml
      ------------
      <configurations>
      <conf name="dev" visibility="public" extends="test,db2,oracle,sqlserver" description="Test and all JDBC drivers"/>
      <conf name="compile" visibility="public" description="Resources only required by compile, usually ones that are container provided at runtime"/>
      <conf name="runtime" visibility="public" description="Dependencies for distribution"/>
      <conf name="test" visibility="public" extends="compile,runtime" description="Compile + anything that running unit tests depends on"/>
      <conf name="db2" visibility="public" description="DB2 JDBC driver set"/>
      <conf name="oracle" visibility="public" description="Oracle JDBC driver set"/>
      <conf name="sqlserver" visibility="public" description="SQLServer JDBC driver set"/>
      <conf name="activemq" visibility="private" description="ActiveMQ runtime"/>
      </configurations>

      ivy.properties
      --------------
      org.name=tallyman
      repository.root=**REDEDACTED*
      ivy.repository=/tallyman/ivyrepos/trunk
      ivy.resolver.default.check.modified=true
      trunk.dir=${ivy.settings.dir}/..
      ivy.cache.dir=${trunk.dir}/.ivycache
      svn.user=
      svn.password=

      I've redacted the repository.root but it's just a standard http: based svn location, of the form http://server/svn/product - I'm making sure I don't end up in the smelly stuff with my manager.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              luggypm Paul Loveridge
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: