2 Replies Latest reply on Oct 8, 2008 1:53 AM by Eugen Eugenov

    Problem with ForEachTag

    Eugen Eugenov Newbie

      Hello, everybody. I developed a project using jxls with sap netweaver and I was happy. But now the project must transfer to jboss, it's good but I have a big problem. When I try to export excel with jxls I have exception like this :

      10:49:03,342 ERROR [IcicallException] net.sf.jxls.tag.ForEachTag cannot be cast to net.sf.jxls.tag.T
      ag
      java.lang.ClassCastException: net.sf.jxls.tag.ForEachTag cannot be cast to net.sf.jxls.tag.Tag
      at net.sf.jxls.parser.CellParser.parseTag(CellParser.java:288)
      at net.sf.jxls.parser.CellParser.parseCellValue(CellParser.java:196)
      at net.sf.jxls.parser.CellParser.parseCell(CellParser.java:58)
      at net.sf.jxls.transformer.SheetTransformer.parseCells(SheetTransformer.java:186)
      at net.sf.jxls.transformer.SheetTransformer.parseRow(SheetTransformer.java:256)
      at net.sf.jxls.transformer.SheetTransformer.transformSheet(SheetTransformer.java:88)
      at net.sf.jxls.transformer.XLSTransformer.transformWorkbook(XLSTransformer.java:255)
      at net.sf.jxls.transformer.XLSTransformer.transformXLS(XLSTransformer.java:234)
      at net.sf.jxls.transformer.XLSTransformer.transformXLS(XLSTransformer.java:213)
      at com.icicall.crm.action.download.DownloadAbstractAction.transform(DownloadAbstractAction.j
      ava:65)
      at com.icicall.crm.action.download.DownloadAbstractAction.execute(DownloadAbstractAction.jav
      a:43)
      at com.icicall.crm.servlet.DownloadExcelServlet.doGet(DownloadExcelServlet.java:82)
      at com.icicall.crm.servlet.DownloadExcelServlet.doPost(DownloadExcelServlet.java:51)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
      va:189)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEst
      ablishmentValve.java:92)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      


      And it worked under netweaver very well. Where can be problem?

      Best regards,
      Eugeny.