Closed ymarcon closed 6 years ago
Comment created by @dwainelson:
I tested another fresh participant and the tanita app started no problem. I am not sure why the other participant did not start.
Comment created by @dwainelson:
Data base files attached. The user is 5454545. Note: When the Tanita device was turned off the error dialog was displayed. When it was on nothing happened the app did not start.
Comment created by mboulang:
I found this in the local InstrumentBootstrap.log :
SEVERE: Unexpected error while initializing runner {} java.lang.RuntimeException: Error initializing TANITA-BC418 input parameters: at org.obiba.onyx.jade.instrument.tanita.Bc418InstrumentRunner.initParticipantData(Bc418InstrumentRunner.java:224) at org.obiba.onyx.jade.instrument.tanita.Bc418InstrumentRunner.initialize(Bc418InstrumentRunner.java:347) at org.obiba.onyx.jade.client.JnlpClient.main(JnlpClient.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Error when setting age at org.obiba.onyx.jade.instrument.tanita.Bc418InstrumentRunner.initParticipantData(Bc418InstrumentRunner.java:215) ... 11 more
Comment created by mboulang:
If you look at the birthdate of participant 5454545 you will see that it's 2009/04/14, so the calculated age will be 1. The input age is outside the range supported by the Tanita BC418. Input age has to be in the following interval: [7,99]. I have modified the code and added somedetails to the log, so next time it will be easier to know is the problem is.
Comment created by mboulang:
This issue has been resolved, but we should see how we can support the concept of "instrument limitations" or "instrument specifications" in the next version of Jade (near future). Limitations of an instrument should be put on top of other validations. For example, if a stage in Onyx uses an instrument that supports a maximum input weight of 200Kg, we shouldn't be able to capture a weight that's larger than 200Kg in any previous stages.
Comment created by @obiba-ci:
Integrated in Onyx #1780 (See [http://132.204.211.183:8080/hudson/job/Onyx/1780/]) : Added validation on input age. The Tanita BC418 doesn't support values outside the following range : [7,99] years old.
Comment created by nemond:
Nancy,
Could you add it in the use case for jade please! When done, please close it!
Issue was closed with resolution "Fixed"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because no further activity occurs. Feel free to re-open it if it is still relevant.
Jira issue originally created by user @dwainelson:
Participant 1234567 was already in the DB the tanita app started no problem. For participant 5454545 I started that interview fresh the tanita app did not start.
2009-04-28 18:47:40,947 - INFO - $MenuItemSelectionBehavior - linkPageClass = HomePage, pageClass = HomePage 2009-04-28 18:47:40,947 - INFO - $MenuItemSelectionBehavior - linkPageClass = ParticipantSearchPage, pageClass = HomePage 2009-04-28 18:47:44,592 - INFO - $MenuItemSelectionBehavior - linkPageClass = HomePage, pageClass = HomePage 2009-04-28 18:47:44,592 - INFO - $MenuItemSelectionBehavior - linkPageClass = ParticipantSearchPage, pageClass = HomePage 2009-04-28 18:47:46,748 - INFO - $MenuItemSelectionBehavior - linkPageClass = HomePage, pageClass = ParticipantSearchPage 2009-04-28 18:47:46,749 - INFO - $MenuItemSelectionBehavior - linkPageClass = ParticipantSearchPage, pageClass = ParticipantSearchPage 2009-04-28 18:47:51,758 - INFO - efaultInterviewManagerImpl - User administrator has locked interview for participant 1234567. 2009-04-28 18:48:02,856 - INFO - tate.StageExecutionContext - castEvent(start) from stage 'Impedance418' in state 'JadeReadyState' 2009-04-28 18:48:06,695 - INFO - trument.InstrumentLauncher - codeBase=instruments/Impedance418 2009-04-28 18:48:06,695 - INFO - trument.InstrumentLauncher - Current language is = English getDisplayLanguage() 2009-04-28 18:48:06,695 - INFO - trument.InstrumentLauncher - url=resources/org.apache.wicket.Application/instruments/Impedance4182BEF31DB02DA391412A9ADDA9C2CBE0Aen 2009-04-28 18:48:06,695 - INFO - izard.InstrumentLaunchStep - onInstrumentLaunch 2009-04-28 18:48:06,707 - INFO - trument.InstrumentLauncher - JNLP File: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0" codebase="https://192.168.200.1:8443/ohs-webapp/instruments/Impedance418">
2009-04-28 18:48:11,171 - INFO - jade.client.JnlpClient - Initializing Instrument Runner of type org.obiba.onyx.jade.instrument.tanita.Bc418InstrumentRunner 2009-04-28 18:48:11,194 - INFO - nita.Bc418InstrumentRunner - Refresh serial port list 2009-04-28 18:48:11,209 - INFO - nita.Bc418InstrumentRunner - Refreshing serial port list... 2009-04-28 18:48:11,521 - INFO - nita.Bc418InstrumentRunner - Port name=COM1, Port type=1 2009-04-28 18:48:11,537 - INFO - nita.Bc418InstrumentRunner - Port name=COM3, Port type=1 2009-04-28 18:48:11,552 - INFO - nita.Bc418InstrumentRunner - Setup serial port 2009-04-28 18:48:11,568 - INFO - nita.Bc418InstrumentRunner - Fetching communication port COM1 2009-04-28 18:48:11,583 - INFO - nita.Bc418InstrumentRunner - Opening communication port COM1 2009-04-28 18:48:11,630 - INFO - nita.Bc418InstrumentRunner - Resetting Tanita 2009-04-28 18:48:11,646 - INFO - nita.Bc418InstrumentRunner - Sending data:[31, 13, 10] 2009-04-28 18:48:11,677 - INFO - nita.Bc418InstrumentRunner - Receiving response: 2009-04-28 18:48:11,697 - INFO - rumentExecutionServiceImpl - getInputParametersValue([Ljava.lang.String;@c2d897)={INPUTPARTICIPANT_AGE=[INTEGER:48], INPUT_CLOTHES_WEIGHT=[DECIMAL:0.0], INPUT_PARTICIPANT_GENDER=[TEXT:MALE], INPUT_PARTICIPANT_HEIGHT=[INTEGER:177], INPUT_BODYTYPE=[TEXT:STANDARD]} 2009-04-28 18:48:11,725 - INFO - nita.Bc418InstrumentRunner - wClothesWeightD0000.0
2009-04-28 18:48:11,740 - INFO - nita.Bc418InstrumentRunner - Sending data:[85, 48, 13, 10] 2009-04-28 18:48:11,787 - INFO - nita.Bc418InstrumentRunner - Receiving response:U0 2009-04-28 18:48:11,803 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 48, 48, 48, 48, 46, 48, 13, 10] 2009-04-28 18:48:11,850 - INFO - nita.Bc418InstrumentRunner - Receiving response:D0 2009-04-28 18:48:11,865 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 49, 49, 13, 10] 2009-04-28 18:48:11,912 - INFO - nita.Bc418InstrumentRunner - Receiving response:D1 2009-04-28 18:48:11,928 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 50, 48, 13, 10] 2009-04-28 18:48:11,975 - INFO - nita.Bc418InstrumentRunner - Receiving response:D2 2009-04-28 18:48:11,990 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 51, 48, 48, 49, 55, 55, 13, 10] 2009-04-28 18:48:12,053 - INFO - nita.Bc418InstrumentRunner - Receiving response:D3 2009-04-28 18:48:12,068 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 52, 52, 56, 13, 10] 2009-04-28 18:48:12,115 - INFO - nita.Bc418InstrumentRunner - Receiving response:D4 2009-04-28 18:48:12,131 - INFO - nita.Bc418InstrumentRunner - Sending data:[71, 49, 13, 10] 2009-04-28 18:48:12,178 - INFO - nita.Bc418InstrumentRunner - Receiving response:G1 2009-04-28 18:48:12,193 - INFO - jade.client.JnlpClient - Executing runner 2009-04-28 18:48:12,209 - INFO - nita.Bc418InstrumentRunner - Starting Tanita GUI 2009-04-28 18:48:26,694 - INFO - nita.Bc418InstrumentRunner - Lock obtained. Exiting software. 2009-04-28 18:48:26,709 - INFO - jade.client.JnlpClient - Shutting down runner 2009-04-28 18:48:26,725 - INFO - nita.Bc418InstrumentRunner - Closing serial port 2009-04-28 18:48:26,834 - INFO - jade.client.JnlpClient - Destroying application context 2009-04-28 18:48:26,851 - INFO - .GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@1c6d11a: display name [org.springframework.context.support.GenericApplicationContext@1c6d11a]; startup date [Tue Apr 28 18:46:23 EDT 2009]; root of context hierarchy 2009-04-28 18:48:26,866 - INFO - DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e2fbeb: defining beans [instrumentExecutionService,clientLoggingService,cookieRequestExecutor,remoteHandler,locale,instrumentRunner,externalAppHelper,settingsHelper]; root of factory hierarchy 2009-04-28 18:48:26,881 - INFO - jade.client.JnlpClient - Exiting VM 2009-04-28 18:49:07,218 - INFO - tate.StageExecutionContext - castEvent(cancel) from stage 'Impedance418' in state 'JadeInProgressState' 2009-04-28 18:49:11,396 - INFO - $MenuItemSelectionBehavior - linkPageClass = HomePage, pageClass = HomePage 2009-04-28 18:49:11,396 - INFO - $MenuItemSelectionBehavior - linkPageClass = ParticipantSearchPage, pageClass = HomePage 2009-04-28 18:49:18,359 - INFO - efaultInterviewManagerImpl - User administrator has locked interview for participant 5454545. 2009-04-28 18:49:26,736 - INFO - tate.StageExecutionContext - castEvent(start) from stage 'Impedance418' in state 'JadeReadyState' 2009-04-28 18:49:29,291 - INFO - trument.InstrumentLauncher - codeBase=instruments/Impedance418 2009-04-28 18:49:29,291 - INFO - trument.InstrumentLauncher - Current language is = English getDisplayLanguage() 2009-04-28 18:49:29,291 - INFO - trument.InstrumentLauncher - url=resources/org.apache.wicket.Application/instruments/Impedance4182BEF31DB02DA391412A9ADDA9C2CBE0Aen 2009-04-28 18:49:29,292 - INFO - izard.InstrumentLaunchStep - onInstrumentLaunch 2009-04-28 18:49:29,303 - INFO - trument.InstrumentLauncher - JNLP File: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0" codebase="https://192.168.200.1:8443/ohs-webapp/instruments/Impedance418">
2009-04-28 18:49:32,727 - INFO - jade.client.JnlpClient - Initializing Instrument Runner of type org.obiba.onyx.jade.instrument.tanita.Bc418InstrumentRunner 2009-04-28 18:49:32,744 - INFO - nita.Bc418InstrumentRunner - Refresh serial port list 2009-04-28 18:49:32,760 - INFO - nita.Bc418InstrumentRunner - Refreshing serial port list... 2009-04-28 18:49:33,072 - INFO - nita.Bc418InstrumentRunner - Port name=COM1, Port type=1 2009-04-28 18:49:33,088 - INFO - nita.Bc418InstrumentRunner - Port name=COM3, Port type=1 2009-04-28 18:49:33,103 - INFO - nita.Bc418InstrumentRunner - Setup serial port 2009-04-28 18:49:33,119 - INFO - nita.Bc418InstrumentRunner - Fetching communication port COM1 2009-04-28 18:49:33,134 - INFO - nita.Bc418InstrumentRunner - Opening communication port COM1 2009-04-28 18:49:33,181 - INFO - nita.Bc418InstrumentRunner - Resetting Tanita 2009-04-28 18:49:33,196 - INFO - nita.Bc418InstrumentRunner - Sending data:[31, 13, 10] 2009-04-28 18:49:33,353 - INFO - nita.Bc418InstrumentRunner - Receiving response: 2009-04-28 18:49:33,378 - INFO - rumentExecutionServiceImpl - getInputParametersValue([Ljava.lang.String;@1458d4e)={INPUTPARTICIPANT_AGE=[INTEGER:0], INPUT_CLOTHES_WEIGHT=[DECIMAL:0.0], INPUT_PARTICIPANT_GENDER=[TEXT:FEMALE], INPUT_PARTICIPANT_HEIGHT=[INTEGER:188], INPUT_BODYTYPE=[TEXT:STANDARD]} 2009-04-28 18:49:33,400 - INFO - nita.Bc418InstrumentRunner - wClothesWeightD0000.0
2009-04-28 18:49:33,416 - INFO - nita.Bc418InstrumentRunner - Sending data:[85, 48, 13, 10] 2009-04-28 18:49:33,463 - INFO - nita.Bc418InstrumentRunner - Receiving response:U0 2009-04-28 18:49:33,479 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 48, 48, 48, 48, 46, 48, 13, 10] 2009-04-28 18:49:33,525 - INFO - nita.Bc418InstrumentRunner - Receiving response:D0 2009-04-28 18:49:33,541 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 49, 50, 13, 10] 2009-04-28 18:49:33,588 - INFO - nita.Bc418InstrumentRunner - Receiving response:D1 2009-04-28 18:49:33,603 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 50, 48, 13, 10] 2009-04-28 18:49:33,650 - INFO - nita.Bc418InstrumentRunner - Receiving response:D2 2009-04-28 18:49:33,666 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 51, 48, 48, 49, 56, 56, 13, 10] 2009-04-28 18:49:33,728 - INFO - nita.Bc418InstrumentRunner - Receiving response:D3 2009-04-28 18:49:33,745 - INFO - nita.Bc418InstrumentRunner - Sending data:[68, 52, 48, 13, 10] 2009-04-28 18:49:33,791 - INFO - nita.Bc418InstrumentRunner - Receiving response:D4! 2009-04-28 18:49:33,806 - ERROR - jade.client.JnlpClient - Unexpected error while initializing runner {} 2009-04-28 18:49:33,838 - INFO - jade.client.JnlpClient - Destroying application context 2009-04-28 18:49:33,853 - INFO - .GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@200db9: display name [org.springframework.context.support.GenericApplicationContext@200db9]; startup date [Tue Apr 28 18:47:44 EDT 2009]; root of context hierarchy 2009-04-28 18:49:33,869 - INFO - DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@135133: defining beans [instrumentExecutionService,clientLoggingService,cookieRequestExecutor,remoteHandler,locale,instrumentRunner,externalAppHelper,settingsHelper]; root of factory hierarchy 2009-04-28 18:49:33,884 - INFO - jade.client.JnlpClient - Exiting VM 2009-04-28 18:50:35,477 - INFO - tate.StageExecutionContext - castEvent(cancel) from stage 'Impedance418' in state 'JadeInProgressState'