cancel
Showing results for 
Search instead for 
Did you mean: 

com.crystaldecisions.report.web.viewer.CrystalReportViewer ,java.lang.NullPointerException

Former Member
0 Kudos

Post Author: sanjay

CA Forum: JAVA

Hi all, Many many wishes to all for new year. In new year, i had found the some problems in crystal report. when i implemented the crystal report 11 over crystal report 10. In IBM WSAD Int. 5.1.1 throws some errors(at run time, used strut/ejb). . it's display the report successfuly. but when click the next page , the errors are comes. ---com.crystaldecisions.report.web.viewer.CrystalReportViewer ---java.lang.NullPointerException accutaly the errors r comes, when this line is executed.viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);

Kindly requested to all, plz give me some solution.

Thanks & Hot regradsSanjay

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Post Author: Ted Ueda

CA Forum: JAVA

You're getting a different error from previous. The current error suggests it's looking in the incorrect location for the crystalreportviewers11 folder - the crystal_image_uri is relative to the location of the jsp, and it's going one up the path and not looking in /Treport/crystalreportviewers11.Sincerely,Ted Ueda

Former Member
0 Kudos

Post Author: sanjay

CA Forum: JAVA

Hi Ted Ueda,

Thanks for good sugesstion. But rascore.jar file have present in my WEB-INF/lib directory.

Plz see the File Structure in the WASd 5.1.1 ( new project )

1...... ........................................................

/Treport(context)WebContentcrystalreportviewers11jsp-filesWEB-INF


classes
CRConfig.xml

log4j.properties

clientSDKOptions.xml

lib

("webreporting-jsf.jar" "celib.jar" "ceplugins.jar" "cereports.jar" "cesession.jar" "ceutils.jar" "cexsd.jar" "CorbaIDL.jar" "CRDBJavabeansServer.jar" "CRDBJavaServer.jar" "CRDBJavaServerCommon.jar" "CRDBJDBCServer.jar" "CRDBXMLServer.jar" "crlov.jar" "crlovexternal.jar" "crlovmanifest.jar" "CrystalCharting.jar" "CrystalCommon.jar" "CrystalContentModels.jar" "CrystalExporters.jar" "CrystalExportingBase.jar" "CrystalFormulas.jar" "CrystalQueryEngine.jar" "CrystalReportEngine.jar" "CrystalReportingCommon.jar" "ebus405.jar" "jrcerom.jar" "keycodeDecoder.jar" "MetafileRenderer.jar" "rasapp.jar" "rascore.jar" "rpoifs.jar" "Serialization.jar" "u211java.jar" "URIUtil.jar" "webreporting.jar" "cecore.jar" "xmlParserAPIs.jar" "axis.jar" "axis-ant.jar" "certj.jar" "commons-discovery.jar" "commons-logging.jar" "Concurrent.jar" "CRDBXMLExternal.jar" "freessl201.jar" "icu4j.jar" "jaxrpc.jar" "jsafe.jar" "log4j.jar" "log4j-1.2.8.jar" "log4j-core.jar" "pullparser.jar" "saaj.jar" "sslj.jar" "wsdl4j.jar" "xbean.jar" "xerces.jar" "xercesImpl.jar" "xml-apis.jar" "asn1.jar" )
---(struts.xml,tld files)-----web.xml

This file structure is correct or not ?

2......................................................................................................................

I had implemented the JRC programe in new project.

reports display is correctly.....But

error are .......(button graphics r not display)

/crystalreportviewers11/css/default.css not found/crystalreportviewers11/images/toolbar/.....(.gif file)not found

3......................................................................

Hint. web.xml files contains

<context-param>

<param-name>crystal_image_uri</param-name>

<param-value>../crystalreportviewers11</param-value>

</context-param>

I wait ur replay..........................

Thanks

Sanjay

Former Member
0 Kudos

Post Author: Ted Ueda

CA Forum: JAVA

You're still missing jar files. That class should be in rascore.jarSincerely,Ted Ueda

Former Member
0 Kudos

Post Author: sanjay

CA Forum: JAVA

Hi Ted Ueda,

Now i was implementing the crystal report XI jar files with crystalReportViewer 11 in WASDI 5.1.1(my strut/ejb application). But another problem r comes.

&#91;12/10/07 0:50:02:734 IST&#93; 60836083 WebGroup E SRVE0026E: &#91;Servlet Error&#93;-&#91;com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2&#93;: java.lang.NoClassDefFoundError: com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2

hints : But my project is implemented in crystal report 10, now to update crystal report XI, Kindly give some information.

Thnaks

Sanjay

Former Member
0 Kudos

Post Author: Ted Ueda

CA Forum: JAVA

You may have mixed jar files from both versions. I'd recommend cleaning out all version 10 jars and the crystalreportviewers10 folder from your app, and copying anew version XI jars and crystalreportviewers11 folder.Sincerely,Ted Ueda