Skip to Content

Error code name:serverNotFound. Please help

Hi,

I was trying to run some code samples but I keep getting this error. I don't know what to do without JPEReportSourceFactory, nothing works. Any idea?

Error:

com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound

Code:

ReportClientDocument reportClientDoc = new ReportClientDocument();
      reportClientDoc.open("list.rpt", 0);
      Object reportSource = reportClientDoc.getReportSource();


      CrystalReportViewer viewer=new CrystalReportViewer();
      viewer.setParameterFields(fields);
      viewer.setOwnPage(true);
      viewer.setReportSource(reportSource);
      viewer.setEnableParameterPrompt(false);
      viewer.setEnableLogonPrompt(false);
      viewer.setBestFitPage(true);
      viewer.setHasLogo(false);
      viewer.setDisplayGroupTree(false);
      viewer.setPrintMode(CrPrintMode.PDF);
      viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), response.getWriter());

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 11, 2008 at 01:14 PM

    It's likely you're using the incorrect ReportClientDocument for the Java Reporting Component.

    The full name for the Java Reporting Component is:

    com.crystaldecisions.reports.sdk.ReportClientDocument
    

    I'm assuming you're using the ReportClientDocument that comes with the Report Application Server (RAS) SDK:

    com.crystaldecisions.sdk.occa.report.application.ReportClientDocument
    

    The RAS SDK expects a RAS server to connect with.

    Sincerely,

    Ted Ueda

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2008 at 01:17 PM

    Hi Paul,

    It looks like you are using unmanaged RAS and after you instantiate ReportClientDocument you need to set the RAS server that will be used as follows:

    reportClientDoc.setReportAppServer("<RAS server name>");

    RAS server name could be localhost or 127.0.0.0 or which ever RAS server you want to connect to.

    Make sure that it is running and you have concurrent licenses.

    Thanks

    Aasavari

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.