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.
Related
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.
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
I am developing a talend job with tFTPGet to fetch a file.
When i try to run the job in to test out the code, a error is reported . How do i see what the exact error is to fix this?
You need to use the error message of the TFTPGet component in a user code component:
The code of TJava will be executed only if the TFTPGet failed, you can use this line of code:
System.out.println(((String)globalMap.get("tFTPGet_1_ERROR_MESSAGE")));
Then you will see the error message in your console.
An attempt to attach an auto-named database for file C:\Users\vinod\Documents\Visual Studio 2013\WebSites\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
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.
from the exception message I guess that you are using LocalDb ... so you could just start Microsoft management studio and enter "(localdb)\v11.0" as server name ... then expand the "databases" node and remove everything that sounds like "aspnetdb.mdf" ...
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.