0 Replies Latest reply on Sep 10, 2018 7:26 AM by Chris Newcomer

    Key com.symbol.datawedge.decode_data expected byte[]

    Chris Newcomer

      While working with datawedge scan to intent I am receiving an error which is crashing my Xamarin Android application. The error occurs after scanning a barcode which appears to be a valid barcode with a good read beep. I am adding in some additional logic to handle the null value however I am wondering if this is the expected behavior/value. Testing has been difficult as I am not able to replicate it in house.

       

      This is occurring in a production version of the code and therefor I do not have line numbers, but only have one line in the receiver that is pulling the ByteArray. I believe this is probably happening on the reading of the data as bytes in my broadcast receiver, but am not sure if it is on the creation of the intent from DW.

      <string name="datawedge_intent_key_data_bytes">com.symbol.datawedge.decode_data</string>

       

      barcode.DataBytes = intent.GetByteArrayExtra(context.Resources.GetString(Resource.String.datawedge_intent_key_data_bytes));


      This is running on an MC3300 with datawedge v. 6.8.50

      Here is a snip of the logcat

      09-05 14:52:51.053   607   931 I ScannerFramework: [TriggerAdapter::TriggerKeyEvent] Event 'HardKeyDownEvent' received on Decision tree
      09-05 14:52:51.053   607   931 W ScannerFramework: [StateMachine::IsTransitionValid] Tx code is invalid for both scanner and user
      09-05 14:52:51.053   607   931 I ScannerFramework: [Scanner::TriggerPress] 'TriggerPress' called, Calling process pid '607'
      09-05 14:52:51.053   607   931 E ScannerFramework: [ImagerAdapter::StartStreaming] CtlCmd+ -1342037728
      09-05 14:52:51.053   607   931 E ScannerFramework: [ImagerAdapter::StartStreaming] CtlCmd-
      09-05 14:52:51.054   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.057   607   931 I ScannerFramework: ImageContext:: viewPortMode:
      09-05 14:52:51.066   607   931 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:3117
      09-05 14:52:51.066   607  1495 V HwBeeper-HAL: HWBEEP int prepareBeep(const char *): "frequency=12;duration=30;volume=7;timeout=15000;timeout_after=15000"
      09-05 14:52:51.066   607   931 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:3135
      09-05 14:52:51.067   607  1495 V HwBeeper-HAL: HWBEEP int prepareBeep(const char *): frequency=12, duration=30, volume=7, timeout=15000, timeoutafter=15000
      09-05 14:52:51.067   607  1495 I HW-BEEP : prepare_beep_with_options: Already prepared
      09-05 14:52:51.069   607   931 I ScannerFramework: [Scanner::TriggerPress] - eError '0'
      09-05 14:52:51.069  1210  2027 I chatty  : uid=1000(system) Binder:1210_B expire 12 lines
      09-05 14:52:51.077   607 16366 E ScannerFramework: [MSM8952ImagerAdapter<T>::privV4lGetFrame] Polling 20ms Timeout: 0
      09-05 14:52:51.078   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.088  1210  2113 I chatty  : uid=1000(system) Binder:1210_11 expire 7 lines
      09-05 14:52:51.089   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.089  1210  2113 I chatty  : uid=1000(system) Binder:1210_11 expire 3 lines
      09-05 14:52:51.089   607 11876 I ScannerFramework: UndecodedImagerHandler, viewPortMode = 
      09-05 14:52:51.089   607 11876 I ScannerFramework: Normal Mode
      09-05 14:52:51.107   607 11876 I ScannerFramework: UndecodedImagerHandler, viewPortMode = 
      09-05 14:52:51.107   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.107   607 11876 I ScannerFramework: Normal Mode
      09-05 14:52:51.127   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.127   607 11876 I ScannerFramework: UndecodedImagerHandler, viewPortMode = 
      09-05 14:52:51.127   607 11876 I ScannerFramework: Normal Mode
      09-05 14:52:51.136   607  1494 D HW-BEEP : >>start_beep. Turning ON Beep.
      09-05 14:52:51.145   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.164   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.174   607 11876 W ScannerFramework: [ScannerContext::RemoveDataSubscriber] Subscriber not present in subscriber list
      09-05 14:52:51.174   607 11876 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:3117
      09-05 14:52:51.174   607 11876 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:3135
      09-05 14:52:51.174   607 11876 I ScannerFramework: ISS[UndecodedImagerHandler::DoDataCallBackFlexiScript]: Completed passing data to user
      09-05 14:52:51.175  2092  2104 D IMG_FRM : readsubmit for object: com.symbol.scanning.Scanner@e85ad67, mdec: com.symbol.datawedge.plugins.ScannerPlugin$5@e6a6714
      09-05 14:52:51.175   607  1015 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:3117
      09-05 14:52:51.176   607  1015 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:3135
      09-05 14:52:51.182  1210  1234 I chatty  : uid=1000(system) Binder:1210_1 expire 2 lines
      09-05 14:52:51.183   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null
      09-05 14:52:51.188  2092  2650 D ScannerPlugin: Time taken to process data by all plugins15ms
      09-05 14:52:51.190  9509  9509 W Bundle  : Key com.symbol.datawedge.decode_data expected byte[] but value was a java.util.ArrayList.  The default value <null> was returned.
      

       

       

      Any help would be greatly appreciated.

      Thanks Chris Newcomer

       

       

      CC:7e461a57-1f06-4648-98a3-ecb31092a872