Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 03:43:39 PM

Pages: [1]   Go Down
  Print  
Author Topic: ibatis and MySql exception  (Read 2821 times)
yacoub
Space Explorer
***
Offline Offline

Posts: 6


« on: November 18, 2008, 12:12:02 AM »

any one using iBatis on lunarpage?
I get this error:

2008-11-17 23:51:57,138 ERROR [MYSITE_PATH] :   
--- The error occurred in PATH_TO_XML_FILE 
--- The error occurred while applying a result map. 
--- Check the getPlaceNameStr-AutoResultMap. 
--- Check the result mapping for the 'name' property. 
--- Cause: java.lang.IllegalArgumentException: null source

The XML query is:
   <select id="getPlaceNameStr" resultClass="java.lang.String">
      SELECT name
      FROM place
      WHERE placeid=17
   </select>

The DB setup is a table called place with the column "name" set up as varchar(64) and it is not null for the placeid=17

Any ideas on how to begin tracing or similar issues using ibatis? I am using ibatis-2.3.4.726.jar and put it in the web-inf/lib directory. I am also using mysql-connector-java-5.1.7-bin.jar and put it in the same directory. Any packages I am missing?

Your help and experience is greatly appreciated.
Thanks
Logged
david203
Newbie
*
Offline Offline

Posts: 4


« Reply #1 on: November 12, 2009, 07:53:34 AM »

Hey, I also use IBatis and MySQL on the Lunarpage servers.

I was wondering if we could contact each other to share information.
I'm getting a lot of Broken Pipes/?Communication Failures.
I think it may have to do either with DB driver version/setting or the IBatis connection pool setting.

Would you mind sharing any optimal settings for the Lunarpage server you may be aware of?

Thanks,
David
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: