Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all articles
Browse latest Browse all 893

How to integrate Crystal Report 2008 with java

$
0
0

Currently we are using Crystal Report XI with our application, it is working fine. Now we are updating to Crystal Report 2008.

We have build our application in enterprise archive file. There is a web archive file(.war) file in the EAR file which contains the crystal report. Inside the .war file we have reports folder which contain jsps and rpt folder. the jsps folder contains the crystalreportviewers12 folder and .jsp files. The rpt folder contain the.rpt files. The WEB-INF which is at the reports folder leavel contains the classes and lib folder.  The crystal report jars are in the lib folder and the CRConfig.xml file inside the classes folder.  I replaced all the crystal report jar with Crystal Report 2008 jars, modified the web.xml and the CRConfig.xml file accordingly. When I opened the report it gave me an error.

 

When the following line was execuated in the jsp:

 

reportClientDocument.open(report, 0);

 

it gave me following error:

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound

at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.do(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ClientDocument.new(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.new(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)

     at com.ibm._jsp._MessageStatusRpt.jbInit(_MessageStatusRpt.java:196)

     at com.ibm._jsp._MessageStatusRpt._jspService(_MessageStatusRpt.java:313)

     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)

     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)

     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)

     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)

     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)

     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)

     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)

     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)

     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)

     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)

     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

 

[1/15/10 17:37:40:703 IST] 00000026 ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /reports/jsps/MessageStatusRpt.jsp. Exception thrown : java.lang.NullPointerException

     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.f(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getReportSource(Unknown Source)

     at com.ibm._jsp._MessageStatusRpt._jspService(_MessageStatusRpt.java:314)

     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)

     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)

     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)

     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)

     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)

     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)

     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)

     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)

     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)

     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)

     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

 

[1/15/10 17:37:40:703 IST] 00000026 WebApp        E   [Servlet Error]-[/reports/jsps/MessageStatusRpt.jsp]: java.lang.NullPointerException

     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.f(Unknown Source)

     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getReportSource(Unknown Source)

     at com.ibm._jsp._MessageStatusRpt._jspService(_MessageStatusRpt.java:314)

     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)

     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)

     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)

     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)

     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)

     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)

     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)

     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)

     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)

     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)

     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)

     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)


Viewing all articles
Browse latest Browse all 893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>