-
Notifications
You must be signed in to change notification settings - Fork 1
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
Parameters weren't properly deserialized in MTG (tenants.gateway LATEST 3.4.1-SNAPSHOT) #494
Comments
are you running server and client in different instances of universAAL? |
@amedranogil I can see 2 peers.. The weird thing is that each space finds the other even with the mentioned error. I can even verify it using tools.log bundle
|
this is precisely your problem, the MTGW is used to connect UNCONNECTED spaces. if your spaces are already connected you will cause message loops: SpaceA.event -> MTGW.A -> SpaceB.Event -> MTGW.B -> SpaceA.event .... To test MTGW in local you need to properly prepare both instances so they don't connect (they only connect through the MTGW connection). @kismet long ago prepared this testing environment for me, But I do not have clear exactly what kind of magict it is. There should be a section in the wiki pages explaining how to do this. In MW there is a section on disabling the discovery and peering, but you'll probably need to change some ports too so they don't connect through the localhost interface. |
Ah I see now... Actually I have prepared the properties as suggested by the doc where it says:
I will try to set up both instances in different device and let you know how this works. |
This is not related, as far as I know. To make sure both instances do not see each other, you should change the SLP port to be different in each. In /etc/system.properties put the property net.slp.port=5555 (to different values in each). I think it should be enough. |
I see that in the latest versions of distributions, the system.properties file says this:
So maybe uncommenting that helps. In any case, in my experience, changing the slp port as I said before usually does the job. |
Thanks Alvaro. According to Ousama, it seems that all the three parameters are essential for solving this problem. I have updated the document to include this hint. |
@Alfiva Thanks what you have provided helped me to make them both undiscovered by SLP.. but the problem is still there.. when I try to connect them through MTG I still receive the following at both server and client:
|
Still couldnt make it work.. is there any hints or updates on this issue? |
I am not familiar with the importer, maybe @amedranogil can help |
Ousama gave me the serialized parameters and I tried to deserialize them. It works just fine with 3.4.1-S. So, I tried to recreate the scenario (but with Pax and 3.4.2-S). This was not so easy because the GW is karaf-dependent (because of the shell command). I separated the spaces as mentioned here: Client:
Server:
I had to provide ALL info. If I miss one of the infos (like cache-max-size), I get an Exception in ConfigurationFile, e.g. for The method ConfigurationFile.getCipher() calls Then I got an Exception in constructor of class When I finally had everything running without Exception, the server prints: Any ideas? |
Update: it stopped at the end because I did not have the tenant manager. It is now added to mw.composite. However, it still does not work:
But I still could not recreate the error Ousama had ;-) |
Hello, |
sorted OSGi export and private packages.
Version 3.4.2-SNAPSHOT was work in progress, I stopped short of testing it out. So 👍 to Carsten for ironing out many of the stupid bugs. |
I suspect the problem might be related to the ontologies; I had this kind of problems long before the MTGW, when the ontologies where not define correctly, they worked locally but could not serialize/deserialize correctly, so when working in multi node environment there where problems. Particularly look into the Class, properties, and instances' URIs and check only Class URIs have upercase after the #; the rest should be lowercase |
Is the issue presented by Ousama ironed out both in 3.4.1 and 3.4.2 karaf distribution ??? |
Work on the MTGW is expected to start on September. Our intention is to solve many, if not all, of the open issues regarding MTGW. Unfortunately this work will focus on 3.4.2-SNAPSHOT as it is our development version, and MTGW has already had some fixes done in this version. |
I have encountered the following issue, when client tries to connect to the server using MTG in both the client and server logs:
I am running both universAAL spaces locally. The server has the following properties:
While the client has the following properties:
I have also added The AcceptALL.ttl as explained in the documentation which accepts all ContextEvents.
but same issue. When I try to publish a context event from server to the client, the event fails due to permission deny.
Hope someone can help me see what is the problem.
The text was updated successfully, but these errors were encountered: