My native language isn't English and im pretty stupid when I talk about code but I want to improve.
I'm working on a migration Project thats is getting an odd behavioiur.
I'm getting a nullpointer exception.
The Project in itself is a 10+ ish year old JEE Project wich has been run on a JBOSS 5.0.1 server. The EJB's are 2.0 there are two of them.
The Project is a EAR file with one Web.war, one EJB.jar and one EJBClient.jar in it. objective is to switch the beans to 3.0 and to deploy this on a wildfly 13.0.0FINAL server.
After several guides and experiments how to make beans I've managed to create a 3.0 bean that I can call upon.
The Project when it worked pre migration have two session beans that are similiar in the build up. Ill show you the one im working on thats getting the problem.
CommandTarget: (Also contains my new Bean calls)
So this is the implementation basicly of the EJB and the EJB client. the implemenation of everythign except the session bean is in the client.
Now in the Web application we have a function that will call upon this long chain of commands. If its ok ill only show partial of it since it breaks in that part?
It breaks on the last line, the nullpointer.
When we did tests here - sysouts We saw taht both the cmd and the dto actually had values in them they got the proper information from the database. But once it returns to ActionidentitetKonsultCommand the dto is still empty. this works in the old code. the only change i did was i switched to my bean implementation wich is following:
and the interface:
Im guessing I've missed some sort of property somwere?
Thank you for your time