#77 Support for Timex Cycle Trainer 2.0

open
nobody
None
5
2014-07-18
2014-06-25
Vladimir M.
No

Loading workout throws the following exception:

java.lang.NullPointerException
at de.saring.exerciseviewer.parser.impl.TimexPwxParser.parseWorkoutExten
sionNode(TimexPwxParser.java:301)
at de.saring.exerciseviewer.parser.impl.TimexPwxParser.parseWorkoutNode(
TimexPwxParser.java:283)
at de.saring.exerciseviewer.parser.impl.TimexPwxParser.parseExercise(Tim
exPwxParser.java:786)
at de.saring.exerciseviewer.gui.EVDocument.openExerciseFile(EVDocument.j
ava:43)
at de.saring.exerciseviewer.gui.EVMain.showExercise(EVMain.java:51)
at de.saring.sportstracker.gui.STControllerImpl.openExerciseViewer(STCon
trollerImpl.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jdesktop.application.ApplicationAction.noProxyActionPerformed(App
licationAction.java:647)
at org.jdesktop.application.ApplicationAction.actionPerformed(Applicatio
nAction.java:687)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:20
22)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2346)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
89)
at java.awt.Component.processMouseEvent(Component.java:6527)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6292)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4883)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4705)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
    at java.awt.Container.dispatchEventImpl(Container.java:2278)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4705)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo

main.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:719)
at java.awt.EventQueue$4.run(EventQueue.java:717)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Discussion

  • jede28
    jede28
    2014-06-27

    The model "Timex Cycle Trainer 2.0" is currently not supported in SportsTracker.

    For adding support we require sample exercise files (at least one) and the list of expected data stored in the exercises (for validation and testing). Could you please provide this?

    It would be great when you have programming skills in Java, then you could extend the current Timex exercise parser and add apropriate unit tests by yourself.
    If you have question on project development setup and the exercise parser concept, feel free to ask.

    Bye, Stefan