com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider

Atlassian JIRA | David Karr | 3 years ago
  1. 0

    I originally filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=421297 with Eclipse. They closed it, pointing out that the stack trace included "com.atlassian.jira.rest.client" and told me to file this with Atlassian. From the product list, I don't see anything closer than JIRA. I'm just repeating the same report here, with some additional information. I have a Kepler workspace that I've been using for a while. I've had the JIRA connector installed and running for a long time. Today was the first time I created some projects from a cloned git workspace. Sometime after the first project was created, I started to get error dialogs popping up every few minutes saying 'An internal error occurred during "Synchronizing Task List".' This continued to happen while I had those git projects in my workspace. After several hours of this, the error dialog popping up every synch interval, I then deleted all of the git projects. I don't know if that's exactly what's causing the conflict, but now there are no more error dialogs. I'm going to be checking out those projects again in the next few days. This is the stack trace from the log: !ENTRY org.eclipse.core.jobs 4 2 2013-11-07 18:06:17.475 !MESSAGE An internal error occurred during: "Synchronizing Task List". !STACK 0 com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider at com.sun.jersey.spi.service.ServiceFinder.fail(ServiceFinder.java:602) at com.sun.jersey.spi.service.ServiceFinder.access$800(ServiceFinder.java:159) at com.sun.jersey.spi.service.ServiceFinder$LazyObjectIterator.hasNext(ServiceFinder.java:892) at com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.<init>(AbstractRuntimeDelegate.java:76) at com.sun.ws.rs.ext.RuntimeDelegateImpl.<init>(RuntimeDelegateImpl.java:56) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:65) at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:155) at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:105) at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91) at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:69) at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:80) at com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClient.<init>(JerseyJiraRestClient.java:64) at com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClientFactory.create(JerseyJiraRestClientFactory.java:39) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.<init>(JiraRestClientAdapter.java:159) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.createRestClient(JiraClient.java:179) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getRestClient(JiraClient.java:154) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getServerInfo(JiraClient.java:627) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClientCache.refreshServerInfo(JiraClientCache.java:321) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClientCache.refreshDetails(JiraClientCache.java:288) at com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.performQuery(JiraRepositoryConnector.java:125) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:311) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:268) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:201) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.updateQueries(SynchronizeRepositoriesJob.java:186) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.run(SynchronizeRepositoriesJob.java:142) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: java.lang.ClassCastException: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider at java.lang.Class.cast(Class.java:3084) at com.sun.jersey.spi.service.ServiceFinder$LazyObjectIterator.hasNext(ServiceFinder.java:851) ... 28 more

    Atlassian JIRA | 3 years ago | David Karr
    com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider
  2. 0

    I originally filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=421297 with Eclipse. They closed it, pointing out that the stack trace included "com.atlassian.jira.rest.client" and told me to file this with Atlassian. From the product list, I don't see anything closer than JIRA. I'm just repeating the same report here, with some additional information. I have a Kepler workspace that I've been using for a while. I've had the JIRA connector installed and running for a long time. Today was the first time I created some projects from a cloned git workspace. Sometime after the first project was created, I started to get error dialogs popping up every few minutes saying 'An internal error occurred during "Synchronizing Task List".' This continued to happen while I had those git projects in my workspace. After several hours of this, the error dialog popping up every synch interval, I then deleted all of the git projects. I don't know if that's exactly what's causing the conflict, but now there are no more error dialogs. I'm going to be checking out those projects again in the next few days. This is the stack trace from the log: !ENTRY org.eclipse.core.jobs 4 2 2013-11-07 18:06:17.475 !MESSAGE An internal error occurred during: "Synchronizing Task List". !STACK 0 com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider at com.sun.jersey.spi.service.ServiceFinder.fail(ServiceFinder.java:602) at com.sun.jersey.spi.service.ServiceFinder.access$800(ServiceFinder.java:159) at com.sun.jersey.spi.service.ServiceFinder$LazyObjectIterator.hasNext(ServiceFinder.java:892) at com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.<init>(AbstractRuntimeDelegate.java:76) at com.sun.ws.rs.ext.RuntimeDelegateImpl.<init>(RuntimeDelegateImpl.java:56) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:65) at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:155) at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:105) at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91) at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:69) at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:80) at com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClient.<init>(JerseyJiraRestClient.java:64) at com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClientFactory.create(JerseyJiraRestClientFactory.java:39) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.<init>(JiraRestClientAdapter.java:159) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.createRestClient(JiraClient.java:179) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getRestClient(JiraClient.java:154) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getServerInfo(JiraClient.java:627) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClientCache.refreshServerInfo(JiraClientCache.java:321) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClientCache.refreshDetails(JiraClientCache.java:288) at com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.performQuery(JiraRepositoryConnector.java:125) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:311) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:268) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:201) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.updateQueries(SynchronizeRepositoriesJob.java:186) at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.run(SynchronizeRepositoriesJob.java:142) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: java.lang.ClassCastException: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider at java.lang.Class.cast(Class.java:3084) at com.sun.jersey.spi.service.ServiceFinder$LazyObjectIterator.hasNext(ServiceFinder.java:851) ... 28 more

    Atlassian JIRA | 3 years ago | David Karr
    com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider
  3. 0

    OSGi Bundle with JAX-RS RESTful services couldn't start

    Stack Overflow | 4 years ago | Peter
    com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jira start up failed with custom plugin using rest api (jersey)

    Stack Overflow | 2 years ago | suneet.gupta
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activator' defined in URL [bundle://109.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider
  6. 0

    Jira startup failed with rest api java plugin - wrong dependencies? - Atlassian Answers

    atlassian.com | 12 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activator' defined in URL [bundle://118.0:0/META-INF/spring/atlassian-plugins-components.xml]: Invocation of init method failed; nested exception is com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.HeaderDelegateProvider: The class com.sun.jersey.core.impl.provider.header.LocaleProvider implementing provider interface com.sun.jersey.spi.HeaderDelegateProvider could not be instantiated: Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider

  1. filpgame 11 times, last 2 weeks ago
  2. kid 11 times, last 3 weeks ago
  3. iridic 3 times, last 1 month ago
  4. kid 53 times, last 2 months ago
  5. Steven 1 times, last 6 months ago
1 more registered users
18 unregistered visitors
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.ClassCastException

    Cannot cast com.sun.jersey.core.impl.provider.header.LocaleProvider to com.sun.jersey.spi.HeaderDelegateProvider

    at java.lang.Class.cast()
  2. Java RT
    Class.cast
    1. java.lang.Class.cast(Class.java:3084)
    1 frame
  3. jersey-core
    AbstractRuntimeDelegate.<init>
    1. com.sun.jersey.spi.service.ServiceFinder$LazyObjectIterator.hasNext(ServiceFinder.java:851)
    2. com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.<init>(AbstractRuntimeDelegate.java:76)
    2 frames
  4. jersey-client
    RuntimeDelegateImpl.<init>
    1. com.sun.ws.rs.ext.RuntimeDelegateImpl.<init>(RuntimeDelegateImpl.java:56)
    1 frame
  5. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    5. java.lang.Class.newInstance(Class.java:374)
    5 frames
  6. JavaEE 7
    UriBuilder.fromUri
    1. javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:65)
    2. javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:155)
    3. javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:105)
    4. javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)
    5. javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:69)
    6. javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:80)
    6 frames
  7. com.atlassian.jira
    JerseyJiraRestClientFactory.create
    1. com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClient.<init>(JerseyJiraRestClient.java:64)
    2. com.atlassian.jira.rest.client.internal.jersey.JerseyJiraRestClientFactory.create(JerseyJiraRestClientFactory.java:39)
    2 frames
  8. com.atlassian.connector
    JiraRepositoryConnector.performQuery
    1. com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.<init>(JiraRestClientAdapter.java:159)
    2. com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.createRestClient(JiraClient.java:179)
    3. com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getRestClient(JiraClient.java:154)
    4. com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getServerInfo(JiraClient.java:627)
    5. com.atlassian.connector.eclipse.internal.jira.core.service.JiraClientCache.refreshServerInfo(JiraClientCache.java:321)
    6. com.atlassian.connector.eclipse.internal.jira.core.service.JiraClientCache.refreshDetails(JiraClientCache.java:288)
    7. com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.performQuery(JiraRepositoryConnector.java:125)
    7 frames
  9. org.eclipse.mylyn
    SynchronizeRepositoriesJob.run
    1. org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:311)
    2. org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:268)
    3. org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:201)
    4. org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.updateQueries(SynchronizeRepositoriesJob.java:186)
    5. org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.run(SynchronizeRepositoriesJob.java:142)
    5 frames
  10. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    1 frame