Report deployment on JasperReports Server - jasper-reports

I have created a master report along with a sub report.
I run the report in iReport, it works well. I deployed it on JR Server and added the subreport in Resorces folder. Also I changed the subreport expression value. When I run the report through the jasper server, following error occurs:
1 - net.sf.jasperreports.engine.JRException: Error opening input stream from URL : repo:emp_count_subrep.jrxml
Please guide.

Check the xml source, you will find subreport reference to the .jasper file, just change the extension to jrxml and ti will work, at least it worked for me

Related

Jasper server error when referencing a custom function

I am using JasperStudio v6.3.1 and I followed the tutorial on how to create a custom Java function that I can use in my report. Everything works fine in Jasper Studio, but when I publish the report to the Jasper Server, then it fails. The report does exist on the Server, but does not run after publishing the latest changes.
"Errors were encountered when compiling report expressions class file: 1. The method CURRENT_MONTH_BEGINNING() is undefined for the type TotalTaskHrsOnly..."
This error is generated because the custom Java functions that I made in Jasper Studio did not get published to the remote Jasper Server. I need help with getting these files onto the Jasper Server, but I'm not sure how to do that within Jasper Studio, Jasper Server, or if I need to log into the remote server, and drop the java files in there somewhere. Can someone please tell me how I can add the custom functionality onto the Jasper Server?
I worked with custom Java functions in Jasperserver reports for quite awhile. Some of the things you will need to ensure:
You import the java class at the top of the Jasper report .jrxml file
The Jar is deployed to the server and is labeled as a resource in the repository. It looks like this is the part you're getting stuck on. If you log into Jasperserver and go to the repository, you can open a folder and upload a new file/resource.
The report references the jar in the repository as a resource
Does this help?

Error displayed while executing a jasper file: "Category series name is null"

I have tried to generate sub report as per the demo available in jasper soft page. but while executing the report i could see the error message saying: "Error displayed while executing a jasper file: "Category series name is null". here I have added screenshot of error and report configuration UI
I got same error with my own report. I installed the new version 6.0.4 and now it is working fine.
I have resolved this issue by creating a new dataset for my chart and using it instead of selecting Main Dataset.

Failed to run or preview report in SSRS and SQL Server Report Builder

I have a couple reports I inherited that needed updating to our new database structure. I have those changes done, but when I try to preview two of the reports using SQL Server Report Builder 3.0 it gives me the following error message:
Failed to preview report
System.Web.Services.Protocols.SoapException: Error while loading code module: ‘ReportLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'ReportLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at Microsoft.ReportingServices.WebServer.ReportingService2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
at Microsoft.ReportingServices.WebServer.ReportingService2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
The other reports that I have already fixed work perfectly fine when previewing. This same error also shows up when I try to upload it to the Report Server. All of this is running off my Windows 7 x64 machine.
I'm thinking that this report is corrupted, but I don't want to have to rebuild it from scratch if that isn't the case. Any help would be much appreciated.
I believe the problem is with the header (and thus the namespace). Create or look at a working report, then compare the header (which indicates the XML version). If they are different, replace the header from the report that doesn't work with the one that works.
I have had this error a few times and it's so annoying but I am going to say I spent hours searching the web because I didn't want to recreate the report.
But in the end found nothing and had to recreate the report anyway.
Don't waste your time looking for a fix it is corrupt.

unknown hyperlink target 0 in jasper report

I recently noticed that something was wrong with a Jasper Report I was running, so I downloaded the latest version of iReports, edited the .jrxml file with iReports, and compiled it to generate a new .jasper file. Now, when I try to run the report, I get the following error
unknown hyperlink target 0
How is this caused and how can I solve it?

How do I re-import a subreport into Crystal reports 9.0 without getting an Access Denied error?

I'm using Crystal Reports 9.0. It has a subreport which is shared by 2 master reports. I modified the subreport as a result of fixing one of the master reports. When I try to re-import that subreport into my 2nd Master report I'm getting the error: Access denied then Re-importing the subreport failed.
Does anyone know what the problem might be? The 2 master reports and subreport are all "checked" out so it's not a ready only issue. Also when I first say re-import it tells me the file could not be found (pointing to a long dead file path) and I'm required to select it.
Do you have both the master reports open at the same time?
If so maybe closing the one you already refreshed, and trying it again. It seems like it has a lock on it for some reason.