Jump to content
Changes to the Jaspersoft community edition download ×

JavaBeans and java.sql.Date issues


ktrinad

Recommended Posts

By: Darren Hartford - binarymonk

JavaBeans and java.sql.Date issues

2003-11-13 06:24

Hey all,

Just got remote EBJ reporting to work on iReport, yay!

 

One of the fields/getMethods I get from the JavaBean is of type 'java.sql.Date', which is normal for an EJB to have.

 

iReport seems to have an issue with this type. Below is the error I got. Any help would be great to make iReport awesome!

 

Errors compiling C:jasperreportsiReport-0.2.2Reportsejbtext.jasper! Nov 13, 2003 9:19:46 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 65 column -1: Value "java.sql.Date" is not one of the enumerated values for this attribute. org.xml.sax.SAXParseException: Value "java.sql.Date" is not one of the enumerated values for this attribute. at org.apache.crimson.parser.Parser2.error(Unknown Source) at org.apache.crimson.parser.ValidatingParser.validateAttributeSyntax(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:121) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:139) at java.lang.Thread.run(Unknown Source) org.xml.sax.SAXParseException: Value "java.sql.Date" is not one of the enumerated values for this attribute. at org.apache.crimson.parser.Parser2.error(Unknown Source) at org.apache.crimson.parser.ValidatingParser.validateAttributeSyntax(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:121) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:139) at java.lang.Thread.run(Unknown Source) NESTED BY : dori.jasper.engine.JRException: Value "java.sql.Date" is not one of the enumerated values for this attribute. at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:397) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:121) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:139) at java.lang.Thread.run(Unknown Source) Caused by: org.xml.sax.SAXParseException: Value "java.sql.Date" is not one of the enumerated values for this attribute. at org.apache.crimson.parser.Parser2.error(Unknown Source) at org.apache.crimson.parser.ValidatingParser.validateAttributeSyntax(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373) ... 6 more

 

 

 

 

By: Darren Hartford - binarymonk

RE: JavaBeans and java.sql.Date issues

2004-01-21 08:23

In case anyone was waiting on this, I converted by javabeans to java.util.Date. This fixed the problem and made the javabean usable with iReport.

 

 

 

 

By: Giulio Toffoli - gt78

RE: JavaBeans and java.sql.Date issues

2004-01-22 07:39

You can declare it as java.lang.Object and cast it in the expression

 

Giulio

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...