Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone Server Does Not Work Properly When Compiled in Runtime Package Mode #239

Closed
marcosnielsen opened this issue Jul 17, 2019 · 8 comments
Labels
accepted Issue has been accepted and inserted in a future milestone

Comments

@marcosnielsen
Copy link

Hello,
I'm working with TNullabes type serialization
based on the example: "samples \ renders_spring4d_nullables \ renders_spring4d_nullables"
and custom serialization works perfectly.

But the DMVC presents a problem in serialization when I try to use packets at runtime:

Explanation:
I create a new default standalone server by wizard,
when you enable the Runtime package = true option,
I add the following BLPs in the package list:
loggerproRT, dmvcframeworkRT, dmvcframeworkDT.

Then I run the application and the following errors occur:
1 - The system does not generate the log files: logs \ StandAloneServer.00.dmvcframework.log
2 - Standalone Server does not recognize TCustomTypesSerializers classes.

but if I run the same server with Runtime option package = False;
DMVS generates the log file and writes the log of the serialized types:
see example of my StandAloneServer.00.dmvcframework.log:
...
2019-07-17 10: 56: 50: 043 [TID 14452] [DEBUG] Registering TypeSerializer for: Nullable <System.Integer> [dmvcframework]
2019-07-17 10: 56: 50: 043 [TID 14452] [DEBUG] Registering TypeSerializer for: Nullable <System.Currency> [dmvcframework]
2019-07-17 10: 56: 50: 043 [TID 14452] [DEBUG] Registering TypeSerializer for: Nullable <System.Double> [dmvcframework]
...
The renders_spring4d_nullables example also does not work with "Runtime package = true"

Thanks for listening.

Att
Marcos Nielsen.

@marcosnielsen
Copy link
Author

I use Delphi 10.3 update 1 Professional
and tested the same example in delphimvcframework 3.1.0 and branche delphimvcframework-master 3.1.1

@danieleteti
Copy link
Owner

Hi, can you try to put the required packages in the application folder and run the app?

@danieleteti danieleteti added the accepted Issue has been accepted and inserted in a future milestone label Jul 19, 2019
@danieleteti danieleteti added this to the 3.1.1 (beryllium) milestone Jul 19, 2019
@marcosnielsen
Copy link
Author

Hello Danielli
I tried this, but it did not work.
I believe the problem is with regard to packet loading.
When doing the requested test with the packages in the same directory I noticed that the package dmvcframeworkRT.bpl is not loading.
only the dmvcframeworkDT and loggerproRT packages were loaded.

I am sending the delphi load modules print and the list of packages marked for runtime.

Packages loadeds

Runtime pakages list

@danieleteti
Copy link
Owner

Any news using 3.2 RCs?

@marcosnielsen
Copy link
Author

Hello!
I remake this teste with ** DMVCFramework Server ** build 3.2.0 (boron) RC4,
But I have same error again!

@danieleteti
Copy link
Owner

However, if you need nullables, you can use the new mvcframework.nullables.pas

@danieleteti
Copy link
Owner

We cannot reproduce this problem. Our DMSContainer is a project which uses dmvcframework as run-time linked package (directly and indirectly). Is this your situation?

@marcosnielsen
Copy link
Author

Hello, I tested again with the current repository and this error no longer occurs

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue has been accepted and inserted in a future milestone
Projects
None yet
Development

No branches or pull requests

2 participants