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 31675 - I18N - JSP compilation error: Validation error messages from taglib.
Summary: I18N - JSP compilation error: Validation error messages from taglib.
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -S1S-
Hardware: All All
: P2 blocker (vote)
Assignee: sustaining
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2003-03-05 07:14 UTC by hiroshiy
Modified: 2008-10-10 17:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test environment is in this archive. (632.29 KB, application/octet-stream)
2003-03-05 07:16 UTC, hiroshiy
Details
Here is zipped Ide.log when this problem occurrs. (5.19 KB, application/octet-stream)
2003-03-10 00:35 UTC, hiroshiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hiroshiy 2003-03-05 07:14:50 UTC
Environment:
  - S1S nevada Build
      e.g. Build 030302 en build 
  - All Platforms
      I've confirmed this on Sol8, Sol9, and Win2000.
  - only on ja locale
      I've never seen this on C locale.

To Reproduce:
  1. Download atacched "test.zip" and unzip.
  2. Start IDE in ja locale.
  3. Mount unzipped "test" directory as webmodule.
  4. Compile "JSP.jsp" file in new webmodule.
      Following messages are appeared in Output
Window.
---
JSP.jsp [-1:-1] Validation error messages from tag
library c
org.xml.sax.SAXParseException: <.....>
"Malformed UTF-8 char -- is an XML encoding
declaration missing?" 
<.....>
---
<.....> are declared in japanese, and
corresponding english sentences
are not clear for me.
Comment 1 hiroshiy 2003-03-05 07:16:42 UTC
Created attachment 9266 [details]
Test environment is in this archive.
Comment 2 hiroshiy 2003-03-05 07:52:01 UTC
Additional informations:

  - about locale
     If I start IDE in C locale and compile this,
     error is not occurred.

  - about Japanese characters
     If I delete all Japanese characters from jsp file 
     and compile, this, error is not occurred.

  - about tomcat
     If I deploy this on Tomcat ("internal" or "extenal")
     and execute, this error is occurred.
     But i deploy this on Sun One AS and execute,
     this error is not occurred.

  - about taglib
     If I delete 4th line in JSP file ("<%@ taglib prefix="c" ...")
     and compile this, error is not occurred.
     If I delete 4 jar files from "test/WEB-INF/lib" directory
     and compile, this, error is not occurred.

Regards,

Hiroshi
Comment 3 Petr Jiricka 2003-03-07 13:40:44 UTC
Hiroshi, can you please

- attach the IDE log
- try whether things start to work if you change the IDE 
Integration Mode (on the Tomcat internal installation node 
in the Server Registry in the Runtime tab) to Minimum, and 
then execute the page.


I currently can't reproduce this bug, because I can not 
find a Japanese machine in this building !!!

Thanks, Petr
Comment 4 hiroshiy 2003-03-10 00:35:10 UTC
Created attachment 9320 [details]
Here is zipped Ide.log when this problem occurrs.
Comment 5 hiroshiy 2003-03-10 02:55:58 UTC
Hello Petr,

I've invistigated "latest" nevada build (nevada B_030306).
All problems are re-appeared in Latest.
And, I tryed to switch internal tomcat to "Minimum", nothing was changed.

What kind of informations should I provide you, to solve this??

Hiroshi.

Comment 6 Milan Kuchtiak 2003-03-11 17:33:45 UTC
I manage to reproduce the issue.

It is exactly as you say Hiroshi.

On the standalone Tomcat4.0.6 - the attached example runs without
difficulties.
Comment 7 Milan Kuchtiak 2003-03-12 09:43:11 UTC
The XmlOutputter class is preparing JSP data together with taglibrary
info for Tomcat TagLibraryInfo validation.

The combination of tag library info (from the standard.jar) and the
JSP written in some national encoding ("euc-jp") caused the incorect
passing of the JSP+taglib information to the TagLibraryInfo validator. 

In case of the "euc-jp" encoding the input stream parameter was
created  using the :

new ByteArrayInputStream(buff.toString().getBytes());

Thus, some characters from the original string were incorrectly
converted to the input stream.

Suggested fix :

http://web.netbeans.org/source/browse/web/jspparser/src/org/netbeans/modules/web/jspparser/XmlOutputter.java.diff?r1=1.5&r2=1.6

Code Reviewer : Marek Fukala
Comment 9 hiroshiy 2003-03-24 09:11:41 UTC
Hello Milan,

I've verified the fixing on Solaris and Windows in followings.
 - S1S nevada    (Build 030321_1)
 - S1S trunk     (Build 030320)
 - NetBeans Dev  (Build 200303210100)

But, "latest Linux's nevada installer" couldn't install correctly.
I will verify this immediately, when I succeed to install for
Linux environment.
Please wait to switch the status "verified" for a while.
Comment 10 hiroshiy 2003-03-27 11:00:18 UTC
Hello Milan,

I've verified the fixing on Linux.
  - S1S nevada   (Build 030325)

Thank you for your fixing !!

Hiroshi
Comment 11 Keiichi Oono 2003-06-11 13:01:59 UTC
This problem has been fixed for Sun ONE Studio 5 release, and NetBeans
3.5 release. And we don't have this issue in the latest release.
However, I received a request from customer to implement this fixing
in Sierra patch. Would you give me your any thoughts about
possiblities to implement into next Sierra patch?

Thank you.
Keiichi
Comment 12 Milan Kuchtiak 2003-06-11 13:48:23 UTC
Try to fix this according to the diff files.

Thanks
Comment 13 Antonin Nebuzelsky 2003-08-20 09:20:42 UTC
Closing as FIXED because in trunk and Tegal/Nevada it is fixed, and a
new proactive patch for Sierra is not planned. Keiichi replied that
the priority for this bug is low and the customer is not pushing for it.

Keiichi, if it turns out that the fix for Sierra is required, reopen
the bug and send me an email. Thanks.
Comment 14 Keiichi Oono 2003-11-28 06:22:20 UTC
I've re-confirmed marketing person about this problem. Since the user
can use the latest studio, it's no longer the issue.

Thank you.
Keiichi
Comment 15 Karthikeyan Rajeswaran 2008-08-29 05:14:47 UTC
Reopening the issue to change assigned from ftsust to sustaining
Comment 16 Karthikeyan Rajeswaran 2008-08-29 05:16:19 UTC
Assigning to 'sustaining' user
Comment 17 artibee 2008-08-30 01:04:48 UTC
must fix assigned to
Comment 18 artibee 2008-08-30 01:06:27 UTC
setting back to resolved/fixed with sustaining (not ftsust) as assigned-to
Comment 19 kaa 2008-10-10 17:34:07 UTC
the file was compiled without errors.
verified: build 1005