2 Replies Latest reply on Nov 15, 2010 7:26 AM by Elhanan Maayan

    getting negativeSizeArray in hibernate tools 3.3.1

    Elhanan Maayan Novice

      hi.. when i try to view an hbm file i get this error:

      java.lang.NegativeArraySizeException
          at org.jboss.tools.common.util.FileUtil.isTextFile(FileUtil.java:148)
          at org.jboss.tools.common.model.util.XModelObjectLoaderUtil.isTextFile(XModelObjectLoaderUtil.java:768)
          at org.jboss.tools.common.model.filesystems.impl.FolderImpl.getEntityProperties(FolderImpl.java:211)
          at org.jboss.tools.common.model.filesystems.impl.FolderImpl.createFileObject(FolderImpl.java:225)
          at org.jboss.tools.common.model.filesystems.impl.FolderImpl._loadChild(FolderImpl.java:199)
          at org.jboss.tools.common.model.filesystems.impl.FolderImpl.loadChildren(FolderImpl.java:157)
          at org.jboss.tools.common.model.filesystems.impl.FolderImpl.loadChildren(FolderImpl.java:149)
          at org.jboss.tools.common.model.impl.RegularObjectImpl.getChildByPathPart(RegularObjectImpl.java:140)
          at org.jboss.tools.common.model.filesystems.impl.FolderImpl.getChildByPathPart(FolderImpl.java:937)
          at org.jboss.tools.common.model.impl.XModelObjectImpl.getChildByPath(XModelObjectImpl.java:335)
          at org.jboss.tools.common.model.util.EclipseResourceUtil.findResourceInFileSystem(EclipseResourceUtil.java:594)
          at org.jboss.tools.common.model.util.EclipseResourceUtil.getObjectByResource(EclipseResourceUtil.java:137)
          at org.jboss.tools.common.model.util.EclipseResourceUtil.createObjectForResource(EclipseResourceUtil.java:426)
          at org.jboss.tools.common.core.resources.XModelObjectEditorInput.convertFileInput(XModelObjectEditorInput.java:205)
          at org.jboss.tools.common.core.resources.XModelObjectEditorInput.checkInput(XModelObjectEditorInput.java:180)
          at org.jboss.tools.common.editor.NatureChecker.isAppropriateNature(ObjectMultiPageEditor.java:1282)
          at org.jboss.tools.common.editor.NatureChecker.check(ObjectMultiPageEditor.java:1270)
          at org.jboss.tools.common.editor.ObjectMultiPageEditor.init(ObjectMultiPageEditor.java:86)
          at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
          at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:644)
          at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
          at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
          at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:286)
          at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857)
          at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
          at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
          at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
          at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
          at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
          at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
          at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2676)
          at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
          at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
          at org.eclipse.ui.internal.ide.handlers.OpenResourceHandler.execute(OpenResourceHandler.java:129)
          at org.eclipse.ui.internal.ide.handlers.OpenResourceHandler.run(OpenResourceHandler.java:181)
          at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:289)
          at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
          at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
          at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
          at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
          at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
          at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
          at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
          at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
          at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
          at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1208)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
          at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
          at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
          at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1368)
          at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4053)
          at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
          at org.eclipse.swt.widgets.Control.windowProc(Control.java:3946)
          at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
          at org.eclipse.swt.widgets.Display.windowProc(Display.java:4619)
          at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
          at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2314)
          at org.eclipse.swt.internal.BidiUtil.windowProc(BidiUtil.java:639)
          at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
          at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2411)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3501)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
          at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
          at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

       

      do i need to re-install?