java mediator

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

Hi Sabri.

We’ll respond shortly.

Thanks

···

Pierre Dane
Director of Technology

Jembi Health Systems NPC

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.langford@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.

···

From: openhie-interoperability-layer@googlegroups.com [mailto:openhie-interoperability-layer@googlegroups.com] On Behalf Of sabri barbaria
Sent: 12 September 2017 11:29 AM
To: Interoperability Layer (OpenHIE) openhie-interoperability-layer@googlegroups.com
Subject: java mediator

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


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.

Hi everyone
My OpenHIM-Core version is 3.4.0 and in the server log there is no error
Auto Generated Inline Image 1.png

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

Auto Generated Inline Image 1.png

···

Ryan Crichton

Lead Developer, Jembi Health Systems | SOUTH AFRICA

Mobile: +27845829934 | Skype: ryan.graham.crichton
E-mail: ryan@jembi.org

Hi everyone

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

Best Regards,

Sabri

Auto Generated Inline Image 1.png

···

On Wed, Sep 27, 2017 at 9:20 AM, Ryan Crichton ryan@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 sabribarbar@gmail.com wrote:

Hi everyone
My OpenHIM-Core version is 3.4.0 and in the server log there is no error

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.

Ryan Crichton

Lead Developer, Jembi Health Systems | SOUTH AFRICA

Mobile: +27845829934 | Skype: ryan.graham.crichton
E-mail: ryan@jembi.org

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