java.lang.RuntimeException: Failed to read object from stream.

JFrog JIRA | Alessabdro Oliveira | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When trying to configure LDAP authentication, with a "??" in Manager DN I got an Internal Error. LDAP Setup User DN Pattern: sAMAccountName={0} Email Attribute: mail Search Filter: <empty> Search Base: <empty> Manager DN: CN=User LDAP,OU=Conta de Servi??o,OU=XxxxxxOU,DC=xxxxxx,DC=com,DC=br Manager Password: <password> Stack Trace 2011-08-01 08:28:15,775 [http-8081-2] [ERROR] (o.a.w.RequestCycle :1521) - Failed to read object from stream. java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.jaxb.JaxbHelper.read(JaxbHelper.java:113) [artifactory-config-2.3.4.jar:na] at org.artifactory.jaxb.JaxbHelper.readConfig(JaxbHelper.java:56) [artifactory-config-2.3.4.jar:na] at org.artifactory.descriptor.reader.CentralConfigReader.read(CentralConfigReader.java:60) [artifactory-config-2.3.4.jar:na] at org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:198) [artifactory-core-2.3.4.jar:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_25] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_25] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) [spring-aop-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) [spring-aop-3.0.5.RELEASE.jar:3.0.5.RELEASE] at $Proxy25.saveEditedDescriptorAndReload(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_25] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_25] at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416) [wicket-ioc-1.4.10.jar:1.4.10] at org.apache.wicket.proxy.$Proxy85.saveEditedDescriptorAndReload(Unknown Source) [na:1.4.10] at org.artifactory.webapp.wicket.page.config.security.LdapCreateUpdatePanel$1.onSubmit(LdapCreateUpdatePanel.java:205) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.common.wicket.component.links.TitledAjaxSubmitLink$1.onSubmit(TitledAjaxSubmitLink.java:60) [artifactory-web-common-2.3.4.jar:na] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:286) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) [wicket-1.4.10.jar:1.4.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:139) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:82) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:245) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:154) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:116) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:6.0.32] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.32] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [catalina.jar:6.0.32] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) [tomcat-coyote.jar:6.0.32] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [tomcat-coyote.jar:6.0.32] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [tomcat-coyote.jar:6.0.32] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_25] Caused by: javax.xml.bind.UnmarshalException: null at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:213) [jaxb-impl-2.2.1.1.jar:2.2.2] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184) [jaxb-impl-2.2.1.1.jar:2.2.2] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137) [na:1.6.0_25] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184) [na:1.6.0_25] at org.artifactory.jaxb.JaxbHelper.read(JaxbHelper.java:111) [artifactory-config-2.3.4.jar:na] ... 54 common frames omitted Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:405) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2792) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_25] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211) [jaxb-impl-2.2.1.1.jar:2.2.2] ... 58 common frames omitted

    JFrog JIRA | 6 years ago | Alessabdro Oliveira
    java.lang.RuntimeException: Failed to read object from stream.
  2. 0

    When trying to configure LDAP authentication, with a "ç" in Manager DN I got an Internal Error. LDAP Setup User DN Pattern: sAMAccountName={0} Email Attribute: mail Search Filter: <empty> Search Base: <empty> Manager DN: CN=User LDAP,OU=Conta de Serviço,OU=XxxxxxOU,DC=xxxxxx,DC=com,DC=br Manager Password: <password> Stack Trace 2011-08-01 08:28:15,775 [http-8081-2] [ERROR] (o.a.w.RequestCycle :1521) - Failed to read object from stream. java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.jaxb.JaxbHelper.read(JaxbHelper.java:113) [artifactory-config-2.3.4.jar:na] at org.artifactory.jaxb.JaxbHelper.readConfig(JaxbHelper.java:56) [artifactory-config-2.3.4.jar:na] at org.artifactory.descriptor.reader.CentralConfigReader.read(CentralConfigReader.java:60) [artifactory-config-2.3.4.jar:na] at org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:198) [artifactory-core-2.3.4.jar:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_25] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_25] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) [spring-aop-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) [spring-aop-3.0.5.RELEASE.jar:3.0.5.RELEASE] at $Proxy25.saveEditedDescriptorAndReload(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_25] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_25] at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416) [wicket-ioc-1.4.10.jar:1.4.10] at org.apache.wicket.proxy.$Proxy85.saveEditedDescriptorAndReload(Unknown Source) [na:1.4.10] at org.artifactory.webapp.wicket.page.config.security.LdapCreateUpdatePanel$1.onSubmit(LdapCreateUpdatePanel.java:205) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.common.wicket.component.links.TitledAjaxSubmitLink$1.onSubmit(TitledAjaxSubmitLink.java:60) [artifactory-web-common-2.3.4.jar:na] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:286) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) [wicket-1.4.10.jar:1.4.10] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) [wicket-1.4.10.jar:1.4.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:139) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:82) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:245) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:154) [artifactory-web-application-2.3.4.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:116) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66) [artifactory-web-application-2.3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:6.0.32] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:6.0.32] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.32] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [catalina.jar:6.0.32] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) [tomcat-coyote.jar:6.0.32] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [tomcat-coyote.jar:6.0.32] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [tomcat-coyote.jar:6.0.32] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_25] Caused by: javax.xml.bind.UnmarshalException: null at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:213) [jaxb-impl-2.2.1.1.jar:2.2.2] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184) [jaxb-impl-2.2.1.1.jar:2.2.2] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137) [na:1.6.0_25] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184) [na:1.6.0_25] at org.artifactory.jaxb.JaxbHelper.read(JaxbHelper.java:111) [artifactory-config-2.3.4.jar:na] ... 54 common frames omitted Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:405) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2792) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_25] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_25] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211) [jaxb-impl-2.2.1.1.jar:2.2.2] ... 58 common frames omitted

    JFrog JIRA | 6 years ago | Alessabdro Oliveira
    java.lang.RuntimeException: Failed to read object from stream.
  3. 0

    Call Jasper Report / Ireport From Java Application

    javatips.net | 10 months ago
    net.sf.jasperreports.engine.JRException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [XMLRPC-152] XmlRpcClientConfigImpl.setEncoding() does not affect response parser's encoding - ASF JIRA

    apache.org | 1 year ago
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
  6. 0

    When sending a XMLRPC request thru a XmlRpcClient object, calls to : XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setEncoding("ISO-8859-1"); XmlRpcClient client = new XmlRpcClient(); client.setConfig(config); will only set the request's encoding but not the response. Therefore, response's parser will use the default UTF-8 encoding which only compatible with the US-ASCII character set (first 128 chars). If the response is encoded using ISO-8859-1 (or other US-ASCII extensions) and contains special characters like the euro symbol (€), the following exception is thrown by the SAX parser (complete stack trace) and the response cannot be processed : com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:398) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2777) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:176) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145) at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)

    Apache's JIRA Issue Tracker | 9 years ago | Yann Cordier
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.

    6 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. com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException

      Invalid byte 2 of 3-byte UTF-8 sequence.

      at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte()
    2. Java RT
      SAXParserImpl$JAXPSAXParser.parse
      1. com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)[na:1.6.0_25]
      2. com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:405)[na:1.6.0_25]
      3. com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)[na:1.6.0_25]
      4. com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416)[na:1.6.0_25]
      5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2792)[na:1.6.0_25]
      6. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)[na:1.6.0_25]
      7. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)[na:1.6.0_25]
      8. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)[na:1.6.0_25]
      9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)[na:1.6.0_25]
      10. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)[na:1.6.0_25]
      11. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)[na:1.6.0_25]
      12. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)[na:1.6.0_25]
      13. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)[na:1.6.0_25]
      13 frames
    3. Old JAXB Runtime
      UnmarshallerImpl.unmarshal
      1. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)[jaxb-impl-2.2.1.1.jar:2.2.2]
      2. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)[jaxb-impl-2.2.1.1.jar:2.2.2]
      2 frames
    4. Java RT
      AbstractUnmarshallerImpl.unmarshal
      1. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)[na:1.6.0_25]
      2. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)[na:1.6.0_25]
      2 frames
    5. org.artifactory.jaxb
      JaxbHelper.readConfig
      1. org.artifactory.jaxb.JaxbHelper.read(JaxbHelper.java:111)[artifactory-config-2.3.4.jar:na]
      2. org.artifactory.jaxb.JaxbHelper.readConfig(JaxbHelper.java:56)[artifactory-config-2.3.4.jar:na]
      2 frames
    6. org.artifactory.descriptor
      CentralConfigReader.read
      1. org.artifactory.descriptor.reader.CentralConfigReader.read(CentralConfigReader.java:60)[artifactory-config-2.3.4.jar:na]
      1 frame
    7. org.artifactory.config
      CentralConfigServiceImpl.saveEditedDescriptorAndReload
      1. org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:198)[artifactory-core-2.3.4.jar:na]
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_25]
      3 frames
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)[spring-aop-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)[spring-aop-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      2 frames
    10. Unknown
      $Proxy25.saveEditedDescriptorAndReload
      1. $Proxy25.saveEditedDescriptorAndReload(Unknown Source)[na:na]
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_25]
      3 frames
    12. Wicket IoC common code
      $Proxy85.saveEditedDescriptorAndReload
      1. org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)[wicket-ioc-1.4.10.jar:1.4.10]
      2. org.apache.wicket.proxy.$Proxy85.saveEditedDescriptorAndReload(Unknown Source)[na:1.4.10]
      2 frames
    13. org.artifactory.webapp
      LdapCreateUpdatePanel$1.onSubmit
      1. org.artifactory.webapp.wicket.page.config.security.LdapCreateUpdatePanel$1.onSubmit(LdapCreateUpdatePanel.java:205)[artifactory-web-application-2.3.4.jar:na]
      1 frame
    14. org.artifactory.common
      TitledAjaxSubmitLink$1.onSubmit
      1. org.artifactory.common.wicket.component.links.TitledAjaxSubmitLink$1.onSubmit(TitledAjaxSubmitLink.java:60)[artifactory-web-common-2.3.4.jar:na]
      1 frame
    15. Wicket Core
      AbstractDefaultAjaxBehavior.onRequest
      1. org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143)[wicket-1.4.10.jar:1.4.10]
      2. org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)[wicket-1.4.10.jar:1.4.10]
      3. org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:286)[wicket-1.4.10.jar:1.4.10]
      3 frames
    16. org.apache.wicket
      BehaviorRequestTarget.processEvents
      1. org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)[wicket-1.4.10.jar:1.4.10]
      1 frame
    17. Wicket Request
      AbstractRequestCycleProcessor.processEvents
      1. org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)[wicket-1.4.10.jar:1.4.10]
      1 frame
    18. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)[wicket-1.4.10.jar:1.4.10]
      2. org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)[wicket-1.4.10.jar:1.4.10]
      3. org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)[wicket-1.4.10.jar:1.4.10]
      4. org.apache.wicket.RequestCycle.request(RequestCycle.java:545)[wicket-1.4.10.jar:1.4.10]
      5. org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)[wicket-1.4.10.jar:1.4.10]
      6. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)[wicket-1.4.10.jar:1.4.10]
      6 frames
    19. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:6.0.32]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:6.0.32]
      2 frames
    20. org.artifactory.webapp
      RepoFilter.doFilter
      1. org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:139)[artifactory-web-application-2.3.4.jar:na]
      2. org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:82)[artifactory-web-application-2.3.4.jar:na]
      2 frames
    21. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:6.0.32]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:6.0.32]
      2 frames
    22. org.artifactory.webapp
      AccessFilter.doFilter
      1. org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:245)[artifactory-web-application-2.3.4.jar:na]
      2. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:154)[artifactory-web-application-2.3.4.jar:na]
      3. org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:116)[artifactory-web-application-2.3.4.jar:na]
      3 frames
    23. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:6.0.32]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:6.0.32]
      2 frames
    24. org.artifactory.webapp
      RequestFilter.doFilter
      1. org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54)[artifactory-web-application-2.3.4.jar:na]
      1 frame
    25. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:6.0.32]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:6.0.32]
      2 frames
    26. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66)[artifactory-web-application-2.3.4.jar:na]
      1 frame
    27. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:6.0.32]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:6.0.32]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[catalina.jar:6.0.32]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[catalina.jar:6.0.32]
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)[catalina.jar:6.0.32]
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[catalina.jar:6.0.32]
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[catalina.jar:6.0.32]
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)[catalina.jar:6.0.32]
      8 frames
    28. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)[tomcat-coyote.jar:6.0.32]
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)[tomcat-coyote.jar:6.0.32]
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)[tomcat-coyote.jar:6.0.32]
      3 frames
    29. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)[na:1.6.0_25]
      1 frame