ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: ExceptionInIntializerError using jdk1.5alpha
Date Mon, 29 Dec 2003 15:42:03 GMT
Note:  Another possible workaround might involve the
use of the <fixcrlf> task.

-Matt

--- Markku Saarela <markku.saarela@entra.fi> wrote:
> After further digging the reason is bug in jdk1.5
> Properties class 
> load(inputSteam) method
> It's not regonize end of  file as a line termination
> anymore as it should.
> So adding additional linefeed to end this
> Encodings.properties file 
> resolve problem before jdk has bug fix.
> 
> Markku
> 
> Markku Saarela wrote:
> 
> > Hi,
> >
> > It seems to me that problem is in Xalan 2.5.2
> class 
> > org.apache.xml.serializer.Encodings.
> > There  in method:  private static EncodingInfo[]
> loadEncodingInfo()
> > how it reads properties from file
> Encodings.properties is not working 
> > with jdk1.5.0 anymore.
> >
> > In this Encodings.properties file's last line is: 
> # can be found at 
> > http://www.iana.org/assignments/character-sets
> >
> > Quote from code:
> >                // Seems to be no real need to
> force failure here, let the
> >                // system do its best... The issue
> is not really very 
> > critical,
> >                // and the output will be in any
> case _correct_ though 
> > maybe not
> >                // always human-friendly... :)
> >                // But maybe report/log the
> resource problem?
> >                // Any standard ways to report/log
> errors (in static 
> > context)?
> >
> > So workaround add JAVA_HOME\jre\lib\endorsed
> directory and add there 
> > latest xalan.jar and delete this
> Encodings.properties file from the
> > xalan.jar then it works.
> >
> > Rgds Markku
> >
> > James Black wrote:
> >
> >>> -----Original Message-----
> >>>   
> >>
> >>
> >>  
> >>
> >>> From: Jacob Kjome [mailto:hoju@visi.com]
> >>>   
> >>
> >>
> >>  
> >>
> >>> Sent: Thursday, December 25, 2003 11:16 AM
> >>>   
> >>
> >>
> >>  
> >>
> >>> To: Ant Users List
> >>>   
> >>
> >>
> >>  
> >>
> >>> Subject: Re: ExceptionInIntializerError using
> jdk1.5alpha
> >>>   
> >>
> >>
> >>  
> >>
> >>
> >>  
> >>
> >>
> >>  
> >>
> >>> Did you put the latest xalan-2.5.2.jar in 
> >>> JAVA_HOME/jre/lib/endorsed?  If
> >>>   
> >>
> >>
> >>  
> >>
> >>> not, you should do that since the JDK comes with
> an old buggy 
> >>> version of
> >>>   
> >>
> >>
> >>  
> >>
> >>> Xalan....although they might have updated it for
> JDK1.5.  Still, can't
> >>>   
> >>
> >>
> >>  
> >>
> >>> hurt
> >>>   
> >>
> >>
> >>  
> >>
> >>> to have the latest and greatest in the endorsed
> directory.
> >>>   
> >>
> >>
> >>
> >>
> >> [junitreport] Using Xalan version: Xalan Java
> 2.5.2
> >>
> >>
> >>
> >> Caused by: java.lang.NumberFormatException: For
> input string: "be 
> >> found at
> >> http://www.iana.org/assignments/character-sets"
> >>
> >>        at
> >>
>
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48
> 
> >>
> >> )
> >>
> >>        at
> java.lang.Integer.parseInt(Integer.java:446)
> >>
> >>        at
> java.lang.Integer.valueOf(Integer.java:525)
> >>
> >>        at
> java.lang.Integer.decode(Integer.java:903)
> >>
> >>        at
> >>
>
org.apache.xml.serializer.Encodings.loadEncodingInfo(Encodings.java:422)
> >>
> >>
> >>
> >> This is with ant 1.6.0
> >>
> >>
> >>
> >>  Any other suggestions? Is this a problem for
> xalan, and is there a 
> >> mailing
> >> list to mention it to them.
> >>
> >>
> >>
> >> " Work like you don't need the money, love like
> you've never been 
> >> hurt, and
> >> dance like no one is watching."
> >>            --- Satchel Paige
> >>
> >>
> >>
> >>  
> >>
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org
> >
> 
> 
> -- 
> Markku Saarela
> Senior Software Engineer (OO Technology, Java, J2EE,
> Smalltalk)
> Entra e-Solutions Oy
> mobile: +358-9-590 6505
> markku.saarela@entra.fi
> www.entra.fi
> 
> 
>
---------------------------------------------------------------------
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message