[JBoss JIRA] Created: (JBIDE-4512) "var cannot be resolved" does not recognize single value
by Julien Kronegg (JIRA)
"var cannot be resolved" does not recognize single value
--------------------------------------------------------
Key: JBIDE-4512
URL: https://jira.jboss.org/jira/browse/JBIDE-4512
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 3.0.0.GA
Environment: JBossTools-ALL-win32-3.0.1.GA-R200905070146-H18, Seam 2.1.1.GA
Reporter: Julien Kronegg
Jboss Tools does not recognize correctly the "var" property in list iterators (e.g. rich:dataTable, h:dataTable) if the "value" property is a single value (but works if the "value" property is a List.
This problem occurs for XHTML pages generated by seam-gen where the value is "#{myEntityHome.instance.singleValue}" (see <a href=https://jira.jboss.org/jira/browse/JBIDE-4048>JBIDE-4048</a>).
Effects:
1. add a lot of warnings "variableName cannot be resolved" that should be there
2. makes "Seam Validator" task to be very slow when there is a lot of pages (because the Seam Validator task is run on each XHTML file with at least one unresolved EL, see <a href=https://jira.jboss.org/jira/browse/JBIDE-3336>JBIDE-3336</a>)
Expected:
As the rich:dataTable displays one row when the "value" property is a single value and not a list, Jboss Tools is expected to recognize list AND single value.
How to reproduce:
EXECUTE: Create seam project.
EXECUTE: Create MyBean component (see attached java file)
EXECUTE: Open home.xhtml
EXECUTE: Add:
<h:dataTable var="myVar" value="#{myBean.values}">
<h:column><h:outputText value="#{myVar.myProperty}"/></h:column>
</h:dataTable>
<h:dataTable var="myVar" value="#{myBean.singleValue}">
<h:column><h:outputText value="#{myVar.myProperty}"/></h:column>
</h:dataTable>
<h:dataTable var="myVar" value="#{myBean.singleValueAsList}">
<h:column><h:outputText value="#{myVar.myProperty}"/></h:column>
</h:dataTable>
ASSERT: no warning "myVar cannot be resolved" appear
Workaround:
Use a "value" property as List and not as single value (maybe wrapping the single value to a List should do the trick).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 5 months
[JBoss JIRA] Created: (JBIDE-4908) NoSuchMethodError when enabling JPA facet
by Philippe Marschall (JIRA)
NoSuchMethodError when enabling JPA facet
-----------------------------------------
Key: JBIDE-4908
URL: https://jira.jboss.org/jira/browse/JBIDE-4908
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: LATER
Reporter: Philippe Marschall
What steps will reproduce the problem?
1. Enable JPA Nature
2. Hibernate platform
3. no libraries
Dali Version: 2.2
Hibernate Tools version: 3.3.0.v200909110340M-H277-M3
-- Error Details --
Date: Thu Sep 17 16:15:01 CEST 2009
Message: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.eclipse.jpt.core.internal.platform.GenericJpaPlatform.<init>(Ljava/lang/String;Lorg/eclipse/jpt/core/JpaFactory;Lorg/eclipse/jpt/core/JpaAnnotationProvider;Lorg/eclipse/jpt/core/JpaValidation;[Lorg/eclipse/jpt/core/JpaPlatformProvider;)V
Severity: Error
Product: Eclipse SDK 3.5.0.v200906111540 (org.eclipse.sdk.ide)
Plugin: org.eclipse.jface
Exception Stack Trace:
java.lang.RuntimeException: java.lang.NoSuchMethodError: org.eclipse.jpt.core.internal.platform.GenericJpaPlatform.<init>(Ljava/lang/String;Lorg/eclipse/jpt/core/JpaFactory;Lorg/eclipse/jpt/core/JpaAnnotationProvider;Lorg/eclipse/jpt/core/JpaValidation;[Lorg/eclipse/jpt/core/JpaPlatformProvider;)V
at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage.performOk(FacetsPropertyPage.java:248)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:964)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:453)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
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:1191)
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.wmSysChar(Widget.java:2313)
at org.eclipse.swt.widgets.Control.WM_SYSCHAR(Control.java:4600)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4020)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5821)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
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)
Caused by: java.lang.NoSuchMethodError: org.eclipse.jpt.core.internal.platform.GenericJpaPlatform.<init>(Ljava/lang/String;Lorg/eclipse/jpt/core/JpaFactory;Lorg/eclipse/jpt/core/JpaAnnotationProvider;Lorg/eclipse/jpt/core/JpaValidation;[Lorg/eclipse/jpt/core/JpaPlatformProvider;)V
at org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaPlatform.<init>(HibernateJpaPlatform.java:28)
at org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaPlatformFactory.buildJpaPlatform(HibernateJpaPlatformFactory.java:36)
at org.eclipse.jpt.core.internal.platform.JpaPlatformRegistry.getJpaPlatform(JpaPlatformRegistry.java:197)
at org.eclipse.jpt.core.JptCorePlugin.getJpaPlatform(JptCorePlugin.java:368)
at org.eclipse.jpt.core.internal.GenericJpaModel.buildJpaProjectConfig(GenericJpaModel.java:132)
at org.eclipse.jpt.core.internal.GenericJpaModel.addJpaProject(GenericJpaModel.java:141)
at org.eclipse.jpt.core.internal.GenericJpaModel.jpaFacetedProjectPostInstall(GenericJpaModel.java:217)
at org.eclipse.jpt.core.internal.JpaModelManager.facetedProjectPostInstall(JpaModelManager.java:443)
at org.eclipse.jpt.core.internal.JpaModelManager.facetedProjectChanged(JpaModelManager.java:427)
at org.eclipse.jpt.core.internal.JpaModelManager$FacetedProjectListener.handleEvent(JpaModelManager.java:538)
at org.eclipse.wst.common.project.facet.core.events.internal.ProjectListenerRegistry.notifyListeners(ProjectListenerRegistry.java:76)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.notifyListeners(FacetedProject.java:1317)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:451)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1171)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1107)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1089)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1099)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1958)
at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$3.run(FacetsPropertyPage.java:186)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$4.run(FacetsPropertyPage.java:200)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 5 months