[jboss-user] [JBoss Seam] - @Logger not injecting anything in Controller.class

paradigmza do-not-reply at jboss.com
Mon Apr 16 09:53:37 EDT 2007


Hi,

I have a simple piece of code that is trying to persist/update the database


  | VweraclientdnamesHome home = new VweraclientdnamesHome();
  | home.setVweraclientdnamesId(input.getId());
  | home.getInstance().setUsedForEras(true);
  | home.update();
  | 

where home is a instance of the EntityHome class

When I run this code I get this null pointer

anonymous wrote : 
  | Caused by: java.lang.NullPointerException
  | 	at org.jboss.seam.framework.Controller.debug(Controller.java:183)
  | 	at org.jboss.seam.framework.Home.updatedMessage(Home.java:40)
  | 	at org.jboss.seam.framework.EntityHome.update(EntityHome.java:40)
  | 	at coza.healthbridge.mypractice.admin.beans.session.EraClientDnamesBean.updateUsedForEras(EraClientDnamesBean.java:62)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

and stepping through a debug it looks like the @Logger is not injecting the object in Controller.class

Any ideas?

I used seam gen (1.2.1) to generate the project and the entities.
I then added another persistance unit to connect to another DB.
I can view all the CRUD pages for both PU's
I then just added this update code, and it is not working (I used seam 1.5 before this and the update code worked with seam gen)

Thanks
Sean.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037553#4037553

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037553



More information about the jboss-user mailing list