Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » lastRevision NullPointerException on monitor?
lastRevision NullPointerException on monitor? [message #557294] Mon, 06 September 2010 14:05 Go to next message
Eclipse UserFriend
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 #557296 is a reply to message #557294] Mon, 06 September 2010 14:17 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
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 #557303 is a reply to message #557296] Mon, 06 September 2010 14:25 Go to previous messageGo to next message
Eclipse UserFriend
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 #557304 is a reply to message #557296] Mon, 06 September 2010 14:27 Go to previous messageGo to next message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
Dennis, could it be this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=317516

It's been fixed in the maintenance branch. If you're using the latest
maintenance build, it should work for you.

--Peter
Re: lastRevision NullPointerException on monitor? [message #557305 is a reply to message #557303] Mon, 06 September 2010 14:32 Go to previous message
Eclipse UserFriend
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
>>
Previous Topic:Changes in a Hudson job config don't show up in the build
Next Topic:product update does not work
Goto Forum:
  


Current Time: Fri Mar 29 02:02:42 GMT 2024

Powered by FUDForum. Page generated in 0.03243 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top