Cannot run Report Unit on Jasper Server - jasperserver

I get an error when publish a report with json api data adapter and run report unit but when I run the report in preview windows in jasper studio run fine.
the message error is the below:
org.apache.http.client.HttpResponseException: generic.error.message
There was an error on the server. Try again or contact site administrators. (Error UID: 17fc65d2-9771-4815-9fdc-dc34cb336f54)
at com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleErrorDescriptor(RESTv2ExceptionHandler.java:106)
at com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleException(RESTv2ExceptionHandler.java:66)
at com.jaspersoft.studio.server.protocol.restv2.ARestV2ConnectionJersey.toObj(ARestV2ConnectionJersey.java:52)
at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.initInputControls(RestV2ConnectionJersey.java:972)
at com.jaspersoft.studio.server.protocol.ProxyConnection.initInputControls(ProxyConnection.java:507)
at com.jaspersoft.studio.server.editor.ReportRunControler$1.run(ReportRunControler.java:100)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
jasperserver logs is the below:
[![log]([https://i.stack.imgur.com/MGzdA.jpg][1])]([https://i.stack.imgur.com/MGzdA.jpg][1])
how can i fix this problem.

Related

Issue while trying to generate allure report

I am using ubuntu 22.04 . i run my test and try to generate Allure Report. I run the following command
behave -f allure_behave.formatter:AllureFormatter -o Report01/ HGS_Dashboard.feature
and then run following command to view graphical representation of report:
allure serve my_allure
But i got the following message
Generating report to temp directory... my_allure does not exists Report successfully generated to /tmp/11409221114106846919/allure-report Starting web server... 2023-02-15 18:12:55.669:INFO::main: Logging initialized #1421ms to org.eclipse.jetty.util.log.StdErrLog Server started at <http://127.0.1.1:37929/>. Press <Ctrl+C> to exit libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) Opening in existing browser session.
While it open the report in browser and report have no data to display see the attached screenshot.
enter image description here

Jaspersoft Studio/Server Report - Preview in Studio is Working, Server is throwing an Error when executing

I recently tried to add more Reports to our Jasper Server to distribute them to those who need them.
This worked with the first Report I uploaded, but when trying to upload new ones, on trying to execute them through the Server I get an Error message.
The following is what I've extracted from the log:
2021-03-19T12:56:31,694 ERROR AsyncJasperPrintAccessor,pool-5-thread-9:321 - Error during report execution com.jaspersoft.jasperserver.api.JSSecurityException: Ein Fehler ist aufgetreten. Wenden Sie sich an Ihren Systemadministrator. (6632)
Arguments:
at com.jaspersoft.jasperserver.api.security.validators.Validator.newSecurityException(Validator.java:544)
at com.jaspersoft.jasperserver.api.security.validators.Validator.validateSQL(Validator.java:533)
at com.jaspersoft.jasperserver.api.engine.jasperreports.util.JRTimezoneJdbcQueryExecuter.createDatasource(JRTimezoneJdbcQueryExecuter.java:148)
at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1257)
at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:726)
at net.sf.jasperreports.engine.fill.JRFillDatasetRun.evaluate(JRFillDatasetRun.java:249)
at net.sf.jasperreports.engine.fill.JRFillElementDataset.evaluateDatasetRun(JRFillElementDataset.java:259)
at net.sf.jasperreports.engine.fill.JRFillCrosstab.evaluate(JRFillCrosstab.java:678)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:383)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:548)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1238)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1189)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:297)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:117)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:615)
at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:135)
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:956)
at net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:181)
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:907)
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1842)
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1159)
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1100)
at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:978)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
But since I am not using code to generate report I can't quite interpret the messages.
Can anybody tell me, why executing the report fails on the server, but is successful in the Jaspersoft Studio?
Both are running on the same Virtual Machine.
IT seems the developer handling this particular report started his queries with "which ..." which broke security rules set by Jaspersoft server by default, this has been changed, and reports do now properly generate when executed via the server

SSRS 2016 - 'extension Name' is not valid

I am trying to set up a new subscription in SSRS 2016 and the Delivery options (E-Mail) aren't loading. Here is the error message:
Exception of type 'System.Web.HttpUnhandledException' was thrown.
The value of parameter 'extension Name' is not valid. (rsInvalidParameter)
I have the SMTP server setup in the Configuration Manager and have sent test emails with it. Is there another configuration I might have missed?
I ended up trying to add it using powershell and finally got a useful error message telling me my version of SSRS didn't support adding schedules.
Exception calling "ListSubscriptions" with "1" argument(s): "System.Web.Services.Protocols.SoapException: The feature: "Subscriptions to reports" is not supported in
this edition of Reporting Services.
I am using Web, but apparently I need the Standard version to proceed
https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-features-supported-by-the-editions-of-sql-server-2016

Crystal report 9.2, incorrect log on parameters

Background;
The Web application is developed for .Net framework 4.0. It has crystal report 9.2 integration. Application runs on Integrated Windows Authentication. The crystal reports are working fine when we execute, from solution running under Visual Studio 2010. When the same report are deployed to server (Web Server- OS: Windows Server 2003-SP2-32bit. DB Server- OS: Windows Server 2003-32bit) following error occurs, incorrect log on parameters. Crystal Report Runtime Engine for .net framework 4.0 has been installed in web server. Reports are configured to work on ODBC, System DSN with SQL Server driver. This drivers runs on SQL Server user account which has permission on database. There are no logon parameters passed from application. Just to verify, solution of passing the logon parameters from application is also tried, but the problem is not resolved.
Note: To resolve full access has been provided to IIS_WPG account on folder: C:\Windows\Temp, C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files and web application.
Server Error in '/XXXX' Application.
________________________________________
Error in File E:\WebApps\XXXX\Reports\CompanyStandard.rpt:
Unable to connect: incorrect log on parameters.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Error in File E:\WebApps\XXXX\Reports\CompanyStandard.rpt:
Unable to connect: incorrect log on parameters.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[LogOnException: Error in File E:\WebApps\XXXX\Reports\CompanyStandard.rpt:
Unable to connect: incorrect log on parameters.]
. N(String -, EngineExceptionErrorID 0) +582
. I(Int16 !, Int32 ") +277
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) +429
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext) +172
CrystalDecisions.Web.ReportAgent.|(Boolean Z) +223
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +165
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
You need to change the profile IIS is running under to a domain account or change your web.config file to impersonate the user. Otherwise you will need to apply logoninfo for the report.

crystal report error

i am getting error when i am trying to show crystal report or export. i am not being able to understand reading the error message. i have bind my crystal report with dataset and also properly send crystal report parameter. please help me to fix up the problem.
Error Logon failed.
Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt:
Unable to connect: incorrect log on parameters.
Error CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt:
Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt:
Unable to connect: incorrect log on parameters.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
at EOD_Schedular.frmMain.GenerateReport(Boolean ViewOnly)
at EOD_Schedular.frmMain.Generate(Boolean ViewOnly)
Method Name: ThrowDotNetException
I see Error Logon failed...incorrect log on parameters. Did you try database->verify database?
Or, take a look at this. Does it sound familiar? Crystal Report: Unable to connect incorrect log on parameters
If there are sub reports in this report, then you must explicitly set the datasource for the sub report too. Just setting the entire dataset to main report datasource is not enough.