This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 137937 [details] netbeans log file (..\AppData\Roaming\NetBeans\7.4beta\var\log\messages.log) java.util.MissingResourceException: Can't find bundle for base name bundle/monthNames, locale fa at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322) at java.util.ResourceBundle.getBundle(ResourceBundle.java:795) at com.sp.ib.common.util.DateUtil.<clinit>(DateUtil.java:17) Caused: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:270) at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.loadClass(FaceletsTaglibConfigProcessor.java:224) at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.processFunctions(FaceletsTaglibConfigProcessor.java:559) at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.processTagLibrary(FaceletsTaglibConfigProcessor.java:310) at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.process(FaceletsTaglibConfigProcessor.java:252) at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.parseLibraries(FaceletsLibrarySupport.java:421) at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport._findLibraries(FaceletsLibrarySupport.java:344) at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.findLibraries(FaceletsLibrarySupport.java:289) at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.getLibraries(FaceletsLibrarySupport.java:188) at org.netbeans.modules.web.jsf.editor.JsfSupportImpl.getLibraries(JsfSupportImpl.java:237) at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel.initModel(JsfVariablesModel.java:116) at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel.<init>(JsfVariablesModel.java:99) at org.netbeans.modules.web.jsf.editor.el.JsfVariablesModel.getModel(JsfVariablesModel.java:85) at org.netbeans.modules.web.jsf.editor.el.JsfELVariableResolver$2.run(JsfELVariableResolver.java:229) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106) at org.netbeans.modules.web.jsf.editor.el.JsfELVariableResolver.getAllJsfVariables(JsfELVariableResolver.java:222) at org.netbeans.modules.web.jsf.editor.el.JsfELVariableResolver.getVariables(JsfELVariableResolver.java:131) at org.netbeans.modules.web.el.ELVariableResolvers$4.get(ELVariableResolvers.java:149) at org.netbeans.modules.web.el.ELVariableResolvers$4.get(ELVariableResolvers.java:143) at org.netbeans.modules.web.el.CompilationCache.getOrCache(CompilationCache.java:58) at org.netbeans.modules.web.el.ELVariableResolvers.getVariables(ELVariableResolvers.java:141) at org.netbeans.modules.web.el.ELTypeUtilities.getIdentifierType(ELTypeUtilities.java:510) at org.netbeans.modules.web.el.ELTypeUtilities.access$200(ELTypeUtilities.java:86) at org.netbeans.modules.web.el.ELTypeUtilities$TypeResolverVisitor.visit(ELTypeUtilities.java:712) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:222) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:225) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:225) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:225) at org.netbeans.modules.web.el.ELTypeUtilities.resolveElement(ELTypeUtilities.java:169) at org.netbeans.modules.web.el.ELTypeUtilities.resolveElement(ELTypeUtilities.java:158) at org.netbeans.modules.web.el.hints.Identifiers$1.visit(Identifiers.java:110) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:222) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:225) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:225) at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:225) at org.netbeans.modules.web.el.hints.Identifiers.run(Identifiers.java:97) at org.netbeans.modules.web.el.hints.ELHintsProvider$1.run(ELHintsProvider.java:94) at org.netbeans.modules.web.el.hints.ELHintsProvider$1.run(ELHintsProvider.java:86) at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593) at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:382) at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:365) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:336) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:417) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:409) at org.netbeans.modules.web.el.hints.ELHintsProvider.computeHints(ELHintsProvider.java:86) at org.netbeans.modules.csl.hints.infrastructure.HintsTask$1.run(HintsTask.java:138) at org.netbeans.modules.csl.hints.infrastructure.HintsTask$1.run(HintsTask.java:100) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106) at org.netbeans.modules.csl.hints.infrastructure.HintsTask.run(HintsTask.java:93) at org.netbeans.modules.csl.hints.infrastructure.HintsTask.run(HintsTask.java:74) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:568) [catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Please have you defined custom Facelet tag library in your project you were working on when this exception appeared?
Yes Martin. But this happens over and over even when I have not oppened any file in editor.
(In reply to comment #2) > Yes Martin. But this happens over and over even when I have not oppened any > file in editor. Happens "once in a while" actually.
(In reply to comment #2) > Yes Martin. But this happens over and over even when I have not oppened any > file in editor. Thanks for that information. Aren't you able to attach or send me by email your project or the taglib definition? BTW. Does the NetBeans IDE suggest the completion for your taglib elements properly? (when we omit this exception reporting)
Dear Martin, I don't have access to source code when I'm not at work. I'm afraid my next working day is the day after tomorrow but I'll go tomorrow to get the information which you need. We work as a team and I didnt work on the custom taglib myself. The only developer in our company who uses netbeans is me and Im really in love with it, so I wont let netbeans down.
(In reply to comment #5) > Dear Martin, > I don't have access to source code when I'm not at work. I'm afraid my next > working day is the day after tomorrow but I'll go tomorrow to get the > information which you need. No hurry, we have enough of time to fix that into the NetBeans 7.4 release. So when you would be able to send it here or to marfous[at]netbeans.org this week, it would be really great! Thanks a lot.
msd.salehi please are you able to send me your facelet taglib registration of your project we spoke about? Thanks.
Dear Martin, I found out that I have a DateUtil.java in which i have : private static final ResourceBundle monthNamesBundle = ResourceBundle.getBundle("bundle/monthNames", new Locale("fa")); while this bundle is available only as : monthNames.properties I added the bundle "monthNames_fa.properties" and changed the name of the existing bundle to " monthNames_en.properties" but the problem still exists. The following is the beginning of the taglib definition: <?xml version="1.0" encoding="UTF-8"?> <facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd" version="2.0"> <namespace>http://sabapardazesh.com/saba-functions</namespace> <function> <function-name>todayDate</function-name> <function-class>com.sp.ib.common.util.DateUtil</function-class> <function-signature>java.util.Date todayDate()</function-signature> </function> The result was the problem still exist. Then I added : <resource-bundle> <base-name>/bundle/monthNames</base-name> <var>monthNames</var> </resource-bundle> to my faces-config.xml and I know it probably has got nothing to do with the problem. but the error is still prompting.
msd.salehi thank you a lot for providing additional information to the issue. Thanks to that I was able to reproduce/simulate your issue on my environment and fix it. The fix should be available in next 2-3 days in the development builds (you will get notice here), so you can give it try then. Fixed in web-main #494aa40e8c6e.
Integrated into 'main-silver', will be available in build *201308072300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/494aa40e8c6e User: Martin Fousek <marfous@netbeans.org> Log: #233586 - java.util.MissingResourceException: Can't find bundle for base name bundle/monthNames