Jump to content
Changes to the Jaspersoft community edition download ×

Error in adding TextField


Recommended Posts

By: Mike Robinson - mrobinson47

Error in adding TextField

2002-08-20 18:02

I have a report that has a fairly complex TITLE band and it prints without error. However, when I try to add anything to the DETAIL band, I get a "noSuchMethodException" when running the report.

 

Here is some typical code I am trying to add

 

<detail>

<band height="13"/>

<rectangle>

<reportElement x="0" y="0" width="555" height="10" mode="Transparent"/>

<graphicElement stretchType="NoStretch"/>

</rectangle>

</detail>

 

And here is a partial stack trace of the error

 

java.lang.NoSuchMethodException: No such accessible method: addElement() on object: dori.jasper.engine.design.JasperDesign

at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:226)

at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)

at org.apache.commons.digester.Digester.endElement(Digester.java:1036)

 

I can post more, if necessary. Anyone have an idea?

 

Thanks,

Mike

 

 

 

 

By: Teodor Danciu - teodord

RE: Error in adding TextField

2002-08-21 01:08

 

Hi,

 

I'm not sure why we have such a curious exception

thrown instead of a more XML validation oriented one.

 

Anyway, the problem is that you have not opened

the <band> element and not closed it properly after

the <rectangle> element like this:

 

<detail>

<band height="13">

<rectangle>

<reportElement x="0" y="0" width="555" height="10" mode="Transparent"/>

<graphicElement stretchType="NoStretch"/>

</rectangle>

</band>

</detail>

 

Good luck!

Teodor

 

 

 

By: Mike Robinson - mrobinson47

RE: Error in adding TextField

2002-08-21 07:54

Thanks for the help. I should have caught that.

 

-Mike

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...