You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Ricardo Gladwell (JIRA)" <ji...@codehaus.org> on 2005/06/27 16:37:52 UTC

[jira] Created: (MAVEN-1641) NPE thrown on RMIC call

NPE thrown on RMIC call
-----------------------

         Key: MAVEN-1641
         URL: http://jira.codehaus.org/browse/MAVEN-1641
     Project: maven
        Type: Bug
    Versions: 1.0.2    
 Environment: Windows XP SP2, Java SDK 1.4.2_06, Maven 1.0.2
    Reporter: Ricardo Gladwell
 Attachments: testcase.zip

NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:

> maven java:compile

>From within the attached test case project.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1641) NPE thrown on RMIC call

Posted by "Ricardo Gladwell (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1641?page=comments#action_42068 ] 

Ricardo Gladwell commented on MAVEN-1641:
-----------------------------------------

This issue appears to have been reported before:

http://www.mail-archive.com/users@maven.apache.org/msg16864.html

Would seem to be due to incorrect class loader. Any temporary workarounds for this issue will be most gratefully received.

> NPE thrown on RMIC call
> -----------------------
>
>          Key: MAVEN-1641
>          URL: http://jira.codehaus.org/browse/MAVEN-1641
>      Project: maven
>         Type: Bug
>     Versions: 1.0.2
>  Environment: Windows XP SP2, Java SDK 1.4.2_06, Maven 1.0.2
>     Reporter: Ricardo Gladwell
>  Attachments: testcase.zip
>
>
> NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:
> > maven java:compile
> From within the attached test case project.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1641) NPE thrown on RMIC call

Posted by "Breno Leitao (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1641?page=comments#action_46998 ] 

Breno Leitao commented on MAVEN-1641:
-------------------------------------

I found a comment in maven.xml file, it tries to redefine the classpath. See below:

    <!-- When invoking ant:ant, ant's task rmic and xslt are broken due to
         a null classloader. This will only be fixed in Maven 2.0, so 
         below is a workaround -->

  <goal name="invoke-ant" description="execute ant">
        <j:set var="log.name" value="${glassfish.module.name}.log"/>
        <ant:delete file="${log.name}" failonerror="false"/>
        <j:catch>
            <ant:record name="${log.name}" loglevel="verbose" action="start"/>
        </j:catch>

        <java classname="org.apache.tools.ant.Main" fork="true" failonerror="false" maxmemory="128M">
            <classpath>
                <fileset dir="${glassfish.home}/lib/ant/lib">
                    <include name="*.jar" />
                </fileset>
                <pathelement path="${java.home}/../lib/tools.jar" />
            </classpath>
            <sysproperty key="ant.home" value="${glassfish.home}/lib/ant" />
            <arg line="-f ${module.dir}/build.xml -Dglassfish.home=${glassfish.home} ${ant.target}" />
        </java>
    </goal>

> NPE thrown on RMIC call
> -----------------------
>
>          Key: MAVEN-1641
>          URL: http://jira.codehaus.org/browse/MAVEN-1641
>      Project: Maven
>         Type: Bug
>     Versions: 1.0.2
>  Environment: Windows XP SP2, Java SDK 1.4.2_06, Maven 1.0.2
>     Reporter: Ricardo Gladwell
>      Fix For: 1.1-beta-3
>  Attachments: stacktrace.txt, testcase.zip
>
>
> NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:
> > maven java:compile
> From within the attached test case project.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1641) NPE thrown on RMIC call

Posted by "Ricardo Gladwell (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1641?page=all ]

Ricardo Gladwell updated MAVEN-1641:
------------------------------------

    Attachment: stacktrace.txt

Stacktrace for NPE attached.

> NPE thrown on RMIC call
> -----------------------
>
>          Key: MAVEN-1641
>          URL: http://jira.codehaus.org/browse/MAVEN-1641
>      Project: maven
>         Type: Bug
>     Versions: 1.0.2
>  Environment: Windows XP SP2, Java SDK 1.4.2_06, Maven 1.0.2
>     Reporter: Ricardo Gladwell
>  Attachments: stacktrace.txt, testcase.zip
>
>
> NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:
> > maven java:compile
> From within the attached test case project.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1641) NPE thrown on RMIC call

Posted by "Breno Leitao (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1641?page=comments#action_46996 ] 

Breno Leitao commented on MAVEN-1641:
-------------------------------------

I have the same problem, I tried to redefine the classpath inside ant task, and the same problem appeared.
Does anyone have idea how to correct this? or any workaround? 

Thanks in advance, 
Breno Leitão
CPqD IT & Telecom

> NPE thrown on RMIC call
> -----------------------
>
>          Key: MAVEN-1641
>          URL: http://jira.codehaus.org/browse/MAVEN-1641
>      Project: Maven
>         Type: Bug
>     Versions: 1.0.2
>  Environment: Windows XP SP2, Java SDK 1.4.2_06, Maven 1.0.2
>     Reporter: Ricardo Gladwell
>      Fix For: 1.1-beta-3
>  Attachments: stacktrace.txt, testcase.zip
>
>
> NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:
> > maven java:compile
> From within the attached test case project.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1641) NPE thrown on RMIC call

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1641?page=all ]

Brett Porter updated MAVEN-1641:
--------------------------------

    Description: 
NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:

> maven java:compile

>From within the attached test case project.

  was:
NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:

> maven java:compile

>From within the attached test case project.

    Fix Version: 1.1-beta-2

> NPE thrown on RMIC call
> -----------------------
>
>          Key: MAVEN-1641
>          URL: http://jira.codehaus.org/browse/MAVEN-1641
>      Project: maven
>         Type: Bug
>     Versions: 1.0.2
>  Environment: Windows XP SP2, Java SDK 1.4.2_06, Maven 1.0.2
>     Reporter: Ricardo Gladwell
>      Fix For: 1.1-beta-2
>  Attachments: stacktrace.txt, testcase.zip
>
>
> NullPointerException thrown when calling the RMIC ant task from within Maven. To see run:
> > maven java:compile
> From within the attached test case project.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org