java.lang.IllegalArgumentException: Invalid Unicode sequence: illegal character

Java.net JIRA | Keith Wong | 5 years ago
  1. 0

    The key in {{javax/faces/Messages_zh_TW.properties}} contains invalid unicode sequence: bq. javax.faces.validator.LengthValidator.MINIMUM=\{1\}\u6aa2 \u9a57 \u932f \u8aa4 \uff1a \u9577 \u5ea6 \u6bd4 \u5141 \u8a31 \u7684 \u6700 \u5c0f \u9650 \u5ea6 \u662f *\u4e8* ''\{0\}'' When accessed with the locale zh-TW, the following exception occurred: {noformat} java.lang.IllegalArgumentException: Invalid Unicode sequence: illegal character at java.util.Properties.load(Properties.java:344) at java.util.Properties.load(Properties.java:280) at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:50) at java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:494) at java.util.ResourceBundle.getBundle(ResourceBundle.java:159) at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:179) at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:136) at com.sun.faces.util.MessageUtils.getExceptionMessage(MessageUtils.java:366) at com.sun.faces.facelets.tag.jsf.ComponentSupport.addFormOmittedMessage(ComponentSupport.java:471) at com.sun.faces.facelets.tag.jsf.ComponentSupport.addComponent(ComponentSupport.java:551) at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.addComponentToView(ComponentTagHandlerDelegateImpl.java:286) at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:200) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:103) at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:178) at com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:395) at com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:366) at com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:108) at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:164) at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93) at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86) at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308) at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367) at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346) at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199) at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155) at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93) at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86) at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152) at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:769) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563) {noformat} From the same key in Message_zh_CN, the corrupted character could be *\u4e8e*, i.e. 于. Translated to zh-TW, the character is *\u65bc*, i.e. 於. However, the translation, as well as {{javax.faces.validator.LengthValidator.MAXIMUM}}, is not valid Chinese: {quote} javax.faces.validator.LengthValidator.MAXIMUM=\{1\}檢 驗 錯 誤 : 長 度 比 允 許 的 最 多 偉 大 ''\{0\}'' javax.faces.validator.LengthValidator.MINIMUM=\{1\}檢 驗 錯 誤 : 長 度 比 允 許 的 最 小 限 度 是 於 ''\{0\}'' {quote} According to similar translation pattern of {{javax.faces.validator.LongRangeValidator.MAXIMUM}}, it is suggested the following translations: {quote} javax.faces.validator.LengthValidator.MAXIMUM=\{1\}:驗證錯誤:長度大於允許的最大值 ''\{0\}'' javax.faces.validator.LengthValidator.MINIMUM=\{1\}:驗證錯誤:長度小於允許的最小值 ''\{0\}'' {quote} The encoded version will be: {quote} javax.faces.validator.LengthValidator.MAXIMUM=\{1\}\uff1a\u9a57\u8b49\u932f\u8aa4\uff1a\u9577\u5ea6\u5927\u65bc\u5141\u8a31\u7684\u6700\u5927\u503c ''\{0\}'' javax.faces.validator.LengthValidator.MINIMUM=\{1\}\uff1a\u9a57\u8b49\u932f\u8aa4\uff1a\u9577\u5ea6\u5c0f\u65bc\u5141\u8a31\u7684\u6700\u5c0f\u503c ''\{0\}'' {quote}

    Java.net JIRA | 5 years ago | Keith Wong
    java.lang.IllegalArgumentException: Invalid Unicode sequence: illegal character
  2. 0

    IBM Servlet error launching Sametime, 'Unable to get configuration object: Malformed \uxxxx encoding' - United States

    ibm.com | 3 months ago
    java.lang.IllegalArgumentException: Invalid Unicode sequence: illegal character
  3. 0

    IBM IV21117: ILLEGALARGUMENTEXCEPTION WHEN DRIVERMANAGER LOAD MANIFEST - United States

    ibm.com | 4 months ago
    java.lang.ExceptionInInitializerError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exceptions on android MJPEG streaming application

    Stack Overflow | 8 months ago | wojtek
    java.lang.IllegalArgumentException: Invalid Unicode sequence: illegal character
  6. 0

    GitHub - mdqyy/pgmlink: tracking by assignment employing probabilistic graphical models

    github.com | 4 months ago
    java.lang.IllegalArgumentException: Invalid Unicode sequence: illegal character

    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.IllegalArgumentException

      Invalid Unicode sequence: illegal character

      at java.util.Properties.load()
    2. Java RT
      ResourceBundle.getBundle
      1. java.util.Properties.load(Properties.java:344)
      2. java.util.Properties.load(Properties.java:280)
      3. java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:50)
      4. java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:494)
      5. java.util.ResourceBundle.getBundle(ResourceBundle.java:159)
      5 frames
    3. JSF
      ComponentTagHandlerDelegateImpl.apply
      1. com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:179)
      2. com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:136)
      3. com.sun.faces.util.MessageUtils.getExceptionMessage(MessageUtils.java:366)
      4. com.sun.faces.facelets.tag.jsf.ComponentSupport.addFormOmittedMessage(ComponentSupport.java:471)
      5. com.sun.faces.facelets.tag.jsf.ComponentSupport.addComponent(ComponentSupport.java:551)
      6. com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.addComponentToView(ComponentTagHandlerDelegateImpl.java:286)
      7. com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:200)
      7 frames
    4. JavaEE 7
      DelegatingMetaTagHandler.applyNextHandler
      1. javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      2. javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      3. javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      3 frames
    5. JSF
      ComponentTagHandlerDelegateImpl.apply
      1. com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
      1 frame
    6. JavaEE 7
      CompositeFaceletHandler.apply
      1. javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      2. javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      2 frames
    7. JSF
      InsertHandler.apply
      1. com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:103)
      2. com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:178)
      3. com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:395)
      4. com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:366)
      5. com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:108)
      5 frames
    8. JavaEE 7
      DelegatingMetaTagHandler.applyNextHandler
      1. javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      1 frame
    9. JSF
      ComponentTagHandlerDelegateImpl.apply
      1. com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
      1 frame
    10. JavaEE 7
      DelegatingMetaTagHandler.applyNextHandler
      1. javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      2. javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      2 frames
    11. JSF
      ComponentTagHandlerDelegateImpl.apply
      1. com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
      1 frame
    12. JavaEE 7
      CompositeFaceletHandler.apply
      1. javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      2. javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      2 frames
    13. JSF
      ViewHandler.apply
      1. com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:164)
      1 frame
    14. JavaEE 7
      CompositeFaceletHandler.apply
      1. javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      1 frame
    15. JSF
      NamespaceHandler.apply
      1. com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
      1 frame
    16. JavaEE 7
      CompositeFaceletHandler.apply
      1. javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
      1 frame
    17. JSF
      LifecycleImpl.render
      1. com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
      2. com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
      3. com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
      4. com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
      5. com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
      6. com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
      7. com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
      8. com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
      9. com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
      10. com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:769)
      11. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
      12. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      13. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      13 frames
    18. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      1 frame
    19. WebSphere
      WSWebContainer.handleRequest
      1. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
      2. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
      3. com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
      4. com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
      5. com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
      6. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
      7. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
      8. com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
      9. com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
      10. com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
      11. com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
      12. com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
      12 frames
    20. com.ibm.ws
      WCChannelLink.ready
      1. com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
      1 frame
    21. WebSphere
      HttpICLReadCallback.complete
      1. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
      2. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
      3. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
      4. com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
      4 frames
    22. com.ibm.ws
      SSLReadServiceContext$SSLReadCompletedCallback.complete
      1. com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
      1 frame
    23. WebSphere
      AioReadCompletionListener.futureCompleted
      1. com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      1 frame
    24. com.ibm.io
      AsyncChannelFuture$1.run
      1. com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      2. com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
      2 frames
    25. com.ibm.ws
      ThreadPool$Worker.run
      1. com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)
      1 frame