dactonbond / rabbit-eclipse

Automatically exported from code.google.com/p/rabbit-eclipse
0 stars 0 forks source link

NPE when exiting eclipse #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Looks like rabbit was the tool i was looking for it has all the functionality 
that i was looking for.

but unfurnatually, when i try to try to exit eclipse i get an NPE. The problem 
only occurs when i installed rabbit with the mylyn plugin ... without rabbit 
mylyn plugin everything works fine (but task time tracking is what i was 
looking for).

When i exit eclipse i get the following output in .log

java.lang.NullPointerException
    at java.util.Calendar.setTime(Unknown Source)
    at rabbit.data.internal.xml.convert.TaskFileEventConverter.doConvert(TaskFileEventConverter.java:37)
    at rabbit.data.internal.xml.convert.TaskFileEventConverter.doConvert(TaskFileEventConverter.java:1)
    at rabbit.data.internal.xml.convert.AbstractConverter.convert(AbstractConverter.java:34)
    at rabbit.data.internal.xml.store.AbstractStorer.insert(AbstractStorer.java:149)

Im using eclipse with installed mylyn and the current version of rabbit - mylyn 
plugin and the trac plugin for mylyn.

Eclipse for PHP Developers Version: Helios Service Release 1 Build id: 
20100917-0705
mylyn 3.4.2.v20100916-0100-e3x-7Z7f77FBBoPbPQeUoFeZXJ8
rabbit - mylyn 1.2.0.201101091023

Any Idea where to debug to solve this problem?

TIA Rolf

Original issue reported on code.google.com by rolf.and...@gmail.com on 6 Feb 2011 at 12:53

GoogleCodeExporter commented 8 years ago
I had the same Issue with Mylyn and the Eclipse PHP-Version Helios. The Problem 
went away with the latest Rabbit, Mylyn and Eclipse update. But I stil have the 
Issue that Rabbit don't tracks the time for "Sessions" and Tasks" correctly. It 
always show the wrong duration time, eg. I work the hole day with Eclipse and 
Rabbit only show a few hours of duration time?!

Version: Helios Service Release 1
Build id: 20100917-0705
Mylyn Connector: 3.2.1.201101150015
Eclipse Mylyn: 3.4.2.v20100916-0100
Rabbit: 1.2

Original comment by brachyc...@gmail.com on 6 Feb 2011 at 11:38

GoogleCodeExporter commented 8 years ago
@rolf.and...
Thanks a lot for the log and investigation, they are very useful. I think the 
issue is cause by a task that has no creation date, which causes a 
NullPointerException when trying to get the time in milliseconds of the date. 
I'll do more investigation to verify this.

@brachyc...
Sorry for the lack of documentation on this. Rabbit only tracks time when 
Eclipse is active, that means if Eclipse's window is not focused, tracking will 
be paused, and if Eclipse's window is focused but no keyboard/mouse event is 
received in a certain amount of time, tracking will also be paused. That's why 
the duration is always shorter than expected. But there may also be a bug 
causing the issue you described, I'll do more investigation on that.

Original comment by llaec...@gmail.com on 7 Feb 2011 at 8:55

GoogleCodeExporter commented 8 years ago
THX llaec... for clearing this up on my Issue ;-)
Keep on, with this useful Plug-In!

Original comment by brachyc...@gmail.com on 7 Feb 2011 at 1:03

GoogleCodeExporter commented 8 years ago
Issue fixed in release 1.2.1

Original comment by llaec...@gmail.com on 11 Feb 2011 at 11:04