java.lang.IllegalArgumentException

By: Palacios Fernando Alfredo - fpalacio
java.lang.IllegalArgumentException
2003-03-28 12:09
Hi:
as I can solve this exception? so that it happens?
the file jasper was generated by iRepot 0,0,9 java.lang.IllegalArgumentException: Name
this is code:

public void fillMyReport() {
Login login = new Login();
try {
login.connect();

Connection conn = SQLlib.getConnection(login.getSession());

JasperReport jr = JasperManager.loadReport("\\JAVA/Reportes/Distrito3.jasper");

Map parametros = new HashMap();
JasperPrint jp = JasperManager.fillReport("\\JAVA/Reportes/Distrito3.jasper", parametros, conn);

login.disconnect();

} catch (Exception e) {
System.out.println(e);
login.disconnect();
}
}




By: Teodor Danciu - teodord
RE: java.lang.IllegalArgumentException
2003-03-28 13:03

Hi,

Can we see the entire stack trace?
When does the exception occur?

Thank you,
Teodor





By: Palacios Fernando Alfredo - fpalacio
RE: java.lang.IllegalArgumentException
2003-04-01 05:46
the exception happens in this line:

JasperManager.fillReport("\\JAVA/Reportes/Distrito3.jasper ", parametros, conn);




By: Palacios Fernando Alfredo - fpalacio
RE: java.lang.IllegalArgumentException
2003-04-03 12:50
HI Teodor!

here the stack trace, please help me, thanks.

java.lang.IllegalArgumentException: Name
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void sun.awt.font.NativeFontWrapper.initializeFont(java.awt.Font, java.lang.String, int)
void sun.awt.font.NativeFontWrapper.initializeFont(java.awt.Font, java.lang.String, int)
void java.awt.Font.initializeFont(java.util.Hashtable)
java.awt.Font(java.util.Map)
java.awt.Font java.awt.Font.getFont(java.util.Map)
java.awt.Font sun.java2d.SunGraphicsEnvironment.getBestFontFor(java.text.AttributedCharacterIterator, int, int)
java.awt.Font java.awt.font.TextLine$ACIFontSource.getBestFontAt(int)
sun.awt.font.TextLineComponent [] java.awt.font.TextLine.getComponents(java.awt.font.TextLine$FontSource, char [], int, int, int [], byte [], sun.awt.font.TextLabelFactory)
void java.awt.font.TextMeasurer.generateComponents(java.text.AttributedCharacterIterator)
void java.awt.font.TextMeasurer.initAll(java.text.AttributedCharacterIterator)
java.awt.font.TextMeasurer(java.text.AttributedCharacterIterator, java.awt.font.FontRenderContext)
java.awt.font.LineBreakMeasurer(java.text.AttributedCharacterIterator, java.text.BreakIterator, java.awt.font.FontRenderContext)
java.awt.font.LineBreakMeasurer(java.text.AttributedCharacterIterator, java.awt.font.FontRenderContext)
void dori.jasper.engine.fill.JRFillTextElement.chopTextElement(int)
boolean dori.jasper.engine.fill.JRFillStaticText.prepare(int, boolean)
void dori.jasper.engine.fill.JRFillBand.prepareElements(int)
dori.jasper.engine.fill.JRPrintBand dori.jasper.engine.fill.JRFillBand.fill(int)
void dori.jasper.engine.fill.JRVerticalFiller.fillTitle()
void dori.jasper.engine.fill.JRVerticalFiller.fillReport()
dori.jasper.engine.JasperPrint dori.jasper.engine.fill.JRBaseFiller.fill(java.util.Map, dori.jasper.engine.JRDataSource)
dori.jasper.engine.JasperPrint dori.jasper.engine.fill.JRBaseFiller.fill(java.util.Map, java.sql.Connection)
dori.jasper.engine.JasperPrint dori.jasper.engine.fill.JRFiller.fillReport(dori.jasper.engine.JasperReport, java.util.Map, java.sql.Connection)
dori.jasper.engine.JasperPrint dori.jasper.engine.JasperFillManager.fillReport(dori.jasper.engine.JasperReport, java.util.Map, java.sql.Connection)
dori.jasper.engine.JasperPrint dori.jasper.engine.JasperManager.fillReport(dori.jasper.engine.JasperReport, java.util.Map, java.sql.Connection)
void reporte.Reporte.testReporte()
evaluated code
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 5 months ago

0 Answers:

No answers yet
Feedback