Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324586 - lastRevision NullPointerException on monitor
Summary: lastRevision NullPointerException on monitor
Status: CLOSED DUPLICATE of bug 317516
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 10:23 EDT by Dennis Hendriks CLA
Modified: 2019-02-25 14:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Hendriks CLA 2010-09-06 10:23:51 EDT
Build Identifier: Build id: 20100617-1415 (Helios)

Using headless Buckminster using the lastRevision buckminster Ant task in an ant actor, using a 'repositoryLocation' to access a non-local repository, results in a NullPointerException.

Reproducible: Always

Steps to Reproduce:
1. trying to do this (part of test.xml):

[code]
<buckminster.lastRevision property="lastRev"
                          readerType="svn"
repositoryLocation="http://svn-st.inf.tu-dresden.de/svn/reuseware/trunk/"/>
[/code]

from an Ant actor using Headless Buckminster (latest Helios stable)

2. I get:

[code]
ERROR: org.eclipse.core.runtime.CoreException: test.xml:7: java.lang.NullPointerException
org.eclipse.core.runtime.CoreException: test.xml:7: java.lang.NullPointerException
        at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
        at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
        at
(...)
Caused by: java.lang.NullPointerException
        at org.eclipse.buckminster.subversion.GenericSession.listFolder(GenericSession.java:558)
        at org.eclipse.buckminster.subversive.internal.SubversiveSession.getDirEntry(SubversiveSession.java:279)
        at org.eclipse.buckminster.subversive.internal.SubversiveSession.getLastChangeNumber(SubversiveSession.java:290)
        ... 48 more
[/code]

3. I think it goes wrong at listFolder at line 558 (Class org.eclipse.buckminster.subversion.GenericSession). Looking at the source, it seems to do this:

[code]
            } finally {
                monitor.done();
            }
[/code]

4. So I guess 'monitor' is null here, hence the NullPointerException. Is this a bug? Maybe headless calls don't have a monitor?

5. Note that if I instead use workingCopy (instead of repositoryLocation) it does work...
Comment 1 Dennis Hendriks CLA 2010-09-06 10:30:29 EDT

*** This bug has been marked as a duplicate of bug 317516 ***