com.sun.jersey.api.client.UniformInterfaceException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Integration With Facebook failing in 11.1.1.8.0
    via by Nelash Jindal,
  • REST + Java + Status 500 Internal Error
    via Stack Overflow by twain249
    ,
  • REST Service Error
    via by Jerry Higgs,
  • Eagle Storm execution get 403 error
    via by G.C. Chen,
  • Issue in integrating with facebook
    via by Nelash Jindal,
  • I have a WS class using Jersey annotations. 2 different methods that are both bound to the same URL patter /filter/{channel_id}/ip One uses a GET, the other a POST. Regardless of which method I call, I get back a 405 response. Exception in thread "main" com.sun.jersey.api.client.UniformInterfaceException: GET http://localhost:8080/filter/1000/config/ returned a response status of 405 Method Not Allowed at com.sun.jersey.api.client.WebResource.handle(WebResource.java:676) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:503) I tried switching the POST to a PUT (as according to some information the POST is a hybrid of GET and PUT in terms of how jersey supports it). I have found examples from Jersey that shows that I should be able to do this. In fact, it's a pretty fundamental part of REST services. Any ideas here is code examples to show you what all is happening --- Example of the GET {code}@GET @Path("/{channelId}/ip/") @Produces(MediaType.APPLICATION_JSON) public List<IPBlackList> getAllForChannel( @HeaderParam("authToken") String authToken, @PathParam("channelId") Integer channelId){ ac.checkAccess(authToken,uriInfo.getPath()); return blackListService.getIPBlackListByChannel(channelId); } {code} ----- POST Example {code}@POST @Consumes(MediaType.APPLICATION_JSON) @Path("/{channelId}/ip/") public void saveIPBlackList(@HeaderParam("authToken") String authToken, @PathParam("channelId") Integer channelId, List<IPBlackList> ipBlackLists){ ac.checkAccess(authToken,uriInfo.getPath()); for (IPBlackList ip : ipBlackLists){ ip.setChannelId(channelId); } blackListService.saveIPBlackList(ipBlackLists); }{code}
    via by jesmith17,
  • java swingとtwitter4jについて
    via by 鈴木,
    • com.sun.jersey.api.client.UniformInterfaceException: GET http://localhost:7180/cs/ContentServer?pagename=CG/AdminUtility/PostSiteEnable&development=true&siteid=testsite returned a response status of 404 Not Found at com.sun.jersey.api.client.WebResource.handle(WebResource.java:676) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:503) at oracle.fatwire.widgets.integrations.SitesIntegrationManagerImpl.executePostSiteEnable(SitesIntegrationManagerImpl.java:264) at oracle.fatwire.widgets.integrations.SitesIntegrationManagerImpl.enable(SitesIntegrationManagerImpl.java:135) at com.fatwire.cos.core.jpa.schema.wem.WemSiteContextManager.initContext(WemSiteContextManager.java:70) at com.fatwire.cos.core.jpa.CoSJpaRuntime.validateSiteContext(CoSJpaRuntime.java:58) at com.fatwire.cos.inspector.validators.CacheValidator.validateInCacheServlet(CacheValidator.java:184) at com.fatwire.cos.inspector.validators.CacheValidator.isInvalidationsConfiguredCorrectly(CacheValidator.java:337) at com.fatwire.cos.inspector.validators.CacheConfigurationCheckerImpl.check(CacheConfigurationCheckerImpl.java:44) at com.fatwire.cos.core.cache.appcache.wem.CacheMethodsInterceptor.invoke(CacheMethodsInterceptor.java:41) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at com.fatwire.cos.core.cache.appcache.wem.WemAppCacheFacility$$EnhancerByGuice$$57f56bc0.get(<generated>) at com.fatwire.cos.core.cache.shared.SharedInCacheFacilityImpl.get(SharedInCacheFacilityImpl.java:44) at com.fatwire.cos.core.sso.SSOFacilityImpl.isValidSSOTicket(SSOFacilityImpl.java:198) at com.fatwire.cos.core.sso.SSOFacilityImpl$$EnhancerByGuice$$9d82b102.CGLIB$isValidSSOTicket$12(<generated>) at com.fatwire.cos.core.sso.SSOFacilityImpl$$EnhancerByGuice$$9d82b102$$FastClassByGuice$$55af5c70.invoke(<generated>) at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.fatwire.cos.core.di.DisabledStandaloneInterceptor.invoke(DisabledStandaloneInterceptor.java:27) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at com.fatwire.cos.core.sso.SSOFacilityImpl$$EnhancerByGuice$$9d82b102.isValidSSOTicket(<generated>) at com.fatwire.cos.core.sso.SSOContextFilter.doFilter(SSOContextFilter.java:50) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:701) at com.fatwire.cos.web.sso.SwitchedSSOFilter.doFilter(SwitchedSSOFilter.java:52) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.fatwire.cos.comments.service.filters.GeneralPreparationsFilter.doFilter(GeneralPreparationsFilter.java:80) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.fatwire.cos.comments.service.filters.PreviousVersionsSupportFilter.doFilter(PreviousVersionsSupportFilter.java:49) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.fatwire.cos.core.util.web.StartupGuardFilter.doFilter(StartupGuardFilter.java:42) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown UserUnknown User
    2 times, last one,
    qoomonqoomon
    1 times, last one,
    8 more bugmates