java mediator

39 views
Skip to first unread message

sabri barbaria

unread,
Sep 12, 2017, 5:28:37 AM9/12/17
to Interoperability Layer (OpenHIE)

hello everyone;
i have followed the instructions found in the tutorial of OpenHIM described in this link http://openhim.readthedocs.io/en/latest/tutorial/3-creating-a-passthrough-mediator.html to create a java mediator. Everything went right and the mediator is already displayed on the task tab but in the terminal i obtain this error

java -jar target/tutorial-mediator-0.1.0-jar-with-dependencies.jar
[INFO] [09/08/2017 13:43:33.546] [main] [main] Initializing mediator actors...
[INFO] [09/08/2017 13:43:33.547] [main] [main] No configuration specified. Using default properties...
[INFO] [09/08/2017 13:43:33.635] [main] [main] Starting mediator server...
Sep 08, 2017 1:43:33 PM org.glassfish.grizzly.http.server.NetworkListener start
INFO: Started listener bound to [localhost:4000]
Sep 08, 2017 1:43:33 PM org.glassfish.grizzly.http.server.HttpServer start
INFO: [HttpServer] Started.
[INFO] [09/08/2017 13:43:33.683] [mediator-akka.actor.default-dispatcher-4] [akka://mediator/user/Tutorial-Mediator] Registering mediator with core...
[INFO] [09/08/2017 13:43:33.684] [main] [main] Tutorial-Mediator listening on localhost:4000
[INFO] [09/08/2017 13:43:33.687] [mediator-akka.actor.default-dispatcher-3] [akka://mediator/user/Tutorial-Mediator/core-api-connector] Registering mediator with core...
[INFO] [09/08/2017 13:43:34.159] [mediator-akka.actor.default-dispatcher-4] [akka://mediator/user/Tutorial-Mediator/core-api-connector] Sent mediator registration message to core
[INFO] [09/08/2017 13:43:34.159] [mediator-akka.actor.default-dispatcher-4] [akka://mediator/user/Tutorial-Mediator/core-api-connector] Response: 201 (Created)
[ERROR] [09/08/2017 13:43:38.733] [mediator-akka.actor.default-dispatcher-3] [akka://mediator/user/Tutorial-Mediator/core-api-connector] Invalid JSON config received from the OpenHIM core
[ERROR] [09/08/2017 13:43:38.733] [mediator-akka.actor.default-dispatcher-2] [akka://mediator/user/Tutorial-Mediator] Heartbeat request to core failed. Response: OK

Can you help me with this ?
thank you

Pierre Dane

unread,
Sep 14, 2017, 4:00:08 PM9/14/17
to sabri barbaria, Interoperability Layer (OpenHIE)
Hi Sabri.

We'll respond shortly.

Thanks
--
You received this message because you are subscribed to the Google Groups "Interoperability Layer (OpenHIE)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhie-interoperabil...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Pierre Dane
Director of Technology
Jembi Health Systems NPC

Richard Langford

unread,
Sep 18, 2017, 12:59:15 AM9/18/17
to sabri barbaria, Interoperability Layer (OpenHIE)

Good day Sabri,

 

Are you running the latest version of the OpenHIM-Core?

 

Please can you also check the OpenHIM logs as it might offer more information regarding this issue?

 

Thank you

 

 

Kindest regards,

 

Richard Langford

Systems Analyst

Jembi Health Systems NPC |  SOUTH AFRICA

Mobile: +27 83 279 1564 | Office: +27 21 701 0939 | Skype: rmrlangford
E-mail: 
richard....@jembi.org

 

Email Disclaimer:

This e-mail contains proprietary and confidential information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and then deleting same. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail. Jembi Health Systems NPO, its subsidiaries and associated companies is not liable for the security of information sent by e-mail and accepts no liability of whatsoever nature for any loss, damage or expense resulting, directly or indirectly, from the access of this e-mail or any attachments hereto.

--

Message has been deleted

sabri barbaria

unread,
Sep 18, 2017, 3:44:17 AM9/18/17
to Interoperability Layer (OpenHIE)
Hi everyone
 My OpenHIM-Core version is 3.4.0 and in the server log there is no error

Auto Generated Inline Image 1

Ryan Crichton

unread,
Sep 27, 2017, 4:20:48 AM9/27/17
to sabri barbaria, Interoperability Layer (OpenHIE), Rowan Pillay, Richard Langford
Hi Sabri,

Richard has been keeping me up to date with your troubleshooting. I'm wondering if that message you are getting just meant that the there is not mediator config for the mediator so it's getting back blank JSON. It may be fine to ignore this message. If you click on the mediators tab on the OpenHIM does it show that the mediator is stays running even after this error?

The Java mediator isn't often used, more commonly the Javascript mediators are used so I don't recall all the nuances of creating a Java mediator.

It seems that you are able to send requests to the mediator just fine, so perhaps this is working as expected?

Cheers,
Ryan

On Mon, Sep 18, 2017 at 9:44 AM sabri barbaria <sabri...@gmail.com> wrote:
Hi everyone
 My OpenHIM-Core version is 3.4.0 and in the server log there is no error
Auto Generated Inline Image 1

--
You received this message because you are subscribed to the Google Groups "Interoperability Layer (OpenHIE)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhie-interoperabil...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Ryan Crichton
Lead Developer, Jembi Health Systems  SOUTH AFRICA
Mobile: +27845829934 | Skype: ryan.graham.crichton
E-mail: ry...@jembi.org

sabri barbaria

unread,
Sep 27, 2017, 5:50:15 AM9/27/17
to Ryan Crichton, Interoperability Layer (OpenHIE), Rowan Pillay, Richard Langford
Hi everyone

Thanks for the update and duly noted. if i run into problems i'll keep you updated.

Best Regards,
Sabri

On Wed, Sep 27, 2017 at 9:20 AM, Ryan Crichton <ry...@jembi.org> wrote:
Hi Sabri,

Richard has been keeping me up to date with your troubleshooting. I'm wondering if that message you are getting just meant that the there is not mediator config for the mediator so it's getting back blank JSON. It may be fine to ignore this message. If you click on the mediators tab on the OpenHIM does it show that the mediator is stays running even after this error?

The Java mediator isn't often used, more commonly the Javascript mediators are used so I don't recall all the nuances of creating a Java mediator.

It seems that you are able to send requests to the mediator just fine, so perhaps this is working as expected?

Cheers,
Ryan

On Mon, Sep 18, 2017 at 9:44 AM sabri barbaria <sabri...@gmail.com> wrote:
Hi everyone
 My OpenHIM-Core version is 3.4.0 and in the server log there is no error
Auto Generated Inline Image 1

--
You received this message because you are subscribed to the Google Groups "Interoperability Layer (OpenHIE)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhie-interoperability-layer+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

arinzes...@gmail.com

unread,
Nov 16, 2018, 5:51:21 AM11/16/18
to Interoperability Layer (OpenHIE)
Hi Sabri

Could you find the solution to the error:

[ERROR] [09/08/2017 13:43:38.733] [mediator-akka.actor.default-dispatcher-3] [akka://mediator/user/Tutorial-Mediator/core-api-connector] Invalid JSON config received from the OpenHIM core
[ERROR] [09/08/2017 13:43:38.733] [mediator-akka.actor.default-dispatcher-2] [akka://mediator/user/Tutorial-Mediator] Heartbeat request to core failed. Response: OK

I am currently facing the same issue.

Best Regards
Arinze

Reply all
Reply to author
Forward
0 new messages