Ошибка jrpcexception asn 1 decode error offset 0 unexpected end of buffer encountered перевод

Сообщение jrpcexception asn 1 decode error offset 0 unexpected end of buffer encountered

Dynamic Link Library форматы, классифицируемые в качестве Системные файлы, чаще всего имеют расширение DLL. Ниже представлена наша база версий файлов ASN1.DLL для большинства выпусков операционной системы Windows (включая %%os%%), где вы также можете их скачать. В настоящее время в нашей безе отсутствуют некоторые файлы ASN1.DLL, однако вы можете получить их по запросу, нажав на кнопку Request (Запрос) рядом с соответствующей версией файла. В крайнем случае, если ниже отсутствует необходимый вам файл ниже, для получения необходимой версии вы также можете связаться с CACE Technologies.

Что означает нехватка памяти для ASN1?

Есть такая система сдачи отчетности Такском, у пользователя выскочило уведомление:

[info]Уведомление о запрете использования сертификатов, выпущенных по ГОСТу 34.10-2001. Ошибка в процессе приема пакетов. В процессе приема документа от регламенту произошла ошибка. Не удалось получить размер для расшифрованных данных, причина нехватка памяти для ASN1. Код ошибки 0x80093106[/info]

  • Необработанное исключение: System.Security.Cryptography.CryptographicException: ASN1 недостаточно памяти.
  • в System.Security.Cryptography.Pkcs.EnvelopedCms.OpenToDecode (Byte [] encodedMessage)
  • в System.Security.Cryptography.Pkcs.EnvelopedCms.Decode (Byte [] encodedMessage)

Эта проблема возникает из-за того, что размер буфера неправильно увеличивается в функции CryptMsgUpdate, когда метод EnvelopedCms.Decode добавляет декодированный контент в буфер во время процесса декодирования. Таким образом, целочисленное переполнение происходит для большого файла.

Производим установку обновлений KB248099. Запускаем его и соглашаемся на установку.

Сам процесс установки обновления KB248099 занимаем менее минуты.

Command to generate Java source:

The source is generated:

When I decode the first CDR file, it parses 3 lines only, the CDR file is supposed to contain more than 100 lines, so it is partially decoded.

When I try decoding another CDR file, it is failed when decoding CDR file and gave me such error:

My ASN.1 specification file does not have any syntax error when I use tool checking its syntax.

Can anyone who knows ASN.1 well help me about this?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I’d need some assistance in using the Service Control Engine (SCE) API.

I have developed a simple application that queries the bucket data for a given subscriber (using the getQuotaStatus API). However, despite I believe the source code is correct, I cannot get any reply back from the SCE.

The client-side debugging (in Log4J) confirms that everything is fine, and that the getQuotaStatus() command was issued properly.

I did some debugging by enabling the command «management-agent sce-api logging» on the SCE command line, and I see this log entries:

In particular, I don’t understand the «BAD: input is closed ASN.1 decode error» message.

Is this a known bug? How can I debug more, for example how can I get the text the SCE is trying to decode in ASN.1 notation?

I can post some snippet of my code, which is anyway very simple.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

The following message you pointed is too general and doesn’t

help much unfortunately. For instance, it can happen even when

there was a network connection issue between SCE and API.

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

The method getQuotaStatus works fine for me, so there should

be something difference between us. I’m using 3.7.0.

One thing I can come up with is that you need to configure

the Quota RDR’s in SCABB and RDR-formatter for category 4

as below to get proper values by getQuotaStatus.

RDR-formatter destination 127.0.0.1 port 33001 category number 4 priority

Configuring the Quota Manager

If it still doesn’t work after the above changes, please share

the following information for further troubleshooting.

+ SCE and API version

+ OS which runs the API

+ Snippet of your code

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Many thanks for your answer.

I’ve added the line

RDR-formatter destination 127.0.0.1 port 33001 category number 4 priority 100

in the configuration. There are no other destinations for category 4.

By the way, I see that this problem is still open on 3.7.0, see «CSCsm19587» in the release notes (

However, I cannot get any answer from the SCE. My details:

  • SCE and API version: SCE8000 running version 3.6.5 Build 489. API version is: 3.6.5 Build 300.
  • Java version: 1.6.0_26
  • OS which runs the API: tried both Windows 7 and Apple OSX 10.6
  • Snippet of your code: see below

This is the code of the main class :

This is the code of SceQuotaListener.java :

This is the code of SceResultHandler.java :

Many thanks for your help, this problem got me stuck for ages, it’s driving me mad.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hmm.. the source code you provided works fine for me on

my setup which runs same versions with yours.

I have added some println lines in your code to see the received value

and here is the result.

I’m getting the quota status for subscriber test1

1: 1048576(bucket id:value)

But when no bucket is assigned to the subscriber, then no value is returned.

So I assume you need to complete Quota related configurations including

Quota RDR settings on SCA-BB GUI(which I pointed in the previous reply) and

QM config on SM.

Please refer to the following doc for the detail.

You can check if a bucket.quota is assigned to a subs by:

Bucket 1 is used. Status – Not Breached.

Bucket type: Total Volume

Bucket state: OK

Bucket size: 1048576

If no bucket is assigned:

Error – Subscriber has no quota profile.

BTW, do you always see the following error?

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

Or the above error is one time event and your problem is that simply

SCE doesn’t reply any info to getQuotaStatus method?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Thanks again for helping me.

I’ve followed the guide you linked (both the 3.6.5 and 3.7.0) line by line. I’ve also upgraded the OS and the API jars to 3.7.0, but the result is the same.

The only difference with my configuration is in this screen:

the guide suggests to configure «Gy», while I am using the second option instead. The difference is not fully clear to me.

I do see a similar output when I query a user with associated quota:

Bucket type: Total Volume

Bucket state: OK

Bucket size: 1048576

I always get the error

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

every time I use the getQuotaStatus().

Any other idea or debugging to suggest?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

You always see the error while I have never seen it in my setup, that’s wired.

I think that’s better to open a TAC case with your SCE support file and the source code.

Last thing I can think of is that there is something issue in your network between your API

and SCE. For example, NAT, firewall, security software on your PC, etc. I’m not sure if these

can cause such error but if you don’t mind please test it again with a direct connection(same network)

between them. Seems the IP of SCE is 123.123.123.2 and the API is 192.168.2.101,

so I believe they are in different network.

If it doesn’t work with this change, I think openning a TAC case is a better option.

I’m sorry that I can’t help you much.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I have already opened a TAC last week, but it’s progressing very slowly and it seems quite hard to debug.

Thanks so much for spending time to help me.

ps: the ip 123.123.123.123 is a placeholder. There is no NAT nor firewall between the SCE and the API client. I tried this already.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I don’t want to bother your TAC case or work in parallel,

but there is something I forgot to suggest.

How many subscriber do you have in your SCE box?

If you have more than one and if this is not a production

environment, can you try clearing all the subscribers once

then import ev_btest32 only and try the test again?

If this is not a production, you can enable the following

rpc debug(at this point I’m not sure if this is helpful.).

debug rpc-adapter debug-mode on

debug rpc-adapter debug-mode off

The debug log generated can be found:

I think you have already tried this, but if you didn’t can

you please try reloading your SCE or try different SCE box?

Of course if this is not a production.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Thanks so much again for your help.

Sadly, this is a production SCE (with tens of thousands subscribers) so I can’t do anything of these. I also have another two SCE1000 and SCE2000 but they are in production too, and their subscribers don’t have associated quota.

My TAC was escalated today, let’s wait and see. It’s becoming quite frustrating.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I see, I’m sorry to hear that

Let’s wait for the response from escalation.

My intention was that something performance factor(num of subs, e.g.) is related to this issue

as in working case I see the following log(indicated in red) just after the same log(indicated in blue)

with yours, while in your case nothing happens about for 5 seconds then generates the error.

But I wouldn’t recommend to try anything I suggested in last reply as this is a production.

Александр Царев запись закреплена

Добрый день. При размещении плана графика закупок начала выскакивать ошибка JrpcException: ASN.1 decode error @ offset 0: Unexpected end-of-buffer encountered.
Кто нибудь сталкивался с подобным и есть ли решение?

Александр, чтобы узнать надо знать когда она вышла. Поэтому сначала надо все зафиксировать, потом обратиться в ТП, потом обратиться к программисту вашего учреждения, если такое уже было на рабочем месте. Явно это при переходе данных. Код ваш мне надо знать чтобы определить.

При запуске программного обеспечения Континент TLS-Клиент 2.0 иногда появляется ошибка: В ASN1 встречен неожиданный конец данных:

Давайте решим эту проблему.

Для этого необходимо открыть Пуск — Все программы — КрипптоПро — Сертификаты.

После этого Континент TLS-Клиент 2.0 запуститься в нормальном режиме и ошибка ASN1 исчезнет.

Источник

Ситуация: ошибки при входе в ЕИС — архив 1

Re: Критическая ошибка при входе в ЛК

АИГ_ТМК писал(а):Номер сборки КриптоПро? 4.0.98.42. Но что это дает? Менять мы его на другой? Казначейство не позволит, мы бюджетная организация.

topic30029.html

Вот тут поизучайте. Посмотрите, для Вас даже ключевые вопросы составлены.
Никто ничего смотреть не хочет.

Машины времени есть у каждого. Те, что переносят в прошлое, зовутся воспоминаниями, а те, что уносят в будущее — мечтами ©


kir_dfg
Профессор
 
Сообщений: 12112
Зарегистрирован: 19 дек 2016, 11:34
Откуда: Юпитер-2
Благодарил (а): 173 раз.
Поблагодарили: 1534 раз.
Роль: Заказчик
Пункты репутации: 635


Re: Критическая ошибка при входе в ЛК

Сообщение kir_dfg » 20 ноя 2018, 16:22

redrik05 писал(а):На контуре скачайте обновления для рабочего стола

Не поможет. Либо замена сборки, либо снятие флажков. В указанной мной теме все разжевано.

Машины времени есть у каждого. Те, что переносят в прошлое, зовутся воспоминаниями, а те, что уносят в будущее — мечтами ©


kir_dfg
Профессор
 
Сообщений: 12112
Зарегистрирован: 19 дек 2016, 11:34
Откуда: Юпитер-2
Благодарил (а): 173 раз.
Поблагодарили: 1534 раз.
Роль: Заказчик
Пункты репутации: 635

Re: Ситуация: ошибки при входе в ЕИС

Сообщение Dimarik525 » 21 ноя 2018, 09:47

День добрый! подскажите, на одном из компов с Win 10, не могу зайти в ЕИС не удалось отобразить страницу по 44-ФЗ под ЭЦП руководителя (под ЭЦП зам.руководителя заходит), на bus.gov заходит, в ЕИС через CryptoPro Fox, всё норм, менял и носители и в реестр закидывал, крипту сносил, чистил и всё без безрезультатно, не пускает под ЭЦП руководителя, сертификат и ключи живые, с других компов под ним заходит, да и на этом с другого браузера, но почему в ИЕ 11 не открывает?


Dimarik525
Посетитель
 
Сообщений: 11
Зарегистрирован: 12 янв 2017, 22:37
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.
Роль: Заказчик
Пункты репутации: 0

Re: Ситуация: ошибки при входе в ЕИС

Сообщение kir_dfg » 21 ноя 2018, 10:10

Dimarik525 писал(а):День добрый! подскажите, на одном из компов с Win 10, не могу зайти в ЕИС не удалось отобразить страницу по 44-ФЗ под ЭЦП руководителя (под ЭЦП зам.руководителя заходит), на bus.gov заходит, в ЕИС через CryptoPro Fox, всё норм, менял и носители и в реестр закидывал, крипту сносил, чистил и всё без безрезультатно, не пускает под ЭЦП руководителя, сертификат и ключи живые, с других компов под ним заходит, да и на этом с другого браузера, но почему в ИЕ 11 не открывает?

День добрый. Проверьте, есть ли в этом сертификате право «Аутентификация клиента».

Машины времени есть у каждого. Те, что переносят в прошлое, зовутся воспоминаниями, а те, что уносят в будущее — мечтами ©


kir_dfg
Профессор
 
Сообщений: 12112
Зарегистрирован: 19 дек 2016, 11:34
Откуда: Юпитер-2
Благодарил (а): 173 раз.
Поблагодарили: 1534 раз.
Роль: Заказчик
Пункты репутации: 635

Re: Ситуация: ошибки при входе в ЕИС

Сообщение Dimarik525 » 21 ноя 2018, 10:33

kir_dfg писал(а):

Dimarik525 писал(а):День добрый! подскажите, на одном из компов с Win 10, не могу зайти в ЕИС не удалось отобразить страницу по 44-ФЗ под ЭЦП руководителя (под ЭЦП зам.руководителя заходит), на bus.gov заходит, в ЕИС через CryptoPro Fox, всё норм, менял и носители и в реестр закидывал, крипту сносил, чистил и всё без безрезультатно, не пускает под ЭЦП руководителя, сертификат и ключи живые, с других компов под ним заходит, да и на этом с другого браузера, но почему в ИЕ 11 не открывает?

День добрый. Проверьте, есть ли в этом сертификате право «Аутентификация клиента».

Есть, через другой браузер заходит, с другого компьютера в ИЕ8 так же доступен ЛК


Dimarik525
Посетитель
 
Сообщений: 11
Зарегистрирован: 12 янв 2017, 22:37
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.
Роль: Заказчик
Пункты репутации: 0

Re: Ситуация: ошибки при входе в ЕИС

Сообщение kir_dfg » 21 ноя 2018, 11:54

Dimarik525 писал(а):

kir_dfg писал(а):

Dimarik525 писал(а):День добрый! подскажите, на одном из компов с Win 10, не могу зайти в ЕИС не удалось отобразить страницу по 44-ФЗ под ЭЦП руководителя (под ЭЦП зам.руководителя заходит), на bus.gov заходит, в ЕИС через CryptoPro Fox, всё норм, менял и носители и в реестр закидывал, крипту сносил, чистил и всё без безрезультатно, не пускает под ЭЦП руководителя, сертификат и ключи живые, с других компов под ним заходит, да и на этом с другого браузера, но почему в ИЕ 11 не открывает?

День добрый. Проверьте, есть ли в этом сертификате право «Аутентификация клиента».

Есть, через другой браузер заходит, с другого компьютера в ИЕ8 так же доступен ЛК

Тогда единственной проблемой могут быть только настройки. Смотрите в браузере флажки поддержки SSL и TLS, поиграйтесь ими.

Машины времени есть у каждого. Те, что переносят в прошлое, зовутся воспоминаниями, а те, что уносят в будущее — мечтами ©


kir_dfg
Профессор
 
Сообщений: 12112
Зарегистрирован: 19 дек 2016, 11:34
Откуда: Юпитер-2
Благодарил (а): 173 раз.
Поблагодарили: 1534 раз.
Роль: Заказчик
Пункты репутации: 635

Re: Ситуация: ошибки при входе в ЕИС

Сообщение Dimarik525 » 21 ноя 2018, 12:15

Закупки работали как часы, всё чётко, но, Казначейство сейчас формирует подпись через свой портал

https://fzs.roskazna.ru/

там у них свой плагин «КриптоПро ЭЦП Browser Plugin» версии 2.0, скачал, установил, после начались проблемы с подписью в ЕИС, кидал ошибки Отказано в доступе (0х80090010), Plugin error: Не удалось создать подпись из за ошибки: Отказано в доступе. (0х80090010), JrpcException: ASN.1 decod error @ offset 0: Unexpected end-of-buffer encountered и не подписывал, скачал, установил плагин с ЕИС и всё, при выборе серта, Не удалось отобразить страницу, где то в плагинах может наложение, т.к. под другим сертом захожу и проблем нет. Думал с компом проблемы, достал бук с 8.1 (на нем настройки одинаковые под закупки) и такая же фигня с ошибкой на подпись, НО плагин не стал ставить с закупок, через день Казна выдала новый серт, установил на бук где 8.1, ЛК доступен, всё подписывает.


Dimarik525
Посетитель
 
Сообщений: 11
Зарегистрирован: 12 янв 2017, 22:37
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.
Роль: Заказчик
Пункты репутации: 0

Re: Критическая ошибка при входе в ЛК

Сообщение АИГ_ТМК » 21 ноя 2018, 14:05

Критическая ошибка устранена путем снятия галочек с TLS1.2, TLS1.1. Спасибо, что подсказали.
После этого появилась проблема с плагином: устанавливаю-а он не видится. Поскольку машина 64-разрядная, то все брал
64-разр. Потом решил установить 32-разр. и ИЕ тоже запустил 32-разр. Все заработало :-ok-:


АИГ_ТМК
Иногда заглядывает
 
Сообщений: 9
Зарегистрирован: 28 июл 2017, 09:16
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.
Роль: Заказчик
Пункты репутации: 0

Re: Ситуация: ошибки при входе в ЕИС

Сообщение АИГ_ТМК » 21 ноя 2018, 14:19

У нас при входе по 223 ФЗ не виделся плагин, хотя и переустанавливал многократно. И в надстроках ИЕ не появлялся. Т.к. у нас машина 64-разр. то и запускали ИЕ по умолчанию. Потом скачал плагин 32-разр., усановил. Запустил ИЕ 32-разр., сделал требуемые настройки, и не забыв убрать галочки у TLS 1.1 TLS1.2. В надстройках появился Crypto Interface Plug-in , включил. Все заработало. Может и Вам поможет.


АИГ_ТМК
Иногда заглядывает
 
Сообщений: 9
Зарегистрирован: 28 июл 2017, 09:16
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.
Роль: Заказчик
Пункты репутации: 0


Вернуться в Единая информационная система (ЕИС)

Кто сейчас на форуме

Зарегистрированные пользователи: Google [Bot]

Dynamic Link Library форматы, классифицируемые в качестве Системные файлы, чаще всего имеют расширение DLL. Ниже представлена наша база версий файлов ASN1.DLL для большинства выпусков операционной системы Windows (включая %%os%%), где вы также можете их скачать. В настоящее время в нашей безе отсутствуют некоторые файлы ASN1.DLL, однако вы можете получить их по запросу, нажав на кнопку Request (Запрос) рядом с соответствующей версией файла. В крайнем случае, если ниже отсутствует необходимый вам файл ниже, для получения необходимой версии вы также можете связаться с CACE Technologies.

Что означает нехватка памяти для ASN1?

Есть такая система сдачи отчетности Такском, у пользователя выскочило уведомление:

[info]Уведомление о запрете использования сертификатов, выпущенных по ГОСТу 34.10-2001. Ошибка в процессе приема пакетов. В процессе приема документа от регламенту произошла ошибка. Не удалось получить размер для расшифрованных данных, причина нехватка памяти для ASN1. Код ошибки 0x80093106[/info]

  • Необработанное исключение: System.Security.Cryptography.CryptographicException: ASN1 недостаточно памяти.
  • в System.Security.Cryptography.Pkcs.EnvelopedCms.OpenToDecode (Byte [] encodedMessage)
  • в System.Security.Cryptography.Pkcs.EnvelopedCms.Decode (Byte [] encodedMessage)

Эта проблема возникает из-за того, что размер буфера неправильно увеличивается в функции CryptMsgUpdate, когда метод EnvelopedCms.Decode добавляет декодированный контент в буфер во время процесса декодирования. Таким образом, целочисленное переполнение происходит для большого файла.

Производим установку обновлений KB248099. Запускаем его и соглашаемся на установку.

Сам процесс установки обновления KB248099 занимаем менее минуты.

Command to generate Java source:

The source is generated:

When I decode the first CDR file, it parses 3 lines only, the CDR file is supposed to contain more than 100 lines, so it is partially decoded.

When I try decoding another CDR file, it is failed when decoding CDR file and gave me such error:

My ASN.1 specification file does not have any syntax error when I use tool checking its syntax.

Can anyone who knows ASN.1 well help me about this?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I’d need some assistance in using the Service Control Engine (SCE) API.

I have developed a simple application that queries the bucket data for a given subscriber (using the getQuotaStatus API). However, despite I believe the source code is correct, I cannot get any reply back from the SCE.

The client-side debugging (in Log4J) confirms that everything is fine, and that the getQuotaStatus() command was issued properly.

I did some debugging by enabling the command «management-agent sce-api logging» on the SCE command line, and I see this log entries:

In particular, I don’t understand the «BAD: input is closed ASN.1 decode error» message.

Is this a known bug? How can I debug more, for example how can I get the text the SCE is trying to decode in ASN.1 notation?

I can post some snippet of my code, which is anyway very simple.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

The following message you pointed is too general and doesn’t

help much unfortunately. For instance, it can happen even when

there was a network connection issue between SCE and API.

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

The method getQuotaStatus works fine for me, so there should

be something difference between us. I’m using 3.7.0.

One thing I can come up with is that you need to configure

the Quota RDR’s in SCABB and RDR-formatter for category 4

as below to get proper values by getQuotaStatus.

RDR-formatter destination 127.0.0.1 port 33001 category number 4 priority

Configuring the Quota Manager

If it still doesn’t work after the above changes, please share

the following information for further troubleshooting.

+ SCE and API version

+ OS which runs the API

+ Snippet of your code

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Many thanks for your answer.

I’ve added the line

RDR-formatter destination 127.0.0.1 port 33001 category number 4 priority 100

in the configuration. There are no other destinations for category 4.

By the way, I see that this problem is still open on 3.7.0, see «CSCsm19587» in the release notes (

However, I cannot get any answer from the SCE. My details:

  • SCE and API version: SCE8000 running version 3.6.5 Build 489. API version is: 3.6.5 Build 300.
  • Java version: 1.6.0_26
  • OS which runs the API: tried both Windows 7 and Apple OSX 10.6
  • Snippet of your code: see below

This is the code of the main class :

This is the code of SceQuotaListener.java :

This is the code of SceResultHandler.java :

Many thanks for your help, this problem got me stuck for ages, it’s driving me mad.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hmm.. the source code you provided works fine for me on

my setup which runs same versions with yours.

I have added some println lines in your code to see the received value

and here is the result.

I’m getting the quota status for subscriber test1

1: 1048576(bucket id:value)

But when no bucket is assigned to the subscriber, then no value is returned.

So I assume you need to complete Quota related configurations including

Quota RDR settings on SCA-BB GUI(which I pointed in the previous reply) and

QM config on SM.

Please refer to the following doc for the detail.

You can check if a bucket.quota is assigned to a subs by:

Bucket 1 is used. Status – Not Breached.

Bucket type: Total Volume

Bucket state: OK

Bucket size: 1048576

If no bucket is assigned:

Error – Subscriber has no quota profile.

BTW, do you always see the following error?

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

Or the above error is one time event and your problem is that simply

SCE doesn’t reply any info to getQuotaStatus method?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Thanks again for helping me.

I’ve followed the guide you linked (both the 3.6.5 and 3.7.0) line by line. I’ve also upgraded the OS and the API jars to 3.7.0, but the result is the same.

The only difference with my configuration is in this screen:

the guide suggests to configure «Gy», while I am using the second option instead. The difference is not fully clear to me.

I do see a similar output when I query a user with associated quota:

Bucket type: Total Volume

Bucket state: OK

Bucket size: 1048576

I always get the error

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

every time I use the getQuotaStatus().

Any other idea or debugging to suggest?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

You always see the error while I have never seen it in my setup, that’s wired.

I think that’s better to open a TAC case with your SCE support file and the source code.

Last thing I can think of is that there is something issue in your network between your API

and SCE. For example, NAT, firewall, security software on your PC, etc. I’m not sure if these

can cause such error but if you don’t mind please test it again with a direct connection(same network)

between them. Seems the IP of SCE is 123.123.123.2 and the API is 192.168.2.101,

so I believe they are in different network.

If it doesn’t work with this change, I think openning a TAC case is a better option.

I’m sorry that I can’t help you much.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I have already opened a TAC last week, but it’s progressing very slowly and it seems quite hard to debug.

Thanks so much for spending time to help me.

ps: the ip 123.123.123.123 is a placeholder. There is no NAT nor firewall between the SCE and the API client. I tried this already.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I don’t want to bother your TAC case or work in parallel,

but there is something I forgot to suggest.

How many subscriber do you have in your SCE box?

If you have more than one and if this is not a production

environment, can you try clearing all the subscribers once

then import ev_btest32 only and try the test again?

If this is not a production, you can enable the following

rpc debug(at this point I’m not sure if this is helpful.).

debug rpc-adapter debug-mode on

debug rpc-adapter debug-mode off

The debug log generated can be found:

I think you have already tried this, but if you didn’t can

you please try reloading your SCE or try different SCE box?

Of course if this is not a production.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Thanks so much again for your help.

Sadly, this is a production SCE (with tens of thousands subscribers) so I can’t do anything of these. I also have another two SCE1000 and SCE2000 but they are in production too, and their subscribers don’t have associated quota.

My TAC was escalated today, let’s wait and see. It’s becoming quite frustrating.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I see, I’m sorry to hear that

Let’s wait for the response from escalation.

My intention was that something performance factor(num of subs, e.g.) is related to this issue

as in working case I see the following log(indicated in red) just after the same log(indicated in blue)

with yours, while in your case nothing happens about for 5 seconds then generates the error.

But I wouldn’t recommend to try anything I suggested in last reply as this is a production.

Александр Царев запись закреплена

Добрый день. При размещении плана графика закупок начала выскакивать ошибка JrpcException: ASN.1 decode error @ offset 0: Unexpected end-of-buffer encountered.
Кто нибудь сталкивался с подобным и есть ли решение?

Александр, чтобы узнать надо знать когда она вышла. Поэтому сначала надо все зафиксировать, потом обратиться в ТП, потом обратиться к программисту вашего учреждения, если такое уже было на рабочем месте. Явно это при переходе данных. Код ваш мне надо знать чтобы определить.

При запуске программного обеспечения Континент TLS-Клиент 2.0 иногда появляется ошибка: В ASN1 встречен неожиданный конец данных:

Давайте решим эту проблему.

Для этого необходимо открыть Пуск — Все программы — КрипптоПро — Сертификаты.

После этого Континент TLS-Клиент 2.0 запуститься в нормальном режиме и ошибка ASN1 исчезнет.

Источник

TLS клиент 2.0 ошибка «в asn1 встречен неожиданный конец данных»

Доброго времени суток столкнулся с проблемой такого характера после установки TLS клиента при входе в программу выдает ошибку «в asn1 встречен неожиданный конец данных» что только не делал, и удалял все под чистую, Jinn Client, TLS Client, Континент АП, Касперского, использовал утилиту CspCleaner, ничего не помогает.
Стоит Windows 7 64
Помогите плиз совсем руки опускаються(

Вложения:

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Меньше Больше

  • Сообщений: 2005
  • Спасибо получено: 264

07 июнь 2019 11:13 — 07 июнь 2019 11:13 #12520 от Gvinpin
Gvinpin ответил в теме TLS клиент 2.0 ошибка «в asn1 встречен неожиданный конец данных»

m.plat686 пишет: Доброго времени суток столкнулся с проблемой такого характера после установки TLS клиента при входе в программу выдает ошибку «в asn1 встречен неожиданный конец данных»

______________________________
Лучше уже было (c)

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Меньше Больше

  • Сообщений: 2
  • Спасибо получено: 0

Источник: sedkazna.ru

В ASN1 встречен неожиданный конец данных в Континент TLS-Клиент 2.0

При запуске программного обеспечения Континент TLS-Клиент 2.0 иногда появляется ошибка: В ASN1 встречен неожиданный конец данных:

Давайте решим эту проблему.

Решение ошибки «В ASN1 встречен неожиданный конец данных» кроется в истекших сроков корневых сертификатов.

Для этого необходимо открыть Пуск — Все программы — КрипптоПро — Сертификаты.

Далее в «Доверенные корневые центры сертификации» отсортировать сертификаты по дате и удалить истекшие сроки действия сертификаты.

После этого Континент TLS-Клиент 2.0 запуститься в нормальном режиме и ошибка ASN1 исчезнет.

Источник: ececp.ru

Исправление ошибки «unexpected end of file» в PHP

Ошибка unexpected end of file появляется при наличии синтаксических ошибок в коде:

Отсутствие закрывающей фигурной скобки приведёт к появлению ошибки:

Parse error: syntax error, unexpected end of file in D:ProgramsOpenServerdomainstest.localindex.php on line 2

Как исправить ошибку

Чаще всего ошибка связана с разным количеством открывающих и закрывающих фигурных скобок. Иногда проблема с фигурными скобками является следствием другой ошибки, например где-то в коде используется короткий тег

Есть 2 основных способа решения проблемы.

Первый способ — использование продвинутых редакторов кода (NetBeans, VSCode и т.д.), которые могут найти конкретную строку, из-за которой происходит ошибка.

Второй способ — поиск ошибки вручную. Нужно убрать (закомментировать) весь код, после чего возвращать обратно небольшими частями. После каждой части скрипт проверяется на работоспособность.

Как только скрипт перестал работать — значит ошибка находится в последнем скопированном куске кода, можно попробовать найти в нём ошибку, либо переписать заново.

Если найти ошибку никак не удаётся — можно обратиться на любой популярный PHP форум.

Источник: www.programulin.ru

Ошибка в программе: «Unexpected end of file encountered» (tasm)

Используется GUI Turbo Assembler
При запуске программы возникает ошибка Assembling file: 3.asm
**Fatal** 3.asm(128) Unexpected end of file encountered.

Подскажите пожалуйста, как исправить эту ошибку.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
Ответы с готовыми решениями:

Ошибка «unexpected end of file found» в файле «recource.h» при сборке проекта
Делаю код под задание: 1. Разработать в Visual C++ оконное приложение Win32, которое: 1.1 .

Ошибка «Encountered the symbol ‘end-of-file’ when expecting one of the following»
CREATE OR REPLACE PROCEDURE PROCEDURE_01 IS DECLARE TYPE GENERIC_CURSOR IS REF CURSOR; cur1.

Ошибка при компиляции загрузчика: «unexpected end of file»
Был написан простейший загрузчик на asm с помощью синтаксиса at syntax error, unexpected end of file in»
Доброго времени суток, при выполнении код выдает ошибку » syntax error, unexpected end of file in».

Источник: www.cyberforum.ru


Offline

olch

 


#1
Оставлено
:

6 ноября 2014 г. 13:31:59(UTC)

olch

Статус: Участник

Группы: Участники

Зарегистрирован: 11.06.2014(UTC)
Сообщений: 16
Российская Федерация
Откуда: Омцк

Сказал(а) «Спасибо»: 3 раз
Поблагодарили: 1 раз в 1 постах

В процессе эксплуатации JCP столкнулись со следующей проблемой:
Неожиданно jcp перестает формировать подпись, возникает ошибка:

Caused by: com.objsys.asn1j.runtime.Asn1EndOfBufferException: ASN.1 decode error @ offset 0:
Unexpected end-of-buffer encountered.
at com.objsys.asn1j.runtime.Asn1DecodeBuffer.read(Asn1DecodeBuffer.java:358)
at com.objsys.asn1j.runtime.Asn1BerDecodeBuffer.decodeTag(Asn1BerDecodeBuffer.java:254)
at com.objsys.asn1j.runtime.Asn1BerDecodeBuffer.decodeTagAndLength(Asn1BerDecodeBuffer.java:293)
at com.objsys.asn1j.runtime.Asn1BerDecodeBuffer.matchTag(Asn1BerDecodeBuffer.java:335)
at com.objsys.asn1j.runtime.Asn1Type.matchTag(Asn1Type.java:444)
at com.objsys.asn1j.runtime.Asn1Type.matchTag(Asn1Type.java:466)
at ru.CryptoPro.JCP.ASN.Gost_CryptoPro_PrivateKey.GostPrivateMasks.decode(GostPrivateMasks.java:63)
at com.objsys.asn1j.runtime.Asn1Type.decode(Asn1Type.java:218)
at ru.CryptoPro.JCP.KeyStore.ContainerEncoder.readMasks(Unknown Source)
at ru.CryptoPro.JCP.KeyStore.t.a(Unknown Source)
… 48 more

После исследований обнаружили, что ошибка возникает когда файлы masks.key,masks2.key из каталога, содержащего ключи, становятся нулевой длины.
-rw-r—r—. 1 Oct 29 07:21 header.key
-rw-r—r—. 1 0 Nov 6 13:12 masks2.key
-rw-r—r—. 1 0 Nov 6 13:12 masks.key
-rw-r—r—. 1 10 Oct 29 07:21 name.key
-rw-r—r—. 1 36 Nov 6 12:31 primary2.key
-rw-r—r—. 1 36 Nov 6 12:31 primary.key

Непонятно, почему это происходить и как предотвратить эту проблему?


Вверх


Offline

Евгений Афанасьев

 


#2
Оставлено
:

6 ноября 2014 г. 14:03:47(UTC)

Евгений Афанасьев

Статус: Сотрудник

Группы: Участники

Зарегистрирован: 06.12.2008(UTC)
Сообщений: 3,792
Российская Федерация
Откуда: Крипто-Про

Сказал(а) «Спасибо»: 20 раз
Поблагодарили: 656 раз в 619 постах

Здравствуйте.
Как происходит эксплуатация? Почему файлы становятся нулевой длины, после чего?
Вопрос лучше переместить в раздел JCP.

Тех. поддержка
База знаний
Логирование JCP
Логирование JTLS
Тест JCP и сбор диаг. информации
Скачать JCP, JCSP и JTLS
Скачать Android CSP + SDK


Вверх


Offline

olch

 


#3
Оставлено
:

20 ноября 2014 г. 15:54:19(UTC)

olch

Статус: Участник

Группы: Участники

Зарегистрирован: 11.06.2014(UTC)
Сообщений: 16
Российская Федерация
Откуда: Омцк

Сказал(а) «Спасибо»: 3 раз
Поблагодарили: 1 раз в 1 постах

Крипто Про по какой-то причине меняет содержимое этих файлов. В определенный момент закончилось место на диске, и JCP не удалось файлы восстановить


Вверх


Offline

blutz

 


#4
Оставлено
:

29 ноября 2021 г. 12:27:43(UTC)

blutz

Статус: Новичок

Группы: Участники

Зарегистрирован: 29.11.2021(UTC)
Сообщений: 1
Российская Федерация
Откуда: 31

Подтверждаю похожее поведение в 2021 году. (linux / jcp in docker)

После того, как закончилось место на сервере, эти-же файлы стали 0-го размера.


Вверх


Offline

Санчир Момолдаев

 


#5
Оставлено
:

29 ноября 2021 г. 13:26:34(UTC)

Санчир Момолдаев

Статус: Сотрудник

Группы: Модератор, Участники
Зарегистрирован: 03.12.2018(UTC)
Сообщений: 1,025
Российская Федерация

Сказал(а) «Спасибо»: 86 раз
Поблагодарили: 216 раз в 207 постах

при обращении к закрытому ключу идет его перезапись. попытались записать, а места нет. поэтому и нулевой длины

Техническую поддержку оказываем тут
Наша база знаний


Вверх


Offline

isinelobov

 


#6
Оставлено
:

20 декабря 2021 г. 11:26:07(UTC)

isinelobov

Статус: Новичок

Группы: Участники

Зарегистрирован: 02.02.2008(UTC)
Сообщений: 2
Откуда: Москва

Автор: Санчир Момолдаев Перейти к цитате

при обращении к закрытому ключу идет его перезапись. попытались записать, а места нет. поэтому и нулевой длины

JCP перестанет работать, если я закрою криптоконтейнер на запись?

Иван


Вверх


Offline

Санчир Момолдаев

 


#7
Оставлено
:

20 декабря 2021 г. 19:44:01(UTC)

Санчир Момолдаев

Статус: Сотрудник

Группы: Модератор, Участники
Зарегистрирован: 03.12.2018(UTC)
Сообщений: 1,025
Российская Федерация

Сказал(а) «Спасибо»: 86 раз
Поблагодарили: 216 раз в 207 постах

Автор: isinelobov Перейти к цитате

Автор: Санчир Момолдаев Перейти к цитате

при обращении к закрытому ключу идет его перезапись. попытались записать, а места нет. поэтому и нулевой длины

JCP перестанет работать, если я закрою криптоконтейнер на запись?

Иван

если будете создавать подпись, то перестанет

Техническую поддержку оказываем тут
Наша база знаний


Вверх

Пользователи, просматривающие эту тему

Guest (2)

Быстрый переход
 

Вы не можете создавать новые темы в этом форуме.

Вы не можете отвечать в этом форуме.

Вы не можете удалять Ваши сообщения в этом форуме.

Вы не можете редактировать Ваши сообщения в этом форуме.

Вы не можете создавать опросы в этом форуме.

Вы не можете голосовать в этом форуме.

Содержание

  1. Ошибка 0x80093106 и нехватка памяти для ASN1
  2. Ошибка 0x80093106 и нехватка памяти для ASN1
  3. Что означает нехватка памяти для ASN1?
  4. Как исправить ошибку 0x80093106

Ошибка 0x80093106 и нехватка памяти для ASN1

Ошибка 0x80093106 и нехватка памяти для ASN1

Добрый день! Уважаемые читатели и гости IT портала Pyatilistnik.org. Пару лет назад я устанавливал Windows 7 одному из своих друзей на его ноутбук. Все работало как часы, но на прошлой неделе мой друг написал мне, что у него на сайте taxcom.ru во время приема пакетов, выскочила ошибка «Не удалось получить размер для расшифрованных данных, причина нехватка памяти для ASN1. Код ошибки 0x80093106″ и попросил помочь в решении данной проблемы. Отказать ему я не мог, поэтому, когда появилось свободное время я приступил к ее устранению.

Что означает нехватка памяти для ASN1?

Есть такая система сдачи отчетности Такском, у пользователя выскочило уведомление:

[info]Уведомление о запрете использования сертификатов, выпущенных по ГОСТу 34.10-2001. Ошибка в процессе приема пакетов. В процессе приема документа от регламенту произошла ошибка. Не удалось получить размер для расшифрованных данных, причина нехватка памяти для ASN1. Код ошибки 0x80093106[/info]

В итоге Windows 7 используя метод EnvelopedCms.Decode в приложении Microsoft .NET Framework, не может декодировать сообщения размером более 5 мегабайт (МБ). Кроме того, вы получаете сообщение об ошибке, похожее на следующее:

  • Необработанное исключение: System.Security.Cryptography.CryptographicException: ASN1 недостаточно памяти.
  • в System.Security.Cryptography.Pkcs.EnvelopedCms.OpenToDecode (Byte [] encodedMessage)
  • в System.Security.Cryptography.Pkcs.EnvelopedCms.Decode (Byte [] encodedMessage)

Эта проблема возникает из-за того, что размер буфера неправильно увеличивается в функции CryptMsgUpdate, когда метод EnvelopedCms.Decode добавляет декодированный контент в буфер во время процесса декодирования. Таким образом, целочисленное переполнение происходит для большого файла.

Как исправить ошибку 0x80093106

Чтобы у нас возвратилась возможность принимать и обрабатывать письма более пяти мегабайт вам необходимо установить специальное обновление от Microsoft, это как в случае с бесконечным обновлением системы, вам его придется загрузить отдельно. Исправление заменит библиотеку Msasn1.dll. Нужная нам KB Windows6.1-KB2480994-v2-x64 или более новая версия KB2729094, подробнее о нем (https://support.microsoft.com/ru-ru/help/2480994/asn1-out-of-memory-error-when-the-cryptmsgupdate-function-decodes-a-me)

  • Скачать KB2480994 можно у меня по ссылке, к сожалению MS данное обновление убрала и заменила, на сколько я понял KB2729094
  • Скачать KB2729094 по ссылке (https://support.microsoft.com/ru-ru/help/2729094/an-update-for-the-segoe-ui-symbol-font-in-windows-7-and-in-windows-ser) или у меня из облака одним пакетом (https://cloud.mail.ru/public/Dgmm/KU6ehFgkn)

Производим установку обновлений KB248099. Запускаем его и соглашаемся на установку.

Сам процесс установки обновления KB248099 занимаем менее минуты.

I am using Objective System Inc(http://www.obj-sys.com/products/asn1c/index.php) ASN.1 Compiler and the specification file(cdr_spec.asn) generated Java source code. The CDRS are enecoded based on format BER(Basic Encoding Rule)

Command to generate Java source:

The source is generated:

When I decode the first CDR file, it parses 3 lines only, the CDR file is supposed to contain more than 100 lines, so it is partially decoded.

When I try decoding another CDR file, it is failed when decoding CDR file and gave me such error:

My ASN.1 specification file does not have any syntax error when I use tool checking its syntax.

Can anyone who knows ASN.1 well help me about this?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I’d need some assistance in using the Service Control Engine (SCE) API.

I have developed a simple application that queries the bucket data for a given subscriber (using the getQuotaStatus API). However, despite I believe the source code is correct, I cannot get any reply back from the SCE.

The client-side debugging (in Log4J) confirms that everything is fine, and that the getQuotaStatus() command was issued properly.

I did some debugging by enabling the command «management-agent sce-api logging» on the SCE command line, and I see this log entries:

In particular, I don’t understand the «BAD: input is closed ASN.1 decode error» message.

Is this a known bug? How can I debug more, for example how can I get the text the SCE is trying to decode in ASN.1 notation?

I can post some snippet of my code, which is anyway very simple.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

The following message you pointed is too general and doesn’t

help much unfortunately. For instance, it can happen even when

there was a network connection issue between SCE and API.

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

The method getQuotaStatus works fine for me, so there should

be something difference between us. I’m using 3.7.0.

One thing I can come up with is that you need to configure

the Quota RDR’s in SCABB and RDR-formatter for category 4

as below to get proper values by getQuotaStatus.

RDR-formatter destination 127.0.0.1 port 33001 category number 4 priority

Configuring the Quota Manager

If it still doesn’t work after the above changes, please share

the following information for further troubleshooting.

+ SCE and API version

+ OS which runs the API

+ Snippet of your code

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Many thanks for your answer.

I’ve added the line

RDR-formatter destination 127.0.0.1 port 33001 category number 4 priority 100

in the configuration. There are no other destinations for category 4.

By the way, I see that this problem is still open on 3.7.0, see «CSCsm19587» in the release notes (

However, I cannot get any answer from the SCE. My details:

  • SCE and API version: SCE8000 running version 3.6.5 Build 489. API version is: 3.6.5 Build 300.
  • Java version: 1.6.0_26
  • OS which runs the API: tried both Windows 7 and Apple OSX 10.6
  • Snippet of your code: see below

This is the code of the main class :

This is the code of SceQuotaListener.java :

This is the code of SceResultHandler.java :

Many thanks for your help, this problem got me stuck for ages, it’s driving me mad.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Hmm.. the source code you provided works fine for me on

my setup which runs same versions with yours.

I have added some println lines in your code to see the received value

and here is the result.

I’m getting the quota status for subscriber test1

1: 1048576(bucket id:value)

But when no bucket is assigned to the subscriber, then no value is returned.

So I assume you need to complete Quota related configurations including

Quota RDR settings on SCA-BB GUI(which I pointed in the previous reply) and

QM config on SM.

Please refer to the following doc for the detail.

You can check if a bucket.quota is assigned to a subs by:

SCE2000#>sh interface LineCard 0 subscriber name test1 bucket-state

Bucket 1 is used. Status – Not Breached.

SCE2000#>sh interface LineCard 0 subscriber name test1 bucket-state id 1

Bucket type: Total Volume

Bucket state: OK

Bucket size: 1048576

If no bucket is assigned:

SCE2000#>sh interface LineCard 0 subscriber name test2 bucket-state

Error – Subscriber has no quota profile.

BTW, do you always see the following error?

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

Or the above error is one time event and your problem is that simply

SCE doesn’t reply any info to getQuotaStatus method?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Thanks again for helping me.

I’ve followed the guide you linked (both the 3.6.5 and 3.7.0) line by line. I’ve also upgraded the OS and the API jars to 3.7.0, but the result is the same.

The only difference with my configuration is in this screen:

the guide suggests to configure «Gy», while I am using the second option instead. The difference is not fully clear to me.

I do see a similar output when I query a user with associated quota:

SCE2000#>sh interface LineCard 0 subscriber name test1 bucket-state id 1

Bucket type: Total Volume

Bucket state: OK

Bucket size: 1048576

I always get the error

closed BAD: input is closed ASN.1 decode error @ offset 930: Unexpected end-of-buffer encountered..

every time I use the getQuotaStatus().

Also, I tried following the instruction in paragraph » Configuring SCE for Quota Management Provisioning » of the guide you linked me (http://www.cisco.com/en/US/partner/docs/cable/serv_exch/serv_control/broadband_app/rel37x/qm_sol/03_configuring.html#wp1053276) but nothing changed.

Any other idea or debugging to suggest?

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

You always see the error while I have never seen it in my setup, that’s wired.

I think that’s better to open a TAC case with your SCE support file and the source code.

Last thing I can think of is that there is something issue in your network between your API

and SCE. For example, NAT, firewall, security software on your PC, etc. I’m not sure if these

can cause such error but if you don’t mind please test it again with a direct connection(same network)

between them. Seems the IP of SCE is 123.123.123.2 and the API is 192.168.2.101,

so I believe they are in different network.

If it doesn’t work with this change, I think openning a TAC case is a better option.

I’m sorry that I can’t help you much.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I have already opened a TAC last week, but it’s progressing very slowly and it seems quite hard to debug.

Thanks so much for spending time to help me.

ps: the ip 123.123.123.123 is a placeholder. There is no NAT nor firewall between the SCE and the API client. I tried this already.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I don’t want to bother your TAC case or work in parallel,

but there is something I forgot to suggest.

How many subscriber do you have in your SCE box?

If you have more than one and if this is not a production

environment, can you try clearing all the subscribers once

then import ev_btest32 only and try the test again?

If this is not a production, you can enable the following

rpc debug(at this point I’m not sure if this is helpful.).

debug rpc-adapter debug-mode on

debug rpc-adapter debug-mode off

The debug log generated can be found:

I think you have already tried this, but if you didn’t can

you please try reloading your SCE or try different SCE box?

Of course if this is not a production.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Thanks so much again for your help.

Sadly, this is a production SCE (with tens of thousands subscribers) so I can’t do anything of these. I also have another two SCE1000 and SCE2000 but they are in production too, and their subscribers don’t have associated quota.

My TAC was escalated today, let’s wait and see. It’s becoming quite frustrating.

» means nesting-related): – Failed at: @displayUserCertifications user_id [in template «custom.author-acclaim-certifications» at line 4, column 9] ——>

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

I see, I’m sorry to hear that

Let’s wait for the response from escalation.

My intention was that something performance factor(num of subs, e.g.) is related to this issue

as in working case I see the following log(indicated in red) just after the same log(indicated in blue)

with yours, while in your case nothing happens about for 5 seconds then generates the error.

2011-10-11 17:32:12 | INFO | CPU #000 | Cleared user log files

2011-10-11 17:32:56 | INFO | CPU #000 | EM Agent: quotaStatusIndication operation was called with parameters: >

2011-10-11 17:33:03 | INFO | CPU #000 | EM Agent: PRPC connection to /1.120.20.1 established, client name is mcn.sceGw_1.120.20.1_SCE.J.API.PRPC, session name is rpc-3.

2011-10-11 17:33:04 | INFO | CPU #000 | EM Agent: sceGw_1.120.20.1_SCE.J.API.PRPC – connect operation was called, registered listeners: none

2011-10-11 17:33:04 | INFO | CPU #000 | EM Agent: sceGw_1.120.20.1_SCE.J.API.PRPC – connect operation was called, registered listeners: none

2011-10-11 17:33:04 | INFO | CPU #000 | EM Agent: sceGw_1.120.20.1_SCE.J.API.PRPC – registered a quota Listener

2011-10-11 17:33:04 | INFO | CPU #000 | EM Agent: getQuotaStatus operation was called with parameters: >

2011-10-11 17:33:04 | INFO | CPU #000 | EM Agent: quotaStatusIndication operation was called with parameters: >

2011-10-11 17:33:05 | INFO | CPU #000 | EM Agent: sceGw_1.120.20.1_SCE.J.API.PRPC – disconnected

2011-10-11 17:33:05 | INFO | CPU #000 | EM Agent: PRPC connection to /1.120.20.1 closed OK: peer terminated connection: user request.

But I wouldn’t recommend to try anything I suggested in last reply as this is a production.

  • Ошибка jrpcexception asn 1 decode error offset 0 unexpected end of buffer encountered как исправить
  • Ошибка jpeg error 42
  • Ошибка joomla cannot use object of type stdclass as array
  • Ошибка join clan room wot
  • Ошибка jenkins при запуске 1с