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 126403 - I18N - there is an err message not from pseudo localized bundle file
Summary: I18N - there is an err message not from pseudo localized bundle file
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords: I18N
: 123591 125946 128726 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-31 15:41 UTC by kaa
Modified: 2013-08-22 00:34 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (16.97 KB, image/jpeg)
2008-01-31 15:41 UTC, kaa
Details
image1 (44.59 KB, image/jpeg)
2008-02-06 17:48 UTC, kaa
Details
image2 (54.40 KB, image/jpeg)
2008-02-06 17:48 UTC, kaa
Details
bundle file (42.07 KB, text/plain)
2008-02-29 07:48 UTC, Tomas Mysik
Details
there is another message (70.80 KB, image/jpeg)
2008-03-25 23:50 UTC, kaa
Details
message 1 (33.44 KB, image/jpeg)
2008-08-15 18:29 UTC, kaa
Details
message 2 (41.55 KB, image/jpeg)
2008-08-15 18:30 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2008-01-31 15:41:31 UTC
Make the following mistake in code:
1. Create WebApp
2. Drop from the palette Get Bean Property on jsp page
3. Remove one quote symbol at the end of value (see image).

I'm running in the Japan locale, using a pseudo localized Netbeans.
There is an err message not from pseudo localized bundle file.
Comment 1 kaa 2008-01-31 15:41:52 UTC
Created attachment 55846 [details]
image
Comment 2 Petr Jiricka 2008-02-05 17:01:24 UTC
When you run the application, does the server show a localized error message, or is it still English? Thanks.
Comment 3 Petr Jiricka 2008-02-05 17:03:37 UTC
Isn't this a duplicate of 125946 ?

Comment 4 kaa 2008-02-06 12:54:51 UTC
I think this issue is not a duplicate of the 125946.
The reason is in the different err messages shown in red. All of them are coming not from pseudo localized bundle file.

App was built and deployed ok.
Running in browser with the following error:

HTTP Status 500 -
type Exception report

message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception
org.apache.jasper.JasperException: /index.jsp(17,67) PWC6214: attribute for " is not properly terminated
Comment 5 Petr Jiricka 2008-02-06 14:55:31 UTC
This message is when you run it on the *localized* version of GlassFish? So is this a L10N bug in GlassFish? The message
from the server should be in Japanese, right?
Comment 6 kaa 2008-02-06 15:48:34 UTC
I think the message shown in editor came from jsp parser.
It was shown without any deployment or running the app.
Comment 7 Ken Frank 2008-02-06 16:24:12 UTC
as to localized gf, just an fyi - it was only just released 2 days ago and won't be in
product until ml builds start in a few weeks.  let me know if ptr to it is needed.

ken.frank@sun.com
Comment 8 kaa 2008-02-06 17:48:02 UTC
another two messages and one tooltip:

Steps:
1. Create Web Application
2. Open index.jsp in the editor
3.1 Replace encoding with the following value ${aaa}. See jsp_utf8.JPG
3.1 Type incorrect value for pageEncoding without quotes. See jsp_utf8_1.JPG

There are messages and a tooltip not from pseudo localized bundle file.
I'm running in the Japan locale, using a pseudo localized Netbeans.
Comment 9 kaa 2008-02-06 17:48:32 UTC
Created attachment 56187 [details]
image1
Comment 10 kaa 2008-02-06 17:48:48 UTC
Created attachment 56188 [details]
image2
Comment 11 Petr Pisl 2008-02-06 18:13:12 UTC
The message on the image 1 is coming from integrated Glassfish jsp parser in NetBeans. The correct fix of this is
integrating the latest ML version of the Glassfish jsp parser. There is also possibility to create just a "hotfix".
Take the appropriate ML bundles file from Glassfish and past them to the current integration. It can work.

I think the message on the image 2 is coming directly from NB jsp editor from lexer. It should be fixed there. It should
be fixed by Marek.  
Comment 12 Ken Frank 2008-02-06 18:22:28 UTC
ml gf is at
https://glassfish.dev.java.net/downloads/v2ur1-b09d.html

but due to the dload problems, not accurate yet; that webpage will update
when its ok.

does it mean that if user uses the ml gf, that the msgs will show per locale
or is it that we need to take the applicable gf ml jars and integrate into
nb code or product ?

if its just that user needs to use ml gf, then that part of the issue
can be skipped, since 6.1 will have the ml gf v2u1, which was not ready
in time for 6.0.1.

ken.frank@sun.com
Comment 13 Petr Jiricka 2008-02-06 20:15:17 UTC
BTW, did this work in previous versions of NetBeans? Is this a regression? Thanks.
Comment 14 Petr Pisl 2008-02-07 10:14:33 UTC
to kfrank: We have to integrate the new jars/files to the NetBeans code to fix this issue. 

to pjiricka: This is not regression and it works never.
Comment 15 Petr Jiricka 2008-02-07 13:49:27 UTC
Since this never worked and we had no reports of this bug from real users, I am changing the priority to P3. Also, a
possible workaround should be to run the application in a localized version of GlassFish - the localized text of the
error will be printed in the browser, so the user can find out what's wrong with the page this way.

I agree it should be fixed for NB 6.1 the way Petr Pisl suggests.
Comment 16 Tomas Mysik 2008-02-29 07:23:05 UTC
*** Issue 125946 has been marked as a duplicate of this issue. ***
Comment 17 Tomas Mysik 2008-02-29 07:24:55 UTC
*** Issue 128726 has been marked as a duplicate of this issue. ***
Comment 18 Tomas Mysik 2008-02-29 07:46:22 UTC
How to localize that bundle file from GF? Is it OK if I just attach it to this issue? Then I could just add the 
japanese translation to the NB jasper jar.
Comment 19 Tomas Mysik 2008-02-29 07:48:05 UTC
Created attachment 57507 [details]
bundle file
Comment 20 Tomas Mysik 2008-03-01 21:05:09 UTC
I have missed that there's a multilingual version of GF available. I will try to use its bundle files.
Comment 21 Petr Jiricka 2008-03-18 11:57:15 UTC
*** Issue 123591 has been marked as a duplicate of this issue. ***
Comment 22 kaa 2008-03-25 23:50:00 UTC
Created attachment 59086 [details]
there is another message
Comment 23 Jiri Prox 2008-04-11 01:20:04 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 24 kaa 2008-08-15 18:28:28 UTC
There are another messages:

Product Version: NetBeans IDE Dev (Build 200808101401)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
Comment 25 kaa 2008-08-15 18:29:39 UTC
Created attachment 67557 [details]
message 1
Comment 26 kaa 2008-08-15 18:30:00 UTC
Created attachment 67558 [details]
message 2
Comment 27 Anton Chechel 2011-04-28 12:52:34 UTC
kaa, is it still reproducible?
Comment 28 David Konecny 2013-08-22 00:34:25 UTC
Looks like an old issue which was either resolved or is not relevant anymore. Reopen please if it is still a valid one.