- This topic has 6 replies, 3 voices, and was last updated 17 years, 6 months ago by Haris Peco.
-
AuthorPosts
-
java4funMemberHi,guys, under Eclipse 3.2.1/Myeclipse5.1.1,I’m sort of developing a Java EE project, and I selected a table in DB Browser, trying to do “Hibernate Mapping and Application Generation”. I followed the steps and clicked “finish”, a dialogue named “Generating Artifacts” appeared, then “A internal error occurred during ‘Generating Artifacts’ “. What does that mean? You know, the connection to database Mysql is OK. What’s the problem?
Thanks in advance!
Haris PecoMemberjava4fun,
Could you, please, send your database and jdbc version and your error log (Window>Show View>Other>PDE Runtime>Error Log View or Help>About Eclipse SDK>Configuration Details>Error Log View).
The problem is mostly old jdbc driver (could you try latest 3.1.14 or 5.0.5 ?)
Thanks,
shravaniamMemberjava.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.supportsResultSetType(I)Z
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:80)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1877)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:73)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$6.execute(GenerateArtifactsJob.java:529)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:524)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:296)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
shravaniamMemberthe above are log messages please help me solve GENERATING ARTICRAFTS ERROR
Haris PecoMemberIf you use Oracle try latest JDBC driver from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
Regards,
shravaniamMemberhow to use this latest jdbc driver???? i used the driver which is coming from oracle 8i database……. itself….. if suppose i download the latest driver from oracle……. how do i need to use them?????
where to keep this latest driver???? how to use in our application??????
Haris PecoMemberYou will find ojdbc14.jar in archive on link from previous message.
You would add this jar instead of jar from oracle8i.If you use localization you have to add orai18n.jar as well.
JDBC driver from oracle8i have bug and you can’t use it with MyEclipse generate engine.Regards,
-
AuthorPosts