NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag

any help appreciated, I get this error when I deploy to weblogic 10.x server.
it works fine for tomcat 6.
java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webap
p/UIComponentTag
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291
        Truncated. see log file for complete stacktrace
java.lang.NoClassDefFoundError: com/crystaldecisions/report/web/jsf/JSFViewerTag : javax/faces/webap
p/UIComponentTag
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291
        Truncated. see log file for complete stacktrace
>
============================================
Which libs I am missing in my war file,

this is taken care,
If you use project of WTP 2.5 type, it has issues, if your project is of type 2.4 this is no more issue.

Similar Messages

  • ERROR reports.reportdefinition : com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length

    I have developed Java web application which uses Crystal Report 2013 , java 1.6 , Windows 32 bit System, All the reports are loading fine in the Following environment
    Development Environment
    Windows7 Professional Service pack 1 -32 bit
    Java - 1.6
    Internet Explorer 11
    Oracle Client 10g 32 bit ODBC driver
    Testing Environment
    Windows Server 2008 R2 Enterprise - 64 bit
    java 1.6
    Internet Explorer 9
    Oracle Client 11g 62 bit ODBC driver
    While loading reports in the 64 bit server the error occurs
    ERROR reports.reportdefinition :  com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
    ERROR dataengine.datasource : Failed to read next recurring database record: database row set error.
    com.crystaldecisions.reports.reportdefinition.datainterface.j: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
        at com.crystaldecisions.reports.reportdefinition.datainterface.q.a(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.m(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.l(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.bn(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.bp(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
        at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.ab(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.if(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.h(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.i.h(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.void(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.aE(Unknown Source)
        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
        at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
        at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
        at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
        at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
        at com.erm.controller.ALMReportsController.queryDll(ALMReportsController.java:1681)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:471)
        at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:408)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.erm.authentication.HttpSecurityFilter.doFilter(HttpSecurityFilter.java:658)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
        at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)
        at com.crystaldecisions.reports.queryengine.ap.if(Unknown Source)
        at com.crystaldecisions.reports.queryengine.l.bN(Unknown Source)
        at com.crystaldecisions.reports.queryengine.ap.eg(Unknown Source)
        at com.crystaldecisions.reports.queryengine.ap.e(Unknown Source)
        at com.crystaldecisions.reports.queryengine.b2.f(Unknown Source)
        at com.crystaldecisions.reports.queryengine.b2.dy(Unknown Source)
        ... 89 more
    Caused by: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
        at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcResultSet.getBigDecimal(Unknown Source)

    A few things to note:
    1) Crystal Report 2013 doe snot install any SDK. Thus the assumption is that you are using CR from teh following link:
    SAP BusinessObjects - SAP Crystal Reports, Version For Eclipse Download
    2) Since you are using a 64 bit connection (Oracle Client 11g 62 bit ODBC driver) you will have to make sure you are using 64 bit JVM. Otherwise, follow Dell's advice and use a 32 bit ODBC datasource.
    3) On one test you are using Oracle Client 10g 32 bit ODBC driver and the other you are using Oracle Client 11g 64 bit ODBC driver. You might want to see if you can run your app using Client 11g 32 bit ODBC driver.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada

  • Crystal Report 2011  CrystalDecision.reports.web.dll Not found

    Dear All,
    Scenario 1:
    I want to use crystal report in my web application developed in 2008 so,
    I have been  install Crystal Report 2011 Evaluation copy download from SAP Site.
    But it will not found following necessary dll file after installing it.
    1. CrystalDecision.reports.web.dll
    2.  CrystalDecision.reportsource.dll
    3.  CrystalDecision.reports.engine.dll
    4.   CrystalDecision.reports.shared.dll
       This files are necessary to load crystal report on webForm.
    Scenario 2:
        I want to download Crystal report 2011 run-time but i found it with must install visual studio 2010 setup.,
    so, i need crystal report 2011 run-time which will run with dependency of VS 2010 and with both .net framework 3.5
    and 4.0
    So,Can anybody tell me solution about this scenarios.

    Hi,
    There is no .NET SDk for CR 2011. It does not install any SDk assemblies.
    No SDk means No runtimes.
    [http://forums.sdn.sap.com/thread.jspa?messageID=10937322#10937322|http://forums.sdn.sap.com/thread.jspa?messageID=10937322#10937322]
    [https://weblogs.sdn.sap.com/pub/wlg/25302|https://weblogs.sdn.sap.com/pub/wlg/25302]
    [http://forums.sdn.sap.com/thread.jspa?messageID=10814217#10814217|http://forums.sdn.sap.com/thread.jspa?messageID=10814217#10814217]
    [1606608 - Where is the SDK for VS .NET in Crystal Reports 2011? |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633303336333633303338%7D.do]
    Use either CR 2008 + VS 2008 or VS 2010 + CR for VS 2010
    - Bhushan.
    Edited by: Bhushan Hyalij on Feb 9, 2012 1:32 PM

  • Could not initialize class com.crystaldecisions.reports.formatter.export2.E

    i m using Eclipse 3.4.1 Crystal Reports development tool. I have tried to develop a report. On preview it's working fine. when i host the application into tomcat6.0 and tried to open the link, web page provides an Error like "Could not initialize class com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx"
    1 hr before it was worked but not now. i had tried in all the way but getting same problem.
    Anyone help me to solve this issue.
    Thanks in advance.
    Regards,
    Ram

    Thanks Ted. Can u help me on changing the datasource.
    Actually i need to change the datasource from development environment to production server. i had configured the JNDI informations like the following:
    <Context path="/RFT" docBase="RFT" reloadable="true">
            <Resource
              auth="Container"
              type="javax.sql.DataSource"
              driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
              validationQuery="select 1"
              name="jdbc/datasource"
              username="sa"
              password="$m1sbag$"
              maxIdle="-1"
                     maxActive="0"
              maxWait="5000"
                url="jdbc:microsoft:sqlserver://172.24.151.149:1433;databaseName=Projectgold" />
               <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>
    and mentioned the JNDI Connection Name as 'jdbc/datasource'. but still getting the same connection which one is configured during the report design. need your help to resolve this...
    Thanks,
    Ram

  • U201Ccom.crystaldecisions.report.web.viewer-600,000 milliseconds timeout

    Could you please help me as I am getting the following error when I run the report fro GUI.
    I am using the CR10 on UNIX env and Webshere.
    u201Ccom.crystaldecisions.report.web.viewer.ReportExportControl The request timed out because there has been no reply from the server for 600,000 millisecondsu201D
    But when i ran the same report from Crystal Manaagement console - It works fine.
    Please help me

    Could you please help me as I am getting the following error when I run the report fro GUI.
    I am using the CR10 on UNIX env and Webshere.
    u201Ccom.crystaldecisions.report.web.viewer.ReportExportControl The request timed out because there has been no reply from the server for 600,000 millisecondsu201D
    But when i ran the same report from Crystal Manaagement console - It works fine.
    Please help me

  • Could not initialize class com.crystaldecisions.reports.dataengine.DataSour

    Dear All,
    I am getting nuts and frustrated with Crystal Reports currently. One day or the other some problem
    is coming where there is no reference how to solve it. The support is very slow for java developers.
    Anyhow, i made to work the formula, i was working on yesterday with the PREVIEW inside Eclipse
    Helios.
    Now when i generated the JSP for it, i have started getting strange error, here is it given
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not initialize class com.crystaldecisions.reports.dataengine.DataSourceManager---- Error code:-2147467259 Error code name:failed
    I dont now what to do, i am in fix, please help.
    Prithvi

    That file is found in CrystalReportsRuntime.jar

  • ParameterFieldController class and getDataDefController() method missing from com.crystaldecisions.reports.sdk.*

    I am trying to use the desktop samples for the JRC. The parameter setting sample will not compile because the ParameterFieldController class and the ReportClientDocument's getDataDefController() method are missing from com.crystaldecisions.reports.sdk.* .
    I have release 2 of Crystal Reports XI Developer and should have the most up to date jrcerom.jar file for that product. What is it going to take to get this working? This is a critical aspect of using Crystal Reports for our java application reporting needs.
    Prompt attention to this is appreciated.

    <p> </p><p>That class is not in that package, but another package imported in the sample, and in a different jar file. </p><p>The readme file should reference a deployment guide listing the required jar files, which I&#39;ve copied here:</p><p> <a href="http://support.businessobjects.com/communityCS/TechnicalPapers/cr_xi_r2_jrc_deployment.pdf" target="_blank">http://support.businessobjects.com/communityCS/TechnicalPapers/cr_xi_r2_jrc_deployment.pdf</a></p><p>Sincerely,</p><p>Ted Ueda </p>

  • 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

  • NoSuchMethodError in com.crystaldecisions.sdk.occa.report.reportsource.IRep

    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,
    Steve

    Hi 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

  • Error while defining class: com.crystaldecisions.data.xml.CRDB_XMLImpl This error indicates that the class: OCA.OCAdbdll.DbDLLOperations could not be located while defining the class: com.crystaldecisions.data.xml.CR...

    Post Author: lkamesam
    CA Forum: Integrated Solutions
    Hi,
            I am running Crystal Reports version 10 from IBM Rational 6.0.1  build 20050725_1800 XML data source. When I try to run the report under WAS 6.0.1 I get the following error:
    Does any body have any clue how to resolve my problem? Thanks
    Error 500: Error while defining class: com.crystaldecisions.data.xml.CRDB_XMLImpl This error indicates that the class: OCA.OCAdbdll.DbDLLOperations could not be located while defining the class: com.crystaldecisions.data.xml.CRDB_XMLImpl This is often caused by having the class at a higher point in the classloader hierarchy Dumping the current context classloader hierarchy: ==> indicates defining classloader *** indicates classloader where the missing class could have been found ==>&#91;0&#93; com.ibm.ws.classloader.CompoundClassLoader@163dd786 Local ClassPath: C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\classes;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\bobj_platform_jsf.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cecore.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\celib.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\ceplugins.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cereports.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cesession.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\clientlogic.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\Concurrent.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CorbaIDL.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CRDBXMLExternal.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CRDBXMLServer.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalCharting.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalCommon.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalContentModels.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalExporters.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalExportingBase.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalFormulas.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalQueryEngine.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalReportEngine.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalReportingCommon.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\ebus405.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\icu4j.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\jrcerom.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\jsf_common.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\keycodeDecoder.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\log4j.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\MetafileRenderer.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rasapp.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rascore.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rpoifs.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\serialization.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\URIUtil.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\webreporting-jsf.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\webreporting.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\xercesImpl.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\xmlParserAPIs.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent; Delegation Mode: PARENT_FIRST &#91;1&#93; com.ibm.ws.classloader.JarClassLoader@338761606 Local Classpath: Delegation mode: PARENT_FIRST &#91;2&#93; com.ibm.ws.classloader.ProtectionClassLoader@38e75786 &#91;3&#93; com.ibm.ws.bootstrap.ExtClassLoader@7e475784 &#91;4&#93; sun.misc.Launcher$AppClassLoader@7e5a5784 &#91;5&#93; sun.misc.Launcher$ExtClassLoader@7e565784 -Original exception- java.lang.NoClassDefFoundError: OCA/OCAdbdll/DbDLLOperations at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at com.crystaldecisions.reports.queryengine.driver.i.<init>(Unknown Source) at com.crystaldecisions.reports.queryengine.driver.i.case(Unknown Source) at com.crystaldecisions.reports.queryengine.av.ak(Unknown Source) at com.crystaldecisions.reports.queryengine.av.else(Unknown Source) at com.crystaldecisions.reports.queryengine.av.byte(Unknown Source) at com.crystaldecisions.reports.queryengine.av.do(Unknown Source) at com.crystaldecisions.reports.queryengine.as.new(Unknown Source) at com.crystaldecisions.reports.queryengine.at.long(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source) at com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source) at com.crystaldecisions.reports.common.ab.a(Unknown Source) at com.crystaldecisions.reports.common.ab.if(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source) at com.crystaldecisions.report.web.a.a.K(Unknown Source) at com.crystaldecisions.report.web.event.aa.a(Unknown Source) at com.crystaldecisions.report.web.event.aa.a(Unknown Source) at com.crystaldecisions.report.web.event.bx.a(Unknown Source) at com.crystaldecisions.report.web.event.b1.broadcast(Unknown Source) at com.crystaldecisions.report.web.event.as.a(Unknown Source) at com.crystaldecisions.report.web.WorkflowController.if(Unknown Source) at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source) at com.crystaldecisions.report.web.ServerControl.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source) at com.ibm._jsp._sample._jspx_meth_crviewer_viewer_0(_sample.java:135) at com.ibm._jsp._sample._jspService(_sample.java:77) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at

    For those who would have the same problem, here is how I could eventually fix it.
    Since the Flex Test Drive is sometimes out of sync with flash builder 4, I recreated a project using other help pages on Adobe site :
    Entry point :
    http://help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08- 7ffd.html
    As suggested, I used the New Project wizard to create a new project, with :
    Application server type : J2EE
    Check the radio button "Use remote object access service : BlazeDS"
    Then, as indicated in following pages (section "Accessing BlazeDS")... :
    file:///C:/Mes%20documents%20C/Commun/Developpement/Documentation/HT-Tracks/AccessingData/ help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08-7ffe.ht ml#WSbde04e3d3e6474c4-19a3f0e0122be55e1b7-8000
    ...I selected the "Data / Connect to Data/Services..." menu option, which started the Data/service connection wizard.
    There, I selected a BlazeDS (and not Web Services) service type, and everything went fine.
    Suggestion to adobe staff : maybe it would be useful to update the Flex Test Drive to reflect Flash Builder 4 ?
    Very nice product anyway, so far, congratulations...
    Rgds
    Marc.

  • 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.occa.report.lib.ReportSDKException: rowIndex

    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 Westra

    I 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?

  • Com/crystaldecisions/enterprise/ocaframework/idl/PingerExHelper

    Using Crystal Report Server XI R2 and the included RAS SDK for report development in a web app.
    The web application is hoisted on a WebLogic server, below stack trace is shown in the server log
    after leaving the web application running for a while, ~ 15 minutes: 
    java.lang.NoClassDefFoundError: com/crystaldecisions/enterprise/ocaframework/idl/PingerExHelper
         at com.crystaldecisions.enterprise.ocaframework.aa.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.p.do(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.int(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.n.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:595)
    Exception in thread "ORBacus:Client:SenderThread" java.lang.NoClassDefFoundError: com/crystaldecisions/thirdparty/org/omg/CORBA/TRANSIENT
         at com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded.senderRun   (GIOPClientWorkerThreaded.java:452)
         at com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded$SenderThread.run(GIOPClientWorkerThreaded.java:57)
    What is causing these errors and how can we fix it?
    Thanks.

    Yes, double checked to make sure corbaidl.jar file is in WEB-INF/lib but still errors.
    12:05:29-ERROR-com.crystaldecisions.enterprise.ocaframework.ActiveScanner-(run:44):
    java.lang.NoClassDefFoundError: com/crystaldecisions/enterprise/ocaframework/idl/PingerExHelper
         at com.crystaldecisions.enterprise.ocaframework.aa.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.p.do(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.int(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.n.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:595)
    Exception in thread "ORBacus:Client:SenderThread" Exception in thread "ORBacus:Client:SenderThread" java.lang.NoClassDefFoundError: com/crystaldecisions/thirdparty/org/omg/CORBA/TRANSIENT
         at com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded.senderRun(GIOPClientWorkerThreaded.java:452)
         at com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded$SenderThread.run(GIOPClientWorkerThreaded.java:57)
    java.lang.NoClassDefFoundError: com/crystaldecisions/thirdparty/org/omg/CORBA/TRANSIENT
         at com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded.senderRun(GIOPClientWorkerThreaded.java:452)
         at com.crystaldecisions.thirdparty.com.ooc.OB.GIOPClientWorkerThreaded$SenderThread.run(GIOPClientWorkerThreaded.java:57)
    Any other ideas?
    Thanks
    Johnny

  • Crystal Reports (Web Viewer) Configuration Problem

    Hi,
    I am trying to show a simple report via JSP. But it gives an error that I could not understand. I think it is related with configuration files. Any recommendations would be helpful!
    The error's print stack trace and my configuration file's contents are below.
    Thanks in advance.
    [15.04.2005 11:11:09:570 EEST] 200a3132 WebGroup E SRVE0026E: [Servlet Error]-[Failed to setup the formula service!]: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Failed to setup the formula service!---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
         at org.apache.jsp._deneme._jspService(deneme.jsp :4)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Crystal-config.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <crystal-configuration>
         <shared-location>
              <crystal-jar-location>C:\Program Files\Common Files\Crystal Decisions\2.5</crystal-jar-location>
         </shared-location>
         <build-language>
              en
         </build-language>
         <build-number>
              10
         </build-number>
    </crystal-configuration>
    CrystalReportEngine-config.xml
    <?xml version="1.0" encoding="utf-8"?><CrystalReportEngine-configuration>
    <reportlocation>../..</reportlocation>
    <timeout>10</timeout>
    <keycode>A2960-01C00EA-00000YK</keycode></CrystalReportEngine-configuration>
    helloworld.jsp (code part)
        String report = "helloWorld.rpt";
        IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
        IReportSource reportSource = (IReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
        CrystalReportViewer viewer = new CrystalReportViewer();
        viewer.setReportSource(reportSource);
        viewer.refresh();
        viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
        viewer.dispose();//-----------------------------------------------------------
    I use WepSphere, Crystal Reports 10.
    My web project folder hierarchy:
    /WebContent/WEB-INF/classes/Crystal-config.xml
    /WebContent/WEB-INF/classes/CrystalReportEngine-config.xml
    /WebContent/crystalreportviewers10/
    /WebContent/helloworld.jsp
    /WebContent/helloworld.rpt
    Any information would be greately appreciated!!
    Thanks,
    Ismail.

    Hi,
    Yes I have copied all the far files into web-inf/lib directory. I think .jar files are not the problem. But I can try any proposal about this. Because I have to solve this problem.
    If you have any idea please tell me.
    isturk.

  • Please please help, What is crystaldecisions.reports.reportengineinterface.JPEReportSource?

    Post Author: emmy
    CA Forum: Crystal Reports
    Hi All,
        I'm new in Crystal Report, I'm using Crystal Report 11 with Release 2, Eclipse3.2.1 MyFace1.1, when i link into a page and use a bean to show a project template, it all successful, but when i press "Back" in my browser tool bar and try to link into this page again, it show me error message followed:
    type Exception report message  description The server encountered an internal error () that prevented it from fulfilling this request. exception  javax.servlet.ServletException: Bean: com.crystaldecisions.reports.reportengineinterface.JPEReportSource, property: signInjavax.faces.webapp.FacesServlet.service(FacesServlet.java:152)org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)  root cause  javax.faces.el.PropertyNotFoundException: Bean: com.crystaldecisions.reports.reportengineinterface.JPEReportSource, property: signInorg.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:483)org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:454)org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:417)org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)javax.faces.component.UIOutput.getValue(UIOutput.java:77)javax.faces.component.UIInput.validate(UIInput.java:357)javax.faces.component.UIInput.processValidators(UIInput.java:183)javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)javax.faces.component.UIForm.processValidators(UIForm.java:70)javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
    and its my original beanimport java.util.Map;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import com.crystaldecisions.reports.sdk.ParameterFieldController;
    import com.crystaldecisions.reports.sdk.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
    public class LIC3360{
         private String licenseNum="0009/K/2005";
         private String signIn="nonvice";
         final String USER = "USER";
         final String PASSWORD = "PASSWORD";
         public String getLicenseNum() {
              return licenseNum;
         public void setLicenseNum(String licenseNum) {
              this.licenseNum = licenseNum;
         public String getSignIn() {
              return signIn;
         public void setSignIn(String signIn) {
              this.signIn = signIn;
         public String postMe(){
              String reportType ="LIC3360";
              String postLicenseNum = this.licenseNum;
              String postSingIn = this.signIn;
              FacesContext context = FacesContext.getCurrentInstance();
              ExternalContext app = context.getExternalContext();
              Map<Object, Object> sessionMap = app.getSessionMap();
              ReportClientDocument reportClientDoc = new ReportClientDocument();
              try{
                   reportClientDoc.open(reportType + ".rpt", 0);
                   ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
                   paramFieldController.setCurrentValue("", "@lic_num", postLicenseNum);
                   paramFieldController.setCurrentValue("", "@person", postSingIn);
                   //set final
                   reportClientDoc.getDatabaseController().logon(USER, PASSWORD);
                   sessionMap.put("reportType", reportType);
                   sessionMap.put(reportType, reportClientDoc.getReportSource());
                 return "post";
         catch(ReportSDKException e){
              System.out.println("ReportSDKException!!!!!!!");
         catch(Exception e){
              System.out.println("Other Exception!!!!!!!");
         return "post";
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.I'm really don't understand, I didn't have a bean call com.crystaldecisions.reports.reportengineinterface.JPEReportSource, how come it appear and own some property in my orginal bean, would anyone please help me. Thank you so much

    Post Author: emmy
    CA Forum: Crystal Reports
    hi, anyone have any idea

Maybe you are looking for