amironov73 / managedirbis Goto Github PK
View Code? Open in Web Editor NEWFormer ManagedClient adapted for .NET 4.5, 4.6, 4.7, and .NET Core
Home Page: http://arsmagna.ru
License: MIT License
Former ManagedClient adapted for .NET 4.5, 4.6, 4.7, and .NET Core
Home Page: http://arsmagna.ru
License: MIT License
Record:
#1: ^aFirst
#1: ^aSecond
#1: ^aThird
#1: ^aFourth
*****
Format:
"prefix " v1^a|, | " suffix "
Gives:
prefix First, suffix Second, Third, Fourth,
Must be:
prefix First, Second, Third, Fourth, suffix
See test 061:
if v700^b.1<>' ' and v700^b1.1='.' and v700^b3.1='.' and v700^b*2.1<>' ' then '!!!' else '???' fi
Exception stack trace:
ErrorCode: 0
Description: Unexpected token: And (1,18): and
ManagedIrbis.Pft.PftSyntaxException: Unexpected token: And (1,18): and
в ManagedIrbis.Pft.Infrastructure.PftParser.ParseNext() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Infrastructure.cs:строка 191
в ManagedIrbis.Pft.Infrastructure.PftParser.ParseComparisonItem() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Boolean.cs:строка 95
в ManagedIrbis.Pft.Infrastructure.PftParser.ParseComparison() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Boolean.cs:строка 63
в ManagedIrbis.Pft.Infrastructure.PftParser._ParseCondition() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Boolean.cs:строка 149
в ManagedIrbis.Pft.Infrastructure.PftParser.ParseCondition() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Boolean.cs:строка 158
в ManagedIrbis.Pft.Infrastructure.PftParser.ChangeContext(PftTokenList newTokens, Func1 function) в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Infrastructure.cs:строка 88 в ManagedIrbis.Pft.Infrastructure.PftParser.ParseIf() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Boolean.cs:строка 195 в ManagedIrbis.Pft.Infrastructure.PftParser.Get(Dictionary
2 map, PftTokenKind[] expectedTokens) в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Infrastructure.cs:строка 123
в ManagedIrbis.Pft.Infrastructure.PftParser.ParseNext() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.Infrastructure.cs:строка 184
в ManagedIrbis.Pft.Infrastructure.PftParser.ParseProgram() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.cs:строка 829
в ManagedIrbis.Pft.Infrastructure.PftParser.Parse() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Pft\Infrastructure\PftParser.cs:строка 846
в PftBench.MainForm.Parse() в C:\Projects\ManagedClient.45\Source\Classic\Apps\PftBench\Source\MainForm.cs:строка 80
в PftBench.MainForm._goButton_Click(Object sender, EventArgs e) в C:\Projects\ManagedClient.45\Source\Classic\Apps\PftBench\Source\MainForm.cs:строка 141
IrbisBusyManager can't tell request interrupted
Record:
1/1: ^aFirst^bSecond^cThird
2/1: ^aFirst^b^cThird
Script:
if p(v1^b) then 'Present' else 'Absent' fi /
if p(v2^b) then 'Present' else 'Absent' fi /
'D 1: ', |Present|d1^b, /
'D 2: ', |Present|d2^b, /
'N 1: ', |Absent|n1^b, /
'N 2: ', |Absent|n2^b, /
Gives:
Present
Present
D 1: Present
D 2:
N 1:
N 2:
Expected:
Present
Present
D 1: Present
D 2:
N 1:
N 2: Absent
Or, perhaps, CatalogManager class
Use ReadRecord instead?
Дело в том, что методу SearchRead ИРБИС-сервер
частенько возвращает «немодифицируемые» записи (он
банально неправильно проставляет флаги и версию
записи, а потом саботирует сохранение изменений в
них). При считывании записи методом ReadRecord
приходят гарантировано «модифицируемые» записи.
System.ArgumentNullException: Значение не может быть неопределенным.
Имя параметра: rawAnswer
в CodeJam.Code.NotNull[T](T arg, String argName) в C:\Projects\ManagedClient.45\Source\Classic\Libs\AM.Core\CodeJam\Code.cs:строка 405
в ManagedIrbis.Infrastructure.ServerResponse..ctor(IrbisConnection connection, Byte[] rawAnswer, Byte[] rawRequest, Boolean relax) в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\ServerResponse.cs:строка 132
в ManagedIrbis.Infrastructure.Commands.AbstractCommand.Execute(ClientQuery query) в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Commands\AbstractCommand.cs:строка 149
в ManagedIrbis.Infrastructure.Commands.ConnectCommand.Execute(ClientQuery query) в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Commands\ConnectCommand.cs:строка 162
в ManagedIrbis.IrbisConnection.Connect() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\IrbisConnection.cs:строка 458
в ManagedIrbis.AsyncExtensions.<>c__DisplayClass0_0.b__0() в C:\Projects\ManagedClient.45\Source\Classic\Libs\ManagedIrbis\Source\AsyncExtensions.cs:строка 67
в System.Threading.Tasks.Task1.InnerInvoke() в System.Threading.Tasks.Task.Execute() --- Конец трассировка стека из предыдущего расположения, где возникло исключение --- в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) в System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
в AsyncSocketTester.MainForm.<_pressMeButton_Click>d__3.MoveNext() в C:\Projects\ManagedClient.45\Source\Classic\Apps\AsyncSocketTester\Source\MainForm.cs:строка 90
Record:
1/1: ^aFirst
1/2: ^aSecond
1/3: ^bThird
1/4: ^aFourth
1/5: ^aFifth
Format:
v1^a| - |
gives
First - Second - - Fourth - Fifth -
Should be
First - Second - Fourth - Fifth -
Need support for unknown fields/subfields:
Unwanted empty records created on CR/LF in any field/subfield during WriteRecordCommand execution.
<40>^F******^A519.2/С232-769484^B7974-2^Kаб^V*^D20170126^1212359^E20170210^GBOOK^HE0040150392D2474^I1^CСборник задач по теории вероятностей, математической статистике и теории случайных функций : учеб. пособие [для вузов] / Под общ. ред. А.А. Свешникова, 2008. - 445 с.
</40>
And last record version also.
Need to handle return codes: -201, -600, -602, -603.
gives:
533
1532
1833
332
TestSearch_Many Found: 2015: 1, 2, 4, 7, 8, 9, 11, 13, 15, 19, 21, 23, 27, 36, ErrorCode: 0
Description: Already connected
ManagedIrbis.IrbisException: Already connected
в ManagedIrbis.IrbisConnection.ThrowIfConnected() в C:\Projects\ManagedClient.45\Sources\ManagedIrbis\Source\IrbisConnection.cs:строка 326
в ManagedIrbis.IrbisConnection.set_Database(String value) в C:\Projects\ManagedClient.45\Sources\ManagedIrbis\Source\IrbisConnection.cs:строка 167
в IrbisTestRunner.Tests.SearchTest.TestSearch_Many()
в ManagedIrbis.TestRunner.RunTests(AbstractTest testObject, MethodInfo method) в C:\Projects\ManagedClient.45\Sources\ManagedIrbis\Source\Testing\TestRunner.cs:строка 549
FAIL
System.Net.Sockets.SocketException was caught
Message=Адрес несовместим с выбранным протоколом [fe80::9903:a14b:f1fe:1176%11]:6666
Source=System
ErrorCode=10047
NativeErrorCode=10047
StackTrace:
в System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
в System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
в System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
в System.Net.Sockets.TcpClient.Connect(IPAddress address, Int32 port)
в ManagedIrbis.Infrastructure.SimpleClientSocket._GetTcpClient() в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Sockets\SimpleClientSocket.cs:строка 143
в ManagedIrbis.Infrastructure.SimpleClientSocket.ExecuteRequest(Byte[] request) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Sockets\SimpleClientSocket.cs:строка 220
в ManagedIrbis.Infrastructure.Commands.AbstractCommand.Execute(ClientQuery query) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Commands\AbstractCommand.cs:строка 160
в ManagedIrbis.Infrastructure.Commands.ConnectCommand.Execute(ClientQuery query) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Commands\ConnectCommand.cs:строка 170
в ManagedIrbis.IrbisConnection.Connect() в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\IrbisConnection.cs:строка 461
в ManagedIrbis.IrbisConnection..ctor(String connectionString) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\IrbisConnection.cs:строка 308
в Program.Main() в D:\Projects\ConsoleApplication16\Program.cs:строка 22
InnerException:
Or, perhaps, CatalogReplicator class
Возникла ошибка при использовании библиотеки ManagedIrbis 1.6.5.1078
При вызове команды Search, выдает исключение:
Выдано исключение типа "ManagedIrbis.Infrastructure.IrbisNetworkException". в ManagedIrbis.Infrastructure.ServerResponse.RequireInt32() в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\ServerResponse.cs:строка 722
в ManagedIrbis.Infrastructure.ServerResponse..ctor(IrbisConnection connection, Byte[] rawAnswer, Byte[] rawRequest, Boolean relax) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\ServerResponse.cs:строка 144
в ManagedIrbis.Infrastructure.Commands.AbstractCommand.Execute(ClientQuery query) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Commands\AbstractCommand.cs:строка 154
в ManagedIrbis.Infrastructure.Commands.SearchCommand.Execute(ClientQuery clientQuery) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\Commands\SearchCommand.cs:строка 372
в ManagedIrbis.Infrastructure.AbstractEngine.StandardExecution(ExecutionContext context) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\AbstractEngine.cs:строка 217
в ManagedIrbis.Infrastructure.AbstractEngine.ExecuteCommand(ExecutionContext context) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\Infrastructure\AbstractEngine.cs:строка 248
в ManagedIrbis.IrbisConnection.ExecuteCommand(AbstractCommand command) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\IrbisConnection.cs:строка 602
в ManagedIrbis.IrbisConnection.Search(String expression) в c:\projects\managedclient-45\Source\Classic\Libs\ManagedIrbis\Source\IrbisConnection.cs:строка 1318
Поисковый запрос - "A=гоголь$"
Причем Wireshark показывает, что ответ со списком приходит от ИРБИС-сервера.
Error code -6666: "Сервер перегружен. Достигнуто максимальное число потоков обработки";
via HttpClientSocket
Or, perhaps, CopyRecordManager?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.