eclipse-paho / eclipse-paho/paho.mqtt.java
MissingResourceException : Can't find bundle for base name org.eclipse.paho.client.mqttv3.internal.nls.logcat, locale es
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 919
- PR merge metrics
- No merged PRs in 30d
Description
Please fill out the form below before submitting, thank you!
- [x] Bug exists Release Version 1.2.5 ( Master Branch)
- [ ] Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
- [ ] Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new
### ISSUE DESCRIPTION
- **This exception cause to org.eclipse.paho.client.mqttv3.internal.nls.logcat logcat.property has not localization file like locat_en.property, locat_es.property.**
java.util.MissingResourceException: Can't find bundle for base name org.eclipse.paho.client.mqttv3.internal.nls.logcat, locale es
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1561)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1384)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:771)
at org.eclipse.paho.client.mqttv3.logging.LoggerFactory.getLogger(LoggerFactory.java:72)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.(MqttAsyncClient.java:97)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.(MqttAsyncClient.java:438)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.(MqttAsyncClient.java:322)
at org.eclipse.paho.android.service.MqttConnection.connect(MqttConnection.java:289)
at org.eclipse.paho.android.service.MqttService.connect(MqttService.java:329)
at org.eclipse.paho.android.service.MqttAndroidClient.doConnect(MqttAndroidClient.java:467)
at org.eclipse.paho.android.service.MqttAndroidClient.access$200(MqttAndroidClient.java:76)
at org.eclipse.paho.android.service.MqttAndroidClient$MyServiceConnection.onServiceConnected(MqttAndroidClient.java:115)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1978)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2010)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Native Method)****
Contributor guide
Research direction
Start by reading LoggerFactory.java at the getLogger call shown in the stack trace and inspect the packaged org/eclipse/paho/client/mqttv3/internal/nls resources. Verify that starting MqttAsyncClient with the Spanish locale no longer raises MissingResourceException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- localization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100