Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

java.io.UnsupportedEncodingException: ISO-8859-1"

3 posts in Java J2EE specific Last posting was on 2008-03-14 01:43:23.0Z
Russell Posted on 2008-03-05 19:49:38.0Z
Sender: 6b9b.47cef78c.1804289383@sybase.com
From: Russell
Newsgroups: sybase.public.easerver.j2ee
Subject: java.io.UnsupportedEncodingException: ISO-8859-1"
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <47cef952.6bb8.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 Mar 2008 11:49:38 -0800
X-Trace: forums-1-dub 1204746578 10.22.241.41 (5 Mar 2008 11:49:38 -0800)
X-Original-Trace: 5 Mar 2008 11:49:38 -0800, 10.22.241.41
Lines: 62
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7856
Article PK: 208285

I have just installed EAServer 6.1 (Solaris) and have tried
to deploy a test web app that includes the Jakarta standard
taglib standard.jar. The deploy fails with an
"UnsupportedEncodingException" for character set
"ISO-8859-1" which is in the c-1_0-rt.tld in standard.jar.
This deploys fine on EAServer 6.0. I'm using jdk_1.5.0_04 on
both EAS 6.0 and 6.1. Can anyone shed some light on this?
The partial output is here:

2008-03-05 19:47:05.201 INFO main [WebCompiler] Checking
TLD file: META-INF/c-1_0-rt.tld in jar file: standard.jar
2008-03-05 19:47:05.312 WARN main [DeployTool] Deploy
module failed due to exception:
com.sybase.djc.SystemException
2008-03-05 19:47:05.315 ERROR main [DeployTool] Deploy
module failed due to exception:
com.sybase.djc.SystemException
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.xml.XmlDocument.removeDocType(XmlDocument.java:279)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.deploy.webapp.TldUtils.getListenerClasses(TldUtils.java:152)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.deploy.webapp.TldUtils.getListenerClassesInJar(TldUtils.java:235)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.deploy.webapp.TldUtils.getListenersInTlds(TldUtils.java:99)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.deploy.webapp.WebCompiler.run(WebCompiler.java:998)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.deploy.DeployTool.run(DeployTool.java:1205)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.deploy.DeployTool.start(DeployTool.java:445)
2008-03-05 19:47:05.315 ERROR main at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-05 19:47:05.315 ERROR main at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-05 19:47:05.315 ERROR main at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-05 19:47:05.315 ERROR main at
java.lang.reflect.Method.invoke(Method.java:585)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.bootstrap.StartApplication.doMain(StartApplication.java:289)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.bootstrap.StartApplication.main(StartApplication.java:655)
2008-03-05 19:47:05.315 ERROR main Caused by:
java.io.UnsupportedEncodingException: ISO-8859-1"
2008-03-05 19:47:05.315 ERROR main at
sun.io.Converters.getConverterClass(Converters.java:218)
2008-03-05 19:47:05.315 ERROR main at
sun.io.Converters.newConverter(Converters.java:251)
2008-03-05 19:47:05.315 ERROR main at
sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:68)
2008-03-05 19:47:05.315 ERROR main at
java.lang.StringCoding.decode(StringCoding.java:224)
2008-03-05 19:47:05.315 ERROR main at
java.lang.String.<init>(String.java:405)
2008-03-05 19:47:05.315 ERROR main at
com.sybase.djc.xml.XmlDocument.removeDocType(XmlDocument.java:261)
2008-03-05 19:47:05.315 ERROR main ... 12 more


Thanks,
Russell


Russell Posted on 2008-03-06 20:00:41.0Z
Sender: 6b9b.47cef78c.1804289383@sybase.com
From: Russell
Newsgroups: sybase.public.easerver.j2ee
Subject: Re: java.io.UnsupportedEncodingException: ISO-8859-1"
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <47d04d69.80a.1681692777@sybase.com>
References: <47cef952.6bb8.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Mar 2008 12:00:41 -0800
X-Trace: forums-1-dub 1204833641 10.22.241.41 (6 Mar 2008 12:00:41 -0800)
X-Original-Trace: 6 Mar 2008 12:00:41 -0800, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7858
Article PK: 208284

Two things about this:

1. I don't need standard.jar anyway, because
eas-server-15.jar contains the standard Jakarta tags.

2. After building my own standard.jar from the sources, and
playing with it, I discovered that the problem was extra
whitespace in the xml encoding in the .tld files, ie. '<?xml
version="1.0" encoding="ISO-8859-1" ?>' - the extra blank
before the "?>" causes EAServer to choke. Take the blank
out, and it deploys fine. I think this is a bug.

Russell


Evan Ireland Posted on 2008-03-14 01:43:23.0Z
From: Evan Ireland <eireland@sybase.com>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.easerver.j2ee
Subject: Re: java.io.UnsupportedEncodingException: ISO-8859-1"
References: <47cef952.6bb8.1681692777@sybase.com> <47d04d69.80a.1681692777@sybase.com>
In-Reply-To: <47d04d69.80a.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47d9d83b$1@forums-1-dub>
Date: 13 Mar 2008 17:43:23 -0800
X-Trace: forums-1-dub 1205459003 10.22.241.152 (13 Mar 2008 17:43:23 -0800)
X-Original-Trace: 13 Mar 2008 17:43:23 -0800, vip152.sybase.com
Lines: 18
X-Authenticated-User: ul_beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7861
Article PK: 208288

Russell,

Please have a case opened.

Russell wrote:
> Two things about this:
>
> 1. I don't need standard.jar anyway, because
> eas-server-15.jar contains the standard Jakarta tags.
>
> 2. After building my own standard.jar from the sources, and
> playing with it, I discovered that the problem was extra
> whitespace in the xml encoding in the .tld files, ie. '<?xml
> version="1.0" encoding="ISO-8859-1" ?>' - the extra blank
> before the "?>" causes EAServer to choke. Take the blank
> out, and it deploys fine. I think this is a bug.
>
> Russell