We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

CMP EJB returns empty collections

kerzner
kerzner asked
on
Medium Priority
286 Views
Last Modified: 2013-11-24
Hi,

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.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016
Commented:
Start looking in the logs - maybe there are no mappings

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Commented:
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 ;)

Author

Commented:
"Create from database table" actually creates another table which it uses.
CERTIFIED EXPERT
Top Expert 2016

Commented:
:-)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.