- This topic has 1 reply, 2 voices, and was last updated 16 years, 1 month ago by Loyal Water.
-
AuthorPosts
-
vgriffinMemberI got the following error using visual JSF (default) open:
java.lang.NullPointerException
at org.eclipse.jst.pagedesigner.editors.actions.DesignPageActionContributor.setActiveEditor(DesignPageActionContributor.java:199)
at org.eclipse.jst.pagedesigner.editors.actions.PageDesignerActionBarContributor2.deactivateSourceAndDesignPage(PageDesignerActionBarContributor2.java:239)
at org.eclipse.jst.pagedesigner.editors.actions.PageDesignerActionBarContributor2.setInnerActivePage(PageDesignerActionBarContributor2.java:219)
at org.eclipse.jst.pagedesigner.ui.common.sash.NestedEditorActionBarContributor.setActivePage(NestedEditorActionBarContributor.java:34)
at org.eclipse.ui.part.MultiPageEditorPart.pageChange(MultiPageEditorPart.java:748)
at org.eclipse.wst.common.ui.provisional.editors.PostSelectionMultiPageEditorPart.pageChange(PostSelectionMultiPageEditorPart.java:36)
at com.genuitec.eclipse.jsf.designer.editors.JSFDesignerEditor.pageChange(JSFDesignerEditor.java:888)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:973)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:314)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:403)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2766)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:363)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:603)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
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.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
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:193)
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:386)
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:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)The file contains:
<!DOCTYPE composition PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<ui:composition xmlns=”http://www.w3.org/1999/xhtml”
xmlns:s=”http://jboss.com/products/seam/taglib”
xmlns:ui=”http://java.sun.com/jsf/facelets”
xmlns:f=”http://java.sun.com/jsf/core”
xmlns:h=”http://java.sun.com/jsf/html”
xmlns:rich=”http://richfaces.org/rich”
template=”layout/template.xhtml”><ui:define name=”body”>
<rich:panel>
<f:facet name=”header”>Group Details</f:facet><s:decorate id=”groupName” template=”layout/display.xhtml”>
<ui:define name=”label”>Group name</ui:define>
<h:outputText value=”#{groupHome.instance.groupName}”/>
</s:decorate><s:decorate id=”description” template=”layout/display.xhtml”>
<ui:define name=”label”>Description</ui:define>
<h:outputText value=”#{groupHome.instance.description}”/>
</s:decorate><div style=”clear:both”/>
</rich:panel>
<div class=”actionButtons”>
<s:button view=”/GroupEdit.xhtml”
id=”edit”
value=”Edit”/><s:button view=”/#{empty groupFrom ? ‘GroupList’ : groupFrom}.xhtml”
id=”done”
value=”Done”/></div>
<rich:tabPanel switchType=”ajax”>
<rich:tab>
<f:facet name=”label”>
<h:panelGroup><h:graphicImage value=”/img/onetomany.gif” style=”vertical-align: middle; padding-right: 4px;”/>Group apps</h:panelGroup>
</f:facet>
<h:form styleClass=”association” id=”groupAppsChildren”><h:outputText value=”There are no applications associated with this entry.”
rendered=”#{empty groupHome.groupApps}”/><rich:dataTable value=”#{groupHome.groupApps}”
var=”_groupApp”
rendered=”#{not empty groupHome.groupApps}”
rowClasses=”rvgRowOne,rvgRowTwo”
id=”groupAppsTable”>
<rich:column sortBy=”#{_groupApp.id.appName}”>
<f:facet name=”header”>App name</f:facet>
<h:outputText value=”#{_groupApp.id.appName}”/>
</rich:column>
<h:column>
<f:facet name=”header”>Action</f:facet>
<s:link id=”selectgroupApp”
value=”Select”
view=”/GroupApp.xhtml”>
<f:param name=”groupAppAppName”
value=”#{_groupApp.id.appName}”/>
<f:param name=”groupAppGroupName”
value=”#{_groupApp.id.groupName}”/>
<f:param name=”groupAppFrom” value=”Group”/>
</s:link>
</h:column>
</rich:dataTable></h:form>
<div class=”actionButtons”>
<s:button
value=”Add application”
view=”/GroupAppEdit.xhtml”>
<f:param name=”groupGroupName”
value=”#{groupHome.instance.groupName}”/>
<f:param name=”groupAppFrom” value=”Group”/>
</s:button>
</div>
</rich:tab><rich:tab>
<f:facet name=”label”>
<h:panelGroup><h:graphicImage value=”/img/onetomany.gif” style=”vertical-align: middle; padding-right: 4px;”/>Group permissions</h:panelGroup>
</f:facet>
<h:form styleClass=”association” id=”groupPermissionsChildren”><h:outputText value=”There are no permissions associated with this group.”
rendered=”#{empty groupHome.groupPermissions}”/><rich:dataTable value=”#{groupHome.groupPermissions}”
var=”_groupPermission”
rendered=”#{not empty groupHome.groupPermissions}”
rowClasses=”rvgRowOne,rvgRowTwo”
id=”groupPermissionsTable”>
<rich:column sortBy=”#{_groupPermission.id.appName}”>
<f:facet name=”header”>App name</f:facet>
<h:outputText value=”#{_groupPermission.id.appName}”/>
</rich:column>
<rich:column sortBy=”#{_groupPermission.id.permissionName}”>
<f:facet name=”header”>Permission name</f:facet>
<h:outputText value=”#{_groupPermission.id.permissionName}”/>
</rich:column>
<rich:column sortBy=”#{_groupPermission.boolValue}”>
<f:facet name=”header”>Bool value</f:facet>
<h:outputText value=”#{_groupPermission.boolValue}”/>
</rich:column>
<rich:column sortBy=”#{_groupPermission.textValue}”>
<f:facet name=”header”>Text value</f:facet>
<h:outputText value=”#{_groupPermission.textValue}”/>
</rich:column>
<h:column>
<f:facet name=”header”>Action</f:facet>
<s:link id=”selectgroupPermission”
value=”Select”
view=”/GroupPermission.xhtml”>
<f:param name=”groupPermissionAppName”
value=”#{_groupPermission.id.appName}”/>
<f:param name=”groupPermissionGroupName”
value=”#{_groupPermission.id.groupName}”/>
<f:param name=”groupPermissionPermissionName”
value=”#{_groupPermission.id.permissionName}”/>
<f:param name=”groupPermissionFrom” value=”Group”/>
</s:link>
</h:column>
</rich:dataTable></h:form>
<div class=”actionButtons”>
<s:button
value=”Add permission”
view=”/GroupPermissionEdit.xhtml”>
<f:param name=”groupGroupName”
value=”#{groupHome.instance.groupName}”/>
<f:param name=”groupPermissionFrom” value=”Group”/>
</s:button>
</div>
</rich:tab><rich:tab>
<f:facet name=”label”>
<h:panelGroup><h:graphicImage value=”/img/onetomany.gif” style=”vertical-align: middle; padding-right: 4px;”/>Users</h:panelGroup>
</f:facet>
<h:form styleClass=”association” id=”userGroupsChildren”><h:outputText value=”There are no users associated with this group.”
rendered=”#{empty groupHome.userGroups}”/><rich:dataTable value=”#{groupHome.userGroups}”
var=”_userGroup”
rendered=”#{not empty groupHome.userGroups}”
rowClasses=”rvgRowOne,rvgRowTwo”
id=”userGroupsTable”>
<rich:column sortBy=”#{_userGroup.id.login}”>
<f:facet name=”header”>Login</f:facet>
<h:outputText value=”#{_userGroup.id.login}”/>
</rich:column>
<rich:column sortBy=”#{_userGroup.ssoUser.userName}”>
<f:facet name=”header”>Name</f:facet>
<h:outputText value=”#{_userGroup.ssoUser.userName}”/>
</rich:column>
<h:column>
<f:facet name=”header”>Action</f:facet>
<s:link id=”selectuserGroup”
value=”Select”
view=”/UserGroup.xhtml”>
<f:param name=”userGroupGroupName”
value=”#{_userGroup.id.groupName}”/>
<f:param name=”userGroupLogin”
value=”#{_userGroup.id.login}”/>
<f:param name=”userGroupFrom” value=”Group”/>
</s:link>
</h:column>
</rich:dataTable></h:form>
<div class=”actionButtons”>
<s:button
value=”Add user”
view=”/UserGroupEdit.xhtml”>
<f:param name=”groupGroupName”
value=”#{groupHome.instance.groupName}”/>
<f:param name=”userGroupFrom” value=”Group”/>
</s:button>
</div>
</rich:tab>
</rich:tabPanel>
</ui:define></ui:composition>
It claims the file is unreadable, even as a text file.
Loyal WaterMemberI was unable to reproduce this issue using the file you have pasted above. Can you switch to a new workspace and check if you can reproduce the issue. This will help us identify whether your workspace is causing the problem.
-
AuthorPosts