Forum
× Components and Libraries for Web Development, discussions, problems and suggestions

Question Routes broken?

  • Javier
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 11 months ago #6868 by Javier
Routes broken? was created by Javier
Apparently in CT 5.2 routes or service registration not work.
Simply:
New Project/Brook Framework->Embedded server (Runtime or designtime)->Run raise exception "TBrookRoute: No router service registered. "
Some workaround?
Regards.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 11 months ago - 4 years 11 months ago #6870 by Sternas Stefanos
Replied by Sternas Stefanos on topic Routes broken?
Thanks Sir
we will check this

PilotLogic Architect and Core Programmer
Last edit: 4 years 11 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Md. Shariful Alam Khan
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 11 months ago #6914 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Routes broken?
Any update on this? When can we have update on this? Stuck ongoing...

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 11 months ago #6915 by Sternas Stefanos
Replied by Sternas Stefanos on topic Routes broken?
I will add to Tomorrow daily task Sir
I hope my team to solve the problem

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Md. Shariful Alam Khan
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 11 months ago #6916 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Routes broken?
How to get the update?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 11 months ago #6917 by Sternas Stefanos
Replied by Sternas Stefanos on topic Routes broken?
If any solution, I we post here the new files OK

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Md. Shariful Alam Khan
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 10 months ago #6975 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Routes broken?
Not yet any update. When do we have?

Please Log in or Create an account to join the conversation.

  • Md. Shariful Alam Khan
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 9 months ago #7225 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Routes broken?
In Version 5.30 still same error. When it will solve?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 9 months ago #7226 by Sternas Stefanos
Replied by Sternas Stefanos on topic Routes broken?
Oh sorry Sir
I start now :unsure:

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 9 months ago - 4 years 9 months ago #7227 by Sternas Stefanos
Replied by Sternas Stefanos on topic Routes broken?
sir ultil we add code to pl_Brook\source\ideintf\brookideintf.pas
use this patch for unit Brokers of your project
unit Brokers;

{$mode objfpc}{$H+}

interface

uses
  BrookFCLHttpAppBroker, BrookUtils, 
  BrookRouter, BrookApplication;                 // <=====

implementation

initialization
  TBrookRouter.RegisterService;          // <=====
  BrookRegisterApp(BrookFCLHttpAppBroker.TBrookApplication.Create);   // <=====
  BrookSettings.Port := 8080;

finalization                                                // <=====
  TBrookRouter.UnregisterService;       // <=====

end.

please report here if the code work OK
screen from Typhon64 on Win7-64

PilotLogic Architect and Core Programmer
Attachments:
Last edit: 4 years 9 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Md. Shariful Alam Khan
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 9 months ago #7228 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Routes broken?
Yes it worked. Thanks. Why don't you add these additional lines by default in Brokers unit when it creates.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 9 months ago - 4 years 9 months ago #7229 by Sternas Stefanos
Replied by Sternas Stefanos on topic Routes broken?
We remove code from Brook units initialization session
because static link of packages in Typhon IDE give errors
and we forgot to add code in BrookIDEIntf.pas to start-up Brook application correct :S

Now we fix and BrookFCLHttpDaemonBroker applications
Please report any other problem

PS: pl_Brook 5.4.1

PilotLogic Architect and Core Programmer
Attachments:
Last edit: 4 years 9 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Md. Shariful Alam Khan
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 9 months ago #7230 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Routes broken?
Brook Embeded server worked perfectly but Embeded daemon server gives attached error message. Please see the attached image.
Attachments:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 9 months ago - 4 years 9 months ago #7231 by Sternas Stefanos
Replied by Sternas Stefanos on topic Routes broken?
Go to Typhon IDE => Run => Run Parameters...

and add -h to start application parameters
now you must write and code for this Embeded daemon server
more info at brook web page http://silvioprog.github.io/brookframework/



PilotLogic Architect and Core Programmer
Attachments:
Last edit: 4 years 9 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.