facebook

An internal error occurred during: "Generating Artifact

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

    mousashaya
    Member

    I am getting this error when I am trying to reverse enginer the database schema to genrate the hbm and all the java class files. All my tables have primary keys.
    I am using MyEclispe 5.1.0 along with Hibernate 3.1.
    Is there a way to get a more helpful error message?

    This is the error in the log file:
    !ENTRY org.eclipse.core.jobs 4 2 2007-05-07 10:44:30.254
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.util.NoSuchElementException
    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    at java.util.HashMap$ValueIterator.next(Unknown Source)
    at com.genuitec.eclipse.hibernate.tool.MESingleClassExporter.doStart(MESingleClassExporter.java:58)
    at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:92)
    at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:390)
    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.run(GenerateArtifactsJob.java:303)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    Here is my connection information:
    <?xml version=’1.0′ encoding=’UTF-8′?>
    <!DOCTYPE hibernate-configuration PUBLIC
    “-//Hibernate/Hibernate Configuration DTD 3.0//EN”
    http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd”&gt;

    <!– Generated by MyEclipse Hibernate Tools. –>
    <hibernate-configuration>

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

    </session-factory>

    </hibernate-configuration>

    #269824 Reply

    Loyal Water
    Member

    Ca you give me the entire exception that gets printed to the console, the reason can get buried in long stack traces.

    #269831 Reply

    mousashaya
    Member

    Unfortunately there is nothing else, if there was then Imight be able to understand it:
    Here is a larger portion of the error file. The contents are merely repeats.
    I do not see any other exceptions logged anywhere else. Maybe I am missing something.
    I get the error log from the Configuration Details pop-up dialog when I click on the View Error Log button. Is this correct or is there anywhere else I have to check?:

    !ENTRY org.eclipse.core.jobs 4 2 2007-05-07 10:32:14.612
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.util.NoSuchElementException
    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    at java.util.HashMap$ValueIterator.next(Unknown Source)
    at com.genuitec.eclipse.hibernate.tool.MESingleClassExporter.doStart(MESingleClassExporter.java:58)
    at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:92)
    at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:390)
    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.run(GenerateArtifactsJob.java:303)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    !ENTRY org.eclipse.core.jobs 4 2 2007-05-07 10:43:25.001
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.util.NoSuchElementException
    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    at java.util.HashMap$ValueIterator.next(Unknown Source)
    at com.genuitec.eclipse.hibernate.tool.MESingleClassExporter.doStart(MESingleClassExporter.java:58)
    at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:92)
    at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:390)
    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.run(GenerateArtifactsJob.java:303)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    !ENTRY org.eclipse.core.jobs 4 2 2007-05-07 10:44:30.254
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.util.NoSuchElementException
    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    at java.util.HashMap$ValueIterator.next(Unknown Source)
    at com.genuitec.eclipse.hibernate.tool.MESingleClassExporter.doStart(MESingleClassExporter.java:58)
    at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:92)
    at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:390)
    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.run(GenerateArtifactsJob.java:303)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    #269834 Reply

    mousashaya
    Member

    Just to be clear there are no errors or exceptions that are logged to the “Console”. These are plugin errors and not compilation errors.
    Are there any flags that I can set somewhere to get more logging turned on?

    #269871 Reply

    Riyad Kalla
    Member

    What I would suggest trying is shutting down MyEclipse, going to <workspace dir>\.metadata and erasing the .log file. Then restart MyEclipse, and try the same operation again, now go open the newly created .log file, and paste the *entire* contents here. Hopefully something interesting will be in there.

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

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