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 91538 - I18N: fail to create JDBC Connection Pool with default value of "Transaction Isolation"
Summary: I18N: fail to create JDBC Connection Pool with default value of "Transaction ...
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-12-25 02:26 UTC by Masaki Katakai
Modified: 2007-05-25 17:41 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2006-12-25 02:26:46 UTC
IDE: 5.5 ml GA (200612070100)
Locale: all (ja,zh_CN,pt_BR)
Platform: all

Creating a JDBC Connection Pool fails on 5.5 ml version when
"Transaction Isolation" is set to default.

1. download 5.5 ml
2. start IDE in ja locale, it starts with Japanese UIs
3. Register Sun Appserver 9
4. Create an enterprise application project
5. Create Sun Resource -> JDBC Connection Pool with default value

It fails when we use IDE 5.5 ml version, English version is OK.
I got the following error on console, not in log file.

	Unable to saveConnPoolDatatoXml

It seems that ResourceUtils.java under
serverplugins/sun/appsrv/src/org/netbeans/modules/j2ee/sun/ide/sunresources/beans
expects the localized string for "JDBC Driver Default" for comparison,
which is defined in

serverplugins/sun/appsrv/src/org/netbeans/modules/j2ee/sun/ide/editors/Bundle.properties:

	LBL_driver_default=JDBC Driver Default

But the actual values in pulldown menu are all English,
"read-uncommitted", "read-committed", "repeatable-read","serializable"
and "JDBC Driver Default". In the default case, the value
should be set to null, but it fails because it compares
Japanese and English.

serverplugins/sun/appsrv/src/org/netbeans/modules/j2ee/sun/ide/sunresources/beans/ResourceUtils.java:

 else if (key.equals(__TransactionIsolationLevel)){
  if (value.equals(NbBundle.getMessage(IsolationLevelEditor.class,
"LBL_driver_default"))){  //NOI18N
   value = null;
  }
 connPool.setTransactionIsolationLevel(value);

Workaround:
- Do not use the default value  "JDBC Driver Default" on wizard,
   select another one
- Create JDBC Connection Pool on appserver adminconsole

Pulldown menu should have localized string on the wizard, but
I'm not sure if it is easy or not.
Comment 1 Ken Frank 2007-01-17 03:20:16 UTC
Can this be fixed for 551 ?  Its a problem especially since it causes
exception and loss of functionality just because user uses localized bits.

ken.frank@sun.com
Comment 2 Nitya Doraisamy 2007-03-14 21:20:35 UTC
Fixed the error in creating the resource file caused by the mismatched comparison.
The jdbc connection pool resources are created correctly now.

Changing the value in the dropdown list to be localized is a bigger issue and
may not an easy fix with the current design. Filed issue 97905 for this.
Comment 3 kaa 2007-05-25 17:41:24 UTC
verified: Japan locale, using a pseudo localized build 0516