DataDirect JDBC Driver Failure

Posted on 2005-04-25
Last Modified: 2010-05-18
Even though I set the following database properties, I still get a login failed error:

viewer.getDatabaseLogonInfos().getConnectionInfo(0).setUserName("user id");

What could be wrong?  I know my user id and password work.

I'm using a DataDirect jdbc driver. This has worked with my other drivers, such as oracle.
Question by:lcor
    LVL 15

    Expert Comment

    What is viewer.getDatabaseLogonInfos().getConnectionInfo(0) doing?
    Are you stetting the username/password before you get a connection?
    How do you call DriverManager.getConnection... ?

    Author Comment

    Could you take a look at Q_21401654.html?

    I put this under Crystal Reports but I was hoping some jdbc/java people could take a look at my issue.
    LVL 15

    Accepted Solution

    if this viewer.getDatabaseLogonInfos().getConnectionInfo(0) is a crystal reports api then I am not sure I can help with it much.
    If you access the java.sql.Connection directly via a DataSource or DriverManager then putting that logic here will be helpfull (as well as the exception).
    LVL 15

    Expert Comment

    lcor, why did you accept my answer if it doesn't solve your problem?

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    JVM encoding. How to change encoding. 27 55
    sumDigits  challenge 7 40
    endX challenge 2 33
    java set up 1 37
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now