-->
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.  [ 10 posts ] 
Author Message
 Post subject: hibernate console and stored data
PostPosted: Sun Nov 19, 2006 8:59 pm 
Newbie

Joined: Sun Nov 19, 2006 8:42 pm
Posts: 6
hi.

i'm a new user to hibernate and there are two things i miss, so i thought maybe someone around here will know what to do so solve it..

(1) i'm using the eclipse ide and i downloaded the hibernate plugin but when i try to open the hibernate console i get this error prompt saying:
Quote:
problems opening perspective
'org.hibernate.eclipse.console.HibernateConsolePerspective'

and in the eclipse log file i also see this:
Quote:
!MESSAGE An error occurred while automatically activating bundle org.hibernate.eclipse.console (778).
!STACK 0
org.osgi.framework.BundleException: The activator org.hibernate.eclipse.console.HibernateConsolePlugin for bundle org.hibernate.eclipse.console is invalid
.....
Caused by: java.lang.NoClassDefFoundError: org/hibernate/eclipse/logging/PluginLogger


i'm using JBossIDE for eclipse version 2.0.0 Beta2 and i have no idea which version of hibernate i'm using.. it came with the jboss as.
any idea of how to solve this?

(2) and this may have something to do with the first problem... how can i see my database?
i'm working on a seam project and i want to see the data stored in the application.
i need something like the query browser in mysql or the phpmyadmin..
do i have that in the hibernate console?
the database in use is the default of jboss as: hsqldb.

thanks a lot.


Top
 Profile  
 
 Post subject: please help....
PostPosted: Wed Nov 22, 2006 4:58 pm 
Newbie

Joined: Sun Nov 19, 2006 8:42 pm
Posts: 6
hi.

nobody knows why i'm getting this error when trying to open the hibernate perspective?

i can't find anything on the net which will answer this...

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 11:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
try and run with eclipse -clean

and if that does not work you somehow have a bad install.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 11:33 am 
Newbie

Joined: Sun Nov 19, 2006 8:42 pm
Posts: 6
ok i'll give it ago when i get home...
but if it doesn't work, i have a bad install of what? the eclipse IDE or the hibernate plugin?

thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 23, 2006 11:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernate plugin most likely

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 6:14 pm 
Newbie

Joined: Sun Nov 19, 2006 8:42 pm
Posts: 6
Hi,

Ive downloaded "HibernateTools-3.2.0.beta8". I have followed the instructions on the index.html in that archive, and ran eclipse -clean.

When I try to open the hibernate perspective, I get the following exceptions:

"java.lang.NullPointerException at org.jboss.ide.eclipse.jdt.j2ee.jsp.ui.decorators.JSPNatureDecorator.decorate(JSPNatureDecorator.java:84) ... "

"java.lang.NoClassDefFoundError: org/hibernate/tool/ide/completion/IHQLCodeAssist
at java.lang.Class.getDeclaredConstructors0(Native Method) ... "

if the full stack trace is required, please let me know and Ill add it all...

does anyone knows what is the problem?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 6:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
show the full stacktrace...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 6:49 pm 
Newbie

Joined: Sun Nov 19, 2006 8:42 pm
Posts: 6
1)
Message: Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
Stack Trace:
java.lang.NullPointerException
at org.jboss.ide.eclipse.jdt.j2ee.jsp.ui.decorators.JSPNatureDecorator.decorate(JSPNatureDecorator.java:84)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:253)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:71)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:336)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:322)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:338)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:308)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

2)
Message: Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
Stack Trace:
java.lang.NoClassDefFoundError: org/hibernate/tool/ide/completion/IHQLCodeAssist
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:157)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.createComputer(CompletionProposalComputerDescriptor.java:278)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.getComputer(CompletionProposalComputerDescriptor.java:246)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.sessionEnded(CompletionProposalComputerDescriptor.java:421)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.sessionEnded(CompletionProposalCategory.java:327)
at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor$2.assistSessionEnded(ContentAssistProcessor.java:179)
at org.eclipse.jface.text.contentassist.ContentAssistant.fireSessionEndEvent(ContentAssistant.java:2008)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.hide(CompletionProposalPopup.java:868)
at org.eclipse.jface.text.contentassist.ContentAssistant.hide(ContentAssistant.java:1835)
at org.eclipse.jface.text.contentassist.ContentAssistant.uninstall(ContentAssistant.java:1199)
at org.eclipse.jface.text.source.SourceViewer.unconfigure(SourceViewer.java:587)
at org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.unconfigure(JavaSourceViewer.java:349)
at org.eclipse.jface.text.source.SourceViewer.handleDispose(SourceViewer.java:633)
at org.eclipse.jface.text.source.projection.ProjectionViewer.handleDispose(ProjectionViewer.java:1351)
at org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.handleDispose(JavaSourceViewer.java:459)
at org.eclipse.jface.text.TextViewer$1.widgetDisposed(TextViewer.java:1483)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:101)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
at org.eclipse.swt.custom.StyledText.handleDispose(StyledText.java:4920)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4787)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:933)
at org.eclipse.swt.widgets.Widget.release(Widget.java:743)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:117)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:415)
at org.eclipse.ui.internal.PartPane.dispose(PartPane.java:167)
at org.eclipse.ui.internal.WorkbenchPartReference.dispose(WorkbenchPartReference.java:639)
at org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchPage.java:1548)
at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1311)
at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1295)
at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1269)
at org.eclipse.ui.internal.WorkbenchPage.closeAllEditors(WorkbenchPage.java:1088)
at org.eclipse.ui.internal.WorkbenchPage.dispose(WorkbenchPage.java:1597)
at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(WorkbenchWindow.java:748)
at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1486)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:622)
at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:598)
at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:713)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:711)
at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109)
at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:712)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:709)
at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:639)
at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:839)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:837)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:812)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:619)
at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:598)
at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:713)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:711)
at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:736)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:682)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:159)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:257)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1606)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3248)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1920)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:443)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1920)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:443)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 6:53 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
do you have a jsp file open at the same time ?

try and close all files and tell me if that lets you switch to the perspective without errors.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 7:10 pm 
Newbie

Joined: Sun Nov 19, 2006 8:42 pm
Posts: 6
thanks max,

We are not using JSP, we work with JSF-xhtml...
Anyway, I closed all files, stopped the server and now there are no errors.

What was the reason for this error? is it possible that the JBoss AS and the hibernate console interfere each other? or were these just old errors in the error log?


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