facebook

Crystal Reports XI – Java

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #263912 Reply

    jediez
    Member

    Hi.

    I’m using Crystal Reports XI, Tomcat 5.0 to display a report on to a jsp.

    When the report is about to be displayed, I get this error:

    “Error
    Logon failed

    I’m absolutely sure the connection information I’m proving is correct. I tried printing out the connection information by calling oCrystalReportViewer.getDatabas eLogonInfos().getConnectionInfo(0).getAttributes().toString() ; and this text is shown:

    {Server Name=mas3, Connection String=Server=s(mas3);User ID=s(admin);Password=, Database Name=, Database DLL=crdb_oracle.dll}

    Apparently I’ve not set the Database Name, I dont know where to set it, just tried with this code: (It did not work though)

    PropertyBag propertyBag = new PropertyBag();
    propertyBag.put(“Database Name”, “m239”); oIConnectionInfo.setAttributes(property Bag);

    Please, please… help me out with this issue as It’s driving me into crazy

    Regards

    #263950 Reply

    Riyad Kalla
    Member

    Hmm strange. Can you create a single sample Class with a single main() method that correctly opens the connection to first make sure you are using the right code? Then it’s just an issue of figuring out where to put it, in your app.

    #263959 Reply

    jediez
    Member

    What code are u suggesting, to open a connection using Crystal Reports objects?

    I already tried a test connection that uses JDBC and ORacle Driver to connect to database and it works perfectly.

    Any other hint?

    #264076 Reply

    jediez
    Member

    Hi rkalla.

    Have u got any other hint?
    This issue id driving me nuts.

    Please help

    #264077 Reply

    Riyad Kalla
    Member

    Unfortunately not, I haven’t used Crystal Reports before. I was only suggesting a general tactic to figure out what is going wrong, more specifically, try and connect to the report from a simple test class instead of trying to debug the bigger issue in the context of your entire application.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Crystal Reports XI – Java

You must be logged in to post in the forum log in