Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » NullPointerException when creating a new Visual class
NullPointerException when creating a new Visual class [message #120959] Tue, 28 March 2006 08:15 Go to next message
Eclipse UserFriend
Originally posted by: luchuan.radvision.com

<b>Hi,

Also I could create a new Visual class, the following error's reported inside the ".log". Before this happens, I used to solve a problem of "IWAV0168E", which had been commonly reported. The process was like "delete the error log -> clean and rebuild the project".</b>

!ENTRY org.eclipse.ve.java.core 4 0 2006-03-28 15:06:52.293
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSetting Delegate(EStructuralFeatureImpl.java:790)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate (BasicEObjectImpl.java:822)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicIsSet(Ba sicEObjectImpl.java:609)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:600)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:951)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2272)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:889)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedSing le(XMLSaveImpl.java:1988)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1215)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2272)
at org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:78)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:478)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:206)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:193)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:893)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:813)
at org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:158)
at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1357)
at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$2.doRun(JavaSourceTranslator.java:922)
at org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

<b>Pls help, thanks a lot.

Luchuan</b>
Re: NullPointerException when creating a new Visual class [message #121003 is a reply to message #120959] Tue, 28 March 2006 19:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

First, is this a pre 1.2M2 VE driver? If so, we had a cache race
condition which caused the cache to go bad and produce this error. We've
fixed that with 1.2M2 so it shouldn't occur as much.

The steps to clear the cache are:

1) Open a Ve and then close it. Have no other VE's open.
2) Do Project->Clean...->Clean All. Wait for build to finish
3) Open your VE. It should now be ok.

--
Thanks,
Rich Kulp
Re: NullPointerException when creating a new Visual class [message #121037 is a reply to message #120959] Wed, 29 March 2006 08:35 Go to previous message
Eclipse UserFriend
Originally posted by: luchuan.radvision.com

Thanks, Kulp. It seems working ok now.
Re: NullPointerException when creating a new Visual class [message #612373 is a reply to message #120959] Tue, 28 March 2006 19:05 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

First, is this a pre 1.2M2 VE driver? If so, we had a cache race
condition which caused the cache to go bad and produce this error. We've
fixed that with 1.2M2 so it shouldn't occur as much.

The steps to clear the cache are:

1) Open a Ve and then close it. Have no other VE's open.
2) Do Project->Clean...->Clean All. Wait for build to finish
3) Open your VE. It should now be ok.

--
Thanks,
Rich Kulp
Re: NullPointerException when creating a new Visual class [message #612377 is a reply to message #120959] Wed, 29 March 2006 08:35 Go to previous message
Eclipse UserFriend
Originally posted by: luchuan.radvision.com

Thanks, Kulp. It seems working ok now.
Previous Topic:Cant have VE working
Next Topic:custom component not displayed correctly
Goto Forum:
  


Current Time: Sat Apr 20 16:16:34 GMT 2024

Powered by FUDForum. Page generated in 0.03348 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top