facebook

[Closed] Internal error during Generating Artifacts

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #247561 Reply

    hkaganda
    Member

    I download and installed MyEclipse Enterprise Workbench, version: 4.1.0 GA; Build Id: 20060122-4.1-GA.
    I tried the tutorial for Hibernate Development, but the examples of the tutorial screens are different from the real product screens.
    I create a project, added the hibernate capabilities which generated the HibernateSessionFactory and the hibernate.cfg.xml.

    Using MyEclipse Database Explorer, I created database connection for an Oracle 10g database. I opened a connection and selected a schema where I selected a table and tried to generate hibernate mapping. At the end of gerating hibernate mappings, I got the following error message: An internal error occurred during: “Gerating Artifacts”.

    The “hibernate.cfg.xml” was not updates. The class mapping files and classes were not created.

    I am using Eclipse 3.1, JDK 1.5, Oracle 10g, version 10.2.0, jdbc driver:ojdbc14.jar
    😕

    #247588 Reply

    Riyad Kalla
    Member

    Can you check your log file (<workspace dir>\.metadata\.log), near the bottom, for an exception that might give us a hint what happened?

    #247598 Reply

    hkaganda
    Member

    Here are the contents of log file which is the .metadata directory:

    !SESSION 2006-03-01 18:29:42.812 ———————————————–
    eclipse.buildId=M20060118-1600
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.187
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\css_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.234
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\forms_lists_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.281
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\htmlform_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.312
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\html_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.359
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\javascript_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.406
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_f_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.468
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_h_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.515
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_bean_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.578
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_html_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.625
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_logic_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-03-01 18:29:49.671
    !MESSAGE Installed snippet library: c:\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_tiles_snippets.xml

    !ENTRY com.genuitec.eclipse.core 1 0 2006-03-01 18:32:12.203
    !MESSAGE Unable to locate .myeclipse.properties file

    !ENTRY org.eclipse.core.runtime 4 2 2006-03-01 19:06:56.859
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.lang.IncompatibleClassChangeError
    at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:109)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:374)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:255)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

    #247599 Reply

    Riyad Kalla
    Member

    java.lang.IncompatibleClassChangeError

    It looks like your install is problomatic. This can be caused by upgrading MyEclipse by simply installing a new version ontop of the old one.

    I would suggest a new clean install of MyEclipse 4.1 to a new location to alleviate this problem.

    #247635 Reply

    hkaganda
    Member

    I unstalled MyEclipse, downloaded again MyEclipse IDE, installed it, but when I tried to create hibernate Mapping, I got the same error. Here are the error messages from the log file:

    !SESSION 2006-03-02 10:13:45.390 ———————————————–
    eclipse.buildId=M20060118-1600
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY com.genuitec.eclipse.core 1 0 2006-03-02 10:16:38.453
    !MESSAGE Unable to locate .myeclipse.properties file

    !ENTRY org.eclipse.core.runtime 4 2 2006-03-02 10:22:15.15
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.lang.IncompatibleClassChangeError
    at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:109)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:374)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:255)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

    Here is what I do to create Hibernate Mapping:
    After I have created the project and added the Hibernate Capabilities, which creates a session manager file and hibernate.cfg.xml file,
    1. I select “create Hibernate Mapping” from the table popup menu, which displays “Generate Hibernate Mapping Dialog”
    2. I don’t change the settings on the first screen of the dialog. Then I select next
    3. The only setting that I change on this next screen is “ID Generator” which I sent to “increment”, then select finish and that is when I get the error message dialog.

    I am testing this on one table which has only two columns with type of long and varchar2 respectively.

    What am I missing?

    #247636 Reply

    Riyad Kalla
    Member

    When you uninstalled MyEclipse, did you go make sure the MyEclipse directory was deleted as well? If you installed ontop of an old install, you may have files lingering around.

    Also please restart using the -clean command line argument as outlined here: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10280.html

    That will help to make sure everything gets cleaned out.

    #247695 Reply

    hkaganda
    Member

    I have uninstalled MyEclipse, deleted the directory, re-started the computer, installed MyEclipse again and added to the eclipse the “-clean” option. However, when I tried to generate Hibernate Mapping, I get the same error message.

    I believe the main problem starts when “com.genuitec.eclipse.core” fails to locate “.myeclipse.properties file”.

    Any idea why this properties file is missing?

    Thanks

    #247697 Reply

    Riyad Kalla
    Member

    Can you try a clean workspace: File > Switch Worksspace > C:\tempworkspace, hit OK. And a new project and see if it works?

    #247710 Reply

    hkaganda
    Member

    I have already tries switching workspace, but I still get the same error!!!

    #247711 Reply

    Brian Fernandes
    Moderator

    Have you tried a clean hibernate project in the new workspace?

    Also, have you installed any other plugins in eclipse? It looks like you may have a copy of Hibernate Tools from JBoss installed in the primary eclipse installation – the same eclipse installation you’re using to run MyEclipse. If this is the case, or if you have installed any plugins that might cause this conflict, can you use a clean eclipse install and test? We just released MyEclipse 4.1.1 which has increased compatability with HIbernate Tools, you could try that too.

    Finally, is the oracle driver (ojdbc14.jar) which you copied to your project the same as the driver you configured in MyEclipse to connect to your database?

    Best,
    Brian.

    #247729 Reply

    hkaganda
    Member

    I have installed MyEclipse 4.1.1 and it works. Thank you.

    #247732 Reply

    Riyad Kalla
    Member

    Thank you for following up, glad it works now.

    #248692 Reply

    lovethief
    Member

    i got the same problem .
    why the MyEclipse 4.1.1 i just downloaded can not be installed ??
    it asks me to change a new disk……

    waiting for your reply……thanks

    #248713 Reply

    Riyad Kalla
    Member

    love I didn’t follow your report at all… can you give me some more details? follow our posting guidelines? explain what is going on?

    #249065 Reply

    xwkp2008
    Member

    i have a same error “An internal error occurred during: “Gerating Artifacts”. ”
    I am using Eclipse 3.1.1, JDK 1.5, Oracle 9i myeclipse 4.1.1
    and i found the follow exception in the .log fie:
    !ENTRY org.eclipse.core.runtime 4 2 2006-03-22 10:59:17.845

    !MESSAGE An internal error occurred during: “Generating Artifacts”.

    !STACK 0

    java.lang.IllegalArgumentException: Path must include project and resource name: /

    at org.eclipse.core.internal.utils.Assert.isLegal(Assert.java:60)

    at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1560)

    at org.eclipse.core.internal.resources.Container.getFile(Container.java:125)

    at com.genuitec.eclipse.hibernate.util.HibernateUtils.getConfigFile(HibernateUtils.java:311)

    at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:165)

    at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:154)

    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:198)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Viewing 15 posts - 1 through 15 (of 20 total)
Reply To: [Closed] Internal error during Generating Artifacts

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