Using Eclipse, I have my own project and a Hibernate project. My project has a dependency on the Hibernate project and my project uses hibernate for persistence. I modified the properties of my project (I removed a jar unrelated to hibernate) and when I saved the changes, Eclipse exited with a JVM error that it says was in native code external to eclipse. I looked in the eclipse log and saw the stack trace that is listed below. Every time I started eclipse after that it immediately existed with the same exception.
I am using a computer that is not connected to the Internet and cannot ever be connected for security reasons. It runs an application that will only ever be used internally in the company.
Searching on google I saw that some people have had a similar problem for machines not connected to the internet because of the DOCTYPE declaration in the hibernate.cfg.xml. I renamed that file and tried to restart eclipse but still had the same exception. Finally I renamed my .metadata directory and restarted eclipse. I came up and then I re-added my projects. This time I did not add the hibernate project as a dependency of my project, but instead just added hibernate3.jar from the hibernate project. But this also caused an eclipse crash when I saved the changes.
I'm not sure what to do now. I never had this problem before and have used hibernate for a couple years on this same machine. I did upgrade to 3.2 some time ago but I don't recall a problem like this at that time.
Do I need to find all hibernate configuration files that have a PUBLIC DOCTYPE and change it to SYSTEM? Or what?
Thanks in advance.
Hibernate version: 3.2
Mapping documents:
<?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">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="hibernate.connection.password">cfrjob</property>
<property name="hibernate.connection.url">jdbc:db2://172.16.50.110:50000/CFRDEV</property>
<property name="hibernate.connection.username">cfrjob</property>
<property name="hibernate.default_schema">CFR</property>
<property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="hibernate.jdbc.batch_size">1000</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="show_sql">false</property>
<mapping resource="org/egcrc/cfr/normalized/Appearance.hbm.xml"/>
<mapping resource="org/egcrc/cfr/common/AbstractPerson.hbm.xml"/>
<mapping resource="org/egcrc/cfr/population/CompositePerson.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Full stack trace of any exception that occurs:
!ENTRY com.objfac.xmleditor 4 4 2008-08-07 16:08:25.916
!MESSAGE Internal Error
!STACK 0
java.net.UnknownHostException: hibernate.sourceforge.net
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
at java.net.URL.openStream(URL.java:1009)
at com.objfac.xml.io.DefaultDocumentReaderFactory.getInputStream(DefaultDocumentReaderFactory.java)
at com.objfac.xml.io.DefaultDocumentReaderFactory.getReader(DefaultDocumentReaderFactory.java)
at com.objfac.xml.io.DocumentCache.getContents(DocumentCache.java)
at com.objfac.xml.schema.impl.ExternalEntity.getContents(ExternalEntity.java)
at com.objfac.xmleditor.xerces.CacheEntityResolver.internalResolve(CacheEntityResolver.java)
at com.objfac.xmleditor.xerces.CacheEntityResolver.resolveEntity(CacheEntityResolver.java)
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java)
at com.objfac.xmleditor.xerces.DTDValidator.validate(DTDValidator.java)
at com.objfac.xmleditor.validate.XMLValidationShell.xercesValidate(XMLValidationShell.java)
at com.objfac.xmleditor.validate.XMLValidationShell.backgroundValidate(XMLValidationShell.java)
at com.objfac.xmleditor.BaseEditor$1.run(BaseEditor.java)
at java.lang.Thread.run(Thread.java:619)
|