com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

Atlassian JIRA | Michael Tokar | 7 years ago
  1. 0

    I'm doing a test upgrade from 3.13.3. After importing all our existing data via the XML backup/restore tool I restarted Jira and it began doing an "upgrade to build number 466" automatically. During that process I get the following error repeating every couple percent during "converting search requests to JQL": {code} 2009-10-06 17:48:40,611 Thread-1 INFO [jira.upgrade.tasks.UpgradeTask_Build428] Converting search requests to JQL is 93% complete. 2009-10-06 17:48:40,626 Thread-1 WARN [jira.upgrade.tasks.UpgradeTask_Build428] Could not namify the query: 'null' com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:129) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:508) at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:419) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:356) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:307) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:246) at com.atlassian.jira.upgrade.UpgradeLauncher.checkIfUpgradeNeeded(UpgradeLauncher.java:100) at com.atlassian.jira.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.NullPointerException at com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl.getFieldConfig(FieldConfigPersisterImpl.java:186) at com.atlassian.jira.issue.fields.config.manager.FieldConfigManagerImpl.getFieldConfig(FieldConfigManagerImpl.java:33) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:30) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:28) at com.atlassian.util.concurrent.LazyReference$1.call(LazyReference.java:79) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:121) ... 22 more 2009-10-06 17:48:40,689 Thread-1 INFO [jira.upgrade.tasks.UpgradeTask_Build428] Converting search requests to JQL is 94% complete. {code}

    Atlassian JIRA | 7 years ago | Chris Tashjian
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  2. 0

    h2. Symptoms Filters affected are only those which: * Specify a clause using the "select custom field" * The value of the clause references an option which has the same name as an option that was previously deleted from a custom field context h3. NullPointerException appears in the logs during upgrade to 4.0 data which contains specific filters: {noformat} 2009-10-06 17:48:40,626 Thread-1 WARN [jira.upgrade.tasks.UpgradeTask_Build428] Could not namify the query: 'null' com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:129) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:508) at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:419) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:356) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:307) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:246) at com.atlassian.jira.upgrade.UpgradeLauncher.checkIfUpgradeNeeded(UpgradeLauncher.java:100) at com.atlassian.jira.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.NullPointerException at com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl.getFieldConfig(FieldConfigPersisterImpl.java:186) at com.atlassian.jira.issue.fields.config.manager.FieldConfigManagerImpl.getFieldConfig(FieldConfigManagerImpl.java:33) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:30) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:28) at com.atlassian.util.concurrent.LazyReference$1.call(LazyReference.java:79) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:121) ... 22 more {noformat} h3. NullPointerException appears in a stack trace when running specific JQL filters in the Issue Navigator Stack trace is similar to the above h2. Diagnosis If you're seeing these exceptions, have a look at the customer data and find out if there are any records in the {{customfieldoption}} table which reference non-existant {{fieldconfiguration}} records. Here is the SQL: {{select * from customfieldoption where customfieldconfig not in (select id from fieldconfiguration)}} If there are records returned, then any search which mentions the {{customvalue}} s as the right hand side of a select custom field clause will be affected. h2. Cause When deleting a custom field context for a select custom field, the options created are not deleted. They remain in the {{customfieldoption}} table, with references to a {{fieldconfiguration}} (custom field context) that no longer exists (because it was deleted). A JQL clause that references the option "NAME" will look up all stored custom field options with that name, and attempt to resolve each option to its related field, in order to calculate the context of the clause. This includes all "dead options". When the related custom field is looked up, the NullPointerException is thrown.

    Atlassian JIRA | 7 years ago | Michael Tokar
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  3. 0

    h2. Symptoms Filters affected are only those which: * Specify a clause using the "select custom field" * The value of the clause references an option which has the same name as an option that was previously deleted from a custom field context h3. NullPointerException appears in the logs during upgrade to 4.0 data which contains specific filters: {noformat} 2009-10-06 17:48:40,626 Thread-1 WARN [jira.upgrade.tasks.UpgradeTask_Build428] Could not namify the query: 'null' com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:129) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:508) at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:419) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:356) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:307) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:246) at com.atlassian.jira.upgrade.UpgradeLauncher.checkIfUpgradeNeeded(UpgradeLauncher.java:100) at com.atlassian.jira.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.NullPointerException at com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl.getFieldConfig(FieldConfigPersisterImpl.java:186) at com.atlassian.jira.issue.fields.config.manager.FieldConfigManagerImpl.getFieldConfig(FieldConfigManagerImpl.java:33) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:30) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:28) at com.atlassian.util.concurrent.LazyReference$1.call(LazyReference.java:79) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:121) ... 22 more {noformat} h3. NullPointerException appears in a stack trace when running specific JQL filters in the Issue Navigator Stack trace is similar to the above h2. Diagnosis If you're seeing these exceptions, have a look at the customer data and find out if there are any records in the {{customfieldoption}} table which reference non-existant {{fieldconfiguration}} records. Here is the SQL: {{select * from customfieldoption where customfieldconfig not in (select id from fieldconfiguration)}} If there are records returned, then any search which mentions the {{customvalue}} s as the right hand side of a select custom field clause will be affected. h2. Cause When deleting a custom field context for a select custom field, the options created are not deleted. They remain in the {{customfieldoption}} table, with references to a {{fieldconfiguration}} (custom field context) that no longer exists (because it was deleted). A JQL clause that references the option "NAME" will look up all stored custom field options with that name, and attempt to resolve each option to its related field, in order to calculate the context of the clause. This includes all "dead options". When the related custom field is looked up, the NullPointerException is thrown.

    Atlassian JIRA | 7 years ago | Michael Tokar
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I'm doing a test upgrade from 3.13.3. After importing all our existing data via the XML backup/restore tool I restarted Jira and it began doing an "upgrade to build number 466" automatically. During that process I get the following error repeating every couple percent during "converting search requests to JQL": {code} 2009-10-06 17:48:40,611 Thread-1 INFO [jira.upgrade.tasks.UpgradeTask_Build428] Converting search requests to JQL is 93% complete. 2009-10-06 17:48:40,626 Thread-1 WARN [jira.upgrade.tasks.UpgradeTask_Build428] Could not namify the query: 'null' com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:129) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:508) at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:419) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:356) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:307) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:246) at com.atlassian.jira.upgrade.UpgradeLauncher.checkIfUpgradeNeeded(UpgradeLauncher.java:100) at com.atlassian.jira.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.NullPointerException at com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl.getFieldConfig(FieldConfigPersisterImpl.java:186) at com.atlassian.jira.issue.fields.config.manager.FieldConfigManagerImpl.getFieldConfig(FieldConfigManagerImpl.java:33) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:30) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:28) at com.atlassian.util.concurrent.LazyReference$1.call(LazyReference.java:79) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207) at com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109) at com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68) at com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73) at com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36) at com.atlassian.query.clause.AndClause.accept(AndClause.java:34) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221) at com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:121) ... 22 more 2009-10-06 17:48:40,689 Thread-1 INFO [jira.upgrade.tasks.UpgradeTask_Build428] Converting search requests to JQL is 94% complete. {code}

    Atlassian JIRA | 7 years ago | Chris Tashjian
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl.getFieldConfig()
    2. com.atlassian.jira
      LazyLoadedOption$1.create
      1. com.atlassian.jira.issue.fields.config.persistence.FieldConfigPersisterImpl.getFieldConfig(FieldConfigPersisterImpl.java:186)
      2. com.atlassian.jira.issue.fields.config.manager.FieldConfigManagerImpl.getFieldConfig(FieldConfigManagerImpl.java:33)
      3. com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:30)
      4. com.atlassian.jira.issue.customfields.option.LazyLoadedOption$1.create(LazyLoadedOption.java:28)
      4 frames
    3. com.atlassian.util
      LazyReference$1.call
      1. com.atlassian.util.concurrent.LazyReference$1.call(LazyReference.java:79)
      1 frame
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      2 frames
    5. com.atlassian.util
      LazyReference.get
      1. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146)
      2. com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115)
      2 frames
    6. com.atlassian.jira
      QueryContextVisitor.visit
      1. com.atlassian.jira.issue.customfields.option.LazyLoadedOption.getRelatedCustomField(LazyLoadedOption.java:61)
      2. com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getFieldFromOption(JqlSelectOptionsUtil.java:234)
      3. com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptionFromString(JqlSelectOptionsUtil.java:207)
      4. com.atlassian.jira.jql.util.JqlSelectOptionsUtil.getOptions(JqlSelectOptionsUtil.java:134)
      5. com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getContextOptions(SelectCustomFieldClauseContextFactory.java:109)
      6. com.atlassian.jira.jql.context.SelectCustomFieldClauseContextFactory.getClauseContext(SelectCustomFieldClauseContextFactory.java:68)
      7. com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.getClauseContext(MultiClauseDecoratorContextFactory.java:66)
      8. com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:134)
      9. com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36)
      9 frames
    7. com.atlassian.query
      TerminalClauseImpl.accept
      1. com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:137)
      1 frame
    8. com.atlassian.jira
      QueryContextVisitor.visit
      1. com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:80)
      2. com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36)
      2 frames
    9. com.atlassian.query
      AndClause.accept
      1. com.atlassian.query.clause.AndClause.accept(AndClause.java:34)
      1 frame
    10. com.atlassian.jira
      QueryContextVisitor.visit
      1. com.atlassian.jira.jql.context.QueryContextVisitor.createContext(QueryContextVisitor.java:55)
      2. com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:73)
      3. com.atlassian.jira.jql.context.QueryContextVisitor.visit(QueryContextVisitor.java:36)
      3 frames
    11. com.atlassian.query
      AndClause.accept
      1. com.atlassian.query.clause.AndClause.accept(AndClause.java:34)
      1 frame
    12. com.atlassian.jira
      UpgradeLauncher.contextInitialized
      1. com.atlassian.jira.bc.issue.search.DefaultSearchService.getSimpleQueryContext(DefaultSearchService.java:221)
      2. com.atlassian.jira.bc.issue.search.DefaultSearchService.getSearchContext(DefaultSearchService.java:123)
      3. com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getNamifiedQuery(UpgradeTask_Build428.java:200)
      4. com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.getQueryFromXml(UpgradeTask_Build428.java:312)
      5. com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.upgradeSearchRequests(UpgradeTask_Build428.java:149)
      6. com.atlassian.jira.upgrade.tasks.UpgradeTask_Build428.doUpgrade(UpgradeTask_Build428.java:121)
      7. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:508)
      8. com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:419)
      9. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:356)
      10. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:307)
      11. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:246)
      12. com.atlassian.jira.upgrade.UpgradeLauncher.checkIfUpgradeNeeded(UpgradeLauncher.java:100)
      13. com.atlassian.jira.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:49)
      13 frames
    13. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
      3. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      4. org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      6. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      7. org.apache.catalina.core.StandardService.start(StandardService.java:448)
      8. org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      9. org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      9 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    15. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      2 frames