#1 2016-03-15 11:44:53

jamesmulryan
Member
Registered: 2016-03-14

Passing date parameters to Crystal Reports creates Error500

I don't seem to be able to run Crystal Reports where a date parameter is required. Executing the report generates an error 500.

If I remove the requirement for a date parameter (or use only string parameters) I can run reports without any problems?

Is this something I am doing incorrectly?

Offline

#2 2016-03-15 12:04:09

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Passing date parameters to Crystal Reports creates Error500

Hi James,

is there any stacktrace or further information given with the error message? If not, could you have a look at the logs if there is anything in there?

Cheers,
Arno

Offline

#3 2016-03-18 17:36:44

jamesmulryan
Member
Registered: 2016-03-14

Re: Passing date parameters to Crystal Reports creates Error500

Hi Arno,

Please see below,

Thanks,

James

net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorException: The report could not be executed: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:218)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:119)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exeucteReport(ReportExportServlet.java:527)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doExportReport(ReportExportServlet.java:407)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReport(ReportExportServlet.java:333)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportViaSession(ReportExportServlet.java:326)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doGet(ReportExportServlet.java:164)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$6abd652a.CGLIB$doGet$0(<generated>)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$6abd652a$$FastClassByGuice$$1d7467fc.invoke(<generated>)
    at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
    at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
    at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
    at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
    at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
    at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$6abd652a.doGet(<generated>)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$6abd652a.CGLIB$service$15(<generated>)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$6abd652a$$FastClassByGuice$$1d7467fc.invoke(<generated>)
    at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
    at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
    at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
    at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
    at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$6abd652a.service(<generated>)
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
    at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:188)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2522)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2511)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)
Caused by: net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorRuntimeException: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
    at net.datenwerke.rs.crystal.service.crystal.reportengine.CrystalReportEngine.executeReport(CrystalReportEngine.java:109)
    at net.datenwerke.rs.crystal.service.crystal.reportengine.CrystalReportEngine.doExecute(CrystalReportEngine.java:68)
    at net.datenwerke.rs.core.service.reportmanager.engine.ReportEngine.execute(ReportEngine.java:127)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:186)
    ... 53 more
Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2284)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2304)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:736)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
    at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
    at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:108)
    at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)
    at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)
    at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)
    at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)
    at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)
    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)
    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)
    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)
    at net.datenwerke.rs.crystal.service.crystal.reportengine.CrystalReportServiceImpl.replaceTableConnectionInfo(CrystalReportServiceImpl.java:98)
    at net.datenwerke.rs.crystal.service.crystal.reportengine.CrystalReportServiceImpl.replaceDatasourceWithJndi(CrystalReportServiceImpl.java:76)
    at net.datenwerke.rs.crystal.service.crystal.reportengine.CrystalReportEngine.executeReport(CrystalReportEngine.java:93)
    ... 56 more
Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
    at com.crystaldecisions.reports.queryengine.Connection.be(SourceFile:1078)
    at com.crystaldecisions.reports.queryengine.Table.bv(SourceFile:2310)
    at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:595)
    at com.crystaldecisions.reports.queryengine.Table.vc(SourceFile:2419)
    at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
    at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
    at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
    at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
    at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1166)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
    ... 82 more

Offline

#4 2016-03-18 20:32:52

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Passing date parameters to Crystal Reports creates Error500

Hi James,

are you certain that this error is caused by the date parameter? The stacktrace doesn't give any indication that there is a parameter involved and

"Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error"

sounds like there is a problem with the database connection. Can you reproduce the error with a minimal report that just contains a date parameter?

Arno

Offline

#5 2016-03-20 11:58:08

jamesmulryan
Member
Registered: 2016-03-14

Re: Passing date parameters to Crystal Reports creates Error500

Hi Arno,

I have fixed this but I'm afraid I couldn't pinpoint the exact issue. Strangely, changing the order of the parameters within reportserver was the change I made before the report started running correctly but changing them back now doesn't break it!

Thanks for you help anyway!

James

Offline

#6 2016-03-20 17:16:25

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Passing date parameters to Crystal Reports creates Error500

Hi James,

glad that it is working now. In case you ever figure out exactly what the problem was, please let us know.

Cheers,
Arno

Offline

Board footer

Powered by FluxBB