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

Similar Messages

  • I am getting an error [Microsoft][ODBC Driver Manager] invalid argument val

    My code is :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.Hashtable.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet
         Connection con;
         PreparedStatement ps;
         HttpSession session;
    public void init(ServletConfig sc) throws ServletException
    try
         super.init(sc);
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         }catch(ClassNotFoundException e)
    {System.out.println("SQLException"+e.getMessage());}
    try
         con=DriverManager.getConnection("jdbc:odbc:aaa","scott","tiger");
    }catch(SQLException e)
         System.out.println("SQLException caught" +e.getMessage());
    public void service(HttpServletRequest req, HttpServletResponse res)
         res.setContentType("text/html");
         try
         String ulogin=req.getParameter("login").trim();
         String upass=req.getParameter("pass").trim();
         ps=con.prepareStatement("select pass from Userdetails where login='"+ulogin+"'");
         session=req.getSession(true);
         session.putValue("n1",ulogin);
         ps.setString(1,upass);
         ResultSet rs=ps.executeQuery();
         if(rs.next())
              if(upass.equals(rs.getString(1)))
              res.sendRedirect("http://localhost:8080/Welcome.html");
              session.putValue("login",ulogin);
              else
              PrintWriter pw=res.getWriter();
              pw.println("Sorry your password is incorrect,Reenter your password
    <html><center>");
              pw.println(" <form input type=password name=pass>");
              pw.println("<input type=hidden name=login value="+ulogin+">");
              pw.println("<input type=submit value=submit>");
              pw.println("</form></center></html>");
         else
         System.out.println("your are not a registered user,please register");
         res.sendRedirect("http://localhost:8080/Register.html");
         rs.close();
         catch(Exception e)
              System.out.println(e);
    When i compile, it is well but when i run through displaying my html and passing the data to test,then i am getting an error [Microsoft][ODBC Driver Manager]invalid argument value,
    I was set all my DSN correctly,the same pieve of code worked in another program but now i am getting an error.can any one clear this.
    Thanks in advance

    You have created a PreparedStatement with zero parameters in this statement:
    ps=con.prepareStatement("select pass from Userdetails where login='"+ulogin+"'");so "ps.setString(1, ulogin)" fails because there is no place to put parameter 1. Try this instead:
    ps=con.prepareStatement("select pass from Userdetails where login=?");and your program will work better. Better still, create the PreparedStatement in your init() method, there's no reason for creating it more than once.

  • SQL Server Reporting Services: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Hey everyone, So I am trying to get a report onto the server, and in BIDS I kept getting a login screen repeating over and over when I tried to deploy my report, so I tried to upload the file at http://<servername>/Reports This worked, but then trying
    to run this report from http://<servername>/Reports did not work either because "An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'FTYDataSource'. (rsErrorOpeningConnection) For more information
    about this error navigate to the report server on the local server machine, or enable remote errors" Anyways I tried to add a New Data Source (which I would use in the report) at http://<servername>/Reports, type ODBC, with the connection string Dsn=blah_blahblah.
    I try to test the connection here and get the error ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This is really getting old fast, everything I try, a new error comes up. Granted I am new at this,
    but this still should not be this troublesome. Does anyone have any ideas on what could FINALLY allow me to just put a report out onto the server?!? THANK YOU in advance for ANY help.

    Hi,
    Please try setting the credentials of the datasource.
    1. Double click and open the datasource in your project.
    2. Click on the credentials tab, and click on option button 'Use this username and password'
    3. Enter the username and password to connect to the datasource
    4. Deploy or upload the datasource to the report server and try accessing the reports.
    Hope this helps.
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
    BH

  • ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in windows server 2008 r2

    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in windows server 2008 r2.I made a application in asp.net c#.I am using ODBC connection.When I deployed my application in windows server2008 r2.There
    is no Microsoft ODBC driver shown in ODBC Data source administrator.Then I go to the C:\Windows\SysWOW64 and open  Odbcad32.exe and add Microsoft ODBC2 driver for Oracle and when I run my application I got following error
    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    I am using follwoing string
     <connectionStrings>
    <add name="theconnetion" connectionString="DSN=abdb;UID=abc;PWD=xyz"/>
     </connectionStrings>
    Guide me What I do?

    Did you add a System DSN or a User DSN? If you added a User DSN from your own login, the asp.net application will not be able to use it unless its application Pool in IIS is configured to run under the same credentials that you used for creating
    the DSN. It's better if you add a System DSN.
    Also, be careful to ensure that you are using a 64 bit DSN, unless you configure the application to run in 32 bits. If the 64 bit application attempts to use the 32 bit driver you get the same error message "Data source name not found and no default
    driver specified". See this KB article:
    http://support.microsoft.com/kb/942976/en-us

  • Error: "Invalid string or buffer length" when using SQLColumns!

    I am calling SQLColumns through the Oracle ODBC driver to get the column information of a table. The Client version is 9.0.1.0 and the ODBC driver version is 9.0.1.8. If I am querying a table that does not has a long table name, fine; if I am querying a long table name, failed and reporting:
    [Oracle][ODBC]Invalid string or buffer length.
    Tried with MS Oracle driver, no problem. Anybody can help?
    Thanks in advance.

    the name is very long, like 'aaaabbbbccccddddeeeeffffrrrrdddaaa'. Maybe more than 20 charactors. I haven't find the exact number, before which SQLcolumns works, after which SQLColumns stop working.

  • Database link Oracle to MySql Error [Microsoft][ODBC Driver Manager]

    Dear all:
    I need your help, I want to access mysql database from oracle 11g r2. When I try to connect mysql database from oracle database I'm getting the error shown below, kindly help your help will be appreciated, thanks in advance
    When I excute:
    select * from test1@mysqltest;
    [ERROR]
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified {IM002}
    ORA-02063: preceding 2 lines from THAONT1.MYSQL
    28500. 00000 -  "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded message.
    My config
    oracle db:11.2.0.3 enterprise edition
    os:win 7 64 bits
    mysql connector odbc:64 bit
    mysql db:5.1.19
    ODBC Config
    LISTENER.ORA:
    =============
    # listener.ora Network Configuration File: D:\app\THAONTSE90151\product\11.2.0\dbhome_3\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = D:\app\THAONTSE90151\product\11.2.0\dbhome_3)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:D:\app\THAONTSE90151\product\11.2.0\dbhome_3\bin\oraclr11.dll")
        (SID_DESC =
          (SID_NAME = tst)
          (ORACLE_HOME = D:\app\THAONTSE90151\product\11.2.0\dbhome_3)
          (PROGRAM = dg4odbc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.1.58)(PORT = 1521))
    ADR_BASE_LISTENER = D:\app\THAONTSE90151
    TNSNAMES.ORA:
    ================
    TSTLINK =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.1.58)(PORT = 1521))
        (CONNECT_DATA =
          (SID = tst)
        (HS = OK)
    inittst.ora($ORACLE_HOME/hs/admin)
    ========================
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = testmysql
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set ODBCINI=D:\ODBC.INI
    dblink created from oracle to mysql:
    ==========================
    SQL> create public database link mysqltest
    connect to thaont identified by abc123 using 'TSTLINK';
    SQL>select * from test1@mysqltest;
    [ERROR]
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified {IM002}
    ORA-02063: preceding 2 lines from THAONT1.MYSQL
    28500. 00000 -  "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded message.
    kindly help.
    thanks & regards.

    The error message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified {IM002}" is self explainind - DG4ODBC is not able to find the ODBC DSN you created.
    In your gateway init file you configured the DSN: HS_FDS_CONNECT_INFO = testmysql
    And according to the Windows ODBC Admin screenshot you created a DSN called testmysql - unfortunately you created it as a USER DSN. But DG4ODBC needs a SYSTEM DSN. The reasin why it needs a system DSN is that by default the Oracle listener is running in the local system account. So when you create an ODBC USER DSN it can be access by the user who created it, but nobody else can use it - also not the local system account which is serving the Oracle listener. So you need to create a system DSN that every user on this machine can use the DSN (including the local system account) .
    - Klaus

  • Crystal Reports Ver 11 Logon Failed  IM014 [Microsoft] [ODBC Driver manager

    Please help. I am using Crystal Reports Version 11. I have Windows 7 and 64-bit browser. I am receiving the following error message: Details: IM014: [Microcsoft] [ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.

    Hello,
    Two issues, CR XI is not support on Windows 7. To get this working upgrade to Cr XI R2 SP 6 for free, use your XI keycode.
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    and then
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    Do not run CR between patches, When SP 6 is installed then CR should work.
    Next issue is CR is a 32 bit application only and it will run on 64 bit OS's but it will not support any 64 bit third party applications including IE. To connect to your database you must use the 32 bit client.
    Run the ODBC Administrator from the \syswow64 folder to create your DSN.
    Thank you
    Don
    Edited by: Don Williams on Nov 4, 2010 10:06 AM

  • SSRS 2012 ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

    I have a SSRS installation, I have deployed my connections to, but they fail with title message.  The drivers and ODBC on the box are setup and work fine with 32 bit ODBC conn manager. 
    When I run or configure my connections on the site, via the browser, I get errors connecting.
    I tried to find which app pool http://server/ReportServer application used, but I am not finding that, so my first ?
    How do I find in IIS what app pool SSRS application is using?
    I have 2008 server, running SQL 2012 V.S. 2010 and I think I need to enable my app pool to use 32 bit, but cannot figure out which one it uses?  I see default set to 32 bit = true, which I thought would be it.
    Can I set my SSRS project to use x86, platform? Like I did with SSIS? 
    If so, how?  SSRS and SQL 2012 somewhat new for me. Thanks
    Developer MS Reporting Services

    Hi DCady,
    To manage a data source that connects to a 32-bit driver under 64-bit platform, we use C:\Windows\SysWOW64\odbcad32.exe. To manage a data source that connects to a 64-bit driver, we use C:\Windows\System32\odbcad32.exe.
    Generally, if we use the 64-bit odbcad32.exe (C:\Windows\System32\odbcad32.exe) to configure or remove a DSN that connects to a 32-bit driver, for example, Driver do Microsoft Access (*.mdb), we will receive the following error message:
    The specified DSN contains an architecture mismatch between the Driver and Application
    To resolve this error, we need to use the 32-bit odbcad32.exe (C:\Windows\SysWOW64\odbacad32.exe) to configure or remove the DSN.
    Besides, please make sure there are no DSN using the same name in both 64-bit and 32-bit ODBC Data Source Administrator.
    Reference:
    Managing Data Sources
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • 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.

  • 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

  • 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

  • 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>

  • Database Connection Error 42000:[Microsoft][ODBC driver for oracle] Syntax

    Hi,
      This is Sathish, I am trying to create a report and retrieve data through stored procedure using ODBC Connection. When connecting to the Stored Procedure it is showing Database Connection Error 42000:[Microsoft][ODBC driver for oracle] Syntax error or access violation' Error.
    CRXI R2, Oracle 9i.
    What do i do to solve this issue.
    Regards,
    Sathish

    Hi Satish
    It could be an issue with the driver.
    You can try with the OLEDB n Oracle native connection to test if the issue persists.
    Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
    Hope this helps!!
    Regards
    Sourashree

  • [Microsoft][ODBC driver for Oracle]Syntax error or access violation

    Hi,
    When I am trying to connect to Oracle 8.1.6 database using Microsoft ODBC driver for Oracle. The connection is established.
    But while creating CallableStatement, I am getting error "[Microsoft][ODBC driver for Oracle]Syntax error or access violation".
    What I need to do to resolve this problem.
    Raj

    Hi Satish
    It could be an issue with the driver.
    You can try with the OLEDB n Oracle native connection to test if the issue persists.
    Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
    Hope this helps!!
    Regards
    Sourashree

  • [ODBC Driver Manager] Function sequence error

    Hi all,
    i´m trying to built an webservice and if i try to run my code i get following
    error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
    this means?
    Here comes my code:
         static String Daten(int Nummer)
                        java.sql.Connection conn = null;
                        java.sql.Statement stmt = null;
                   try
                                                           Context ctx = null;
                                                           Hashtable ht = new Hashtable();
                                                           ht.put(Context.INITIAL_CONTEXT_FACTORY,
                                                                          "weblogic.jndi.WLInitialContextFactory");
                                                           ht.put(Context.PROVIDER_URL,
                                  "t3://localhost:7001");
                                  // Get a context for the JNDI look up
                                  ctx = new InitialContext(ht);
                                  javax.sql.DataSource ds
                                  = (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
                                  conn = ds.getConnection();
                                  System.out.println("Making connection...\n");
                                  // execute some SQL statements to demonstrate the connection.
                                  stmt = conn.createStatement();
                                  System.out.println("Vor ResultSet");
                                                 ResultSet result = stmt.getResultSet(); //Bringt Fehler
                                                 final Vector erstespalte = new Vector();
                                                 final Vector zweitespalte = new Vector();
                                                 final Vector drittespalte = new Vector();
                                                 final Vector Zeilen;
                                                 final Vector end = new Vector();
                                  try {//2.Block
                                                 stmt.executeQuery("Select * from Person where Kundennummer=5");
                                                 while(result.next())
                                                                erstespalte.add(result.getObject(1));
                                                                zweitespalte.add(result.getObject(2));
                                                                drittespalte.add(result.getObject(3));
                                                           Zeilen = new Vector();
                                                                     for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
                                                                                    for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
                                                                                              for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
                                                                                                   Zeilen.add(a.nextElement());
                                                                                                   Zeilen.add(b.nextElement());
                                                                                                   Zeilen.add(c.nextElement());
                                                                                                   end.add(Zeilen);
                                                                               }System.out.println(end);
                                                           result.close();
                                       }//2.try-Block
                   catch (SQLException e) {
                        System.out.println(e);
                                  }//1.try-Block schliessen
                                  catch (Exception e) {
                             System.out.println("Exception was thrown: " + e.getMessage());
                                            finally {
                                                      try {
                                                      if (stmt != null)
                                                           stmt.close();
                                                      if (conn != null)
                                                           conn.close();
                                                      catch (SQLException sqle) {
                                                      System.out.println("SQLException during close(): " + sqle.getMessage());
                                                      }//finally-Block schliessen
                                            return ("HAllo");
              }//Methode abschliessen
    Thank you very much for helping !!!

    Please post this in the JDBC newsgroup: weblogic.developer.interest.jdbc
    Also, please include your full error message.
    -- Rob
    Hakan wrote:
    Hi all,
    i´m trying to built an webservice and if i try to run my code i get following
    error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
    this means?
    Here comes my code:
    static String Daten(int Nummer)
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    try
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,
    "t3://localhost:7001");
    // Get a context for the JNDI look up
    ctx = new InitialContext(ht);
    javax.sql.DataSource ds
    = (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
    conn = ds.getConnection();
    System.out.println("Making connection...\n");
    // execute some SQL statements to demonstrate the connection.
    stmt = conn.createStatement();
    System.out.println("Vor ResultSet");
    ResultSet result = stmt.getResultSet(); //Bringt Fehler
    final Vector erstespalte = new Vector();
    final Vector zweitespalte = new Vector();
    final Vector drittespalte = new Vector();
    final Vector Zeilen;
    final Vector end = new Vector();
    try {//2.Block
    stmt.executeQuery("Select * from Person where Kundennummer=5");
    while(result.next())
    erstespalte.add(result.getObject(1));
    zweitespalte.add(result.getObject(2));
    drittespalte.add(result.getObject(3));
    Zeilen = new Vector();
    for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
    for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
    for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
    Zeilen.add(a.nextElement());
    Zeilen.add(b.nextElement());
    Zeilen.add(c.nextElement());
    end.add(Zeilen);
    }System.out.println(end);
    result.close();
    }//2.try-Block
    catch (SQLException e) {
    System.out.println(e);
    }//1.try-Block schliessen
    catch (Exception e) {
    System.out.println("Exception was thrown: " + e.getMessage());
    finally {
    try {
    if (stmt != null)
    stmt.close();
    if (conn != null)
    conn.close();
    catch (SQLException sqle) {
    System.out.println("SQLException during close(): " + sqle.getMessage());
    }//finally-Block schliessen
    return ("HAllo");
    }//Methode abschliessen
    Thank you very much for helping !!!

Maybe you are looking for