File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes iBator problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "iBator problem" Watch "iBator problem" New topic

iBator problem

James Key

Joined: Jan 26, 2009
Posts: 2

I'm trying to use IBator plugin for Eclipse, but one exception occurred...

Eclipse ver. 3.4
latest Ibator plugin

my ibatorConfig.xml:


java.lang.ArithmeticException: / by zero
at org.apache.ibatis.ibator.eclipse.core.callback.EclipseProgressCallback.generationStarted(
at org.apache.ibatis.ibator.api.Ibator.generate(
at org.apache.ibatis.ibator.api.Ibator.generate(
at org.apache.ibatis.ibator.eclipse.ui.actions.RunIbatorAction$
at org.eclipse.jface.operation.ModalContext$

Could anyone help me, please?

Mark Secrist
Ranch Hand

Joined: Jul 01, 2003
Posts: 89
For me, it was because I hadn't created the database specified by the connection URL in the ibatorConfig.xml file. I had the server running but no DB created. I suspect this error may be a result of anything from a bad URL (not the server:port part) but the name of the database, no tables, etc.

Here's a good way to test this. If you open the Data Source Explorer view and create a connection, you should be able to define the connection such that the same URL can be used for your config... assuming you can view the tables of the database in the explorer.

I notice in your URL:

that there is no Database name specified. I used a Derby database and my URL looks more like this:

I think the same rules apply though. For JDBC, you need to specify both the server AND the database name you are referencing.

Check here for a reference: Guide to JDBC URLs
I agree. Here's the link:
subject: iBator problem
It's not a secret anymore!