#1 Re: mORMot 2 » mORMot2 unit tests » 2023-05-04 13:38:32

now UTF8 passed with success but at Network protocols (Ip dns ldap section) failed, Thanks smile
mormot 2.1.5419

#2 mORMot 2 » mORMot2 unit tests » 2023-05-04 09:40:03

zakaria
Replies: 3

Hi ab, i just want to notify you the tests of Core base at (UTF8) level failed.
mormot2 latest commit (master 2.1.5414)
Windows 10 64bits, Delphi 11.2
Thanks smile

#3 mORMot 2 » Exploit Unit tests data » 2023-04-26 08:49:53

zakaria
Replies: 1

Hi ab,
i just want to ask you is there any way to exploit unit test data (execution times infos like 993.53ms i.e. 81/s, aver. 12.26ms) to do do some graphs like you did in this blog https://blog.synopse.info/?post/2022/02 … erformance
Thanks smile

#4 Re: mORMot 2 » Ask questions » 2023-04-24 07:46:44

Hi ab,
depends on your answer at #2,
* how many mormot services do i have to scale those sqlite dbs, or it would be one with some techniques to separate them ?!
* what do you mean of pageofsize and propper indexes, has mormot create/managed them by default ?
Thanks smile

#5 Re: mORMot 1 » mORMot2 commit missing changes » 2023-01-03 07:44:48

Hi, ab i did update to latest commit, some of code are missing:

test.orm.threads.pas(312): E2003 Undeclared identifier: 'Use'

mormot 2.4571 Windows 10 64Bits, D11.2
Thanks smile

#6 Re: mORMot 1 » mORMot2 commit missing changes » 2022-12-22 08:00:37

HI ab, after update the sources, to latest commit 2.4486, mormot2tests block/ freeze at multi threading section.
Thanks smile
mormot2: 2.4486, windows 64 bits, D11.2

#7 mORMot 1 » mORMot2 commit missing changes » 2022-12-20 08:02:43

zakaria
Replies: 7

HI Ab,
a just get updated my mormot2 source from github last commit 2.4477, i have this error 

test.core.data.pas(1979): E2003 Undeclared identifier: 'Json'

it's at level of

Cache: TOrmCacheEntryValue;

Thanks smile

#8 Re: mORMot 1 » Read Json value to record » 2022-12-09 08:27:07

you can use that example:
var doc:TDocVariantData;
doc := TDocVariantData(_Json(jsonDataString));

#10 Re: mORMot 1 » mORMot 2 - Project05HttpDaemon 64bit Error » 2022-12-09 07:57:30

regressionly, the log file containt just one line<

09/12/2022 07:55:40.288	Last error	1	 mormot.core.os.TServiceController(028242b04f30) Start(MySampleService) failed "ERROR_SERVICE_REQUEST_TIMEOUT" (1053)  

#11 Re: mORMot 1 » mORMot 2 - Project05HttpDaemon 64bit Error » 2022-12-08 14:35:42

Hi ab,
i have some issues when i installed a windows service, it give me this error when i try to start it

Error 1053 [ERROR_SERVICE_REQUEST_TIMEOUT] occured with [/start] (Start) on Service 'MySampleService'

mormot 2.4418,D11.2,  windows 64 bits

Thanks smile

#12 Re: mORMot 1 » mORMot2 compilation Error » 2022-12-05 08:54:43

Hi ab,
Tests fails at SOA level

! Service oriented architecture - Client side REST basic authentication
! Exception EInterfaceFactory raised with messsage:
!  TInterfacedObjectFakeClient.FakeCall(ICalculator.Add) failed: '{
"errorCode":403,
"errorText":"Authentication Failed: Invalid signature (0)"
}'
  Total failed: 8 / 26,900,665  - Service oriented architecture FAILED  31.30s

Thanks smile

mormot 2.4400, D11, Target Windows 64bits

#13 mORMot 1 » mORMot2 compilation Error » 2022-12-01 08:49:55

zakaria
Replies: 4

Hi ab, i updated to latest commit and i can't compile.

dcc64 Error: mormot.app.daemon.pas(868): E2016 Array type required
ligne 868 :

 ConsoleWrite('% [%] %', [fService[i].ServiceName, pid[i], ToText(st[i])^],

mormot2 Last commit : 2.4389
Windows 10 64Bits, Delphi 11


update!
also with commit: 2.4392
dcc64 Error: mormot.net.ws.server.pas(241): E2010 Incompatible types: 'PHttpServerConnectionOpaque' and 'THttpServerRequestFlags'
dcc64 Error: mormot.net.ws.server.pas(242): E2034 Too many actual parameters

Thanks smile

#14 Re: mORMot 1 » mORMot 2 - Project05HttpDaemon 64bit Error » 2022-10-26 13:45:51

Hi ab, i tried the last commit and it Works as expected, Thanks smile

#15 Re: mORMot 1 » mORMot 2 - Project05HttpDaemon 64bit Error » 2022-10-21 16:59:55

i updated the sources to  https://github.com/synopse/mORMot2/commit/e7aae08b
but it still stuck at starting.. status, not getting running... status.

#16 Re: mORMot 1 » mORMot 2 - Project05HttpDaemon 64bit Error » 2022-10-21 10:44:32

Hi ab,
i get the same issue with 64bits (Windows), the service install but it stuck at starting... status not running..., but it works at 32bits(windows)
even with latest master branch source.
Thanks smile

mormot 2.0.4222
Windows 10 64Bit
Delphi 11.2

#17 Re: mORMot 1 » Unit Tests mORMot2 » 2022-01-05 13:50:37

Hi ab, Yeah now it works, Thanks smile

#18 mORMot 1 » mORMot2 ui => TDataSet » 2021-12-08 15:19:34

zakaria
Replies: 1

Hi, Ab i hope that you are doing great, is there any upcoming commits corresponding to write support in the DataSet.
Thanks smile

#19 Re: mORMot 1 » mORMot2 SynDataSet ? » 2021-10-13 17:17:20

Yeah, i just come to say it, and i found already you put !, i have Delphi 10

#21 mORMot 1 » mORMot2 SynDataSet ? » 2021-10-11 16:01:20

zakaria
Replies: 7

Hey!, i have some Questions about SynDataSet(mORMot1) in mORMot2.

* i found that mORMot2 not supporting yet the Communication with VCL Components,i don't know if it will release or not,
as i see the `ui` source (Github) for VCL/LCL User Interface oriented components;

* is there any other ways to accomplish that Goal => Assign DataSource.DataSet from TOrmTable instance

  aList := Orm.MultiFieldValues(TOrmMyClass, '');
    DataSource1.DataSet := TSynSQLTableDataSet.CreateOwnedTable
      (Self, aList); 


Thanks smile

#23 Re: mORMot 1 » Communication between mORMot2 and a legacy app » 2021-08-31 14:24:12

Hi, i resolved the problem with the following:
1 - Convert controls text values from Wide String to Utf-8 with "WideStringToUtf8" function.
2 -  add a writer serialization for the "TSample" record for D7.
code:

const
  __Tsample = 'Name, Question : RawUTF8;';
initialization
  TRttiJson.RegisterFromText(TypeInfo(TSample), __TSample,
    [jpoIgnoreUnknownProperty], []);
 Sample.Name := WideStringToUtf8(NameEdit.Text);
  Sample.Question := WideStringToUtf8(QuestionMemo.Text);

thnx for your quick answer and the great framework

#24 mORMot 1 » Communication between mORMot2 and a legacy app » 2021-08-30 17:11:28

zakaria
Replies: 4

Hi all, i hope you are going great.
i have a problem in this situation as the following:

* i have a legacy application that runs under Delphi 7,
and need to communicate between them and new one developed with Delphi 10 (Because of compatibility with Hardware devices)

=>  depends of the example : "04-InterfacedBasedServices"
1 - Run (as Admin) the server side with Delphi10.4.
2 - Run (as Admin) the client side with Delphi 7.
all going great but when i put the name and the msg and click "add message" btn, this error was occurred:

TInterfacedObjectFakeClient.FakeCall(IExample.Add) failed: '{
"errorCode":406,
"errorText":"IExample.Add failed parsing ASample: TSample from input JSON"
}'

Specs:
Delphi7(32bits), Delphi 10.4(64Bits)
Windows 10 (64Bits)

Any Help Plz smile

#25 mORMot 1 » Unit Tests mORMot2 » 2021-08-30 17:03:44

zakaria
Replies: 3

Hi ab, i hope you are going great.


1 - OS Infos after all my application tests passed (64bits) , i get windows 8 rather 10, in 32bits works fine !

my environment:
Windows10 (64Bit), Delphi 10.4 (64Bit)

Thanks smile

#26 mORMot 1 » mORMot2 Pivot Tables as Source or Dest in other Classes » 2021-06-21 17:01:19

zakaria
Replies: 1

Hi ,I have a problem in creating a structure of relations between classes using pivot tables, i mean "One To Many" cardinality: (using mORMot2)
example:

TOrmX= class(TOrm);

TOrmY = class(TOrm);


TOrmXY = class(TOrmMany)
private
    fSource: TOrmX;
    fDest: TOrmY ;
  published
    property Source: TOrmX read fSource;
    property Dest: TOrmY read fDest;
  end;

=> The XY created as suggested it have both Source in Dest Cols in DB.

!!! But the problem is here : when we want use TOrmXY as Source or Dest in other class;
Example:

TOrmXYZ = class(TOrmMany)
  private
    fSource: TOrmXY ;
    fDest: TAuthGroup;
  published
    property Source: TOrmXY read fSource;
    property Dest: TAuthGroup read fDest;
  end;

in DB; the Source property doesn't created in DB.

Any Help Please !, Thanks smile

Board footer

Powered by FluxBB