Hi All,

 

I am trying to insert subtable with 4 columns into existing table  with 4 columns using

 

 datatable.insertTable(checkDetailTable,(i+1),1);

 

java.lang.IllegalArgumentException: setElement - position already taken

at com.lowagie.text.Row.setElement(Unknown Source)

at com.lowagie.text.Table.insertTable(Unknown Source)

at com.lowagie.text.Table.insertTable(Unknown Source)

at us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.writeUnmatchedPayerPayments(AllUnmatchedPayerPDF.java:244)

at us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.generate(AllUnmatchedPayerPDF.java:42)

at us.ma.state.hcf.scproviders.web.servlets.PDFGenerator.generate(PDFGenerator.java:14)

at us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet.service(SCProvidersServlet.java:36)

at us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet._jspService(SCProvidersServlet.java:17)

at us.ma.state.hcf.scproviders.web.servlets.SCProvidersJSP.service(SCProvidersJSP.java:95)

 

also I tried

 

datatable.insertTable(checkDetailTable);

 

java.lang.ClassCastException: com.lowagie.text.Table

    at com.lowagie.text.pdf.PdfTable.<init>(Unknown Source)

    at com.lowagie.text.pdf.PdfDocument.bottom(Unknown Source)

    at com.lowagie.text.pdf.PdfWriter.fitsPage(Unknown Source)

    at us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.writeUnmatchedPayerPayments(AllUnmatchedPayerPDF.java:247)

    at us.ma.state.hcf.scproviders.web.servlets.AllUnmatchedPayerPDF.generate(AllUnmatchedPayerPDF.java:42)

    at us.ma.state.hcf.scproviders.web.servlets.PDFGenerator.generate(PDFGenerator.java:14)

    at us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet.service(SCProvidersServlet.java:36)

    at us.ma.state.hcf.scproviders.web.servlets.SCProvidersServlet._jspService(SCProvidersServlet.java:17)

    at us.ma.state.hcf.scproviders.web.servlets.SCProvidersJSP.service(SCProvidersJSP.java:95)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

    at java.lang.Thread.run(Thread.java:534)

 

Can some one please help me why I am getting this exception? Where I am doing wrong?

Thanks

Suneetha Kurakula

Ph No : (617) 988 3135

 

Reply via email to