-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: java.lang.IllegalStateException: zip file closed
PostPosted: Thu May 24, 2012 6:59 am 
Newbie

Joined: Thu May 24, 2012 6:34 am
Posts: 3
Hello,

My Setup :
1> Eclipse Java EE IDE for Web Developers. ( Version: Indigo Service Release 2 Build id: 20120216-1857 )
contains Hibernate Tools 3.4.0.v20120504-2121-H72-Beta3 org.hibernate.eclipse.feature.feature.group JBoss by Red Hat

I had downloaded eclipse indigo mentioned above and had got jboss tools installed over it from update site (http://download.jboss.org/jbosstools/up ... nt/indigo/)
-------------
I had created Hibernate Console Configuration and could see the tables in eclipse which were created in postgreSQL database.
Now i wish to generate the .java, .hbm.xml, DAO files using Hibernate Code generation Configurations.
When i run the code generation, it gives me following error.

java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(Unknown Source)
at java.util.zip.ZipFile.getEntry(Unknown Source)
at java.util.jar.JarFile.getEntry(Unknown Source)
at java.util.jar.JarFile.getJarEntry(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6$5$1.findClass(HibernateExtension3_6.java:157)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6$5$1.loadClass(HibernateExtension3_6.java:168)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6$5$1.loadClass(HibernateExtension3_6.java:176)
at org.postgresql.Driver.getDefaultProperties(Driver.java:85)
at org.postgresql.Driver.connect(Driver.java:231)
at org.jboss.tools.hibernate3_6.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:31)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:121)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:60)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:860)
at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:120)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:93)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:43)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6$3.execute(ConsoleExtension3_6.java:271)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6.execute(HibernateExtension3_6.java:201)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6.buildConfiguration(ConsoleExtension3_6.java:239)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6.runExporters(ConsoleExtension3_6.java:169)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6.launchExporters(ConsoleExtension3_6.java:126)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Session Data
eclipse.buildId=M20120208-0800
java.version=1.6.0_32
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

-------------
Please suggest possible solutions to this problem.

Thanks.
Vilpesh


Top
 Profile  
 
 Post subject: Re: java.lang.IllegalStateException: zip file closed
PostPosted: Sat Jun 02, 2012 6:11 am 
Newbie

Joined: Sat Jun 02, 2012 6:08 am
Posts: 1
Hi, i have exactly the same problem. I found some answers on the internet telling to renitialize Eclipse or change to jdk7 but nothing work for me.
Anyone can help?


Top
 Profile  
 
 Post subject: Re: java.lang.IllegalStateException: zip file closed
PostPosted: Mon Jun 04, 2012 7:41 am 
Newbie

Joined: Thu May 24, 2012 6:34 am
Posts: 3
I had tried restarting Eclipse Indigo with JBoss Tools but could not get rid of the problem.
So,I then have downloaded Eclipse Helios (Java EE IDE for Web Developers) and installed appropriate JBoss Tools.
Now i don't get this exception since i downgraded to lower version.

Hope that this is fixed sometime in future.


Top
 Profile  
 
 Post subject: Re: java.lang.IllegalStateException: zip file closed
PostPosted: Mon Jun 04, 2012 7:54 am 
Senior
Senior

Joined: Fri May 08, 2009 12:27 pm
Posts: 168
The Hibernate Tools project has been seeing zero development activity for months now.
Today's advice would be to assume the project comatose or dead, and plan accordingly.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.