ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Problem with selectByExample
Date Fri, 06 Apr 2007 13:36:16 GMT
This doesn't look like anything related to selectByExample.  The problem is
when trying to get a connection from the driver.  Probably the properties
for the driver are not set correctly.

On 4/6/07, Jonathan Prater <jonathan.prater@gmail.com> wrote:
>
> Hello, all!
> I have used Abator to generate a SQLMap and POJO classes using the Java5
> generator set.  Now, when I try to use the Example class to do a
> searchByExample select statement, I get a big ugly java.io.IOException.
> Here's the stack trace...
> java.sql.SQLException: File input/output error: java.io.IOException:
> Invalid argument
>        at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
>        at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
>        at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
>        at org.hsqldb.jdbcDriver.connect(Unknown Source)
>        at java.sql.DriverManager.getConnection(DriverManager.java:582)
>        at java.sql.DriverManager.getConnection(DriverManager.java:185)
>        at
> com.ibatis.common.jdbc.SimpleDataSource.popConnection(
> SimpleDataSource.java:580)
>        at
> com.ibatis.common.jdbc.SimpleDataSource.getConnection(
> SimpleDataSource.java:222)
>        at
> com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.init(
> JdbcTransaction.java:48)
>        at
> com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.getConnection(
> JdbcTransaction.java:89)
>        at
>
> com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList
> (GeneralStatement.java:123)
>        at
> com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(
> SqlMapExecutorDelegate.java:615)
>        at
> com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(
> SqlMapExecutorDelegate.java:589)
>        at
> com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(
> SqlMapSessionImpl.java:118)
>        at
> com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(
> SqlMapClientImpl.java:95)
>        at com.jpprater.libutils.Library.search(Library.java:47)
>        at
> com.jpprater.libmgr.LibMgrMainFrame.btnSrchBasicActionPerformed(
> LibMgrMainFrame.java:132)
>        at
> com.jpprater.libmgr.LibMgrMainFrame.access$000(LibMgrMainFrame.java:16)
>        at
> com.jpprater.libmgr.LibMgrMainFrame$1.actionPerformed(LibMgrMainFrame.java
> :50)
>        at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
>        at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java
> :2318)
>        at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java
> :387)
>        at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
>        at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
> BasicButtonListener.java:236)
>        at java.awt.Component.processMouseEvent(Component.java:6038)
>        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
>        at java.awt.Component.processEvent(Component.java:5803)
>        at java.awt.Container.processEvent(Container.java:2058)
>        at java.awt.Component.dispatchEventImpl(Component.java:4410)
>        at java.awt.Container.dispatchEventImpl(Container.java:2116)
>        at java.awt.Component.dispatchEvent(Component.java:4240)
>        at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
>        at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
>        at java.awt.LightweightDispatcher.dispatchEvent(Container.java
> :3916)
>        at java.awt.Container.dispatchEventImpl(Container.java:2102)
>        at java.awt.Window.dispatchEventImpl(Window.java:2429)
>        at java.awt.Component.dispatchEvent(Component.java:4240)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
>        at
> java.awt.EventDispatchThread.pumpOneEventForFilters(
> EventDispatchThread.java:273)
>        at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java
> :183)
>        at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(
> EventDispatchThread.java:173)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
>        at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


<snip/>

Mime
View raw message