hello,
im doing a little stand alone application with hibernate 3.0.5
I'm wraiting all configuration file and i want to try to write a string in my database.
I have this error
Code:
GRAVE: Initial SessionFactory creation failed.
java.lang.NumberFormatException: For input string: "3 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:477)
at java.lang.Integer.parseInt(Integer.java:518)
at org.hibernate.util.PropertiesHelper.getInt(PropertiesHelper.java:23)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:40)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:362)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at HibernateUtil.<clinit>(HibernateUtil.java:16)
at Go.main(Go.java:25)
java.lang.ExceptionInInitializerError
at HibernateUtil.<clinit>(HibernateUtil.java:20)
at Go.main(Go.java:25)
Caused by: java.lang.NumberFormatException: For input string: "3 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:477)
at java.lang.Integer.parseInt(Integer.java:518)
at org.hibernate.util.PropertiesHelper.getInt(PropertiesHelper.java:23)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:40)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:362)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at HibernateUtil.<clinit>(HibernateUtil.java:16)
... 1 more
Exception in thread "main"
What are the causes of this error?
thank you
bye