当前位置: 代码迷 >> Eclipse >> 在“Generating Artifacts”期间发生了内部异常! 小弟我绝望了,哪位高手能帮小弟我看看这个有关问题
  详细解决方案

在“Generating Artifacts”期间发生了内部异常! 小弟我绝望了,哪位高手能帮小弟我看看这个有关问题

热度:227   发布时间:2016-04-23 18:41:34.0
在“Generating Artifacts”期间发生了内部错误! 我绝望了,谁能帮我看看这个问题~
我真的绝望了,找了一个晚上找不到解决这个问题的办法,有很多雷同的都能解决了,和我一样错误提示的问题帖子是有的,但还没人解决,谁能帮帮我这个新手。

环境:
j2sdk1.4.2_01   tomcat   5.0.28  
eclipse-SDK-3.2.2-win32   MyEclipse_5.1.1GA_Installer.exe
数据库:hsqldb_1_7_3_3
struts   1.1     hibernate   3.1
org.hsqldb.jdbcDriver
jdbc:hsqldb:hsql://localhost/hittdb   username   =   'sa '   pwd=   ' '密码为空。

在MYECLIPSE   DATABASE   EXPLORER   测试正常,能检索到数据库内容

但在“Generating   Artifacts”期间发生了内部错误。

异常堆栈跟踪:
java.util.NoSuchElementException
at   java.util.HashMap$HashIterator.nextEntry(HashMap.java:785)
at   java.util.HashMap$ValueIterator.next(HashMap.java:812)
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)

会话数据:
eclipse.buildId=M20070212-1330
java.version=1.4.2_01
java.vendor=Sun   Microsystems   Inc.
BootLoader   constants:   OS=win32,   ARCH=x86,   WS=win32,   NL=zh_CN
Command-line   arguments:     -os   win32   -ws   win32   -arch   x86
hibernate.cfg.xml文件:
<?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 ">
<!--   Generated   by   MyEclipse   Hibernate   Tools.                                       -->
<hibernate-configuration>

<session-factory>
<property   name= "connection.username "> sa </property>
<property   name= "connection.url ">
jdbc:hsqldb:hsql://localhost/hittdb
</property>
<property   name= "dialect ">
org.hibernate.dialect.HSQLDialect
</property>
<property   name= "myeclipse.connection.profile ">
hitt_myhsql
</property>
<property   name= "connection.driver_class ">
org.hsqldb.jdbcDriver
</property>

</session-factory>

</hibernate-configuration> web.xml文件:

<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<web-app   xmlns= "http://java.sun.com/xml/ns/j2ee "  

xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance "   version= "2.4 "  
  相关解决方案