Announcement

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

    RPCManager.exportContent returns //isc_RPCResponseStart-->[{status:-1,data:null}]//is

    SmartClient Version: v8.3p_2012-12-08/Pro Deployment (built 2012-12-08)

    FireFox 15.0 & IE 10

    When I try to export something to pdf, the browser just opens a new tab with a small text box that says:

    "//isc_RPCResponseStart-->[{status:-1,data:null}]//isc_RPCResponseEnd"

    Similar to this problem but not with the same text: http://forums.smartclient.com/showthread.php?t=22937

    Code:
    Label label = new Label("TEST!");
    DSRequest requestProperties = new DSRequest();
    requestProperties.setExportFilename("test.pdf");
    requestProperties.setExportDisplay(ExportDisplay.DOWNLOAD);
    requestProperties.setContentType("application/pdf");
    requestProperties.setDownloadResult(true);
    RPCManager.exportContent(label, requestProperties);
    If you need me to post anything from the developer console let me know.

    /Tilds

    #2
    When I build and run the same thing locally on a tomcat server I get this error:
    Code:
    com.isomorphic.servlet.IDACall top-level exception
    
    java.lang.NoSuchMethodError: org.w3c.tidy.Tidy.setInputEncoding(Ljava/lang/String;)V
    	at com.isomorphic.contentexport.PdfExport.getPdfRenderer(PdfExport.java:233)
    	at com.isomorphic.contentexport.PdfExport.getPdfObject(PdfExport.java:78)
    	at com.isomorphic.rpc.BuiltinRPC.getPdfObject(BuiltinRPC.java:829)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:972)
    	at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:804)
    	at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:306)
    	at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
    	at com.isomorphic.rpc.RPCRequest.execute(RPCRequest.java:231)
    	at com.isomorphic.servlet.IDACall.handleRPCRequest(IDACall.java:285)
    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:169)
    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:138)
    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:74)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)

    Comment


      #3
      This indicates missing libraries - please see the installation instructions.

      Comment

      Working...
      X