This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166624 - IllegalArgumentException: Unmatched braces in the pattern.
Summary: IllegalArgumentException: Unmatched braces in the pattern.
Status: RESOLVED FIXED
Alias: None
Product: nblocalization
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: jfelfouly
URL: http://statistics.netbeans.org/except...
Keywords:
: 166551 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-05 18:14 UTC by neuros_nid
Modified: 2009-06-09 17:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 152277


Attachments
stacktrace (3.29 KB, text/plain)
2009-06-05 18:15 UTC, neuros_nid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neuros_nid 2009-06-05 18:14:50 UTC
Build: NetBeans IDE 6.7 RC1 (Build 200905312038)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows Vista, 6.0, x86

User Comments:
neuros_nid: See issue 166551 :
In Services->BDD
- "execute command" on a BDD
- "view data" on a table
crash if a SQL Command window is already open.

Steps to reproduce :
- connect to MySQL
- expand Tables node under MySQL database
- click "View data..." on a table (it opens a Command SQL window)
- click "View data..." on another table : instead of opening a new SQL Command window, it displays the error message 

It crashes independantly of the table, as well on MySQL tables than on SQL Server tables (tested with Microsoft JDBC SQLServer drivers 1.1, 1.2, 2.0)

The fact of cloning the SQL Command window opens a new window into which no SQL request can be executed.



Stacktrace: 
java.lang.IllegalArgumentException: Unmatched braces in the pattern.
        at java.text.MessageFormat.applyPattern(MessageFormat.java:0)
        at java.text.MessageFormat.<init>(MessageFormat.java:0)
        at java.text.MessageFormat.format(MessageFormat.java:0)
        at org.openide.filesystems.FSException.getLocalizedMessage(FSException.java:78)
        at org.openide.filesystems.FSException.io(FSException.java:118)
        at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1077)
Comment 1 neuros_nid 2009-06-05 18:15:02 UTC
Created attachment 83247 [details]
stacktrace
Comment 2 Jiri Skrivanek 2009-06-08 16:53:47 UTC
Seems to be a problem in translated bundle.properties. Could you look at
<NB_INSTALL>/platform10/core/locale/org-openide-filesystems_fr.jar (or something like that)? Then read what is in
org/openide/filesystems/Bundle_fr.properties with key EXC_DataAlreadyExist. In English it is 

# {0} = name of file to create
# {1} = filesystem
# {2} = full system name of the file
EXC_DataAlreadyExist=File {0} already exists in filesystem {1} ({2}).
Comment 3 neuros_nid 2009-06-08 17:01:06 UTC
I've got that :

# {0} = name of file to create
# {1} = filesystem
# {2} = full system name of the file
EXC_DataAlreadyExist=Le fichier \{0\ existe d\u00e9j\u00e0 dans le syst\u00e8me de fichiers {1} ({2}).

With effectively a strange bracket...

Can just a translation problem be the cause of everything?

Comment 4 Jiri Skrivanek 2009-06-08 17:14:42 UTC
Yes. Did you install NetBeans from official installers or download French translation from somewhere else?
Comment 5 neuros_nid 2009-06-08 17:15:01 UTC
Great!

Changing the locale to 'en' solves the problem!
Comment 6 neuros_nid 2009-06-08 17:24:23 UTC
Yes, the buggy translation comes with the official installer.

Thank you guys, you saved the french Netbeans DB users!
Should this damned #166549 issue be solved, and the french NetBeans SQLServer users would be saved!
Comment 7 Jiri Skrivanek 2009-06-09 07:24:16 UTC
*** Issue 166551 has been marked as a duplicate of this issue. ***
Comment 8 jfelfouly 2009-06-09 11:06:46 UTC
I'll fix it through CTI before FCS.
Comment 9 jfelfouly 2009-06-09 17:08:18 UTC
Fixed (in CTI).