lastRevision NullPointerException on monitor? [message #557294] |
Mon, 06 September 2010 14:05 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
Hello all,
trying to do this (part of test.xml):
<buckminster.lastRevision property="lastRev"
readerType="svn"
repositoryLocation="http://svn-st.inf.tu-dresden.de/svn/reuseware/trunk/"/>
from an Ant actor using Headless Buckminster (latest Helios stable), I get:
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
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:
} finally {
monitor.done();
}
So I guess 'monitor' is null here, hence the NullPointerException. Is
this a bug? Maybe headless calls don't have a monitor?
Note that if I instead use workingCopy (instead of repositoryLocation)
it does work...
Thanks,
Dennis
|
|
|
|
Re: lastRevision NullPointerException on monitor? [message #557303 is a reply to message #557296] |
Mon, 06 September 2010 14:25 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
OK, thanks.
See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=324586
Regards,
Dennis
Henrik Lindberg wrote:
> Please log an issue with the information you provided.
> Regards
> - henrik
>
> On 9/6/10 4:05 PM, Dennis Hendriks wrote:
>> Hello all,
>>
>> trying to do this (part of test.xml):
>>
>>
>> <buckminster.lastRevision property="lastRev"
>> readerType="svn"
>> repositoryLocation="http://svn-st.inf.tu-dresden.de/svn/reuseware/trunk/"/>
>>
>>
>>
>> from an Ant actor using Headless Buckminster (latest Helios stable), I
>> get:
>>
>>
>> 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
>>
>>
>> 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:
>>
>>
>> } finally {
>> monitor.done();
>> }
>>
>>
>> So I guess 'monitor' is null here, hence the NullPointerException. Is
>> this a bug? Maybe headless calls don't have a monitor?
>>
>> Note that if I instead use workingCopy (instead of repositoryLocation)
>> it does work...
>>
>> Thanks,
>> Dennis
>
|
|
|
|
Re: lastRevision NullPointerException on monitor? [message #557305 is a reply to message #557303] |
Mon, 06 September 2010 14:32 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
Hello Henrik,
Yes, looks like it. I marked the bug as duplicate.
I'm using the Helios stable release, not the maintenance release... How
can I install Buckminster maintenance release using the headless
director? Or do I have to wait for Helios SR1?
Thanks,
Dennis
Dennis Hendriks wrote:
> OK, thanks.
>
> See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=324586
>
> Regards,
> Dennis
>
>
>
> Henrik Lindberg wrote:
>> Please log an issue with the information you provided.
>> Regards
>> - henrik
>>
>> On 9/6/10 4:05 PM, Dennis Hendriks wrote:
>>> Hello all,
>>>
>>> trying to do this (part of test.xml):
>>>
>>>
>>> <buckminster.lastRevision property="lastRev"
>>> readerType="svn"
>>> repositoryLocation="http://svn-st.inf.tu-dresden.de/svn/reuseware/trunk/"/>
>>>
>>>
>>>
>>> from an Ant actor using Headless Buckminster (latest Helios stable),
>>> I get:
>>>
>>>
>>> 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
>>>
>>>
>>> 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:
>>>
>>>
>>> } finally {
>>> monitor.done();
>>> }
>>>
>>>
>>> So I guess 'monitor' is null here, hence the NullPointerException. Is
>>> this a bug? Maybe headless calls don't have a monitor?
>>>
>>> Note that if I instead use workingCopy (instead of repositoryLocation)
>>> it does work...
>>>
>>> Thanks,
>>> Dennis
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02958 seconds