{"action":"created","issue":{"url":"https://api.github.com/repos/jhorstmann/i18n/issues/10","repository_url":"https://api.github.com/repos/jhorstmann/i18n","labels_url":"https://api.github.com/repos/jhorstmann/i18n/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/jhorstmann/i18n/issues/10/comments","events_url":"https://api.github.com/repos/jhorstmann/i18n/issues/10/events","html_url":"https://github.com/jhorstmann/i18n/issues/10","id":168482390,"number":10,"title":"Add a i18n-sample-desktop-app","user":{"login":"atilacamurca","id":508624,"avatar_url":"https://avatars.githubusercontent.com/u/508624?v=3","gravatar_id":"","url":"https://api.github.com/users/atilacamurca","html_url":"https://github.com/atilacamurca","followers_url":"https://api.github.com/users/atilacamurca/followers","following_url":"https://api.github.com/users/atilacamurca/following{/other_user}","gists_url":"https://api.github.com/users/atilacamurca/gists{/gist_id}","starred_url":"https://api.github.com/users/atilacamurca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilacamurca/subscriptions","organizations_url":"https://api.github.com/users/atilacamurca/orgs","repos_url":"https://api.github.com/users/atilacamurca/repos","events_url":"https://api.github.com/users/atilacamurca/events{/privacy}","received_events_url":"https://api.github.com/users/atilacamurca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-30T19:13:14Z","updated_at":"2016-07-31T10:42:15Z","closed_at":null,"body":"I'm trying to use this library in a desktop application, and I'm keep getting this exception:\r\n\r\n~~~\r\nException in thread \"AWT-EventQueue-0\" java.lang.NullPointerException\r\n\tat java.util.ResourceBundle$CacheKey.calculateHashCode(ResourceBundle.java:593)\r\n\tat java.util.ResourceBundle$CacheKey.<init>(ResourceBundle.java:522)\r\n\tat java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1259)\r\n\tat java.util.ResourceBundle.getBundle(ResourceBundle.java:1246)\r\n\tat net.jhorstmann.i18n.impl.DefaultResourceBundleProviderFactory$DefaultResourceBundleProvider.getResourceBundle(DefaultResourceBundleProviderFactory.java:21)\r\n\tat net.jhorstmann.i18n.I18N.getBundle(I18N.java:40)\r\n\tat net.jhorstmann.i18n.I18N.getBundle(I18N.java:45)\r\n\tat net.jhorstmann.i18n.I18N.tr(I18N.java:123)\r\n\tat org.sanusb.view.Main.addMenu(Main.java:105)\r\n\tat org.sanusb.view.Main.init(Main.java:88)\r\n\tat org.sanusb.view.Main.<init>(Main.java:83)\r\n\tat org.sanusb.view.Main$1.run(Main.java:63)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)\r\n\tat java.awt.EventQueue.access$300(EventQueue.java:103)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:706)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:704)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:715)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:91)\r\n~~~\r\n\r\nCan you put an example so I can find what I'm doing wrong? Thanks in advance."},"comment":{"url":"https://api.github.com/repos/jhorstmann/i18n/issues/comments/236423014","html_url":"https://github.com/jhorstmann/i18n/issues/10#issuecomment-236423014","issue_url":"https://api.github.com/repos/jhorstmann/i18n/issues/10","id":236423014,"user":{"login":"jhorstmann","id":689138,"avatar_url":"https://avatars.githubusercontent.com/u/689138?v=3","gravatar_id":"","url":"https://api.github.com/users/jhorstmann","html_url":"https://github.com/jhorstmann","followers_url":"https://api.github.com/users/jhorstmann/followers","following_url":"https://api.github.com/users/jhorstmann/following{/other_user}","gists_url":"https://api.github.com/users/jhorstmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jhorstmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhorstmann/subscriptions","organizations_url":"https://api.github.com/users/jhorstmann/orgs","repos_url":"https://api.github.com/users/jhorstmann/repos","events_url":"https://api.github.com/users/jhorstmann/events{/privacy}","received_events_url":"https://api.github.com/users/jhorstmann/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T10:42:15Z","updated_at":"2016-07-31T10:42:15Z","body":"The behaviour between desktop application and unit test should be very similar, can you extract such a test from your code and post it somewhere for investigation?\r\n\r\nYou could also make sure that you have the files `META-INF/services/net.jhorstmann.i18n.LocaleProviderFactory` and `META-INF/services/net.jhorstmann.i18n.ResourceBundleProviderFactory`, you can look at the unit tests to see examples: https://github.com/jhorstmann/i18n/tree/master/i18n-core/src/test/resources/META-INF/services\r\n\r\nI agree this could be documented better."}}
{"actor":{"display_login":"jhorstmann"}}