Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error by mapping tables using Eclipse w/ Hibernate Tools or Hibernate Synchronizer plugins [JDBC102] #141

Closed
firebird-automations opened this issue Sep 4, 2007 · 16 comments

Comments

@firebird-automations
Copy link

Submitted by: Jerry A Goncalves (yumacolt)

Assigned to: Roman Rokytskyy (rrokytskyy)

Jira_subtask_outward JDBC103

Attachments:
screenshot-1.jpg
screenshot-2.jpg
hibernate.cfg.xml
dbscript.sql

Please, close this Issue.

There is not a problem.

After got the stack trace I found the code at sourceforge and discovered I mistook in URL formation.

I am plaining use Firebird with Hibernate in a new java project but I had problems when I tried map my database tables using two main Hibernate related Eclipse plugins to do this. These plugins works when I use other database like Oracle or MySQL.

I got the stacktrace using MyEclipse PDE Error Log:

java.lang.NumberFormatException: For input string: "c"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl$DbAttachInfo.<init>(AbstractJavaGDSImpl.java:2514)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.iscAttachDatabase(AbstractJavaGDSImpl.java:369)
at org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:89)
at org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBManagedConnectionFactory.java:470)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStandAloneConnectionManager.java:69)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:119)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)

The folowing steps should reproduce the error:
1 - Create a Firebird SQL Dialect 3 database
2 - Create a simple table according to this script: CREATE TABLE DUAL ( DUMMY CHAR(1));
3 - Using Eclipse 3.3 install one of these plugins: Hibernate Tools (http://www.tools.hibernate.org) or Hibernate Synchronizer (http://sourceforge.net/projects/hibernatesynch/) the same error occurs using any of that plugins
4 - Create a new project in Eclipse
5 - With Hibernate Tools:
a) File / New / Other... / Hibernate / Hibernate Configuration File (cfg.xml) / Next / Next
b) Any name for Session factory name, Firebird for Database dialect, org.firebirdsql.jdbc.FBDriver for Driver class, url pointing to our database
c) Check the "Create a console configuration" box / Next / give a name for your console configuration / Finish
d) Window / Show View / Other... / Hibernate / Hibernate Configurations
e) In the Hibernate Configurations view click on Database
e) The error occurs: "Error while fetching children Reason: java.lang.NumberFormatException: For input string: "c""

6 - With Hibernate Synchronizer:
a) File / New / Other... / Hibernate / Hibernate Configuration File
b) Create a Hibernate config file using org.firebirdsql.jdbc.FBDriver driver and Interbase Dialect
c) Open hibernate.cfg.xml and change dialect property value to org.hibernate.dialect.FirebirdDialect
d) File / New / Other... / Hibernate / Hibernate Mapping File
d) After inform the driver, user and password, click on Refresh
e) The error occurs: "For input string: "C""

@firebird-automations
Copy link
Author

Commented by: Jerry A Goncalves (yumacolt)

Error message when using Hibernate Tools Plugin

@firebird-automations
Copy link
Author

Modified by: Jerry A Goncalves (yumacolt)

Attachment: screenshot-1.jpg [ 10560 ]

@firebird-automations
Copy link
Author

Commented by: Jerry A Goncalves (yumacolt)

Error message using Hibernate Synchronizer plugin

@firebird-automations
Copy link
Author

Modified by: Jerry A Goncalves (yumacolt)

Attachment: screenshot-2.jpg [ 10561 ]

@firebird-automations
Copy link
Author

Commented by: Jerry A Goncalves (yumacolt)

The hibernate.cfg.xml file created by Hibernate Tools plugin

@firebird-automations
Copy link
Author

Modified by: Jerry A Goncalves (yumacolt)

Attachment: hibernate.cfg.xml [ 10562 ]

@firebird-automations
Copy link
Author

Commented by: Jerry A Goncalves (yumacolt)

DDL script to create database

@firebird-automations
Copy link
Author

Modified by: Jerry A Goncalves (yumacolt)

Attachment: dbscript.sql [ 10563 ]

@firebird-automations
Copy link
Author

Commented by: Jerry A Goncalves (yumacolt)

I removed the last line from Description text: "A last detail: I have 2 user UDFcreated on my firebird engine that appears visible on my new database"

@firebird-automations
Copy link
Author

Modified by: Jerry A Goncalves (yumacolt)

description: I?m plaining use Firebird with Hibernate in a new java project but I had problems when I tried map my database tables using two main Hibernate related Eclipse plugins to do this. These plugins works when I use other database like Oracle or MySQL.

The folowing steps should reproduce the error:
1 - Create a Firebird SQL Dialect 3 database
2 - Create a simple table according to this script: CREATE TABLE DUAL ( DUMMY CHAR(1));
3 - Using Eclipse 3.3 install one of these plugins: Hibernate Tools (http://www.tools.hibernate.org) or Hibernate Synchronizer (http://sourceforge.net/projects/hibernatesynch/) the same error occurs using any of that plugins
4 - Create a new project in Eclipse
5 - With Hibernate Tools:
a) File / New / Other... / Hibernate / Hibernate Configuration File (cfg.xml) / Next / Next
b) Any name for Session factory name, Firebird for Database dialect, org.firebirdsql.jdbc.FBDriver for Driver class, url pointing to our database
c) Check the "Create a console configuration" box / Next / give a name for your console configuration / Finish
d) Window / Show View / Other... / Hibernate / Hibernate Configurations
e) In the Hibernate Configurations view click on Database
e) The error occurs: "Error while fetching children Reason: java.lang.NumberFormatException: For input string: "c""

6 - With Hibernate Synchronizer:
a) File / New / Other... / Hibernate / Hibernate Configuration File
b) Create a Hibernate config file using org.firebirdsql.jdbc.FBDriver driver and Interbase Dialect
c) Open hibernate.cfg.xml and change dialect property value to org.hibernate.dialect.FirebirdDialect
d) File / New / Other... / Hibernate / Hibernate Mapping File
d) After inform the driver, user and password, click on Refresh
e) The error occurs: "For input string: "C""

A last detail: I have 2 user UDFcreated on my firebird engine that appears visible on my new database

=>

I?m plaining use Firebird with Hibernate in a new java project but I had problems when I tried map my database tables using two main Hibernate related Eclipse plugins to do this. These plugins works when I use other database like Oracle or MySQL.

The folowing steps should reproduce the error:
1 - Create a Firebird SQL Dialect 3 database
2 - Create a simple table according to this script: CREATE TABLE DUAL ( DUMMY CHAR(1));
3 - Using Eclipse 3.3 install one of these plugins: Hibernate Tools (http://www.tools.hibernate.org) or Hibernate Synchronizer (http://sourceforge.net/projects/hibernatesynch/) the same error occurs using any of that plugins
4 - Create a new project in Eclipse
5 - With Hibernate Tools:
a) File / New / Other... / Hibernate / Hibernate Configuration File (cfg.xml) / Next / Next
b) Any name for Session factory name, Firebird for Database dialect, org.firebirdsql.jdbc.FBDriver for Driver class, url pointing to our database
c) Check the "Create a console configuration" box / Next / give a name for your console configuration / Finish
d) Window / Show View / Other... / Hibernate / Hibernate Configurations
e) In the Hibernate Configurations view click on Database
e) The error occurs: "Error while fetching children Reason: java.lang.NumberFormatException: For input string: "c""

6 - With Hibernate Synchronizer:
a) File / New / Other... / Hibernate / Hibernate Configuration File
b) Create a Hibernate config file using org.firebirdsql.jdbc.FBDriver driver and Interbase Dialect
c) Open hibernate.cfg.xml and change dialect property value to org.hibernate.dialect.FirebirdDialect
d) File / New / Other... / Hibernate / Hibernate Mapping File
d) After inform the driver, user and password, click on Refresh
e) The error occurs: "For input string: "C""

@firebird-automations
Copy link
Author

Commented by: Jerry A Goncalves (yumacolt)

Added stacktrace

@firebird-automations
Copy link
Author

Modified by: Jerry A Goncalves (yumacolt)

description: I?m plaining use Firebird with Hibernate in a new java project but I had problems when I tried map my database tables using two main Hibernate related Eclipse plugins to do this. These plugins works when I use other database like Oracle or MySQL.

The folowing steps should reproduce the error:
1 - Create a Firebird SQL Dialect 3 database
2 - Create a simple table according to this script: CREATE TABLE DUAL ( DUMMY CHAR(1));
3 - Using Eclipse 3.3 install one of these plugins: Hibernate Tools (http://www.tools.hibernate.org) or Hibernate Synchronizer (http://sourceforge.net/projects/hibernatesynch/) the same error occurs using any of that plugins
4 - Create a new project in Eclipse
5 - With Hibernate Tools:
a) File / New / Other... / Hibernate / Hibernate Configuration File (cfg.xml) / Next / Next
b) Any name for Session factory name, Firebird for Database dialect, org.firebirdsql.jdbc.FBDriver for Driver class, url pointing to our database
c) Check the "Create a console configuration" box / Next / give a name for your console configuration / Finish
d) Window / Show View / Other... / Hibernate / Hibernate Configurations
e) In the Hibernate Configurations view click on Database
e) The error occurs: "Error while fetching children Reason: java.lang.NumberFormatException: For input string: "c""

6 - With Hibernate Synchronizer:
a) File / New / Other... / Hibernate / Hibernate Configuration File
b) Create a Hibernate config file using org.firebirdsql.jdbc.FBDriver driver and Interbase Dialect
c) Open hibernate.cfg.xml and change dialect property value to org.hibernate.dialect.FirebirdDialect
d) File / New / Other... / Hibernate / Hibernate Mapping File
d) After inform the driver, user and password, click on Refresh
e) The error occurs: "For input string: "C""

=>

I am plaining use Firebird with Hibernate in a new java project but I had problems when I tried map my database tables using two main Hibernate related Eclipse plugins to do this. These plugins works when I use other database like Oracle or MySQL.

I got the stacktrace using MyEclipse PDE Error Log:

java.lang.NumberFormatException: For input string: "c"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl$DbAttachInfo.<init>(AbstractJavaGDSImpl.java:2514)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.iscAttachDatabase(AbstractJavaGDSImpl.java:369)
at org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:89)
at org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBManagedConnectionFactory.java:470)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStandAloneConnectionManager.java:69)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:119)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)

The folowing steps should reproduce the error:
1 - Create a Firebird SQL Dialect 3 database
2 - Create a simple table according to this script: CREATE TABLE DUAL ( DUMMY CHAR(1));
3 - Using Eclipse 3.3 install one of these plugins: Hibernate Tools (http://www.tools.hibernate.org) or Hibernate Synchronizer (http://sourceforge.net/projects/hibernatesynch/) the same error occurs using any of that plugins
4 - Create a new project in Eclipse
5 - With Hibernate Tools:
a) File / New / Other... / Hibernate / Hibernate Configuration File (cfg.xml) / Next / Next
b) Any name for Session factory name, Firebird for Database dialect, org.firebirdsql.jdbc.FBDriver for Driver class, url pointing to our database
c) Check the "Create a console configuration" box / Next / give a name for your console configuration / Finish
d) Window / Show View / Other... / Hibernate / Hibernate Configurations
e) In the Hibernate Configurations view click on Database
e) The error occurs: "Error while fetching children Reason: java.lang.NumberFormatException: For input string: "c""

6 - With Hibernate Synchronizer:
a) File / New / Other... / Hibernate / Hibernate Configuration File
b) Create a Hibernate config file using org.firebirdsql.jdbc.FBDriver driver and Interbase Dialect
c) Open hibernate.cfg.xml and change dialect property value to org.hibernate.dialect.FirebirdDialect
d) File / New / Other... / Hibernate / Hibernate Mapping File
d) After inform the driver, user and password, click on Refresh
e) The error occurs: "For input string: "C""

@firebird-automations
Copy link
Author

Commented by: Jerry A Goncalves (yumacolt)

Please, close this Issue.

There is not a problem.

After got the stack trace I found the code at sourceforge and discovered I mistook in URL formation.

@firebird-automations
Copy link
Author

Modified by: Jerry A Goncalves (yumacolt)

description: I am plaining use Firebird with Hibernate in a new java project but I had problems when I tried map my database tables using two main Hibernate related Eclipse plugins to do this. These plugins works when I use other database like Oracle or MySQL.

I got the stacktrace using MyEclipse PDE Error Log:

java.lang.NumberFormatException: For input string: "c"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl$DbAttachInfo.<init>(AbstractJavaGDSImpl.java:2514)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.iscAttachDatabase(AbstractJavaGDSImpl.java:369)
at org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:89)
at org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBManagedConnectionFactory.java:470)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStandAloneConnectionManager.java:69)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:119)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)

The folowing steps should reproduce the error:
1 - Create a Firebird SQL Dialect 3 database
2 - Create a simple table according to this script: CREATE TABLE DUAL ( DUMMY CHAR(1));
3 - Using Eclipse 3.3 install one of these plugins: Hibernate Tools (http://www.tools.hibernate.org) or Hibernate Synchronizer (http://sourceforge.net/projects/hibernatesynch/) the same error occurs using any of that plugins
4 - Create a new project in Eclipse
5 - With Hibernate Tools:
a) File / New / Other... / Hibernate / Hibernate Configuration File (cfg.xml) / Next / Next
b) Any name for Session factory name, Firebird for Database dialect, org.firebirdsql.jdbc.FBDriver for Driver class, url pointing to our database
c) Check the "Create a console configuration" box / Next / give a name for your console configuration / Finish
d) Window / Show View / Other... / Hibernate / Hibernate Configurations
e) In the Hibernate Configurations view click on Database
e) The error occurs: "Error while fetching children Reason: java.lang.NumberFormatException: For input string: "c""

6 - With Hibernate Synchronizer:
a) File / New / Other... / Hibernate / Hibernate Configuration File
b) Create a Hibernate config file using org.firebirdsql.jdbc.FBDriver driver and Interbase Dialect
c) Open hibernate.cfg.xml and change dialect property value to org.hibernate.dialect.FirebirdDialect
d) File / New / Other... / Hibernate / Hibernate Mapping File
d) After inform the driver, user and password, click on Refresh
e) The error occurs: "For input string: "C""

=>

Please, close this Issue.

There is not a problem.

After got the stack trace I found the code at sourceforge and discovered I mistook in URL formation.

I am plaining use Firebird with Hibernate in a new java project but I had problems when I tried map my database tables using two main Hibernate related Eclipse plugins to do this. These plugins works when I use other database like Oracle or MySQL.

I got the stacktrace using MyEclipse PDE Error Log:

java.lang.NumberFormatException: For input string: "c"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl$DbAttachInfo.<init>(AbstractJavaGDSImpl.java:2514)
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.iscAttachDatabase(AbstractJavaGDSImpl.java:369)
at org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:89)
at org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBManagedConnectionFactory.java:470)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStandAloneConnectionManager.java:69)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:119)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)

The folowing steps should reproduce the error:
1 - Create a Firebird SQL Dialect 3 database
2 - Create a simple table according to this script: CREATE TABLE DUAL ( DUMMY CHAR(1));
3 - Using Eclipse 3.3 install one of these plugins: Hibernate Tools (http://www.tools.hibernate.org) or Hibernate Synchronizer (http://sourceforge.net/projects/hibernatesynch/) the same error occurs using any of that plugins
4 - Create a new project in Eclipse
5 - With Hibernate Tools:
a) File / New / Other... / Hibernate / Hibernate Configuration File (cfg.xml) / Next / Next
b) Any name for Session factory name, Firebird for Database dialect, org.firebirdsql.jdbc.FBDriver for Driver class, url pointing to our database
c) Check the "Create a console configuration" box / Next / give a name for your console configuration / Finish
d) Window / Show View / Other... / Hibernate / Hibernate Configurations
e) In the Hibernate Configurations view click on Database
e) The error occurs: "Error while fetching children Reason: java.lang.NumberFormatException: For input string: "c""

6 - With Hibernate Synchronizer:
a) File / New / Other... / Hibernate / Hibernate Configuration File
b) Create a Hibernate config file using org.firebirdsql.jdbc.FBDriver driver and Interbase Dialect
c) Open hibernate.cfg.xml and change dialect property value to org.hibernate.dialect.FirebirdDialect
d) File / New / Other... / Hibernate / Hibernate Mapping File
d) After inform the driver, user and password, click on Refresh
e) The error occurs: "For input string: "C""

@firebird-automations
Copy link
Author

Commented by: Roman Rokytskyy (rrokytskyy)

not a bug - incorrect URL

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant