facebook

An internal error occurred during: "Generating Artifact

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #286933 Reply

    Dr.Drane
    Member

    Hello,

    I get an error while reverse engineering a table:

    (project: hibernate with annotations + spring capabilities)

    Error message:

    An internal error occurred during: “Generating Artifacts”.
    java.lang.NullPointerException

    DDL of the table:

    create table `musickmind`.`user`(
    `uid` INT not null,
    `username` VARCHAR(30) not null,
    `password` VARCHAR(30) not null,
    `creation_date` TIMESTAMP,
    `modified_date` TIMESTAMP default ‘0000-00-00 00:00:00’ not null,
    `approved` ENUM(10) not null
    );

    create unique index `uid` on `musickmind`.`user`(`uid`);

    Logs:

    !ENTRY org.eclipse.core.jobs 4 2 2008-07-10 00:05:51.218
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.lang.NullPointerException
    at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:77)
    at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:73)
    at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1263)
    at org.hibernate.cfg.JDBCMetaDataConfiguration.secondPassCompileForeignKeys(JDBCMetaDataConfiguration.java:33)
    at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1170)
    at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$7.execute(GenerateArtifactsJob.java:878)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
    at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:91)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:858)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:405)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Any ideas on how I might be able to solve this?

    Thank you and have a nice day,

    Jochen

    #286934 Reply

    Dr.Drane
    Member

    I restarted myeclipse and tried again.
    Now the error logs gave a little bit more info:

    !SESSION 2008-07-10 00:11:12.578 ———————————————–
    eclipse.buildId=M20080221-1800
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_BE
    Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    !ENTRY org.eclipse.update.configurator 2008-07-10 00:11:16.687
    !MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/com.ibm.icu_3.6.1.v20070906.jar Bundle “com.ibm.icu” version “3.6.1.v20070906” has already been installed from: update@plugins/com.ibm.icu_3.6.1.v20070906.jar

    !ENTRY org.eclipse.update.configurator 2008-07-10 00:11:16.703
    !MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/javax.servlet.jsp_2.0.0.v200706191603.jar Bundle “javax.servlet.jsp” version “2.0.0.v200706191603” has already been installed from: update@plugins/javax.servlet.jsp_2.0.0.v200706191603.jar

    !ENTRY org.eclipse.update.configurator 2008-07-10 00:11:16.703
    !MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/javax.servlet_2.4.0.v200706111738.jar Bundle “javax.servlet” version “2.4.0.v200706111738” has already been installed from: update@plugins/javax.servlet_2.4.0.v200706111738.jar

    !ENTRY org.eclipse.update.configurator 2008-07-10 00:11:16.750
    !MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/org.apache.commons.el_1.0.0.v200706111724.jar Bundle “org.apache.commons.el” version “1.0.0.v200706111724” has already been installed from: update@plugins/org.apache.commons.el_1.0.0.v200706111724.jar

    !ENTRY org.eclipse.core.jobs 4 2 2008-07-10 00:11:59.437
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.lang.NullPointerException
    at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:77)
    at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:73)
    at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1263)
    at org.hibernate.cfg.JDBCMetaDataConfiguration.secondPassCompileForeignKeys(JDBCMetaDataConfiguration.java:33)
    at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1170)
    at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$7.execute(GenerateArtifactsJob.java:878)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
    at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:91)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:858)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:405)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    #286935 Reply

    Dr.Drane
    Member

    Reinstalling MyEclipse and trying a clean workspace also didn’t help by the way.

    Greets

    #286993 Reply

    Dr.Drane
    Member

    My primary keys were unique values. Changed them to primary and problem is solved.

    greets

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: An internal error occurred during: "Generating Artifact

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in