Null pointer exception in com.crystaldecisions.sdk.occa.report.application.ControllerBase.checkViewReportRight
I am testing BOE 4.0 with a simple jsp based on the samples. The code is what I used to test BOE xi 3.1. But I ran into some report display inconsistencies with 3.1 so I am trying 4.0. The code below works in 3.1 But in 4.0, I get the report viewer screen coming up but get a null pointer exception coming to the screen.
2014-06-18 13:48:01
java.lang.NullPointerException
at com.crystaldecisions.sdk.occa.report.application.ControllerBase.checkViewReportRight(ControllerBase.java:114)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(ReportSource.java:945)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(AdvancedReportSource.java:343)
at com.businessobjects.report.web.event.PageListener.renderContentLocally(PageListener.java:394)
at com.businessobjects.report.web.event.PageListener.getPage(PageListener.java:181)
at com.businessobjects.report.web.event.PageListener.updatePage(PageListener.java:123)
at com.businessobjects.report.web.event.UpdatePageEvent.processListener(UpdatePageEvent.java:47)
at com.businessobjects.report.web.event.ViewerBroadcaster.broadcast(ViewerBroadcaster.java:109)
at com.businessobjects.report.web.event.EventQueue.processEvents(EventQueue.java:53)
at com.businessobjects.report.web.component.ViewerContainer.processEvents(ViewerContainer.java:1403)
at com.businessobjects.report.web.WorkflowController.doEventProcessing(WorkflowController.java:353)
at com.businessobjects.report.web.WorkflowController.doLifecycle(WorkflowController.java:255)
at com.businessobjects.report.web.WorkflowController.doAsyncLifecycle(WorkflowController.java:106)
at com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater._processHttpRequest(CrystalReportViewerUpdater.java:61)
at com.crystaldecisions.report.web.ServerControl.processHttpRequest(ServerControl.java:345)
at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doUpdate(CrystalReportViewerServlet.java:156)
at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(CrystalReportViewerServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
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:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Here is the AlwaysRequiredSteps_UnmanagedRas.jsp
<%
String path = "rassdk://C:\\reports\\asn.rpt";
ReportAppSession ra = new ReportAppSession();
ra.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
ra.setReportAppServer("10.189.15.175:1566");
ra.initialize();
ReportClientDocument clientDoc = new ReportClientDocument();
clientDoc.setReportAppServer(ra.getReportAppServer());
clientDoc.open(path, OpenReportOptions._openAsReadOnly);
%>
Here is the OpenReport.jsp
<%@ page contentType="text/html; charset=utf-8" %>
<%@
page import="com.crystaldecisions.sdk.occa.report.application.*,
com.crystaldecisions.sdk.occa.report.data.*,
com.crystaldecisions.sdk.occa.report.lib.*,
com.crystaldecisions.report.web.viewer.*,
com.crystaldecisions.sdk.occa.report.definition.*"
%>
<html>
<head>
<title>Preview Report</title>
</head>
<body>
<%@ include file="AlwaysRequiredSteps_UnmanagedRAS.jsp"%>
<%
Tables oTablesCollection = clientDoc.getDatabaseController().getDatabase().getTables();
for(int i = 0; i < oTablesCollection.size(); i++) {
// We'll get two copies of the original table, change one, and use set table.
ITable originalTable = oTablesCollection.getTable(i);
ITable changedTable = oTablesCollection.getTable(i);
IConnectionInfo newConnectionInfo = new ConnectionInfo();
PropertyBag attributes = new PropertyBag();
attributes.putBooleanValue(PropertyBagHelper.CONNINFO_SSO_ENABLED, false);
attributes.putStringValue(PropertyBagHelper.CONNINFO_CRQE_DATABASETYPE, "JDBC (JNDI)");
attributes.putStringValue(PropertyBagHelper.CONNINFO_DATABASE_DLL, "crdb_jdbc.dll");
attributes.putStringValue(PropertyBagHelper.CONNINFO_CRQE_DATABASENAME, "");
attributes.putBooleanValue(PropertyBagHelper.CONNINFO_CRQE_SQLDB, true);
PropertyBag logonProperties = new PropertyBag();
logonProperties.putStringValue("JDBC Connection String", "!oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{password}@10.189.12.248:1521:gbg");
logonProperties.putBooleanValue("Trusted_Connection", false);
logonProperties.putBooleanValue("Use JDBC", true);
logonProperties.putStringValue("Database Class Name", "oracle.jdbc.driver.OracleDriver");
logonProperties.putStringValue("Connection URL", "jdbc:oracle:thin:@10.189.12.248:1521:gbg");
logonProperties.putStringValue("Server", "10.189.12.248");
attributes.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, logonProperties);
attributes.putStringValue("QE_ServerDescription", "10.189.12.248");
newConnectionInfo.setKind(ConnectionInfoKind.CRQE);
newConnectionInfo.setUserName("dsdone");
newConnectionInfo.setPassword("dbuser");
newConnectionInfo.setAttributes(attributes);
changedTable.setQualifiedName("DSDONE" + "." + changedTable.getName());
changedTable.setConnectionInfo(newConnectionInfo);
// Commit the changes by calling the setTableLocation method from
// the Database controller with the new table
clientDoc.getDatabaseController().setTableLocation(originalTable, changedTable);
// Create a Viewer object
CrystalReportViewer viewer = new CrystalReportViewer();
// Set the name for the viewer
viewer.setName("Crystal_Report_Viewer");
// Set the report source for the viewer to the ReportClientDocument's report source
viewer.setReportSource(clientDoc.getReportSource());
// Process the http request to view the report
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
// Dispose of the viewer object
viewer.dispose();
// Release the memory used by the report
clientDoc.close();
%>
</body>
</html>
Hi Jason,
Call any one of the methods
viewer.dispose(); or clientDoc.close();
Do not use both in BI 4.x version.
Test the same and let me know if it works.
Thanks,
Prithvi
Similar Messages
-
Hi,
I got the following Exception when I try to open a report from page server in CRS 2008.
]] Root cause of ServletException.
java.lang.NoSuchMethodError: com/crystaldecisions/sdk/occa/report/reportsource/IReportSource.getPreferredViewingLocale()Ljava/util/Locale;
at com.businessobjects.report.web.b.a.aJ(Unknown Source)
at com.businessobjects.report.web.a.r.try(Unknown Source)
at com.businessobjects.report.web.a.r.saveState(Unknown Source)
at com.businessobjects.report.web.a.u.saveState(Unknown Source)
at com.businessobjects.report.web.a.m.saveState(Unknown Source)
Truncated. see log file for complete stacktrace
The class I have imported is the following.
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource
How to get rid of this exception?
Thanks & Regards,
SteveHi Aasavari,
This is the snippet of the java
String userName = "xxxxxxx";
String password = "xxxxxxxxx";
String auth = "secEnterprise";
String pageServer = "xxxxxxxxxxxx";
String report = "report";
ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
IEnterpriseSession enterpriseSession = sessionMgr.logon(userName, password, pageServer, auth);
// get info store from enterpise session
IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
// get a collection of SI_ID from info store
IInfoObjects infoObjects = iStore.query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME='" + report + "' And SI_INSTANCE=0");
// get the first SI_ID from the collection
IInfoObject infoObject = (IInfoObject)infoObjects.get(0);
// get report source factory from enterprise session
IReportSourceFactory reportFactory = (IReportSourceFactory) enterpriseSession.getService ("", "PSReportFactory");
// get report from report factory
Object reportSource = reportFactory.openReportSource(infoObject.getID(), Locale.ENGLISH);
HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true);
session.setAttribute("reportSource", reportSource);
Below are the jsp source code.
<%@ page import= "com.crystaldecisions.report.web.viewer.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.application.reportsourcefactory.RasReportSourceFactory"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
<%@ page import= "java.util.Date" %>
<%
Object reportSource = session.getAttribute("reportSource");
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setReportSource(reportSource);
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
%>
Thanks & Regards,
Steve -
Hi,
I am trying to run the crystal reports from a web-app in jboss app server (4.3.2).
However on running the jsp the below error is received.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException---- Error code:-2147467259 Error code name:failed
Please help me if you have come across such exception.
Thanks,
LakshmiHello guys,
First thank you for your time and help !
Today finally I was able to resolve my problem. I think that somehow my project (Java Dynamic Web Project) was corrupted becouse I wasn't able to find the report on runtime in any way (I try to put it in .ear as well). Now I have created one new fresh Dynamic Web project and add Crystal Reports facets to it. Then I put my report file in "reports" folder under WebContent and I was able to find it on runtime. My CRConfig.xml is availiable under /WEB-INF/classes/ and it CONTAINS the following <reportlocation>../..</reportlocation> tag.
I found very useful and helpfull articles here :
http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.businessobjects.integration.eclipse.devtools.doc/developer/DisplayReports5.html
http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.businessobjects.integration.eclipse.devtools.doc/developer/JRCReference3.html
I still don't know what was the root couse for my problem. I hope that I never see this problem again
Regards,
Ivo
Edited by: Ivo Kotev on Sep 21, 2011 10:35 AM -
Load linkage error - "com/crystaldecisions/sdk/occa/report/data/Fields"
We had installed and were using Crystal Reports for Eclpse with JBoss 4.2. We recently upgraded to JBoss 5.1 Our crystal reports do not work from the web interface anymore. The error we get is:
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/service/WebCtxLoader$ENCLoader) previously initiated loading for a different type with name "com/crystaldecisions/sdk/occa/report/data/Fields"
It looks like there might be a class conflict with JBoss jars? Any ideas on which jars to look at would be really appreciated. Any other ideas or suggestions on what this error might be?
Thank you.Based on the supported platforms document, I don't believe that JBoss 5.1 is on the list of application servers that are supported by Crystal Reports For Eclipse Version 2. I believe that the versions of JBoss that are supported are 4.2 and 5. By not supported, it means that SAP BusinessObjects hasn't tested and certified against these versions.
As for the error, I'm not sure which jar file would be causing the conflict.
Regards.
- Robert -
Hello,
I'm trying to upgrade from an older version of the Java CR libraries to Crystal Reports for Eclipse 2.
I downloaded the latest version, replaced all the jar files and then tried to open a report like this
ReportClientDocument doc = new ReportClientDocument()
doc.open("c:
report.rpt")
This gives me the following error:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: rowIndex---- Error code:-2147467259 Error code name:failed
caused by: java.lang.NoSuchFieldError: rowIndex at
com.crystaldecisions.reports.valuegrid.ValueGridFormulaFunctions.ValueGridObjectFunctionFactory$GridValueAtFunction
Does anyone know how to get rid of this error?
Kind regards,
Dennis WestraI created a new report with just a text area containing some text. The report has no connection to the database.
When I open the report with ReportClientDocument.Open() this gives me the error. I havent tried to open an existing report yet. I wanted to start simple by creating a new report.
I assume that a database connection is not mandatory. Or am I incorrect? -
Hi ,
I am using Crystal Reports v XI with java. when i try to compile the java program , error is occured as
package com.crystaldecisions.sdk.occa.report.reportsource does not exist
import com.
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
^
I looked for the jar file to set class path but I colud not find that. I think jar file containing this package might be missed. if so , How can i get it. is there any possibility to download that . please help me.
[email protected]
thank you.heee hiiii,
i am also a new user of it....
if u r using eclipse IDE
u can download plugins and features of crystalReport for eclipse
on www.businessobjects.com
and then try out -
Null pointer exception in jsp ,data missing in chat application
Hi all....
I have a chat application in jsp using ajax.I have opened a d/b connection in a jsp which is called each time I sent a message.But sometimes I get null pointer exception in this page when msgs are sent so fast...also I miss some of the msgs I sent....I can't avoid that connection ther..When I commented all those d/b connection statements...everything is working fine..Please suggest me any solution...
Thanks in advance.Hi,
Am not getting exception now.In the jsp wer I ve written connection,am taking some values using request.getParameter("msg") . I had opened the connection statement before getting these parameter values.Think I ws getting null pointer exception due to this.Now I have opened connection after getting these parameter values...anyway am not getting the exception now...
Thanks. -
JRC (upg. to CR4E) - Report w Subreport - Oracle DB - Null Pointer Excepti
Hi
We have a Crystal Designer/Developer Version 11.5.10.1263. We develop reports using this.
Most of the reports have SQL Command mode design with JNDI/JDBC connection. It gets deployed with our Web application. And during runtime, when users access these reports from our web application, we typically use Java Reporting Component with Crystal Report Viewer SDK to open and display the report to the user.
Besides other issues, current problem I am having is:
I have a sub-report in my report. I am connecting to Oracle database. If this sub-report does not return any rows, I was getting a Null Pointer Exception. This seems to be a known bug. This happened to us when we had just the above mentioned components.
We recently upgraded just the JAR libraries to the ones packaged in CR4E (Crystal Reports For Eclipse) - initially to get more exporting capability.This upgrade gets us past the Null Pointer Exception issue.
Now, I am getting an error like "Unexpected database connector error". Please see the exception stack trace below if needed. Since we are a product and this display is specific to one out of about 100 different clients; with all the time we spent on making this report stuff work against this oracle DB client, we had finally ended up creating the display in JSP into our general product just for one of about 100 clients. Client must be the Lucky one...As a developer, I felt really frustrated.
One note:- SQL Server DB works perfect.
Other thing - Do we need to change any API calls after upgrading the JARS from standard JRC/Viewer to CR4E package?
11:46:57,540 INFO [STDOUT] 11:46:57,540 ERROR [JRCCommunicationAdapter] detected an exception: Unexpected database connector error
at com.crystaldecisions.reports.datafoundation.DFQuery.for(SourceFile:632)
at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1621)
at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)
at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)
at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)
at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)
at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)
at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)
at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)
at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)
at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)
at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)
at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)
at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)
at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)
at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)
at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)
at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)
at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)
at com.crystaldecisions.reports.dataengine.DataProcessor2.if(SourceFile:4816)
at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:2020)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:309)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:250)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.a(SourceFile:922)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.e(SourceFile:784)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.for(SourceFile:242)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:243)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:210)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:185)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:230)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:511)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:452)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:369)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ah.a(SourceFile:72)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ReportColumnFormatter.a(SourceFile:86)
at com.crystaldecisions.reports.formatter.formatter.paginator.SinglePageFormatter.a(SourceFile:332)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120)
at com.crystaldecisions.reports.formatter.formatter.paginator.SinglePageFormatter.for(SourceFile:177)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64)
at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.do(SourceFile:737)
at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.formatPage(SourceFile:236)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.byte(SourceFile:219)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1909)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
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.ReportSource.a(SourceFile:1558)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(SourceFile:767)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(SourceFile:324)
at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(SourceFile:149)
at com.businessobjects.report.web.event.s.a(SourceFile:158)
at com.businessobjects.report.web.event.s.a(SourceFile:127)
at com.businessobjects.report.web.event.bt.a(SourceFile:47)
at com.businessobjects.report.web.event.bw.broadcast(SourceFile:93)
at com.businessobjects.report.web.event.am.a(SourceFile:53)
at com.businessobjects.report.web.a.t.if(SourceFile:2104)
at com.businessobjects.report.web.e.a(SourceFile:300)
at com.businessobjects.report.web.e.a(SourceFile:202)
at com.businessobjects.report.web.e.a(SourceFile:135)
at com.crystaldecisions.report.web.ServerControl.a(SourceFile:607)
at com.crystaldecisions.report.web.ServerControl.processHttpRequest(SourceFile:342)
at org.apache.jsp.ipalHistoryReportViewer_jsp._jspService(org.apache.jsp.ipalHistoryReportViewer_jsp:201)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.Standar
11:46:57,540 INFO [STDOUT] dEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
11:46:57,634 INFO [STDOUT] CustomReports - finally Calling CrystalReportViewer dispose ...I have exactly the same problem. Had posted it on the forum last week, but haven't received any response yet. I just file a single support case ($195) with SAP. If I hear anything useful back, will keep you posted. Please let me know if you are able to resolve the problem.
In my case, I can get my report to work with a single subreport. When I put multiple subreports, I get the same error as you are currently getting.
Check if your report has any special section formatting (conditional suppression etc). Try to remove those to see if it helps at all. -
Crystal Report throws NULL Pointer Exception from Java
Hi,
<br>
We are using crystal report in our application and we are changing the report datasource with the application datasource through our code. We are using CR4E 2008 to achieve this solution. We are getting a NULLPointerException, when we run the report in Oc4J(Oracle Apps Server) with JDK1.6. Could you please help us in achieving the solution
<br><br>
Exception:
<br>
Connection logon:Database DLL=s(crdb_jdbc.dll);Trusted_Connection=s(true);PreQEServerType=s(JDBC (JNDI));Server
Type=s(JDBC (JNDI));Use JDBC=s(true);Database Class Name=s();JNDI Datasource Name=s(jdbc/1495);Connection URL=s();User ID=s(myapp);Password=
detected an exception: java.lang.NullPointerException
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
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.ReportSource.a(SourceFile:1558)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
at regular.ShowReport._jspService(_ShowReport.java:277)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:662)
2011-06-27 10:42:03.598 09041510myappt myapp ShowReport.jspService(277) Error while generating crystal report com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:741)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
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.ReportSource.a(SourceFile:1558)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
at regular.ShowReport._jspService(_ShowReport.java:277)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
... 33 more
Regards,
Karthik.Hi,
<br>
We are using crystal report in our application and we are changing the report datasource with the application datasource through our code. We are using CR4E 2008 to achieve this solution. We are getting a NULLPointerException, when we run the report in Oc4J(Oracle Apps Server) with JDK1.6. Could you please help us in achieving the solution
<br><br>
Exception:
<br>
Connection logon:Database DLL=s(crdb_jdbc.dll);Trusted_Connection=s(true);PreQEServerType=s(JDBC (JNDI));Server
Type=s(JDBC (JNDI));Use JDBC=s(true);Database Class Name=s();JNDI Datasource Name=s(jdbc/1495);Connection URL=s();User ID=s(myapp);Password=
detected an exception: java.lang.NullPointerException
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
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.ReportSource.a(SourceFile:1558)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
at regular.ShowReport._jspService(_ShowReport.java:277)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:662)
2011-06-27 10:42:03.598 09041510myappt myapp ShowReport.jspService(277) Error while generating crystal report com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:741)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
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.ReportSource.a(SourceFile:1558)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
at regular.ShowReport._jspService(_ShowReport.java:277)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
... 33 more
Regards,
Karthik. -
Bar Code Font 3 of 9 cause NULL pointer exception in PDF export
I am using CR4E 2.0 update 3 and tried to export a report that includes a text formatted with a barcode font (Code39).
When I export the report to PDF with the Crystal Reports Desinger it works fine.
When I export it in our application it generates a NullPointerException at the following line in my application:
exportStream = (ByteArrayInputStream) doc.getPrintOutputController().export(ReportExportFormat.PDF);
Export failed: java.lang.NullPointerException
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:237)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:147)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:128)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:111)
at com.gehcit.ccc.report.ExportReport.writeExportFile(ExportReport.java:222)
at com.gehcit.ccc.report.ExportReport.export(ExportReport.java:192)
at com.gehcit.ccc.report.ExportReport.runExport(ExportReport.java:127)
at com.gehcit.ccc.report.ExportReport.main(ExportReport.java:582)
Caused by: java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.tables.ControlValueTable.if(SourceFile:58)
at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.tables.ControlValueTable.<init>(SourceFile:53)
at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.OpenTypeSubsetter.<init>(SourceFile:56)
at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.a(SourceFile:352)
at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.a(SourceFile:313)
at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.r.a(SourceFile:1538)
at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.PdfDocumentManager.if(SourceFile:350)
at com.crystaldecisions.reports.exporters.format.page.pdf.dom.PdfAdvancedDocumentModeller.do(SourceFile:348)
at com.crystaldecisions.reports.exporters.page.pdf.AdobePDFExporter.finalizeExportJob(SourceFile:235)
at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:652)
at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1942)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:659)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:165)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:527)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:525)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:523)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:422)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:350)
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.ReportSource.a(SourceFile:1558)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:223)
... 7 more
Is there anything that I did wrong or is it generally not working with CR4E to use a simple barcode font?
When I use ReportExportFormat.MSWord or ReportExportFormat.crystalReports it works fine but unfortunately
out customers insist on PDF. Any help would be appreciated very much.
The bar code font I am using is from http://www.barcodesinc.com/free-barcode-font/
Edited by: Lothar Bernecker on Dec 3, 2009 3:12 PMI think there's issues with that Barcode TrueType font and Java.
You can try a Java app (such as the sample demo app that comes with Java) and try viewing that font.
You'd need to use a different barcode font.
Sincerely,
Ted Ueda -
Com.crystaldecisions.sdk.exception.sdkExecption$InvalidCMSSyntax
hello,
i use infowiew by programm via url
http://pa/businessobjects/enterprise11/desktoplaunch/opendoc/view_report_pack.jsp?sdoc=devel&user=Administrator&pass=&cms=pack-81b36a7e9d&userdb=fo&passdb=fo&schamp=Date_EA&stype=DATE&svaleur=01/02/2007
the reports display one page (connection cms ok , connection db ok )
When i clik on button export or button next page
or button zoom 400% (Toolbar) i have an error
com.crystaldecisions.sdk.exception.sdkExecption$InvalidCMSSyntax
Have you an idea ?
option of viewer ?
Thanks Michel
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.plugin.desktop.common.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.occa.security.*,
com.crystaldecisions.sdk.exception.SDKException,
com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory,
java.util.Locale,
java.util.*,
java.lang.String,
com.crystaldecisions.sdk.occa.report.data.*,
com.crystaldecisions.report.web.viewer.*"
%>
<%
// CMS : Nom de la machine exemple sethseth
// user : nom de l'utilisateur CMS exemple Administrator
// pass : mot de passe de l'utilisateur example vide
// Sdocname : nom du rapport Rpt
// notes avant il faut l'integrer dans InfoView
// userDb : utilisateur de la base de donnee exemple rcteaxeriah
// passDb : Mot de passe de la Bd exemple rcteaxeriah
// MM : recupére les infos passés en paramétre par l'url
String cms = request.getParameter("cms");
String user = request.getParameter("user");
String pass = request.getParameter("pass");
String sdocName = request.getParameter("sdoc");
String userDb = request.getParameter("userdb");
String passDb = request.getParameter("passdb");
// Multiparametre
String[] tab_schamp = request.getParameterValues("schamp");
String[] tab_stype = request.getParameterValues("stype");
String[] tab_svaleur = request.getParameterValues("svaleur");
try {
//Log in.
IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(user,pass,cms,"secEnterprise");
//Grab the InfoStore from the httpsession
IInfoStore infoStore = (IInfoStore)enterpriseSession.getService("", "InfoStore");
//Query for the report object in the CMS. See the Developer Reference guide for more information the query language.
IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query("SELECT TOP 1 * " +
"FROM CI_INFOOBJECTS " +
"WHERE SI_PROGID = 'CrystalEnterprise.Report' AND SI_INSTANCE=0 AND SI_NAME='" + sdocName + "'" );
if (oInfoObjects.size() > 0) {
//Retrieve the latest instance of the report
IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(0);
//Use the PS report factory to obtain a report source that will be processed on the Page Server.
IReportSourceFactory factoryPS = (IReportSourceFactory)enterpriseSession.getService("PSReportFactory");
Object reportSource = factoryPS.openReportSource((oInfoObject), Locale.ENGLISH);
session.setAttribute("reportSource", reportSource);
//Build database logon connection infos object. A connection info object containing the logon
//credentials must be created for each connection in the report. This will be passed into the report via
//the Viewer SDK so that the user is not prompted for report database logon credentials.
ConnectionInfo dbLogonInfo = new ConnectionInfo();
dbLogonInfo.setUserName(userDb);
dbLogonInfo.setPassword(passDb);
ConnectionInfos dbLogonInfos = new ConnectionInfos();
dbLogonInfos.add(dbLogonInfo);
//Put this object in session so that it can be retrieved and used by the viewer.
session.setAttribute("dbLogonInfos", dbLogonInfos);
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setName("CrystalReportViewer");
// Active l'exportation et l'impression sur le visualisateur
viewer.setOwnPage(true);
//Impression possible sur le mode ActiveX
viewer.setPrintMode(CrPrintMode.ACTIVEX);
//le rapport sera affiché sur le Viewer
//Object reportSource = session.getAttribute("reportSource");
viewer.setReportSource(reportSource);
//cache la fenetre d'authentification à la BD (Nom utilisateur et mot de passe)
// et se connecte directement à la base de donnée oracle
//ConnectionInfos dbLogonInfos = (ConnectionInfos)session.getAttribute("dbLogonInfos");
viewer.setDatabaseLogonInfos(dbLogonInfos);
Fields fields = new Fields();
// multi parametre entree
for (int l_i_Nbr_Champ = 0; l_i_Nbr_Champ < tab_schamp.length; l_i_Nbr_Champ++)
////////////// Paramétre entrée = DATE //////////////////////////////////////////////////////
/// TEST = if (tab_stype[l_i_Nbr_Champ].equals("DATE"))
// extraction du format JJ/MM/AAAA et déclaration des variables
// Année
int iannee = Integer.parseInt(tab_svaleur[l_i_Nbr_Champ].substring(6,10));
// le mois de janvier commence a 0
int imois = Integer.parseInt(tab_svaleur[l_i_Nbr_Champ].substring(3,5)) -1 ;
// Jour
int ijour = Integer.parseInt(tab_svaleur[l_i_Nbr_Champ].substring(0,2));
setParameterValueDate(fields,tab_schamp[l_i_Nbr_Champ],"",iannee,imois,ijour,out);
////////////// Fin Parametre entree = DATE ////////////////////////////////////////
////////////// Paramétre entrée = STRING //////////////////////////////////////////////////////
if (tab_stype[l_i_Nbr_Champ].equals("STR"))
setParameterValueStr(fields,tab_schamp[l_i_Nbr_Champ],"",tab_svaleur[l_i_Nbr_Champ],out);
////////////// Fin Parametre entree = STRING ////////////////////////////////////////
// force le parametre dans le browser
viewer.setParameterFields(fields);
// prompt du parametre de saisie caché
// car on veut que le rapport s'affiche automatiquement
viewer.setEnableParameterPrompt(false);
// // Rafraichissement
viewer.refresh();
// appel browser
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
// Nettoyage
viewer.dispose();
else {
out.println("Report " + sdocName + " not found.");
catch(SDKException sdkEx) {
out.println(sdkEx);
%>
<%!
static void setParameterValueDate(Fields oFields, String paramName, String reportName,int annee,int mois,int jour,JspWriter out) throws javax.servlet.jsp.JspException
// FORMAT DATE
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.DAY_OF_MONTH, jour);
calendar.set(Calendar.MONTH, mois);
calendar.set(Calendar.YEAR, annee);
Object value = calendar.getTime();
ParameterField oParameterField = new ParameterField();
oParameterField.setReportName(reportName);
Values oValues = new Values();
ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
oParameterField.setName(paramName);
oParameterFieldDiscreteValue.setValue(value);
oValues.add(oParameterFieldDiscreteValue);
oParameterField.setCurrentValues(oValues);
oFields.add(oParameterField);
%>
<%!
private void setParameterValueStr(Fields oFields, String paramName, String reportName, Object value,JspWriter out) throws javax.servlet.jsp.JspException
ParameterField oParameterField = new ParameterField();
oParameterField.setReportName(reportName);
Values oValues = new Values();
ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
oParameterField.setName(paramName);
oParameterFieldDiscreteValue.setValue(value);
oValues.add(oParameterFieldDiscreteValue);
oParameterField.setCurrentValues(oValues);
oFields.add(oParameterField);
%>
<%!
static void Affiche(JspWriter out, String s) throws javax.servlet.jsp.JspException
try
out.println(s);
catch(java.io.IOException e)
{ throw new javax.servlet.jsp.JspException(e); }
return;
%>
{code]The reason this is happening is because of how you are storing your CMS name. You are storing the CMS name in the request object
String[] tab_schamp = request.getParameterValues("schamp");
String[] tab_stype = request.getParameterValues("stype");
String[] tab_svaleur = request.getParameterValues("svaleur");
but when you change the zoom level - a postback occurs and your code is run again. However this time the request object is empty and there's no values to retrieve.
So your options are:
1. After you run through the first time, save the report / reportsource in session and just retrieve that on each subsequent postback. This is a common technique.
2. Save the values that you retrieved from the request object into something that persists between postbacks - such as session or a cookie.
Shawn -
Com.crystaldecisions.sdk
Hi,
Anyone knows which JAR files that I should have in order to import these packages?
<%@ page import="com.crystaldecisions.sdk.framework.*" %>
<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
Thanks in advance.
LizAn additional note here: you will need to have all of the Enterprise jar files in your application in order to have it function as expected; there are many dependencies between the libraries that can only be resolved if they are all in the class path.
Please see below link for steps on how to correctly set up your Enterprise application:
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2018319&sliceId=&dialogID=25146957&stateId=1%200%2025152030 -
Hi All,
I am using BO XI R2 version.
I am facing issues with BOE Java SDK web application.
In this application, I have just by-passed login page(jsp page) and logout from BO. But, it is throwing errors as mentioned below:
Generated servlet error:
E:\BusinessObjects\Tomcat\work\Catalina\localhost\_\org\apache\jsp\BO_005fHello_005fWorld\login_jsp.java:6: package com.crystaldecisions.sdk.framework does not exist
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
Application gives errors for these two packages:
package com.crystaldecisions.sdk.framework
package com.crystaldecisions.sdk.exception
Can anyone please tell me the solution?
From where I can get the jar files to resolves these problems?
I tried to search these jar files in BO installation folder but was not able to get.
Can anyone tell the exact folder path for these jar files, if it is there.
Or any link to download jar files.
Thanks in advance.Hello ,
-In order to run your application, please copy the Business Objects JAR files from the installed location.
-For example : If you have installed Business Objects on C:
then , go to the path :
C:\Program Files\Business Objects\common\3.5\Java\Lib and copy all the Jar files from that location including JAR files that are present in the external folder.
-Paste these JAR files inside lib folder of your application.
-The class com.crystaldecisions.sdk.framework comes under cesession.jar
Thanks,
Chinmay -
I am attempting to automate the "Save As" or export funtion of a webi doc but the documentation that states:
ReportEngine repEngine = (ReportEngine)EnterpriseSession.getService("ReportEngine");
Fails with:
com.crystaldecisions.sdk.exception.SDKException$ServiceNotFound: The service ReportEngine could not be found
When I run:
enterpriseSession.getServiceNames("CMSName", 0);
There is now "ReportEngine" listed.
Can anyone help????? This is not JSP but a command line app that simple need to open a doc, then to getView() to get the binary version of the Webi doc in PDF and simply save to disk via some java method.
I can get the doc, query reports, schedule reports, etc.. Just not export the report to disk.
Can anyone help???These are the only things that show up when I call:
EnterpriseSession().getServiceNames("sales-demo", 0);
Batch
Diagnostics
InfoStore
Logon
NameService
OCAAdministrator
Pinger
PluginDistribution
Session
APSAdmin
AuditAdmin
ISGeneralAdmin
SSOAdmin
This is the whole error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/businessobjects/wp/dbg/DBGTraceable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.businessobjects.rebean.wi.occa.WebiReportEngine.<init>(WebiReportEngine.java:66)
at com.businessobjects.rebean.wi.occa.WebiReportEngineFactory.makeOCCA(WebiReportEngineFactory.java:64)
at com.crystaldecisions.sdk.framework.internal.a.getService(Unknown Source)
at com.crystaldecisions.sdk.framework.internal.a.getService(Unknown Source)
at com.tidalsoft.adaptors.buisnessobjects.EnterpriseSession.getReportEngine(EnterpriseSession.java:72)
at com.tidalsoft.adaptors.buisnessobjects.BO.main(BO.java:28) -
com.crystaldecisions.sdk.exception.SDKException$ServiceNotFound: The service WebiReportEngine could not be found
Here is the code I have used to obtain a report engine object
oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cms, authType);
reportEngine = (ReportEngine) oEnterpriseSession.getService("","WebiReportEngine");
Exception lies in the above line .. I am not able to debugTo get the ReportEngine object use the following code:
// Retrieve the Report Engines
ReportEngines boReportEngines = (ReportEngines) boEnterpriseSession.getService("ReportEngines");
// Retrieve the Report Engine for Web Intelligence documents
ReportEngine boReportEngine = boReportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
You may also want to look at our samples using the Report Engine SDK available here:
http://diamond.businessobjects.com/samples/86/1199/
Maybe you are looking for
-
A certain album won't download to my iPod
I buy physical copies of albums and download them to my iTunes then sync the ones i like to my iPod (touch. the older version (if that mattered)) but a certain album (the new One Direction Four album) i even made a playlist to put the album in a syn
-
How import from camcorder to iMovie as one clip?
When I import from my mini-dv camcorder (Canon) into iMovie '09, iMovie splits into many clips. The problem is, it gets confused and about 10% of the clips are like 0.1 sec and named something not related to date/time like the rest of the clips. As a
-
"An attempt to resolve the DNS name of a domain controller in the domain being joined has failed." This is the error message I get whenever I try to connect to my servers domain which I just set up earlier today. I have read through a bunch of other
-
Why are Exported files so Large?
I import DNG files form a K20D - size is around 23MB. If I put these through lightroom and make a few edits including cropping then export the image to Tiff the files grows to around 80MB. I thought the export process was supposed to embedd all the c
-
Facebook chat - sending messages to offline contact
Whenever I am writing something to a Facebook contact via Skype, and this person happens to go offline, even if it is just for a minute, the Skype window prohibits me from typing anything else as it changes to the "x is offline. Send SMS" window imme