java.lang.IllegalArgumentException: Malformed pattern "'$' \#.\#\#0"

openbravopos | cemolina | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Eliminar los centavos.

    openbravopos | 8 years ago | cemolina
    java.lang.IllegalArgumentException: Malformed pattern "'$' \#.\#\#0"
  2. 0

    Loading Openbravo on Netbeans 6.1 for editing

    openbravopos | 8 years ago | barassah
    java.lang.IllegalArgumentException: Multiple decimal separators in pattern "Kshs. \#0.00"
  3. 0

    App was force close because Decimal Formater

    Stack Overflow | 1 year ago | Archanister
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.example/com.app.example.menu}: java.lang.IllegalArgumentException: ###.###.###
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Malformed pattern "'$' \#.\#\#0"

    at java.text.DecimalFormat.applyPattern()
  2. Java RT
    DecimalFormat.<init>
    1. java.text.DecimalFormat.applyPattern(DecimalFormat.java:2561)
    2. java.text.DecimalFormat.<init>(DecimalFormat.java:414)
    2 frames
  3. com.openbravo.format
    Formats.setCurrencyPattern
    1. com.openbravo.format.Formats.setCurrencyPattern(Unknown Source)
    1 frame
  4. com.openbravo.pos
    StartPOS$1.run
    1. com.openbravo.pos.forms.StartPOS$1.run(Unknown Source)
    1 frame
  5. Java RT
    EventDispatchThread.run
    1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    2. java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    3. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    4. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    6. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    7. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    7 frames