-->
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: Middlegen ZipException
PostPosted: Thu Jan 12, 2006 10:11 am 
Newbie

Joined: Thu Jan 12, 2006 9:41 am
Posts: 15
Location: France
Hi!

Can anyone help me?

I have this error when I launch the task <ant middlegen>
Tools version:
- Middlegen-Hibernate-r5
- hibernate-3.0.5
- Oracle 9i

The first time I launch the task, middlegen generates perfectly the mapping files but since I updated WTP for Eclipse, I encounter this problem. Has it a relationship?
Indeed, there was a warning in the buid.xml.
[The file cannot be validated as a XML Schema.Can't find the ./config/database/oracle.xml ]
But the file exists!


init:
fail-if-no-xdoclet-1.2:
check-driver-present:
panic-if-driver-not-present:
middlegen:
[echo] Class path = D:\Projet\sources\varnat
[middlegen] java.util.zip.ZipException: invalid END header (bad central directory offset)
[middlegen] at java.util.zip.ZipFile.open(Native Method)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:832)
[middlegen] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[middlegen] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[middlegen] at org.apache.log4j.Category.getInstance(Category.java:510)
[middlegen] at middlegen.Middlegen.<clinit>(Middlegen.java:108)
[middlegen] at middlegen.MiddlegenTask.<init>(MiddlegenTask.java:143)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[middlegen] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[middlegen] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:273)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:196)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:183)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:199)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:176)
[middlegen] at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:388)
[middlegen] at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:363)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[middlegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[middlegen] java.util.zip.ZipException: invalid END header (bad central directory offset)
[middlegen] at java.util.zip.ZipFile.open(Native Method)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:832)
[middlegen] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[middlegen] at org.apache.log4j.LogManager.<clinit>(LogManager.java:96)
[middlegen] at org.apache.log4j.Category.getInstance(Category.java:510)
[middlegen] at middlegen.Middlegen.<clinit>(Middlegen.java:108)
[middlegen] at middlegen.MiddlegenTask.<init>(MiddlegenTask.java:143)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[middlegen] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[middlegen] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:273)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:196)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:183)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:199)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:176)
[middlegen] at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:388)
[middlegen] at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:363)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[middlegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[middlegen] (middlegen.Middlegen 350 ) Registering plugin simple->middlegen.Plugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin java->middlegen.javax.JavaPlugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin plugin->middlegen.Plugin

BUILD FAILED
D:\Projet\sources\varnat\extras\Middlegen-Hibernate-r5\build.xml:153: Could not create type middlegen due to java.lang.IllegalStateException: Error looking for plugins:invalid END header (bad central directory offset)


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 10:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Middlegen core should not be affected but Middlegen IDE could be. I dont use the IDE so I cannot help further. Try the dedicated list.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 14, 2006 6:22 pm 
Newbie

Joined: Thu Jan 12, 2006 9:41 am
Posts: 15
Location: France
But I don't use Middlegen IDE either :'(
Thanks for answer.

Tim


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 15, 2006 5:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have no idea where the zip error is coming from: maybe a bad archive so get a fresh one; maybe a bad harddisk; etc

This eror has never been reported before. I am having no issues.


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.