Hi,

while running this program

OQLQuery query = db.getOQLQuery("SELECT a FROM jdoproj.dataobjects.Angebot
AS a "
                                        + "WHERE a.angebots_id = $1");
query.bind(id);
QueryResults res = query.execute();
System.out.println(res);
if (res.hasMore()) {
  System.out.println("in IF");
  Object obj = res.next();
  System.out.println(obj);
}

cause this output:

org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration@aed5f9
java.lang.NumberFormatException: ja
        at java.lang.Integer.parseInt(Integer.java:426)
        at java.math.BigInteger.<init>(BigInteger.java:315)
        at java.math.BigInteger.<init>(BigInteger.java:448)
        at java.math.BigDecimal.<init>(BigDecimal.java:219)
        at
oracle.jdbc.driver.OracleStatement.getBigDecimalValue(OracleStatement.java:3352)
        at
oracle.jdbc.driver.OracleResultSetImpl.getBigDecimal(OracleResultSetImpl.java:560)
        at org.exolab.castor.jdo.engine.SQLTypes.getObject(Unknown Source)
        at org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.loadSingleField(Unknown
Source)
        at org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.loadRow(Unknown Source)
        at org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.fetchRaw(Unknown Source)
        at org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.nextIdentity(Unknown
Source)
        at org.exolab.castor.persist.QueryResults.nextIdentity(Unknown Source)
        at org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(Unknown
Source)
        at org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(Unknown
Source)
        at jdoproj.dataobjects.Angebot.getObjectAngebot(Angebot.java:243)
        at Test.main(Test.java:54)
Exception in thread "main" 

Who can help me?

Thank you, Ingrid

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to