[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-classpath] [Bug classpath/22899] New: java.lang.ExceptionInInitiali
From: |
tromey at gcc dot gnu dot org |
Subject: |
[bug-classpath] [Bug classpath/22899] New: java.lang.ExceptionInInitializerError @ DecimalFormatSymbols:163 when dealing with dates |
Date: |
26 Jul 2005 21:59:00 -0000 |
I seem to get this error when either trying to use DateFormat or java.sql.Date.
System config:
Jamvm 1.2.5
Classpath 0.14
Debian unstable (kernel 2.6.9-1-k7-smp)
java.lang.ExceptionInInitializerError
at java.text.DecimalFormatSymbols.<init> (DecimalFormatSymbols.java:163)
at java.text.NumberFormat.computeInstance (NumberFormat.java:327)
at java.text.NumberFormat.getNumberInstance (NumberFormat.java:456)
at java.text.NumberFormat.getInstance (NumberFormat.java:381)
at java.text.SimpleDateFormat.<init> (SimpleDateFormat.java:420)
at java.text.SimpleDateFormat.<init> (SimpleDateFormat.java:399)
at java.sql.Timestamp.<clinit> (Timestamp.java:62)
at com.mysql.jdbc.ResultSet.getTimestampInternal (ResultSet.java:3772)
at com.mysql.jdbc.ResultSet.getTimestamp (ResultSet.java:1865)
at com.mysql.jdbc.ResultSet.getObject (ResultSet.java:1527)
at com.mysql.jdbc.ResultSet.getObject (ResultSet.java:1550)
at blogview.processRequest (blogview.java:63)
at blogview.doGet (blogview.java:96)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
at gnu.kawa.servlet.CGIServletWrapper.main (CGIServletWrapper.java:41)
Caused by: java.lang.NullPointerException
at java.io.InputStreamReader.<init> (InputStreamReader.java:137)
at java.util.Properties.load (Properties.java:183)
at java.util.Currency.<clinit> (Currency.java:136)
at java.text.DecimalFormatSymbols.<init> (DecimalFormatSymbols.java:163)
...15 more
------- Additional Comments From from-classpath at savannah dot gnu dot org
2005-03-28 15:12 -------
The exception occurs in the following from java.util.Currency:
try
{
properties.load(Currency.class.getResourceAsStream("iso4217.properties"));
}
catch (IOException exception)
{
System.out.println("Failed to load currency resource: " + exception);
}
properties.load() throws a NullPointerException, presumably because
getResourceAsStream has returned null. Do you have iso4217.properties in your
glibj.zip file?
------- Additional Comments From tromey at gcc dot gnu dot org 2005-07-26
21:59 -------
As of "0.17+cvs", glibj.zip definitely contains this file.
I am closing this; if it still fails then it is a jamvm bug and
not a bug in classpath.
--
Summary: java.lang.ExceptionInInitializerError @
DecimalFormatSymbols:163 when dealing with dates
Product: classpath
Version: unspecified
Status: RESOLVED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: from-classpath at savannah dot gnu dot org
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22899
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-classpath] [Bug classpath/22899] New: java.lang.ExceptionInInitializerError @ DecimalFormatSymbols:163 when dealing with dates,
tromey at gcc dot gnu dot org <=