*
The moose likes EJB and other Java EE Technologies and the fly likes error in findBy method -- urgent help required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "error in findBy method -- urgent help required" Watch "error in findBy method -- urgent help required" New topic
Author

error in findBy method -- urgent help required

sangita kandel
Greenhorn

Joined: Jul 09, 2002
Posts: 12
Hi all,
I am using SQL server with Weblogic 7.0
I configured the connection pool with url as
'jdbc dbc:local' and driver classname as
'sun.jdbc.odbc.JdbcOdbcDriver'.
My create method works fine but when i call any of the findBy methods it always gives java.sql.SQLException: No data found
even if there is data in the database.
appreciate anyone's help.
regards
priya
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
  • Have you verified whether create method is actually creating records in the table using a SQL tool?
  • What is the error message associated with the SQLException?


  • [ April 25, 2003: Message edited by: Ajith Kallambella ]

    Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
    Ram
    Ranch Hand

    Joined: Apr 07, 2003
    Posts: 43
    Look like some one had a similar problem, hope this helps
    http://forum.java.sun.com/thread.jsp?thread=324911&forum=13&message=1319158
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: error in findBy method -- urgent help required
     
    Similar Threads
    how to catch exception in EJB
    Collection Object in FindBy*** Method of EJB
    Retrievals - Read Only Entity Bean Vs Customized Retrieval Method
    primay key ???
    Should I have Entity Manager in the Sequence diagram