java.lang.IllegalStateException: You have called on this too early. Spring has not auto-wired it yet. You need to think more about your code paths!

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Oswaldo Hernandez [Atlassian] Bugmaster, 1 year ago
You have called on this too early. Spring has not auto-wired it yet. You need to think more about your code paths!
via Atlassian JIRA by Oswaldo Hernandez [Atlassian] Bugmaster, 1 year ago
You have called on this too early. Spring has not auto-wired it yet. You need to think more about your code paths!
java.lang.IllegalStateException: You have called on this too early. Spring has not auto-wired it yet. You need to think more about your code paths!
at com.atlassian.servicedesk.lifecycle.ServiceDeskComponentAccessor.get(ServiceDeskComponentAccessor.java:40)
at com.atlassian.servicedesk.lifecycle.ServiceDeskComponentAccessor.vpOriginManager(ServiceDeskComponentAccessor.java:46)
at com.atlassian.viewport.customfields.origin.VpOriginCustomFieldIndexer.vpOriginManager(VpOriginCustomFieldIndexer.java:43)
at com.atlassian.viewport.customfields.origin.VpOriginCustomFieldIndexer.addDocumentFields(VpOriginCustomFieldIndexer.java:34)
at com.atlassian.viewport.customfields.origin.VpOriginCustomFieldIndexer.addDocumentFieldsSearchable(VpOriginCustomFieldIndexer.java:22)
at com.atlassian.jira.issue.index.indexers.impl.AbstractCustomFieldIndexer.addIndex(AbstractCustomFieldIndexer.java:46)
at com.atlassian.jira.issue.index.IssueDocument.getDocument(IssueDocument.java:41)
at com.atlassian.jira.issue.index.DefaultIssueDocumentFactory.get(DefaultIssueDocumentFactory.java:15)
at com.atlassian.jira.issue.index.DefaultIssueDocumentFactory.get(DefaultIssueDocumentFactory.java:11)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$IssueLockDocumentCreationStrategy$2.get(DefaultIssueIndexer.java:606)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$IssueLockDocumentCreationStrategy$2.get(DefaultIssueIndexer.java:601)
at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:303)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$IssueLockDocumentCreationStrategy.get(DefaultIssueIndexer.java:600)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$2.perform(DefaultIssueIndexer.java:164)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$4$1.get(DefaultIssueIndexer.java:292)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$4$1.get(DefaultIssueIndexer.java:288)
at com.atlassian.jira.index.SimpleIndexingStrategy.get(SimpleIndexingStrategy.java:9)
at com.atlassian.jira.index.SimpleIndexingStrategy.get(SimpleIndexingStrategy.java:5)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$4.consume(DefaultIssueIndexer.java:287)
at com.atlassian.jira.issue.index.DefaultIssueIndexer$4.consume(DefaultIssueIndexer.java:279)
at com.atlassian.jira.issue.util.DatabaseIssuesIterable.foreach(DatabaseIssuesIterable.java:66)
at com.atlassian.jira.issue.index.DefaultIssueIndexer.perform(DefaultIssueIndexer.java:278)
at com.atlassian.jira.issue.index.DefaultIssueIndexer.reindexIssues(DefaultIssueIndexer.java:159)
at com.atlassian.jira.issue.index.DefaultIndexManager.doBackgroundReindex(DefaultIndexManager.java:815)
at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:289)
at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:271)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.