Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rancho13
21 Post subject: NullPointerException in Generating Artifacts  PostPosted: Sep 28, 2006 - 03:29 AM



Joined: Sep 28, 2006
Posts: 2

MyEclipse 5.0.1
MySQL 5.0
jdbc: mysql-connector-java-3.1.13-bin.jar

I see all databases in the MyEclipse Database Explorer, when execute reverse ingeeniering, crash. Please help me.

<hibernate-configuration>

<session-factory>
<property name="connection.username">root</property>
<property name="connection.url">jdbc:mysql://localhost:3306/simulator</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="myeclipse.connection.profile">MySQL</property>
<property name="connection.password">rancho</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>

</session-factory>

</hibernate-configuration>


Error Log:
!ENTRY org.eclipse.core.jobs 4 2 2006-09-27 23:15:28.531
!MESSAGE An internal error occurred during: "Generating Artifacts".
!STACK 0
java.lang.NullPointerException
at org.hibernate.console.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:23)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1877)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:71)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$6.execute(GenerateArtifactsJob.java:514)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:70)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:509)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:293)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rancho13
Post subject:   PostPosted: Sep 28, 2006 - 03:40 AM



Joined: Sep 28, 2006
Posts: 2

database for mapping:

create database simulator;
create table componenttype
(
idcomponenttype smallint not null,
componenttype varchar(30),
primary key (idcomponenttype)
)
type = innodb;
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 03, 2006 - 01:22 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Is that the entire exception? Is there more to the exception below that, which might explain permission issues or something like that?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits