-->
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: Problem - StringIndexOutOfBoundsException
PostPosted: Mon Aug 06, 2012 10:50 am 
Newbie

Joined: Mon Aug 06, 2012 10:45 am
Posts: 1
I'm working on an Database Synchronization tool and my problem is that I have a char/varchar column type and this field is empty, when loading informations (SELECT) the method CharacterTypeDescriptor.wrap(X value, WrapperOptions options) throws a StringIndexOutOfBoundsException. By the way, looking at the implementation of method:
"...
if ( String.class.isInstance( value ) ) {
final String str = (String) value;
return Character.valueOf( str.charAt(0) );
..."

I can realize that problem is on the "str.charAt(0)", my field(s) doesn't have any information, is empty and the system is a legacy system, I cannot modify that information. Does anyone have this problem (and it's solved?)

Hibernate v4.1.5.SP1, MySQL v5.1.63.
Thanks.


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.