Using .csv files in Crystal Reports for Eclipse?

I recently installed crystal reports for Eclipse and much of the basic CR functionality seems to be there, but then I added a .csv file as an ODA flat file data source and I can see it in my "Data Source Explorer", but can not seem to drag it into my report to actually report on the data in this file. Am I missing some basic step?
Thanks,
Chris

Not all data sources available via the Eclipse Database Explorer component are supported with Crystal Reports for Eclipse.
CSV data sources currently isn't on the [Supported Platforms doc|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20c69834-cfc4-2b10-da81-960222254295]
Sincerely,
Ted Ueda

Similar Messages

  • Exception-Error when excecuting JSP-File in Crystal reports for Eclipse

    Hi,
    I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
    Coud anyone help me?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
    An error occurred at line: 7 in the generated java file
    Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
    An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
    ReportClientDocument cannot be resolved to a type
    10:      try catch (ReportSDKExceptionBase e)
    60:      
    An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
    e cannot be resolved
    55:
    56:
    57:      } catch (ReportSDKExceptionBase e)
    60:      
    61: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26
    Bericht1.jsp:
    <%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              String reportName = "Bericht1.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                        // Create the CrystalReportViewer object
                        CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                        //     set the reportsource property of the viewer
                        IReportSource reportSource = clientDoc.getReportSource();                    
                        crystalReportPageViewer.setReportSource(reportSource);
                        // set viewer attributes
                        crystalReportPageViewer.setOwnPage(true);
                        crystalReportPageViewer.setOwnForm(true);
                        // Apply the viewer preference attributes
                        // Process the report
                        crystalReportPageViewer.processHttpRequest(request, response, application, null);
                   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Thanks
    Arnold

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • How to use stored procedure in crystal report for eclipse

    Hi;
    I am working on crystal report for eclipse 2.0 and  trying to use stored procedure in report .It is created from Oracle but it is not showing any dependencies
    CREATE OR REPLACE procedure ACT_DB.getCostTransferDetails
            p_In_Contract_ID         varchar2 DEFAULT  '*',
            p_In_Status_ID           varchar2 DEFAULT  '*',
            p_In_COST_TRAN_DATE      varchar2 DEFAULT  '*',
            p_In_DEPT_ID             varchar2 DEFAULT  '*',
            p_In_PROJECT_ID          varchar2 DEFAULT  '*',
            p_In_EMPLOYEE_ID         varchar2 DEFAULT  '*',
            p_Out_CostTransfer_Cusor OUT COST_TRANSFER_PACKAGE.COST_TRANSFER_TYPE
    AS
    BEGIN    
            OPEN p_Out_CostTransfer_Cusor FOR
            SELECT
                header.cost_tran_id,
                header.cost_tran_date,
                header.total_credit_amount,
                header.total_debit_amount,
                header.transfer_status,
                header.updated_by,
                header.added_by,
                header.trf_over_ninety_days,
                header.business_unit_id,
                header.equip_approval,
                header.batch_desc,
                details.opr_unit_id,
                status.status_id,
                details.fund_code_id,
                details.prgm_code_id,
                details.class_id,
                details.activity_id,
                details.product_id,
                details.status_id,
                details.transaction_amount,
                details.jrnl_date,
                details.adjust_prcnt,
                details.adjust_amnt,
                details.details_equip_approval,
                details.detail_desc,
                details.account_id,
                details.project_id,
                details.dept_id,
                details.contract_id,
                details.reason_code_id,
                details.jrnl_id,
                employee.f_name,
                employee.l_name,
                employee.employee_id,
                project.project_id,
                project.project_status,
                --header.transfer_status,
                contracts.contract_desc 
              FROM header, details, status, employee, department, project, contracts
             WHERE     (header.cost_tran_id = details.cost_tran_id)
                    AND (header.cost_tran_date = details.cost_tran_date)
                    AND (header.transfer_status = status.status_id)
                    AND (department.dept_id = details.dept_id)
                    AND (department.dept_id = employee.dept_id)
                    AND (project.project_id = details.project_id)
                    AND (contracts.contract_id = details.contract_id)
                    AND (details.Contract_ID = p_In_Contract_ID OR p_In_Contract_ID ='*' )
                    AND (header.TRANSFER_STATUS = p_In_Status_ID OR p_In_Status_ID ='*' )
                    AND (TO_CHAR(details.COST_TRAN_DATE, 'MM/DD/YYYY') = p_In_COST_TRAN_DATE OR p_In_COST_TRAN_DATE ='*' )
                    AND (details.DEPT_ID  = p_In_DEPT_ID  OR p_In_DEPT_ID  ='*' )
                    AND (details.PROJECT_ID  = p_In_PROJECT_ID  OR p_In_PROJECT_ID  ='*' )
                    AND (header.ADDED_BY  = p_In_EMPLOYEE_ID  OR '*'=p_In_EMPLOYEE_ID  )
    Can any another way to make procedure
    Thanx
    Regards ,
    Amol

    Hi Amol,
    Are you able to execute your stored procedure from oracle?.
    - If "Yes" then use  the Crystal Report XIR2 Designer to create the report.
    - Import this report in the Crystal Report For Eclipse Workbench.
    - The latest version for Crystal Report For Eclipse is SP1.
    Please let me know the results.
    Thanks,
    Neeraj

  • Crystal Reports for Eclipse - Using .csv files?

    I recently installed crystal reports for Eclipse and much of the basic CR functionality seems to be there, but then I added a .csv file as an ODA flat file data source and I can see it in my "Data Source Explorer", but can not seem to drag it into my report to actually use the data.  Am I missing some basic step?
    Thanks,
    Chris

    Hello Chris,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • How to use Crystal Report Server with Crystal Reports for Eclipse

    Hi,
    is it possible to use Crystal Reports for Eclipse with the Crystal Report Server
    like i can do it in Crystal Reports.
    For Example open a Report file directly from the server edit and save there.
    Thanks
    Thomas

    Yes, you can use the CR Server product in your Eclipse project.  However, you will need to use the RAS SDK in your project instead of the CR4E SDK. 
    For more information about the RAS SDK, visit the DevLibrary.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    -MJ

  • How to use a stored procedure as a datasource in Crystal Report for Eclipse

    Hi All,
    I've written a stored procedure in oracle 10g with few input parameters and one refcursor output parameter. I want to use this stored procedure as a data source for creating a report in "Crystal Report For Eclipse 3.6.0".
    When I tried to add this stored procedure to the report using the connection explorer, I don't see any option to do this. But when I try to add any table, it shows options like "Add to the current report"....
    Can anybody assist me how to use a stored procedure as a data source in "Crystal Report For Eclipse"?
    Which driver should I use to connect to the oracle database? I tried using JDBC Driver for Oracle.
    Thanks in advance.

    Did you solve your problem? How did you do?

  • Test Connection failed in Crystal Reports for Eclipse using SQL Server 2008

    I installed an SQL Server Express 2008 on my local PC (Window XP SP3). I downloaded sqljdbc4.jar to Crystal Reports for Eclipse
    IDE library path and tried to Test Connection, but got the Ping failed message : The TCP/IP connection to the host localhost, port 1433 has failed. It said that check that an instance of SQL Server is running on the host (I saw SQL Server SQLEXPRESS is Running on my PC) and accepting TCP/IP connection at the port (I enabled TCP/IPin my PC's SQL Server Network Configuration),
    and that no firewall is blocking TCP connection to the port(I turned OFF Window Firewall on my OC). Can anyone tell me how can I fix this problem ?

    Hi,
    Check the below thread also:
    http://scn.sap.com/thread/1634856
    Thanks,
    DJ

  • Crystal Reports for Eclipse 2.0 - Service Pack 1 - is Now Available!

    Service Pack 1 for Crystal Reports for Eclipse 2.0 is now available!
    Readme file listing the fixes is here:
    [http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4ev2_readme.pdf]
    Kirby Leong in another post listed the download URLs, which I'll copy here:
    CR4E Runtime Package
    [http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/crjava-runtime_12.2.202.zip]
    CR4E Manual Install Package
    [http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4e_2.0.1.zip]
    CR4E All-In-One Package
    [http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4e-all-in-one-win_2.0.1.zip]
    CR4E Language Packs
    [http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4e.nls1_2.0.1.zip]
    [http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4e.nls2_2.0.1.zip]
    If you wish to use the Eclipse IDE Software Updater:
    1. Start Eclipse 3.4.1 (Gemini) IDE.
    2. Select Help -> Software Updates...
    3. Select the "Available Software" tab.
    4. Click the "Manage Sites..." button.
    5. If you do not see the following URL listed:
    http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/update_site/
        then click "Add..." and add it.
    6. Select the above URL in the "Available Software Sites", then click "OK".
    7. The Available Software should now list the above URL.  Open the node, and you should see "Crystal Reports for Eclipse".
    8. Check all checkboxes for "Crystal Reports for Eclipse", and "Install..."
    After successful update, you'll see version 2.0.1 listed in Help -> About Eclipse SDK and clicking on the "Crystal Reports for Eclipse" icon (blue swoosh with green diamond).
    If you don't see that version listed, here's some troubleshooting tips:
    Open a web browser, and Go to the following URL:
      http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/update_site/site.xml
    You should get back a XML file listed the current CR4E plugin and language packs versions.  If you get an error instead, it may be because (1) you're in a locked down environment that won't let you access that site, or (2) the CR4E Update Site may be down for maintenance.   If the former, you'll have to download the updates by some other means and upgrade manually.

    hello ....
    my report is  ''crystal report 11'' => "OLE DB"  => "Add Command(select * from table) " .
    code(JRC) : eclipse + crystal report for eclipse version 2 =>  "cr4e-all-in-one-win_2.0.1.zip"
    <%@ page contentType="text/html; charset=UTF-8"
    import="
    com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    java.sql.Connection,
    java.sql.DriverManager,
    java.sql.ResultSet,
    java.sql.SQLException,
    java.sql.Statement" %>
    <%
    try {
         String reportName = "report.rpt";
         ReportClientDocument clientDoc = new ReportClientDocument();
         clientDoc.open(reportName, 0);
         String tableAlias = "Command";
         clientDoc.getDatabaseController().setDataSource(
                   myResult("SELECT * FROM table"),
                   tableAlias,"resultsetTable");
         CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
         crystalReportPageViewer.setReportSource(clientDoc.getReportSource());
         crystalReportPageViewer.processHttpRequest(
                   request,
                   response,
                   application,
                   null);
    } catch (ReportSDKExceptionBase e) {
         e.printStackTrace();
        out.println(e);
    %>
    I simplified the code, *myResult("SELECT * FROM table") *  is absolutely no problem ,
    and this code is absolutely no problem in the "crystal report for eclipse "version 1
    but in  version 2 run error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: 無法預期的資料庫連線器錯誤---- Error code:-2147467259 Error code name:failed
    Please help me and tell me why....

  • Accessing test.jsp page outside Crystal Reports for Eclipse

    <p><br />Hello All,</p><p>Iam very very new to Crystal Reports for Eclipse...</p><p>I have created a .jsp called as test.jsp (by using the help file which i downloaded from diamond)..</p><p>I have created a report called CrystalReport1.rpt and i have integreatd the same with a .jsp called test.jsp</p><p>I can see the file running absoultely fine in Eclipse but when I ty to open using Internet explorer by gidving <a href="http://localhost:8080/WebContent/test.jsp">http://localhost:8080/WebContent/test.jsp</a> iam getting nothing...</p><p>Can anyone here help to open the same file using Internet explorer?</p><p>The reason why i want to open it Internet explorer is becasuse i wanted to integreat the new jsp file with my current application which is developed using jsp...</p><p>Is it require to deploy the application something like we do in Visual Studio?</p><p>Thanks in advance</p><p>Jack<br /></p>

    Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a>

  • Crystal Reports for Eclipse Version 2 - XML, XSD Report. Need hep !!!

    Dear all,
    I'm using Crystal Reports for Eclipse Version 2
    I have looked for "Programmatically Create Reports off of XML or Web Services Data Sources", then i found some ways to do this.
    But all the time, we have to use both XSD and XML files for Report Data Sources.
    My question is:
    1. Can we just add XSD file to report to define or update the report data definition only (no report data) ?
    2. Can we just add XML file to report to update report data only (do not change report definition) ?
    Anyone who have solved it, please give me an example.
    Thanks in advanced.
    Huy Nguyen

    Moved to Java forum

  • Unable to download the Crystal Reports for Eclipse

    <p>Hi,</p><p>I could able to see the download links for "Crystal Reports for Eclipse" in diamond site. But i am not able to download the file completely and the download is not supporting the resume option. Some times the downloads crosses 50% and finally the connection gets disconnected.</p><p>Is there any alternate way to download the content?</p><p>Regards,</p><p>Senthil </p><p> </p>

    Â Hi Senthil
    The only way for you to get CR4E is to download it from our web site.
    I just made a try, just to check if our web site was having any troubles today, and it worked fine, so I assume you might be experiencing some troubles on your side with your internet connexion.
    I have successfully downloaded the All-In-One zip file of CR4E, that you can find there :
    Â http://diamond.businessobjects.com/node/433
    I suggest you give it some more tries.
    Thank you for using CR4E.
    Thierry (Business Objects)

  • Cannot Install Crystal Reports for Eclipse v2.0 on Mac OSX

    I've tried to install the Crystal Reports plug-in to my Eclipse environment without any success.  No matter what I try, I get the same error message:
    "Cannot complete the install because one or more required items could not be found.
      Missing requirement: 1271104370856 0.0.0.1271104370856 requires 'com.businessobjects.crystalreports.integration.eclipse.feature.feature.group [2.0.6.r916]' but it could not be found"
    To the best of my knowledge, I've installed all the correct pre-requisites listed on the SAP website.  I've tried every search I can think of and have found nothing that helps.
    I'm at my wits end...please help!

    Note that the Crystal Reports for Eclipse 2.0 plugin is not supported nor tested on MacOS, regardless of version. 
    Feedback I've gotten is that the installation fails for the embedded designer components.
    The Crystal Reports Java SDK runtime components - the library used to run rpt files on desktop of web apps using Java - is supported and tested on MacOS 10.5
    You'll note that the Supported Platform guide for CR4E 2.0 is specific in listing support only for the Runtime.
    Sincerely,
    Ted Ueda

  • XMLExportFormat and Crystal Reports for Eclipse 2.0

    Hello,
    I found this example code on the Crystal Reports for Eclipse wiki but can't find XMLExportFormat(s) classes in any jar. XMLExportFormatOptions is still referenced in javadoc even if it is useless as it needs the above mentioned classes.
    I really need to export to default XML (as we used to do it in Crystal "save as..." menu) because those files are post-processed. Any hint ? Where can I find those classes ?
    1. Create a new XMLExportFormatOptions object.
      IXMLExportFormat xmlExportFormat = new XMLExportFormat();
      XMLExportFormats xmlExportFormats = new XMLExportFormats(); 
      IXMLExportFormatOptions xmlExpFormatOpts = new XMLExportFormatOptions();
    2. Use the PrintOutputController class to get the list of XML export format types saved with the report.
      xmlExportFormats = rcd.getPrintOutputController().getSavedXMLExportFormats();
      int index = xmlExportFormats.getDefaultExportSelection();
      xmlExpFormatOpts.setXMLExportSelection(index);
      xmlExportFormat = xmlExportFormats.getXMLExportFormat(index);
    3. Create an XMLExportFormatOptions object and set the export format type to XML.
      IExportOptions expOpts = new ExportOptions();
      expOpts.setExportFormatType(ReportExportFormat.XML);
    4. Apply the XML export options.
      expOpts.setFormatOptions(xmlExpFormatOpts);
    5. Creates a new file with the specified path, name, and file extension.
      String xmlPath = "C:
    " + rcd.displayName() + "_" + xmlExportFormat.getName() + "." + xmlExportFormat.getFileExtension();
      FileOutputStream fs = new FileOutputStream(xmlPath);
    6. Creates a new ByteArrayInputStream object, streams the file using the Write method, and closes the stream.
      ByteArrayInputStream byteIS = (ByteArrayInputStream)rcd.getPrintOutputController().export(expOpts);
      byte[] buf = new byte[2000 * 1024];
      int nRead = 0; 
      int maxSize = buf.length;
      while ((nRead = byteIS.read(buf)) != -1)
         fs.write(buf, 0, maxSize);
      fs.close();

    I found the code at that url:
    https://www.sdn.sap.com/irj/boc/sdklibrary
    Go to "Report Application Server Java SDK Developer Guide" link. It's a zip file.
    In the zip file you can go right up to topic93.html
    I found another example here:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/webcontent/uuid/f0aea666-5384-2b10-ffb0-a6facef1d5e5 [original link is broken]
    See example under "Java_RAS-Managed_BE12_Export_XML"
    Anyway, I've never used Crystal till now and I'm totally lost in all those libraries. I found examples but on those example pages there are never links to libraries neither references to versions. So I just downloaded Crystal Report for Eclipse 2.0 but the examples didn't compile because classes in these examples don't exist. (!?)  Please, don't tell me about "you can do that or you can not do that with version X or version Y" but give me a hint on what I need to run these examples and where to find it, or simply how I can output a report to xml.
    (forgive bad english)
    Thanks for your help,
    Fabrice

  • Crystal Reports for Eclipse 2.0.1 - MyEclipse 7.5

    Hello,
    I'm wondering if somebody has a complete solution?
    For <b>MyEclipse 7.5</b> I'm having difficulties installing <b>Crystal Reports for Eclipse 2.0.1</b>.
    After reading a MyEclipseIde.com thread of februar 2009: <a href="http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=22946&highlight=crystalreportsinstall+issue">Crystal reports/Business object update issue with Myeclipse7</a>
    I used <b>dropins</b> which does install most of the features, but not all.
    Pulse has automaticly detected drop-ins added or removed from your configuaration. The following is a report of the software detected by Pulse.
    The following software could not be provisioned:
    com.businessobjects.integration.eclipse.feature.feature.group2.0.1.r566: missing iu
    com.businessobjects.integration.eclipse.feature.nls1.feature.group{2.0.1.r566, 2.0.1.r566], iu
    com.businessobjects.integration.eclipse.feature.nls2.feature.group{2.0.1.r566, 2.0.1.r566], iu
    org.eclipse.datatools.connectivity.feature.group[1.6.0,2.0.0), iu
    org.eclipse.wst.feature.group. [3.0.0,4.0.0)

    My questions was answered at a [MyEclipse|www.myeclipseide.com] forum: <a href="http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=107246#107246">http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=107246#107246</a> ...
    1. Install Eclipse SDK 3.4.1 with Crystal Reports
    2. Upgrade to Eclipse SDK 3.4.2 from Eclipse SDK 3.4.1
    3. Add MyEclipse7.5 plugin using the update site [url]http://downloads.myeclipseide.com/downloads/products/eworkbench/ganymede-latest/[/url]

  • Problem with Crystal reports for Eclipse and Postgres-databases

    Hi,
    Is there a known problem when using a PostgreSQL-database to create a report with Crystal reports Plugin? When I drag a table, then occurs a error-windows, that the object can't  created.
    I have found a workaround for solving the problem. After new installing Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 and Crystal reports Plugin 11.8.6.v1371 with JRE 1.6.0_01 the error message allways occurs, when I select a table from a PostgreSQL database (Version 8.2). After restarting eclipse you see the last selected tables in the field explorer and you can drag the table fields in the report. A repeated choice of the same table causes aliases for the table in the field explorer after restarting eclipse.
    Error.log:
    eclipse.buildId=M20080911-1700
    java.version=1.6.0_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments:  -os win32 -ws win32 -arch x86
    Error
    Tue Dec 16 14:03:53 CET 2008
    Verursacht durch: java.lang.IllegalArgumentException
    com.businessobjects.crystalreports.designer.core.ReportException: java.lang.IllegalArgumentException
    at com.businessobjects.crystalreports.designer.core.ExceptionFactory.B(Unknown Source) at com.businessobjects.crystalreports.designer.core.ExceptionFactory.create(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.data.TableElement.add(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.AddCommand.doCommand(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.C(Unknown Source) at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(Unknown Source) at com.businessobjects.crystalreports.designer.CoreCommand.execute(Unknown Source) at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(Unknown Source) at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
    at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
    at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:455)
    at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:257)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
    at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method) at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:362)
    at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:288)
    at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:171)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.IllegalArgumentException---- Error code:-2147467259 Error code name:failed 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.ag.a(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.bu.if(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.bu.void(Unknown Source) at com.crystaldecisions.sdk.occa.report.application.a6.for(Unknown Source) at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)
    Best Regards
    Arnold

    Your issue appears to be a Crystal Reports for Eclipse report designer thing, and not a JRC runtime thing.  The JRC runtime does support Type 4 JDBC drivers, but all modern PostgreSQL drivers are Type 4.
    The current report designer is more restrictive than the JRC runtime - and PostgreSQL, being not on the supported platforms list, has never been tested with the embedded designer.
    Unless there's anybody out there with experience with PostgreSQL and CR4E designer, who would be willing to share their experiences.
    Sincerely,
    Ted Ueda

Maybe you are looking for