-
Notifications
You must be signed in to change notification settings - Fork 5
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
bug in message formatting in rare cases after boostrapping #260
Comments
For the record: We have massively simplified the |
If the exception would come from here (1):
It means that it actually comes from here (method is not overridden anywhere):
There are two possible cases: OR (1.2): util/nls/src/main/java/net/sf/mmm/util/nls/impl/NlsMessageFormatterFactoryImpl.java Line 34 in f64572f
throws the error what technically means it is thrown in this constructor: util/nls/src/main/java/net/sf/mmm/util/nls/impl/formatter/NlsMessageFormatterImpl.java Line 51 in f64572f
That again would mean that the message is simply invalid according to the syntax what does not seem like the actual case but has to be verified. The other option is that the exception is thrown here (2):
so it would be thrown somewhere here: util/nls/src/main/java/net/sf/mmm/util/nls/impl/formatter/NlsMessageFormatterImpl.java Line 78 in f64572f
I would say that the latter option (2) is even more unlikely. |
In case of the NPE (1.1) the
What technically leads us here:
I can not see how this method can return However, the most obvious explanation would be that the actual message format is invalid. |
There seems to be a bug that we get an exception and end up in this fallback scenario with a somehow broken message:
util/nls/src/main/java/net/sf/mmm/util/nls/base/AbstractNlsTemplate.java
Line 59 in f64572f
Interesting is that the same message later works fine and it seems to happen only the first time when that message is created and only in rare cases (if called early on during app startup).
To fix this issue, we would actually need to know the exception that was catched that is unfortunately not logged here.
Therefore a first step will be to add logging of the exception here.
Once we have the stacktrace, we can try to see if there is some concurrency bug in the initializing/boostrapping code.
The text was updated successfully, but these errors were encountered: