[jbosstools-dev] Re: [JBoss JIRA] Created: (JBIDE-2566) Almost any editing of pages.xml throws a lot of NPE.

Alexey Kazakov akazakov at exadel.com
Wed Jul 23 14:58:08 EDT 2008


Hi,
There are two bugs in new pages.xml editor:
https://jira.jboss.org/jira/browse/JBIDE-2566
https://jira.jboss.org/jira/browse/JBIDE-2565
IMO we should fix them for alpha.
So we will need to retag Seam component and maybe common component too.


> Almost any editing of pages.xml throws a lot of NPE.
> ----------------------------------------------------
>
>                  Key: JBIDE-2566
>                  URL: https://jira.jboss.org/jira/browse/JBIDE-2566
>              Project: Tools (JBoss Tools)
>           Issue Type: Bug
>           Components: Seam
>     Affects Versions: 3.0.0.alpha
>             Reporter: Alexey Kazakov
>             Assignee: Viacheslav Kabanovich
>             Priority: Critical
>              Fix For: 3.0.0.alpha
>
>
> EXECUTE: Create seam project.
> EXECUTE: Open pages.xml
> EXECUTE: Edit <pages... -> <ages..
> EXECUTE: Save the file.
> There are a lot of NPE in log:
> java.lang.NullPointerException
> 	at java.lang.String.startsWith(String.java:1252)
> 	at java.lang.String.startsWith(String.java:1281)
> 	at org.jboss.tools.seam.ui.pages.editor.ecore.pages.impl.PagesModelImpl$ML.structureChanged(PagesModelImpl.java:332)
> 	at org.jboss.tools.common.model.impl.XModelImpl$2.run(XModelImpl.java:493)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> 	at org.jboss.tools.common.model.impl.XModelImpl.fireStructureChanged(XModelImpl.java:489)
> 	at org.jboss.tools.common.model.impl.XModelObjectImpl.fireStructureChanged(XModelObjectImpl.java:404)
> 	at org.jboss.tools.seam.pages.xml.model.impl.SeamPagesDiagramImpl.firePrepared(SeamPagesDiagramImpl.java:36)
> 	at org.jboss.tools.seam.pages.xml.model.SeamPagesFileLoader.reloadProcess(SeamPagesFileLoader.java:122)
> 	at org.jboss.tools.seam.pages.xml.model.SeamPagesFileLoader.load(SeamPagesFileLoader.java:90)
> 	at org.jboss.tools.common.model.filesystems.impl.AbstractExtendedXMLFileImpl.loadChildren(AbstractExtendedXMLFileImpl.java:100)
> 	at org.jboss.tools.common.model.filesystems.impl.AbstractExtendedXMLFileImpl.get(AbstractExtendedXMLFileImpl.java:47)
> 	at org.jboss.tools.common.meta.constraint.XAdapter.getProperty(XAdapter.java:24)
> 	at org.jboss.tools.common.model.impl.XModelObjectImpl.get_0(XModelObjectImpl.java:129)
> 	at org.jboss.tools.common.model.impl.XModelObjectImpl.getAttributeValue(XModelObjectImpl.java:152)
> 	at org.jboss.tools.jst.web.model.AbstractWebFileImpl.getAsText(AbstractWebFileImpl.java:50)
> 	at org.jboss.tools.common.model.filesystems.impl.AbstractExtendedXMLFileImpl.edit(AbstractExtendedXMLFileImpl.java:153)
> 	at org.jboss.tools.seam.pages.xml.model.SeamPagesFileLoader.update(SeamPagesFileLoader.java:133)
> 	at org.jboss.tools.common.model.filesystems.impl.FolderImpl.reload(FolderImpl.java:539)
> 	at org.jboss.tools.common.model.filesystems.impl.FolderImpl.updateLoaded(FolderImpl.java:471)
> 	at org.jboss.tools.common.model.filesystems.impl.FolderImpl.update(FolderImpl.java:307)
> 	at org.jboss.tools.common.model.filesystems.impl.FolderImpl.updateLoaded(FolderImpl.java:456)
> 	at org.jboss.tools.common.model.filesystems.impl.FolderImpl.update(FolderImpl.java:307)
> 	at org.jboss.tools.common.model.filesystems.impl.FolderImpl.updateLoaded(FolderImpl.java:456)
> 	at org.jboss.tools.common.model.filesystems.impl.FolderImpl.update(FolderImpl.java:307)
> 	at org.jboss.tools.common.model.filesystems.impl.FileSystemFolderLoader.update(FileSystemFolderLoader.java:28)
> 	at org.jboss.tools.common.model.filesystems.impl.FileSystemsLoader.update(FileSystemsLoader.java:65)
> 	at org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl.doUpdate(FileSystemsImpl.java:279)
> 	at org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl.access$4(FileSystemsImpl.java:273)
> 	at org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl$UpdateRunnable.run(FileSystemsImpl.java:266)
> 	at org.jboss.tools.common.model.XJob.run(XJob.java:124)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> After that pages xml editor keeps throwing NPE after every build until you restart eclipse.
>
>   




More information about the jbosstools-dev mailing list