Marcelo de Carvalho Lopes wrote:When I tried to insert a register it can't because the mistake NullPointerException.
Francis Atore wrote:Could you format the actual code as code, so that we can it can be easier to read. It seems that the error is in the AddSocioAction class. Could you comment where line 39 and 30 is.
Roel De Nijs wrote:Hi Marcelo de Carvalho Lopes,
First of all, a warm welcome to Coderanch!
Marcelo de Carvalho Lopes wrote:When I tried to insert a register it can't because the mistake NullPointerException.
I agree with what Dave says: socioDAO is null which means it's not getting injected. So you should start your troubleshooting there. And it probably means it's a Struts related issue (and not a JDBC one), so I'll move your topic to a more appropriate forum.
Hope it helps!
Kind regards,
Roel
PS. Always use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers. I have already added the code tags for you. See how much easier the code is to read?
Marcelo de Carvalho Lopes wrote:Well If comment the lines I can't execute the app.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |