• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fail to construct descriptor: empty Object name

 
Vikram Gosain
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
When I execute a java stored proc

I get the exception


But when I initialize the everything runs fine. I am not able to understand why?Could anyone please help me with this.?
 
Michael Krimgen
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vikram,

The String is not initialized. Only class variables are initialzed with the default values, local variables are not.

If you do not want to initialze your String with a blank, you should do the following:

 
Winston Gutkowski
Bartender
Pie
Posts: 10430
63
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vikram Gosain wrote:I get the exception...

Vikram,

Please don't put enormously long lines inside code tags. I've broken them up for you this time, but please re-read the UseCodeTags page thoroughly.

Thanks

Winston
 
Vikram Gosain
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Winston
I will keep this in mind. Thanks for the information

Michael
Could you please elaborate more on the error? Why am i getting this specific exception when i intialize the string to blank and why I dont get any error when I initialise the string to null. Is it related to StoredProc() api of Spring JDBC template?
 
Vikram Gosain
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying my luck again..

Can anyone please explain the reason why this happens?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic