Message: Ссылка на объект не указывает на экземпляр объекта.

Mini web-сервер для печати чеков на фискальных регистраторах из мобильных приложений через HTTP запрос JSON.
Ответить
neverovsky
Сообщения: 2
Зарегистрирован: 19 янв 2022, 17:52

Message: Ссылка на объект не указывает на экземпляр объекта.

Сообщение neverovsky » 19 янв 2022, 17:55

 При печати одного из чеков получаем такую ошибку
{"Cash":0.0,"ElectronicPayment":112408.36,"AdvancePayment":0.0,"Credit":0.0,"CashProvision":0.0,"Command":"RegisterCheck","Error":"Message: Ссылка на объект не указывает на экземпляр объекта.","Warning":"","Message":"","Status":2,"IdCommand":"oS9ZVPMz-7wtR0niG-fcoK-HrlN-jSAxIBT6u26p","NumDevice":5}

остальные печатаются нормально
версия КККМ сервера 2.2.11.18

Audim
Администратор
Сообщения: 2168
Зарегистрирован: 17 мар 2015, 18:36

Re: Message: Ссылка на объект не указывает на экземпляр объекта.

Сообщение Audim » 19 янв 2022, 18:23

Информация ни о чем.

Пришлите весь лог команды.

neverovsky
Сообщения: 2
Зарегистрирован: 19 янв 2022, 17:52

Re: Message: Ссылка на объект не указывает на экземпляр объекта.

Сообщение neverovsky » 19 янв 2022, 19:09

Код: Выделить всё

Текст команды:
IdType: KkmAtol, IdModel: 62, ver: 2.2.11.18, Width: 36, Firmware: 7733, IP client: [::ffff:94.26.141.73]:59874
{"Command":"RegisterCheck","NumDevice":"5","InnKkm":"","Timeout":30,"IdCommand":"oS9ZVPMz-7wtR0niG-fcoK-HrlN-jSAxIBT6u26p","IsFiscalCheck":true,"TypeCheck":"0","CancelOpenedCheck":true,"NotPrint":false,"CashierName":" Тестер В. В.","CashierVATIN":"770973518000","ClientAddress":"info@example.ru","CheckStrings":[{"PrintText":{"Text":"Артикул: L9711WH","Font":0,"Intensity":0},"Register":{"Name":"Соединитель для стоек (2шт.)","Quantity":"2.0000","Price":"125.00","Amount":"230.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9821WH","Font":0,"Intensity":0},"Register":{"Name":"рельс для стоек 1560мм","Quantity":"2.0000","Price":"650.00","Amount":"1196.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9120WH","Font":0,"Intensity":0},"Register":{"Name":null,"Quantity":"3.0000","Price":"760.00","Amount":"2097.60","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9111WH","Font":0,"Intensity":0},"Register":{"Name":"стеновые стойки 1156мм белый","Quantity":"2.0000","Price":"500.00","Amount":"920.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9102WH","Font":0,"Intensity":0},"Register":{"Name":"Стеновая стойка 160 мм белый","Quantity":"1.0000","Price":"150.00","Amount":"138.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9115WH","Font":0,"Intensity":0},"Register":{"Name":"стеновая стойка белая 1506мм","Quantity":"3.0000","Price":"649.00","Amount":"1791.24","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9240WH","Font":0,"Intensity":0},"Register":{"Name":"кронштейн белый для сеточных полок 406мм","Quantity":"39.0000","Price":"269.00","Amount":"9651.72","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9964WH","Font":0,"Intensity":0},"Register":{"Name":"Сеточная полка 603х406мм","Quantity":"18.0000","Price":"725.00","Amount":"12006.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9601WH","Font":0,"Intensity":0},"Register":{"Name":"Рама выдвижная 597*425 мм белый","Quantity":"3.0000","Price":"2150.00","Amount":"5934.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9994WH","Font":0,"Intensity":0},"Register":{"Name":"Сеточная полка 903х406мм","Quantity":"4.0000","Price":"1025.00","Amount":"3772.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9530WH(N)","Font":0,"Intensity":0},"Register":{"Name":"Проволочная корзина 555*410*185","Quantity":"3.0000","Price":"935.00","Amount":"2580.60","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9701WH","Font":0,"Intensity":0},"Register":{"Name":"Кронштейн белый для штанги","Quantity":"3.0000","Price":"45.00","Amount":"124.20","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L62R25CH64","Font":0,"Intensity":0},"Register":{"Name":"Перекладина для гардеробной системы 25х640","Quantity":"1.0000","Price":"166.00","Amount":"152.72","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9702CH","Font":0,"Intensity":0},"Register":{"Name":"Торцевые заглушки для перекладины(пара)","Quantity":"1.0000","Price":"130.00","Amount":"119.60","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L62R25CH94","Font":0,"Intensity":0},"Register":{"Name":"Перекладина для гардеробной системы 25х940","Quantity":"1.0000","Price":"229.00","Amount":"210.68","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L6176WH","Font":0,"Intensity":0},"Register":{"Name":"Декоративная заглушка на кронштейн L9240 (406mm) пара","Quantity":"13.0000","Price":"215.00","Amount":"2571.40","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9703","Font":0,"Intensity":0},"Register":{"Name":"Соединитель для штанги","Quantity":"1.0000","Price":"105.00","Amount":"96.60","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9821WH","Font":0,"Intensity":0},"Register":{"Name":"рельс для стоек 1560мм","Quantity":"5.0000","Price":"650.00","Amount":"2990.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9810WH","Font":0,"Intensity":0},"Register":{"Name":"рельс для стоек 1000мм","Quantity":"2.0000","Price":"425.00","Amount":"782.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9111WH","Font":0,"Intensity":0},"Register":{"Name":"стеновые стойки 1156мм белый","Quantity":"16.0000","Price":"500.00","Amount":"7360.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9240WH","Font":0,"Intensity":0},"Register":{"Name":"кронштейн белый для сеточных полок 406мм","Quantity":"54.0000","Price":"269.00","Amount":"13363.92","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L99S64WH","Font":0,"Intensity":0},"Register":{"Name":"Полка металлическая белая 595х420","Quantity":"24.0000","Price":"1200.00","Amount":"26496.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9964WH","Font":0,"Intensity":0},"Register":{"Name":"Сеточная полка 603х406мм","Quantity":"9.0000","Price":"725.00","Amount":"6003.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9994WH","Font":0,"Intensity":0},"Register":{"Name":"Сеточная полка 903х406мм","Quantity":"10.0000","Price":"1025.00","Amount":"9430.00","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9701WH","Font":0,"Intensity":0},"Register":{"Name":"Кронштейн белый для штанги","Quantity":"2.0000","Price":"45.00","Amount":"82.80","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L62R25CH94","Font":0,"Intensity":0},"Register":{"Name":"Перекладина для гардеробной системы 25х940","Quantity":"1.0000","Price":"229.00","Amount":"210.68","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L9702CH","Font":0,"Intensity":0},"Register":{"Name":"Торцевые заглушки для перекладины(пара)","Quantity":"1.0000","Price":"130.00","Amount":"119.60","Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}},{"PrintText":{"Text":"Артикул: L6176WH","Font":0,"Intensity":0},"Register":{"Name":"Декоративная заглушка на кронштейн L9240 (406mm) пара","Quantity":"10.0000","Price":"215.00","Amount":1978,"Department":1,"Tax":-1,"EAN13":"","SignMethodCalculation":4,"SignCalculationObject":1}}],"Cash":0,"ElectronicPayment":"112408.36","AdvancePayment":0,"Credit":0,"CashProvision":0}

Audim
Администратор
Сообщения: 2168
Зарегистрирован: 17 мар 2015, 18:36

Re: Message: Ссылка на объект не указывает на экземпляр объекта.

Сообщение Audim » 19 янв 2022, 19:39

Не указанно наименование товара:
"Register": {
"Name": null,
"Quantity": "3.0000",
"Price": "760.00",
"Amount": "2097.60",
"Department": 1,
"Tax": -1,
"EAN13": "",
"SignMethodCalculation": 4,
"SignCalculationObject": 1
}

Ответить