Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    export excel + java.lang.String cannot be cast to java.util.Map

    Hi everyone

    i need to perform export to excel in the listgrid
    but when i do export an error is showing
    "java.lang.String cannot be cast to java.util.Map".

    I am using an arraylist to populate the grid. just inserting
    the bean object to the list and setting the dsresponse..

    also while doing any actions on the page the fetch method is getting called.
    when clicking the export button also the fetch method is gettting called. i am using DMI to perfrom grid fill.

    and using the java call like
    <serverObject lookupStyle="new" className="com.rsw.dibac.bean.MB_LAGINF9"/>

    the version used is "SmartClient_70rc2_Evaluation"

    Please help

    #2
    Show the whole stack trace and indicate the versions of the software you're using. Always do this.

    Comment


      #3
      thanks for the reply
      full stack trace is
      com.isomorphic.servlet.IDACall top-level exception

      java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
      at com.isomorphic.rpc.DataExport.getDelimitedValues(DataExport.java:358)
      at com.isomorphic.rpc.DataExport.getDelimitedValues(DataExport.java:329)
      at com.isomorphic.rpc.DataExport.exportResultSet(DataExport.java:264)
      at com.isomorphic.rpc.RPCManager.completeResponse(RPCManager.java:763)
      at com.isomorphic.rpc.RPCManager.send(RPCManager.java:494)
      at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:577)
      at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:598)
      at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:112)
      at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      at java.lang.Thread.run(Thread.java:619)


      The software version is SmartClient_70rc2

      Comment


        #4
        any help
        thanks

        Comment


          #5
          Hi VijayKumar,

          Did u find any soln for ur problem? btw r u using the Enterprise edition of smartgwt? I'm also looking for a similar soln but for a GPL version.

          -Vijin

          Comment


            #6
            vijayakumar_kb - what product are you using, SmartClient or SmartGWT? You posted in the SmartGWT forum, but the version string is not from SmartGWT.

            Comment


              #7
              sorry. i am using smartclient. i'l post in smartclient forum

              Comment

              Working...
              X