You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "MKalkman (JIRA)" <ji...@codehaus.org> on 2006/05/24 12:51:41 UTC

[jira] Created: (MANT-11) java.lang.NullPointerException: version was null for xalan:xalan

java.lang.NullPointerException: version was null for xalan:xalan
----------------------------------------------------------------

         Key: MANT-11
         URL: http://jira.codehaus.org/browse/MANT-11
     Project: Maven 2.x Ant Plugin
        Type: Bug

 Environment: Windows XP, JDK 1.4.2
    Reporter: MKalkman
    Priority: Minor


I get this error when I apply it with this pom:

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany.project</groupId>
  <artifactId>project-model</artifactId>
  <version>1.0-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>castor</groupId>
      <artifactId>castor</artifactId>
      <version>0.9.5</version>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.6</version>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.1</version>
    </dependency>
    <dependency>
      <groupId>commons-configuration</groupId>
      <artifactId>commons-configuration</artifactId>
      <version>[1.2]</version>
    </dependency>
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>[1.6,)</version>
    </dependency>
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>2.0.2</version>
    </dependency>
    <dependency>
      <groupId>commons-jxpath</groupId>
      <artifactId>commons-jxpath</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>commons-net</groupId>
      <artifactId>commons-net</artifactId>
      <version>1.4.1</version>
    </dependency>
    <dependency>
      <groupId>commons-discovery</groupId>
      <artifactId>commons-discovery</artifactId>
      <version>0.2</version>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>[1.0.3,)</version>
    </dependency>
    <dependency>
      <groupId>jug</groupId>
      <artifactId>jug</artifactId>
      <version>1.1.2</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.13</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>[3.8.1]</version>
    </dependency>
    <dependency>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
      <version>[2.6.0]</version>
    </dependency>
  </dependencies>
</project>

And this (partial) Ant script:

<project default="main" xmlns:artifact="antlib:org.apache.maven.artifact.ant">

  <property name="lib.dir" location="${basedir}\pom-lib"/>
  
  <target name="dependencies">
	
			<delete dir="${lib.dir}"/>
			<mkdir dir="${lib.dir}"/>
			
      <artifact:pom id="maven.project" file="pom.xml"/>

      <echo>The version is ${maven.project.version}</echo>
      
      <artifact:dependencies filesetId="my.dependency.fileset" verbose="true">
        <pom refid="maven.project"/>
      </artifact:dependencies>

      <copy todir="${lib.dir}">
        <fileset refid="my.dependency.fileset" />
        <mapper type="flatten" />
      </copy>
      <!--copy todir="${lib.dir}">
				<fileset dir="${basedir}\lib"/> <!- - Here come the not mavified jars from - ->
			</copy-->
  </target>
</project>

Running: ant dependencies results in the error mentioned.

Just using the pom:

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany.project</groupId>
  <artifactId>project-model</artifactId>
  <version>1.0-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
      <version>[2.6.0]</version>
    </dependency>
  </dependencies>
</project>

Will not result in an error message.

At least the message should better explain what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MANT-11) java.lang.NullPointerException: version was null for xalan:xalan

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANT-11?page=all ]

Vincent Siveton closed MANT-11.
-------------------------------

         Assignee: Vincent Siveton
       Resolution: Cannot Reproduce
    Fix Version/s: 2.0-beta-2

Can not reproduce

> java.lang.NullPointerException: version was null for xalan:xalan
> ----------------------------------------------------------------
>
>                 Key: MANT-11
>                 URL: http://jira.codehaus.org/browse/MANT-11
>             Project: Maven 2.x Ant Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-1
>         Environment: Windows XP, JDK 1.4.2
>            Reporter: MKalkman
>         Assigned To: Vincent Siveton
>            Priority: Minor
>             Fix For: 2.0-beta-2
>
>
> I get this error when I apply it with this pom:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.mycompany.project</groupId>
>   <artifactId>project-model</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>castor</groupId>
>       <artifactId>castor</artifactId>
>       <version>0.9.5</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-beanutils</groupId>
>       <artifactId>commons-beanutils</artifactId>
>       <version>1.6</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-collections</groupId>
>       <artifactId>commons-collections</artifactId>
>       <version>3.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-configuration</groupId>
>       <artifactId>commons-configuration</artifactId>
>       <version>[1.2]</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-digester</groupId>
>       <artifactId>commons-digester</artifactId>
>       <version>[1.6,)</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-httpclient</groupId>
>       <artifactId>commons-httpclient</artifactId>
>       <version>2.0.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-jxpath</groupId>
>       <artifactId>commons-jxpath</artifactId>
>       <version>1.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-lang</groupId>
>       <artifactId>commons-lang</artifactId>
>       <version>2.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-net</groupId>
>       <artifactId>commons-net</artifactId>
>       <version>1.4.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-discovery</groupId>
>       <artifactId>commons-discovery</artifactId>
>       <version>0.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-logging</groupId>
>       <artifactId>commons-logging</artifactId>
>       <version>[1.0.3,)</version>
>     </dependency>
>     <dependency>
>       <groupId>jug</groupId>
>       <artifactId>jug</artifactId>
>       <version>1.1.2</version>
>     </dependency>
>     <dependency>
>       <groupId>log4j</groupId>
>       <artifactId>log4j</artifactId>
>       <version>1.2.13</version>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>[3.8.1]</version>
>     </dependency>
>     <dependency>
>       <groupId>xalan</groupId>
>       <artifactId>xalan</artifactId>
>       <version>[2.6.0]</version>
>     </dependency>
>   </dependencies>
> </project>
> And this (partial) Ant script:
> <project default="main" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>   <property name="lib.dir" location="${basedir}\pom-lib"/>
>   
>   <target name="dependencies">
> 	
> 			<delete dir="${lib.dir}"/>
> 			<mkdir dir="${lib.dir}"/>
> 			
>       <artifact:pom id="maven.project" file="pom.xml"/>
>       <echo>The version is ${maven.project.version}</echo>
>       
>       <artifact:dependencies filesetId="my.dependency.fileset" verbose="true">
>         <pom refid="maven.project"/>
>       </artifact:dependencies>
>       <copy todir="${lib.dir}">
>         <fileset refid="my.dependency.fileset" />
>         <mapper type="flatten" />
>       </copy>
>       <!--copy todir="${lib.dir}">
> 				<fileset dir="${basedir}\lib"/> <!- - Here come the not mavified jars from - ->
> 			</copy-->
>   </target>
> </project>
> Running: ant dependencies results in the error mentioned.
> Just using the pom:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.mycompany.project</groupId>
>   <artifactId>project-model</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>xalan</groupId>
>       <artifactId>xalan</artifactId>
>       <version>[2.6.0]</version>
>     </dependency>
>   </dependencies>
> </project>
> Will not result in an error message.
> At least the message should better explain what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MANT-11) java.lang.NullPointerException: version was null for xalan:xalan

Posted by "MKalkman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANT-11?page=comments#action_65780 ] 

MKalkman commented on MANT-11:
------------------------------

BTW: I'm using ant 1.6.5 and Maven 2.0.4 plugin.

> java.lang.NullPointerException: version was null for xalan:xalan
> ----------------------------------------------------------------
>
>          Key: MANT-11
>          URL: http://jira.codehaus.org/browse/MANT-11
>      Project: Maven 2.x Ant Plugin
>         Type: Bug

>  Environment: Windows XP, JDK 1.4.2
>     Reporter: MKalkman
>     Priority: Minor

>
>
> I get this error when I apply it with this pom:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.mycompany.project</groupId>
>   <artifactId>project-model</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>castor</groupId>
>       <artifactId>castor</artifactId>
>       <version>0.9.5</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-beanutils</groupId>
>       <artifactId>commons-beanutils</artifactId>
>       <version>1.6</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-collections</groupId>
>       <artifactId>commons-collections</artifactId>
>       <version>3.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-configuration</groupId>
>       <artifactId>commons-configuration</artifactId>
>       <version>[1.2]</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-digester</groupId>
>       <artifactId>commons-digester</artifactId>
>       <version>[1.6,)</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-httpclient</groupId>
>       <artifactId>commons-httpclient</artifactId>
>       <version>2.0.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-jxpath</groupId>
>       <artifactId>commons-jxpath</artifactId>
>       <version>1.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-lang</groupId>
>       <artifactId>commons-lang</artifactId>
>       <version>2.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-net</groupId>
>       <artifactId>commons-net</artifactId>
>       <version>1.4.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-discovery</groupId>
>       <artifactId>commons-discovery</artifactId>
>       <version>0.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-logging</groupId>
>       <artifactId>commons-logging</artifactId>
>       <version>[1.0.3,)</version>
>     </dependency>
>     <dependency>
>       <groupId>jug</groupId>
>       <artifactId>jug</artifactId>
>       <version>1.1.2</version>
>     </dependency>
>     <dependency>
>       <groupId>log4j</groupId>
>       <artifactId>log4j</artifactId>
>       <version>1.2.13</version>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>[3.8.1]</version>
>     </dependency>
>     <dependency>
>       <groupId>xalan</groupId>
>       <artifactId>xalan</artifactId>
>       <version>[2.6.0]</version>
>     </dependency>
>   </dependencies>
> </project>
> And this (partial) Ant script:
> <project default="main" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>   <property name="lib.dir" location="${basedir}\pom-lib"/>
>   
>   <target name="dependencies">
> 	
> 			<delete dir="${lib.dir}"/>
> 			<mkdir dir="${lib.dir}"/>
> 			
>       <artifact:pom id="maven.project" file="pom.xml"/>
>       <echo>The version is ${maven.project.version}</echo>
>       
>       <artifact:dependencies filesetId="my.dependency.fileset" verbose="true">
>         <pom refid="maven.project"/>
>       </artifact:dependencies>
>       <copy todir="${lib.dir}">
>         <fileset refid="my.dependency.fileset" />
>         <mapper type="flatten" />
>       </copy>
>       <!--copy todir="${lib.dir}">
> 				<fileset dir="${basedir}\lib"/> <!- - Here come the not mavified jars from - ->
> 			</copy-->
>   </target>
> </project>
> Running: ant dependencies results in the error mentioned.
> Just using the pom:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.mycompany.project</groupId>
>   <artifactId>project-model</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>xalan</groupId>
>       <artifactId>xalan</artifactId>
>       <version>[2.6.0]</version>
>     </dependency>
>   </dependencies>
> </project>
> Will not result in an error message.
> At least the message should better explain what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MANT-11) java.lang.NullPointerException: version was null for xalan:xalan

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANT-11?page=all ]

Vincent Siveton updated MANT-11:
--------------------------------

    Affects Version/s: 2.0-beta-1

> java.lang.NullPointerException: version was null for xalan:xalan
> ----------------------------------------------------------------
>
>                 Key: MANT-11
>                 URL: http://jira.codehaus.org/browse/MANT-11
>             Project: Maven 2.x Ant Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-1
>         Environment: Windows XP, JDK 1.4.2
>            Reporter: MKalkman
>            Priority: Minor
>
> I get this error when I apply it with this pom:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.mycompany.project</groupId>
>   <artifactId>project-model</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>castor</groupId>
>       <artifactId>castor</artifactId>
>       <version>0.9.5</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-beanutils</groupId>
>       <artifactId>commons-beanutils</artifactId>
>       <version>1.6</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-collections</groupId>
>       <artifactId>commons-collections</artifactId>
>       <version>3.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-configuration</groupId>
>       <artifactId>commons-configuration</artifactId>
>       <version>[1.2]</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-digester</groupId>
>       <artifactId>commons-digester</artifactId>
>       <version>[1.6,)</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-httpclient</groupId>
>       <artifactId>commons-httpclient</artifactId>
>       <version>2.0.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-jxpath</groupId>
>       <artifactId>commons-jxpath</artifactId>
>       <version>1.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-lang</groupId>
>       <artifactId>commons-lang</artifactId>
>       <version>2.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-net</groupId>
>       <artifactId>commons-net</artifactId>
>       <version>1.4.1</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-discovery</groupId>
>       <artifactId>commons-discovery</artifactId>
>       <version>0.2</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-logging</groupId>
>       <artifactId>commons-logging</artifactId>
>       <version>[1.0.3,)</version>
>     </dependency>
>     <dependency>
>       <groupId>jug</groupId>
>       <artifactId>jug</artifactId>
>       <version>1.1.2</version>
>     </dependency>
>     <dependency>
>       <groupId>log4j</groupId>
>       <artifactId>log4j</artifactId>
>       <version>1.2.13</version>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>[3.8.1]</version>
>     </dependency>
>     <dependency>
>       <groupId>xalan</groupId>
>       <artifactId>xalan</artifactId>
>       <version>[2.6.0]</version>
>     </dependency>
>   </dependencies>
> </project>
> And this (partial) Ant script:
> <project default="main" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
>   <property name="lib.dir" location="${basedir}\pom-lib"/>
>   
>   <target name="dependencies">
> 	
> 			<delete dir="${lib.dir}"/>
> 			<mkdir dir="${lib.dir}"/>
> 			
>       <artifact:pom id="maven.project" file="pom.xml"/>
>       <echo>The version is ${maven.project.version}</echo>
>       
>       <artifact:dependencies filesetId="my.dependency.fileset" verbose="true">
>         <pom refid="maven.project"/>
>       </artifact:dependencies>
>       <copy todir="${lib.dir}">
>         <fileset refid="my.dependency.fileset" />
>         <mapper type="flatten" />
>       </copy>
>       <!--copy todir="${lib.dir}">
> 				<fileset dir="${basedir}\lib"/> <!- - Here come the not mavified jars from - ->
> 			</copy-->
>   </target>
> </project>
> Running: ant dependencies results in the error mentioned.
> Just using the pom:
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.mycompany.project</groupId>
>   <artifactId>project-model</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>xalan</groupId>
>       <artifactId>xalan</artifactId>
>       <version>[2.6.0]</version>
>     </dependency>
>   </dependencies>
> </project>
> Will not result in an error message.
> At least the message should better explain what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira