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

C Chris Newcomer 3 years 6 months ago
61 0 0

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.
com.symbol.datawedge.decode_databarcode.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 tree09-05 14:52:51.053   607   931 W ScannerFramework: [StateMachine::IsTransitionValid] Tx code is invalid for both scanner and user09-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+ -134203772809-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-null09-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:311709-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:313509-05 14:52:51.067   607  1495 V HwBeeper-HAL: HWBEEP int prepareBeep(const char *): frequency=12, duration=30, volume=7, timeout=15000, timeoutafter=1500009-05 14:52:51.067   607  1495 I HW-BEEP : prepare_beep_with_options: Already prepared09-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 lines09-05 14:52:51.077   607 16366 E ScannerFramework: [MSM8952ImagerAdapter::privV4lGetFrame] Polling 20ms Timeout: 009-05 14:52:51.078   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null09-05 14:52:51.088  1210  2113 I chatty  : uid=1000(system) Binder:1210_11 expire 7 lines09-05 14:52:51.089   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null09-05 14:52:51.089  1210  2113 I chatty  : uid=1000(system) Binder:1210_11 expire 3 lines09-05 14:52:51.089   607 11876 I ScannerFramework: UndecodedImagerHandler, viewPortMode = 09-05 14:52:51.089   607 11876 I ScannerFramework: Normal Mode09-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-null09-05 14:52:51.107   607 11876 I ScannerFramework: Normal Mode09-05 14:52:51.127   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null09-05 14:52:51.127   607 11876 I ScannerFramework: UndecodedImagerHandler, viewPortMode = 09-05 14:52:51.127   607 11876 I ScannerFramework: Normal Mode09-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-null09-05 14:52:51.164   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null09-05 14:52:51.174   607 11876 W ScannerFramework: [ScannerContext::RemoveDataSubscriber] Subscriber not present in subscriber list09-05 14:52:51.174   607 11876 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:311709-05 14:52:51.174   607 11876 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:313509-05 14:52:51.174   607 11876 I ScannerFramework: ISS[UndecodedImagerHandler::DoDataCallBackFlexiScript]: Completed passing data to user09-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@e6a671409-05 14:52:51.175   607  1015 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:311709-05 14:52:51.176   607  1015 E ScannerFramework: [UserContextManager::GetUserContext] Context not found in valid contexts for pid:313509-05 14:52:51.182  1210  1234 I chatty  : uid=1000(system) Binder:1210_1 expire 2 lines09-05 14:52:51.183   607 16366 E ScannerFramework: [MessageQueue::waitForMsg]queue2 not-null09-05 14:52:51.188  2092  2650 D ScannerPlugin: Time taken to process data by all plugins15ms09-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 was returned.
Any help would be greatly appreciated.
Thanks Chris Newcomer

CC:​

CONTACT
Can’t find what you’re looking for?