xPage corrupt

I have 2 xpages that will not load in Notes Designer 8.5.1I’m running on Windows 7

I’ve tried other suggestions in this forum, still dosen’t work (ie, change message box font, rebuild desktop, etc.)

Both of my xpages worked fine and still load in in a browser, but not in Notes (anymore), I get the following error when trying to open in designer, I think I may have been playing around with Style and dojo settings the last time I was able to open the xpage in designer.

java.lang.IllegalArgumentException: Argument not valid

at org.eclipse.swt.SWT.error(Unknown Source)

at org.eclipse.swt.SWT.error(Unknown Source)

at org.eclipse.swt.SWT.error(Unknown Source)

at org.eclipse.swt.graphics.RGB.<init>(Unknown Source)

at com.ibm.etools.xve.renderer.internal.style.CSSColorUtil.stringToRGB(Unknown Source)

at com.ibm.etools.xve.renderer.internal.style.CSSColorUtil.createColor(Unknown Source)

at com.ibm.etools.xve.renderer.style.ColorPool.createColor(Unknown Source)

at com.ibm.etools.xve.renderer.internal.style.CSSStyleMapper$ColorMapper.map(Unknown Source)

at com.ibm.etools.xve.renderer.internal.style.CSSStyleMapper.map(Unknown Source)

at com.ibm.etools.xve.renderer.style.html.AbstractHTMLStyle.doUpdateStyle(Unknown Source)

at com.ibm.designer.ide.xsp.components.styles.XFStyleViewPanel.doUpdateStyle(Unknown Source)

at com.ibm.etools.xve.renderer.style.html.AbstractHTMLStyle.update(Unknown Source)

at com.ibm.etools.xve.editpart.ElementEditPart.updateStyle(Unknown Source)

at com.ibm.etools.xve.editpart.ElementEditPart.refreshVisuals(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

at com.ibm.designer.domino.xsp.editpart.NodeListenerEditPart.refresh(Unknown Source)

at com.ibm.designer.ide.xsp.components.viewpanel.FacetTableEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)

at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)

at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)

at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)

at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)

at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)

at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)

at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)

at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)

at com.ibm.etools.xve.editpart.ElementEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)

at com.ibm.etools.xve.editpart.XVENodeEditPart.refreshChildren(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)

at com.ibm.etools.xve.editpart.DocumentEditPart.addNotify(Unknown Source)

at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)

at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Unknown Source)

at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(Unknown Source)

at com.ibm.etools.xve.viewer.XMLGraphicalViewerImpl.setContents(Unknown Source)

at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(Unknown Source)

at com.ibm.etools.xve.editor.AbstractXMLVisualEditor.initializeGraphicalViewer(Unknown Source)

at com.ibm.designer.domino.xsp.editor.XFacesEditor.initializeGraphicalViewer(Unknown Source)

at com.ibm.etools.xve.editor.AbstractXMLVisualEditor.createGraphicalViewer(Unknown Source)

at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(Unknown Source)

at com.ibm.etools.xve.editor.AbstractXMLVisualEditor.createPartControl(Unknown Source)

at org.eclipse.ui.part.MultiPageEditorPart.addPage(Unknown Source)

at com.ibm.etools.xve.editor.XVEMultiPageEditor.createPages(Unknown Source)

at com.ibm.designer.domino.xsp.editor.XFacesMultiPageEditor.createPages(Unknown Source)

at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Unknown Source)

at org.eclipse.ui.internal.EditorReference.createPartHelper(Unknown Source)

at org.eclipse.ui.internal.EditorReference.createPart(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)

at org.eclipse.ui.internal.EditorReference.getEditor(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPage.access$11(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPage$10.run(Unknown Source)

at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)

at com.ibm.designer.domino.ui.dialog.DesignElementUtil.openEditorWithImplicitLock(Unknown Source)

at com.ibm.designer.domino.ui.dialog.DesignElementUtil.openDesignElement(Unknown Source)

at com.ibm.designer.domino.navigator.designtimemodelcontroller.DesignTimeModelWebPages.openDesignElement(Unknown Source)

at com.ibm.designer.domino.navigator.ComponentBookmark.openDesign(Unknown Source)

at com.ibm.designer.domino.navigator.ComponentBookmark.openDesign(Unknown Source)

at com.ibm.designer.domino.navigator.ComponentBookmark$6.doubleClick(Unknown Source)

at org.eclipse.jface.viewers.StructuredViewer$1.run(Unknown Source)

at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)

at org.eclipse.core.runtime.Platform.run(Unknown Source)

at org.eclipse.ui.internal.JFaceUtil$1.run(Unknown Source)

at org.eclipse.jface.util.SafeRunnable.run(Unknown Source)

at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(Unknown Source)

at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(Unknown Source)

at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(Unknown Source)

at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(Unknown Source)

at org.eclipse.jface.util.OpenStrategy.access$0(Unknown Source)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(Unknown Source)

at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)

at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)

at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)

at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)

at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)

at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)

at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)

at com.ibm.rcp.personality.framework.internal.RCPApplication.run(Unknown Source)

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.equinox.internal.app.EclipseAppContainer.callMethodWithException(Unknown Source)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)

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.equinox.launcher.Main.invokeFramework(Unknown Source)

at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)

at org.eclipse.equinox.launcher.Main.run(Unknown Source)

at com.ibm.rcp.core.internal.launcher.Main.startLaunch(Unknown Source)

at com.ibm.rcp.core.internal.launcher.Main.main(Unknown Source)

at com.ibm.rcp.core.internal.launcher.Main.run(Unknown Source)

Help … This is a rather complex form and will take me a lot of time to rebuild.

Subject: could you please send the source of the xpage?

you can open the xpage up with a text editor from another Eclipse perspective (Open with…) and get the text that way. This looks like something I think we have fixed, but we want to be sure. Please send the source to me (if you can) at mleland at us.ibm.com.

thanks!

Subject: How to open xpage?

"you can open the xpage up with a text editor from another Eclipse perspective (Open with…) and get the text that way. "

Not sure what you mean by this, Open with … ?? what, where is the file, etc.

sorry to be dumb

Subject: opening corrupt XPage

Firstly make sure your db is open in the “Applications Navigator”. Just expanded so you can see the contents of the application is good enough.

Go to Window->Show Eclipse Views ->Other…

In the “Show View” dialog, select General → Navigator and click ok

In the “Navigator” view, find your nsf.

Expand the nsf and then expand the XPages folder.

Right click on the corrupt XPage and you will have the “Open With” option.

Select Open With → Text Editor and it will open for you.

It should be safe to edit the XPage from within the text editor. Your changes will be picked up by the XPages Editor when you next open it from the “Applications Navigator”

(I say “should”, because that’s not always true for custom controls, but for a simple XPage you should not have any problems).

There was a known issue with styles in 8.5.1 that may be causing this problem for you. Have a look through the source of the page and see if you can find any style attributes set on tags where the style attribute ends with a space, or has undefined style attributes set etc…

Something like

style="color:red; " or

style=“color:”

Spaces were the biggest issue. If there are any empty spaces at the end of any style attributes, delete the spaces.

Please send on the source of the XPage, even if it does turn out to be a space issue, so we can make sure that you are not seeing a new use case that we haven’t already fixed.

Subject: Solution

The problem you are seeing is being caused the viewStyle attribute on your viewPanel controls, which look something like this:

rowclasses=“class1,class2” viewStyle=“.class1{background-color:blue} .class2{background-color: red}”

Setting style classes in the viewStyle attribute is not supported. The viewStyle attribute essentially maps to the style attribute on a html tag (So you can do viewStyle=“font-color:red;color:blue;font-weight:bold” etc… but not viewStyle=“.class{color:red} .anotherClass{color:blue}” etc… . It can be used to add inline styles only.

To add different style behaviors for your row classes, you should add them to a stylesheet and then include that stylesheet on the XPages.

Your XPages will open again once you remove the viewStyle attributes from your viewPanel tags.

Subject: How to open the design element

Thank you for the solution. That worked, the trick was opening the Custom Control in order to remove the offending style.

Here are the steps:

  1. Switch to Navigator view

  2. Find the item you are unable to open.

(in my case a custom control which has a .xsp extension)

  1. Right click design element

  2. Choose Open With/Text Editor

I could then go into the custom control and remove the style.