java.nio.charset.UnsupportedCharsetException: binary

Sonatype JIRA | Peter Lynch | 3 years ago
  1. 0

    Create a proxy repository called vaadin for http://maven.vaadin.com/vaadin-addons/ Request this artifact: curl -v -4 http://localhost:8081/nexus/content/repositories/vaadin/org/vaadin/addons/filteringtable/0.9.9.v7/filteringtable-0.9.9.v7.jar -o filteringtable.jar Nexus download fails with: {noformat} jvm 1 | 2014-06-03 11:14:46,942-0300 DEBUG [qtp311242817-98] admin org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: ignoreCookies jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.impl.execchain.MainClientExec - Executing request GET /vaadin-addons/org/vaadin/addons/filteringtable/0.9.9.v7/filteringtable-0.9.9.v7.jar HTTP/1.1 jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> GET /vaadin-addons/org/vaadin/addons/filteringtable/0.9.9.v7/filteringtable-0.9.9.v7.jar HTTP/1.1 jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> Accept: */* jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> Accept-Language: en-us jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> Accept-Encoding: gzip,deflate,identity jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> Cache-Control: no-cache jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> Host: maven.vaadin.com jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> Connection: Keep-Alive jvm 1 | 2014-06-03 11:14:46,943-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 >> User-Agent: Nexus/2.8.1-01 (PRO; Mac OS X; 10.9.3; x86_64; 1.8.0_05) apacheHttpClient4x/2.8.1-01 jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << HTTP/1.1 200 OK jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << x-amz-id-2: icUgxP9Gw06ebraQfhdA9iKi0DigrZ5mCSqyDEWGk2LkWbVtehhwiUleoaeNNnG+ jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << x-amz-request-id: 4CFA73A636470DD5 jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << Date: Tue, 03 Jun 2014 14:14:48 GMT jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << x-amz-meta-s3cmd-attrs: uid:1001/gname:nexus/uname:nexus/gid:1001/mode:33188/mtime:1400483476/atime:1400483476/ctime:1400483476 jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << Last-Modified: Mon, 19 May 2014 07:11:32 GMT jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << ETag: "dab3a3a285ecc0012136c623a46cde1c" jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << Accept-Ranges: bytes jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << Content-Type: application/zip; charset=binary jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << Content-Length: 414742 jvm 1 | 2014-06-03 11:14:47,002-0300 DEBUG [qtp311242817-98] admin org.apache.http.headers - http-outgoing-18 << Server: AmazonS3 jvm 1 | 2014-06-03 11:14:47,003-0300 DEBUG [qtp311242817-98] admin org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 30000 MILLISECONDS jvm 1 | 2014-06-03 11:14:47,067-0300 WARN [qtp311242817-98] admin org.sonatype.nexus.proxy.maven.maven2.M2Repository - Failed URL retrieve/cache: http://maven.vaadin.com/vaadin-addons/ jvm 1 | java.nio.charset.UnsupportedCharsetException: binary jvm 1 | at java.nio.charset.Charset.forName(Charset.java:531) ~[na:1.8.0_05] jvm 1 | at org.apache.http.entity.ContentType.<init>(ContentType.java:111) ~[httpcore-4.3.2.jar:4.3.2] jvm 1 | at org.apache.http.entity.ContentType.create(ContentType.java:210) ~[httpcore-4.3.2.jar:4.3.2] jvm 1 | at org.apache.http.entity.ContentType.get(ContentType.java:258) ~[httpcore-4.3.2.jar:4.3.2] jvm 1 | at org.apache.http.entity.ContentType.getOrDefault(ContentType.java:277) ~[httpcore-4.3.2.jar:4.3.2] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:223) ~[nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveRemoteItem(AbstractProxyRepository.java:1361) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:1103) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:986) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:395) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.maven.maven2.M2Repository.doRetrieveItem(M2Repository.java:395) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:757) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:589) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:155) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.content.internal.ContentServlet.doGet(ContentServlet.java:387) [nexus-content-plugin-2.8.1-01/:na] jvm 1 | at org.sonatype.nexus.content.internal.ContentServlet.service(ContentServlet.java:353) [nexus-content-plugin-2.8.1-01/:na] jvm 1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.v201112011016.jar:na] jvm 1 | at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:288) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:278) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.sonatype.nexus.web.internal.SecurityFilter.executeChain(SecurityFilter.java:73) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) [shiro-core-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web-1.2.2.jar:1.2.2] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilter(LicensingRedirectFilter.java:135) [nexus-licensing-plugin-2.8.1-01/:na] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.yammer.metrics.web.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:76) [metrics-web-2.2.0.jar:na] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.CommonHeadersFilter.doFilter(CommonHeadersFilter.java:69) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.ErrorPageFilter.doFilter(ErrorPageFilter.java:71) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.BaseUrlHolderFilter.doFilter(BaseUrlHolderFilter.java:70) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterPipeline.dispatch(NexusGuiceFilter.java:56) [nexus-core-2.8.1-01.jar:2.8.1-01] jvm 1 | at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129) [guice-servlet-3.1.10.jar:3.1.10] jvm 1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) [jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) [jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) [jetty-security-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) [jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at com.yammer.metrics.jetty.InstrumentedHandler.handle(InstrumentedHandler.java:200) [metrics-jetty-2.2.0.jar:na] jvm 1 | at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.Server.handle(Server.java:370) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [jetty-http-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [jetty-http-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [jetty-io-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [jetty-io-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_05] {noformat} Turning Content validation off doesn't help because this is processing is much earlier.

    Sonatype JIRA | 3 years ago | Peter Lynch
    java.nio.charset.UnsupportedCharsetException: binary
  2. 0

    Issue downloading an image file using RestTemplate

    Stack Overflow | 3 years ago | user2997592
    java.nio.charset.UnsupportedCharsetException: binary
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    oknet chokes on binary charsets

    GitHub | 10 months ago | collinjackson
    java.nio.charset.UnsupportedCharsetException: binary
  5. 0

    DataUtil doesn't check if <meta charset> is a supported charset before continuing

    GitHub | 2 years ago | BalusC
    java.nio.charset.UnsupportedCharsetException: iso-8

    1 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.nio.charset.UnsupportedCharsetException

      binary

      at java.nio.charset.Charset.forName()
    2. Java RT
      Charset.forName
      1. java.nio.charset.Charset.forName(Charset.java:531)[na:1.8.0_05]
      1 frame
    3. Apache Http
      ContentType.getOrDefault
      1. org.apache.http.entity.ContentType.<init>(ContentType.java:111)[httpcore-4.3.2.jar:4.3.2]
      2. org.apache.http.entity.ContentType.create(ContentType.java:210)[httpcore-4.3.2.jar:4.3.2]
      3. org.apache.http.entity.ContentType.get(ContentType.java:258)[httpcore-4.3.2.jar:4.3.2]
      4. org.apache.http.entity.ContentType.getOrDefault(ContentType.java:277)[httpcore-4.3.2.jar:4.3.2]
      4 frames
    4. ${project.groupId}:${project.artifactId}
      DefaultRepositoryRouter.retrieveItem
      1. org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:223)[nexus-core-2.8.1-01.jar:2.8.1-01]
      2. org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveRemoteItem(AbstractProxyRepository.java:1361)[nexus-core-2.8.1-01.jar:2.8.1-01]
      3. org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem0(AbstractProxyRepository.java:1103)[nexus-core-2.8.1-01.jar:2.8.1-01]
      4. org.sonatype.nexus.proxy.repository.AbstractProxyRepository.doRetrieveItem(AbstractProxyRepository.java:986)[nexus-core-2.8.1-01.jar:2.8.1-01]
      5. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:395)[nexus-core-2.8.1-01.jar:2.8.1-01]
      6. org.sonatype.nexus.proxy.maven.maven2.M2Repository.doRetrieveItem(M2Repository.java:395)[nexus-core-2.8.1-01.jar:2.8.1-01]
      7. org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:757)[nexus-core-2.8.1-01.jar:2.8.1-01]
      8. org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:589)[nexus-core-2.8.1-01.jar:2.8.1-01]
      9. org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:155)[nexus-core-2.8.1-01.jar:2.8.1-01]
      9 frames
    5. org.sonatype.nexus
      ContentServlet.service
      1. org.sonatype.nexus.content.internal.ContentServlet.doGet(ContentServlet.java:387)[nexus-content-plugin-2.8.1-01/:na]
      2. org.sonatype.nexus.content.internal.ContentServlet.service(ContentServlet.java:353)[nexus-content-plugin-2.8.1-01/:na]
      2 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:848)[javax.servlet-3.0.0.v201112011016.jar:na]
      1 frame
    7. Guice - Servlet
      FilterChainInvocation.doFilter
      1. com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:288)[guice-servlet-3.1.10.jar:3.1.10]
      2. com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:278)[guice-servlet-3.1.10.jar:3.1.10]
      3. com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)[guice-servlet-3.1.10.jar:3.1.10]
      4. com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)[guice-servlet-3.1.10.jar:3.1.10]
      5. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)[guice-servlet-3.1.10.jar:3.1.10]
      5 frames
    8. Shiro
      AbstractShiroFilter.executeChain
      1. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)[shiro-web-1.2.2.jar:1.2.2]
      2. org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.2.jar:1.2.2]
      3. org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.2.jar:1.2.2]
      4. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2]
      5. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.2.jar:1.2.2]
      6. org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.2.jar:1.2.2]
      7. org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.2.jar:1.2.2]
      8. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2]
      9. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.2.jar:1.2.2]
      10. org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.2.jar:1.2.2]
      11. org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.2.jar:1.2.2]
      12. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2]
      13. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.2.jar:1.2.2]
      14. org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)[shiro-web-1.2.2.jar:1.2.2]
      14 frames
    9. ${project.groupId}:${project.artifactId}
      SecurityFilter.executeChain
      1. org.sonatype.nexus.web.internal.SecurityFilter.executeChain(SecurityFilter.java:73)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    10. Shiro
      OncePerRequestFilter.doFilter
      1. org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)[shiro-web-1.2.2.jar:1.2.2]
      2. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.2.jar:1.2.2]
      3. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.2.jar:1.2.2]
      4. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)[shiro-core-1.2.2.jar:1.2.2]
      5. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)[shiro-web-1.2.2.jar:1.2.2]
      6. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2]
      6 frames
    11. Guice - Servlet
      ManagedFilterPipeline.dispatch
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10]
      2. com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10]
      2 frames
    12. ${project.groupId}:${project.artifactId}
      NexusGuiceFilter$MultiFilterChain.doFilter
      1. org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    13. Guice - Servlet
      ManagedFilterPipeline.dispatch
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10]
      2. com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10]
      2 frames
    14. ${project.groupId}:${project.artifactId}
      NexusGuiceFilter$MultiFilterChain.doFilter
      1. org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    15. Guice - Servlet
      ManagedFilterPipeline.dispatch
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10]
      2. com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10]
      2 frames
    16. ${project.groupId}:${project.artifactId}
      NexusGuiceFilter$MultiFilterChain.doFilter
      1. org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    17. Guice - Servlet
      FilterChainInvocation.doFilter
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10]
      1 frame
    18. com.sonatype.nexus
      LicensingRedirectFilter.doFilter
      1. com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilter(LicensingRedirectFilter.java:135)[nexus-licensing-plugin-2.8.1-01/:na]
      1 frame
    19. Guice - Servlet
      ManagedFilterPipeline.dispatch
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10]
      2. com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10]
      2 frames
    20. ${project.groupId}:${project.artifactId}
      NexusGuiceFilter$MultiFilterChain.doFilter
      1. org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    21. Guice - Servlet
      FilterChainInvocation.doFilter
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10]
      1 frame
    22. com.yammer.metrics
      WebappMetricsFilter.doFilter
      1. com.yammer.metrics.web.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:76)[metrics-web-2.2.0.jar:na]
      1 frame
    23. Guice - Servlet
      FilterChainInvocation.doFilter
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10]
      1 frame
    24. ${project.groupId}:${project.artifactId}
      CommonHeadersFilter.doFilter
      1. org.sonatype.nexus.web.internal.CommonHeadersFilter.doFilter(CommonHeadersFilter.java:69)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    25. Guice - Servlet
      FilterChainInvocation.doFilter
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10]
      1 frame
    26. ${project.groupId}:${project.artifactId}
      ErrorPageFilter.doFilter
      1. org.sonatype.nexus.web.internal.ErrorPageFilter.doFilter(ErrorPageFilter.java:71)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    27. Guice - Servlet
      FilterChainInvocation.doFilter
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10]
      1 frame
    28. ${project.groupId}:${project.artifactId}
      BaseUrlHolderFilter.doFilter
      1. org.sonatype.nexus.web.internal.BaseUrlHolderFilter.doFilter(BaseUrlHolderFilter.java:70)[nexus-core-2.8.1-01.jar:2.8.1-01]
      1 frame
    29. Guice - Servlet
      ManagedFilterPipeline.dispatch
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10]
      2. com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10]
      2 frames
    30. ${project.groupId}:${project.artifactId}
      NexusGuiceFilter$MultiFilterPipeline.dispatch
      1. org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.8.1-01.jar:2.8.1-01]
      2. org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterPipeline.dispatch(NexusGuiceFilter.java:56)[nexus-core-2.8.1-01.jar:2.8.1-01]
      2 frames
    31. Guice - Servlet
      GuiceFilter.doFilter
      1. com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132)[guice-servlet-3.1.10.jar:3.1.10]
      2. com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129)[guice-servlet-3.1.10.jar:3.1.10]
      3. com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206)[guice-servlet-3.1.10.jar:3.1.10]
      4. com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129)[guice-servlet-3.1.10.jar:3.1.10]
      4 frames
    32. Jetty
      HandlerWrapper.handle
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)[jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520]
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)[jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520]
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[jetty-security-8.1.11.v20130520.jar:8.1.11.v20130520]
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)[jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520]
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      11. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      11 frames
    33. Metrics Jetty Support
      InstrumentedHandler.handle
      1. com.yammer.metrics.jetty.InstrumentedHandler.handle(InstrumentedHandler.java:200)[metrics-jetty-2.2.0.jar:na]
      1 frame
    34. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      2. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      3. org.eclipse.jetty.server.Server.handle(Server.java:370)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      4. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      5. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      6. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      7. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[jetty-http-8.1.11.v20130520.jar:8.1.11.v20130520]
      8. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[jetty-http-8.1.11.v20130520.jar:8.1.11.v20130520]
      9. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
      9 frames
    35. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)[jetty-io-8.1.11.v20130520.jar:8.1.11.v20130520]
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[jetty-io-8.1.11.v20130520.jar:8.1.11.v20130520]
      2 frames
    36. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520]
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520]
      2 frames
    37. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_05]
      1 frame