CMP EJB returns empty collections

Posted on 2006-04-03
Last Modified: 2013-11-24

I generated a CMP (using NetBeans and JBoss, from a database table, but that should not matter).

My problem is, the collections I get are always empty. Whatever the call, generated or written later. No exceptions though.

Where should I look?

Thank you.
Question by:kerzner
    LVL 86

    Accepted Solution

    Start looking in the logs - maybe there are no mappings
    LVL 15

    Assisted Solution

    If you dont have logs better put a system.out in the client program or the testclient application to test your cmp bean and see if that outputs the those data if it's empty then maybe there's somthing wrong with your code if not maybe the database driver is not up or you may also check the server console or tomcat console w/c ever you got may the database driver is not included on your classpath check whatever may solve it ;)
    LVL 1

    Author Comment

    "Create from database table" actually creates another table which it uses.
    LVL 86

    Expert Comment


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    745 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

    15 Experts available now in Live!

    Get 1:1 Help Now