Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-21474

Hibernate libraries are not being validated

    Details

    • Steps to Reproduce:
      Hide

      1. open new JPA Project wizard
      2. go to JPAFacetInstallPage, choose Hibernate (JPA 2.1) platform
      3. choose JPA Implementation - User Library and add Hibernate libraries
      4. select Hibernate libraries and check error log

      Show
      1. open new JPA Project wizard 2. go to JPAFacetInstallPage, choose Hibernate (JPA 2.1) platform 3. choose JPA Implementation - User Library and add Hibernate libraries 4. select Hibernate libraries and check error log

      Description

      enablement of HibernateUserLibraryValidator is not correctly defined in o.j.t.hibernate.jpt.core plugin.xml which causes this exception

      org.eclipse.core.runtime.CoreException: No property tester contributes a property org.eclipse.jpt.jpa.core.jpaPlatformGroup to type class org.eclipse.jpt.jpa.core.internal.libprov.JpaUserLibraryProviderInstallOperationConfig
      	at org.eclipse.core.internal.expressions.TypeExtensionManager.getProperty(TypeExtensionManager.java:127)
      	at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:97)
      	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
      	at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:75)
      	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
      	at org.eclipse.core.internal.expressions.AndExpression.evaluate(AndExpression.java:31)
      	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
      	at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:55)
      	at org.eclipse.jpt.common.core.internal.libval.LibraryValidatorConfig.isEnabled_(LibraryValidatorConfig.java:86)
      	at org.eclipse.jpt.common.core.internal.libval.LibraryValidatorConfig.isEnabled(LibraryValidatorConfig.java:72)
      	at org.eclipse.jpt.common.core.internal.libval.LibraryValidatorConfig$IsEnabled.evaluate(LibraryValidatorConfig.java:121)
      	at org.eclipse.jpt.common.core.internal.libval.LibraryValidatorConfig$IsEnabled.evaluate(LibraryValidatorConfig.java:1)
      	at org.eclipse.jpt.common.utility.internal.iterator.FilteringIterator.loadNext(FilteringIterator.java:80)
      	at org.eclipse.jpt.common.utility.internal.iterator.FilteringIterator.next(FilteringIterator.java:68)
      	at org.eclipse.jpt.common.utility.internal.iterator.TransformationIterator.next(TransformationIterator.java:54)
      	at org.eclipse.jpt.common.utility.internal.iterator.FilteringIterator.loadNext(FilteringIterator.java:79)
      	at org.eclipse.jpt.common.utility.internal.iterator.FilteringIterator.<init>(FilteringIterator.java:56)
      	at org.eclipse.jpt.common.utility.internal.iterator.IteratorTools.filter(IteratorTools.java:886)
      	at org.eclipse.jpt.common.utility.internal.iterable.FilteringIterable.iterator(FilteringIterable.java:48)
      	at org.eclipse.jpt.common.core.internal.libprov.JptUserLibraryProviderInstallOperationConfig.validate(JptUserLibraryProviderInstallOperationConfig.java:42)
      	at org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate.validate(LibraryInstallDelegate.java:528)
      	at org.eclipse.jst.common.project.facet.ui.libprov.LibraryFacetPropertyPage.performValidation(LibraryFacetPropertyPage.java:385)
      	at org.eclipse.jpt.common.ui.internal.properties.JptProjectPropertiesPage.performValidation(JptProjectPropertiesPage.java:448)
      	at org.eclipse.jst.common.project.facet.ui.libprov.LibraryFacetPropertyPage.updateValidation(LibraryFacetPropertyPage.java:346)
      	at org.eclipse.jpt.common.ui.internal.properties.JptProjectPropertiesPage.validate(JptProjectPropertiesPage.java:396)
      	at org.eclipse.jpt.common.ui.internal.properties.JptProjectPropertiesPage$ValidationListener.modelChanged(JptProjectPropertiesPage.java:390)
      	at org.eclipse.jpt.common.utility.model.listener.AbstractChangeListener.modelChanged(AbstractChangeListener.java:101)
      	at org.eclipse.jpt.common.utility.model.listener.AbstractChangeListener.propertyChanged(AbstractChangeListener.java:53)
      	at org.eclipse.jpt.common.utility.internal.model.ChangeSupport.firePropertyChanged_(ChangeSupport.java:526)
      	at org.eclipse.jpt.common.utility.internal.model.ChangeSupport.firePropertyChanged(ChangeSupport.java:491)
      	at org.eclipse.jpt.common.utility.internal.model.SingleAspectChangeSupport.firePropertyChanged(SingleAspectChangeSupport.java:156)
      	at org.eclipse.jpt.common.utility.internal.model.AbstractModel.firePropertyChanged(AbstractModel.java:189)
      	at org.eclipse.jpt.common.utility.internal.model.value.BufferedModifiablePropertyValueModel.reset(BufferedModifiablePropertyValueModel.java:271)
      	at org.eclipse.jpt.common.utility.internal.model.value.BufferedModifiablePropertyValueModel.setValue(BufferedModifiablePropertyValueModel.java:139)
      	at org.eclipse.jpt.common.ui.internal.swt.bindings.BooleanButtonModelBinding.buttonSelected(BooleanButtonModelBinding.java:173)
      	at org.eclipse.jpt.common.ui.internal.swt.bindings.BooleanButtonModelBinding$ButtonSelectionListener.widgetSelected(BooleanButtonModelBinding.java:127)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
      	at org.eclipse.jface.window.Window.open(Window.java:803)
      	at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                koen.aers Koen Aers
                Reporter:
                rawagner Rastislav Wagner
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: