tag:blogger.com,1999:blog-1408910361064787621.post463233152926473837..comments2024-02-29T23:26:24.744-08:00Comments on On Java Hell: Using the iBATOR eclipse plugin for iBATIS code generationJulien Dechmannhttp://www.blogger.com/profile/12619192889843922362noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-1408910361064787621.post-26933305486601619302012-02-02T00:17:41.872-08:002012-02-02T00:17:41.872-08:00Hi ,
getting below error plz help me to resolve
...Hi ,<br /><br />getting below error plz help me to resolve <br /><br />Problem: failed to create task or type eclipse.convertPathSridharReddyhttps://www.blogger.com/profile/12119913377598218086noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-40992917937178770232011-10-30T21:16:37.510-07:002011-10-30T21:16:37.510-07:00hi all, I have installed the ibator plugin to my e...hi all, I have installed the ibator plugin to my eclipse galileo, but could not add it to the build path. Can anyone help please....Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-40887707021239319962011-08-04T04:42:12.513-07:002011-08-04T04:42:12.513-07:00whenever I am trying to build with Ant I am gettin...whenever I am trying to build with Ant I am getting the following error.........<br /><br />[ibator.generate] XML Parser Error on line 2: The processing instruction target matching "[xX][mM][lL]" is not allowed.<br /><br />plz help.......Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-49530441118869826982010-08-13T07:26:18.476-07:002010-08-13T07:26:18.476-07:00hi Dechma, gr8 job. But it would be good if you ca...hi Dechma, gr8 job. But it would be good if you can explain how to use OR criteria along with AND.<br />I need to generate the example criteria for the following quesry.<br /><br />SELECT * FROM employee WHERE (email LIKE 'abc%' OR email LIKE '%@abc.com%' <br />OR email='test@test.com') AND (NAME = 'raj');<br /><br /><br />any help??sssshttps://www.blogger.com/profile/10373406286431148078noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-50005940714007743422010-08-11T04:52:30.637-07:002010-08-11T04:52:30.637-07:00"Hello, I am having the same problem when run..."Hello, I am having the same problem when running Ant:<br />"Exception getting JDBC Driver" with mysql-connector-java-5.1.12-bin.jar inside "lib" directory under my project.<br /><br />What did I do wrong? "<br /><br />To run it you need to add a classPathEntry in your ibatorConfig.xml file like this :<br /><br />classPathEntry location="E:\TaskManagementApplication\Workspace\IbatorProject\lib\mysql-connector-java-5.1.10-bin.jar"<br /><br />This entry shud be in ibatorConfiguration tag and not within ibatorContext.<br /><br />This works !!!!!<br /><br />Thanks,<br />AlpeshAlpshttps://www.blogger.com/profile/02236090103807493232noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-78397571982926584152010-08-11T04:46:35.054-07:002010-08-11T04:46:35.054-07:00This comment has been removed by the author.Alpshttps://www.blogger.com/profile/02236090103807493232noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-32500047307621508982010-08-05T01:27:38.283-07:002010-08-05T01:27:38.283-07:00Hi All
I am able to generate DAO as well as all th...Hi All<br />I am able to generate DAO as well as all the others file.<br />But i created another class file to test the Example class using criteria class , it gives me exception.<br /><br /> Reader reader = Resources.getResourceAsReader("SqlMapConfig.xml");<br /><br /> SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);<br /> <br /> <br /> EmpExample empExample= new EmpExample();<br /> <br /> Criteria criteria= new Criteria();<br /> criteria.andIdEqualTo(new Integer(1));<br /> <br /> empExample.createCriteria().andIdEqualTo(1);<br /> /* empExample.createCriteriaInternal().andIdLessThan(4);<br /> empExample.createCriteria().andEmailEqualTo(new String("syadav@cecsoft.com"));<br /> */<br /> <br /> //empExample.createCriteria().andIdNotEqualTo(2).andFirstnameIsNotNull();<br /> //empExample.or(empExample.createCriteria().andEmailIsNotNull());<br /> <br /> List contactList = (List)sqlMap.queryForList("dbo_emp.ibatorgenerated_selectByExample", empExample);<br /> for(Emp e : contactList)<br /> {<br /> System.out.println(e.getFirstname());<br /> }<br /><br />& <br /><br />the exception is :-<br />--- Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: ""<br /><br /><br />Please help me out from this issue.<br />wihtout criteria , it is working fine & displaying all the records.<br />I am just using simple criteria.<br /><br /><br />Can any body tell me about the cause of this error.<br /><br />Thanks<br /><br />SandyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-6841321158718356132010-08-05T01:22:19.297-07:002010-08-05T01:22:19.297-07:00Hi ,
classPathEntry location="C:/workspace...Hi ,<br /><br /><br /><br />classPathEntry location="C:/workspaceWS1/zzz/lib/sqljdbc4.jar" <br />in the map config file.Sandeephttp://cecsoft.comnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-18605950008141303012010-08-05T01:19:28.364-07:002010-08-05T01:19:28.364-07:00Hi All,
you can below code & then you can abl...Hi All,<br /> you can below code & then you can able to do "Generate iBAtis Atifacts".<br /><br />add :- <br /><br /><br /><br /><br /><br />SandeepAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-63794881161015474822010-07-28T01:29:50.795-07:002010-07-28T01:29:50.795-07:00Hello, I was having the same problem of "Exce...Hello, I was having the same problem of "Exception getting JDBC Driver", but I resolved it by putting the ojdbc14.jar in the classpath but now I'm getting this error<br />"Excepción de E/S: The Network Adapter could not establish the connection<br />".<br />I don't use ant but the "Generate iBAtis Atifacts" option.<br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-12206834752337552512010-06-01T01:41:47.650-07:002010-06-01T01:41:47.650-07:00Hello again, my previous post about JDBC Driver ex...Hello again, my previous post about JDBC Driver exception was due misconfiguration in xml file. Working now as intended :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-52149223043786285322010-05-31T07:35:15.438-07:002010-05-31T07:35:15.438-07:00Hello, I am having the same problem when running A...Hello, I am having the same problem when running Ant:<br />"Exception getting JDBC Driver" with mysql-connector-java-5.1.12-bin.jar inside "lib" directory under my project.<br /><br />What did I do wrong?<br /><br />Thanx in advance.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-52336139393617139842010-05-12T00:59:46.606-07:002010-05-12T00:59:46.606-07:00Hi, I have this problem on running build.xml:
Bui...Hi, I have this problem on running build.xml:<br /><br />Buildfile: /home/paolo/EasynetProject/ibator/build.xml<br /><br />runIbator:<br /><br />BUILD FAILED<br />/home/paolo/EasynetProject/ibator/build.xml:5: java.lang.ArithmeticException: / by zero<br /><br />Total time: 459 milliseconds<br /><br />Please, how can I fix it?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-19183780033013812152010-02-11T12:52:21.098-08:002010-02-11T12:52:21.098-08:00Good to know.Good to know.Julien Dechmannhttps://www.blogger.com/profile/12619192889843922362noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-37035048748222662432010-02-11T12:47:41.131-08:002010-02-11T12:47:41.131-08:00Looks like ibator didn't like ojdbc6.jar. I sw...Looks like ibator didn't like ojdbc6.jar. I switched it out with ojdbc14.jar and it worked.joshhttps://www.blogger.com/profile/05641195957878195787noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-62057124383810874032010-02-11T10:30:34.444-08:002010-02-11T10:30:34.444-08:00Hi Julien. Thanks for the post. I still have probl...Hi Julien. Thanks for the post. I still have problem where I get "Exception getting JDBC Driver". I've added the ojdbc6.jar file to a lib directory in the project and added it to the run classpath for the ant build but still no dice for some reason. Anything I could be missing?joshhttps://www.blogger.com/profile/05641195957878195787noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-5130057697465669122010-01-10T07:39:11.976-08:002010-01-10T07:39:11.976-08:00I don't use any .java executable files to laun...I don't use any .java executable files to launch ibator. Like I said in step 7, you have to create an external tool configuration in eclipse (Run/External Tools/External tools configuration...).Julien Dechmannhttps://www.blogger.com/profile/12619192889843922362noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-60441902654735107312010-01-08T02:23:36.760-08:002010-01-08T02:23:36.760-08:00Ok, but kinly tell me about those .java executable...Ok, but kinly tell me about those .java executable files through which i can use and execute the above mentioned program.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-16136803799082123522010-01-05T04:44:47.845-08:002010-01-05T04:44:47.845-08:00IBator has been made to accelerate the developpeme...IBator has been made to accelerate the developpement cycle of IT projects using IBatis. Imagine you have 40 SQL tables, you'll have to write a lot of DAOs, SQL Maps and BOs classes. Ibator will generate all these classes for you in a few seconds.Julien Dechmannhttps://www.blogger.com/profile/12619192889843922362noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-18911830323731784192009-12-30T01:48:30.358-08:002009-12-30T01:48:30.358-08:00He Respected All,
Well I have done with all the th...He Respected All,<br />Well I have done with all the things written above... and end up on having following directory struture under the project root<br /><br />-src<br />--dao<br />--impl<br />--maps<br />--model<br />All of the above packages are created using iBator (As I only run the build.xml file).<br />Now what should I do? what is next? is it all done? what would be the output / how to get the output of this project?<br /><br />I am not getting a proper essence of why we use iBator?<br />what would be the output of making this project?<br />also I read that sqlmap is a AUTOMATIC SQL INJECTION TOOL... so where can i find this AUTOMATIC SQL INJECTION in this project or how to write my own?<br /><br />Thanks and Regards.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-29139553872045024582009-12-20T09:56:28.271-08:002009-12-20T09:56:28.271-08:00This helped me!! Thank you.This helped me!! Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-71470010513173109652009-10-28T18:00:31.480-07:002009-10-28T18:00:31.480-07:00Thanks, that was a big help.Thanks, that was a big help.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-39742708032295102912009-10-20T12:34:19.206-07:002009-10-20T12:34:19.206-07:00Thank you. I looked everywhere to figure out to so...Thank you. I looked everywhere to figure out to solve this issue.Chadhttps://www.blogger.com/profile/09536775405735479312noreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-41581922052318346202009-10-01T09:15:05.381-07:002009-10-01T09:15:05.381-07:00Very helpful - Thanks...Very helpful - Thanks...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1408910361064787621.post-44552045271130948802009-09-27T10:32:12.399-07:002009-09-27T10:32:12.399-07:00I think the response of your problem is the warnin...I think the response of your problem is the warning printed by the packageCustomPlugin task. There's seems to be no classes in your target/classes directory.Julien Dechmannhttps://www.blogger.com/profile/12619192889843922362noreply@blogger.com