cancel
Showing results for 
Search instead for 
Did you mean: 

Error code name:serverNotFound. Please help

0 Kudos

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());

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

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

Answers (1)

Answers (1)

aasavaribhave
Advisor
Advisor
0 Kudos

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

0 Kudos

I got that solved over the weekend. I guess it was an issue with the imports. After I downloaded some JRC samples I copied all the imports from a sample code and pasted on my code and voila!

Thank you so much for the help!

daniel_nunez1
Discoverer
0 Kudos

Do you may tell us the imports that you use?