-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: A highly enexpected Hibernate error produced
PostPosted: Sun Apr 03, 2011 8:17 pm 
Newbie

Joined: Sun Apr 03, 2011 7:40 pm
Posts: 1
when trying to update 1 text field in a remote database.

Hello,

In my Netbeans project with hibernate 3.2.5 as Framework I'm trying to update over AJAX a text field (Varchar 200) in Mysql DB from javascript. The statement in my java code that causes error is:

session.createQuery(sql_statement);

which causes hibernate to produce: java.lang.IllegalArgumentException: name

This happens only when my text field includes a substring of 3 characters: ,X: (where X could be for example any single letter) resulting in the sql_statement like:

update MyTable set description = 'One,P:Two' where ProdId = 104

Any idea what may be causing this problem or how to fix that ??

Andrew


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.