-->
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.  [ 2 posts ] 
Author Message
 Post subject: new Hibernate Console wiz doesn't save hibernate-console.xml
PostPosted: Thu Jan 19, 2006 3:35 am 
Newbie

Joined: Thu Jan 19, 2006 3:22 am
Posts: 1
I installed hibernate tools from the update site (http://download.jboss.org/jbosside/updates/development/) including all the jboss stuff. I already have all the other stuff GEF, etc installed and I know it works because I have Spring IDE working just great. After using the New Hibernate Console Configuration wizard and successfully having the sessionFactory created and I'm able to browse all my mappings, database tables and then I exit eclipse 3.1.1 and get this error:

Code:
!ENTRY org.eclipse.ui.ide 4 4 2006-01-18 23:07:53.744
!MESSAGE Problems saving workspace
Problems saving workspace
Reason:

!ENTRY org.eclipse.ui.ide 2 1 2006-01-18 23:07:53.745
!MESSAGE Problems occurred while trying to save the state of the workbench.
!SUBENTRY 1 org.eclipse.core.resources 2 566 2006-01-18 23:07:53.746
!MESSAGE Problems occurred during save.
!STACK 0
org.hibernate.console.HibernateConsoleRuntimeException: Could not write state
   at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:232)
   at org.hibernate.eclipse.console.HibernateConsolePlugin.writeStateTo(HibernateConsolePlugin.java:206)
   at org.hibernate.eclipse.console.HibernateConsoleSaveParticipant.saving(HibernateConsoleSaveParticipant.java:42)
   at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:324)
   at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:153)
   at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
   at org.eclipse.core.runtime.Platform.run(Platform.java:783)
   at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:156)
   at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:957)
   at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:1753)
   at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor$2.run(IDEWorkbenchAdvisor.java:291)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:/Users/corcutt/work/.metadata/.plugins/org.hibernate.eclipse.console/hibernate-console.xml-1 (No such file or directory)
   at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
   at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
   at org.hibernate.console.KnownConfigurations.writeXml(KnownConfigurations.java:249)
   at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:226)
   ... 11 more
Caused by: java.io.FileNotFoundException: file:/Users/corcutt/work/.metadata/.plugins/org.hibernate.eclipse.console/hibernate-console.xml-1 (No such file or directory)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
   at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:235)
   ... 14 more
Problems occurred while trying to save the state of the workbench.


The wizard creates .metadata/.plugins/org.hibernate.eclipse.console directory but there is no hibernate-console.xml created and for some reason instead its trying to create the SAVENAME + "-" + Integer.toString(saveNumber) instead of just the SAVENAME.

Anyone know how to fix this?
(I'm running Java 5 on eclipse 3.1.1 on OSX 10.4.3 with a postgres db)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 3:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the save code always put a new number in the end... (yes, I know should just call it SAVENAME).
Have not seen it complain that before.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.