wojciech.kapcia@tigase.net opened 4 years ago
|
|
Packet:
Complete log:
|
|
The issue looks like not properly initialized MIX component. Moreover in the logs file, I've found following entries:
which means that there is something wrong with this installation. (looks like clustering is not properly initialized...) |
|
Is it possible that there is a version with an issue? ie. tigase.org (updated today) is working just fine... |
|
I dug a bit into the issue and it's a bit weird. I took a look at the stacktrace, and NPE seems possible. It happens on the line:
And repository is marked as allowing nulls:
Now the question is - why do we allow null repository? What would be the use case? Can we ignore that that fact? At any rate, if we allow and (somewhat) expect that repository may be null, shouldn't we check if it's null before referencing it? |
|
Actually I did manage to somehow reproduce - it seems that the repository is not initialised? No other errors are happening. |
|
That repository SHOULD NOT be null after kernel injects all dependencies! The null is there just to deal with circular dependency which was there (something need to be initiated as a first item) and for nothing else so under no circumstances under normal condition there should be a |
|
@wojtek How did you reproduced the issue? That are condition causing this issue? as this is an error on the Kernel level, if bean is registered and there is field annotated then instance of that bean should be injected! |
|
@andrzej.wojcik shouldn't we somehow try to avoid those circular dependencies? Or at least add mechanism that would allow
I just tried leaving and entering the MIX channel again, which probably triggered MAM retrieval. As discussed in the chat: |
|
@wojtek We could try to add "allow null only during initialization by kernel" but that would complicate kernel even more and I'm not sure that we want to do that. Actually, the issue was caused by my mistake. It occurs that I've already made proper changes. |
|
OK, let's leave it for now.
OK, thank you for explanation. As per our conversation, I additionally activated this module by default as MIX-MUC compatibility seems essential (at least in the "transition period"). |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.2.0
|
Spent time |
2h 15m
|