Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Exception to launch the customwidget example
Exception to launch the customwidget example [message #135913] Thu, 15 February 2007 16:58 Go to next message
Eclipse User
Originally posted by: sheng.clanfang.com

Hello,

I'm tried to launch the org.eclipse.ve.example.customwidget, but it fails
with the following exceptions in the .log file:

!SESSION 2007-02-15 17:41:30.229
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es_ES
Framework arguments: -application org.eclipse.ui.ide.workbench -pdelaunch
Command-line arguments: -application org.eclipse.ui.ide.workbench -data
C:\dev\eclipse\workspaces\java-wsp/../customwidget -dev
file:C:/dev/eclipse/workspaces/java-wsp/.metadata/.plugins/o rg.eclipse.pde.core/customwidget/dev.properties
-pdelaunch -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ve.java.core 4 0 2007-02-15 17:41:42.576
!MESSAGE Exception thrown.
!STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
java.lang.ArrayIndexOutOfBoundsException: -1
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:307)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:268)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:390)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.getResource(ProjectResourceSetImpl.java:262)
at
org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doLoadFromCache(VEModelCacheUtility.java:103)
at
org.eclipse.ve.internal.java.codegen.core.VEModelInstance.cr eateComposition(VEModelInstance.java:100)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reConnect(JavaSourceTranslator.java:1134)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:910)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:692)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:671)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setValueFromId(XML Handler.java:2522)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XML Handler.java:2450)
at
org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAtt ribs(SAXXMIHandler.java:74)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFa ctory(XMLHandler.java:1940)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTy peName(XMLHandler.java:1844)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHa ndler.java:1779)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1587)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:881)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:82)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:860)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:627)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java: 1672)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java: 1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java: 1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java :667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl. java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:179)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.demandLoad(ProjectResourceSetImpl.java:83)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
... 9 more
Re: Exception to launch the customwidget example [message #135927 is a reply to message #135913] Thu, 15 February 2007 19:48 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try clearing the cache:

1) Open a VE and then close it and all other VE's.
2) Do Project->Clean...->Clean All projects and wait for build to complete.
3) Open a VE, the cache should now be cleaned.

--
Thanks,
Rich Kulp
Re: Exception to launch the customwidget example [message #135940 is a reply to message #135927] Fri, 16 February 2007 08:15 Go to previous message
Eclipse User
Originally posted by: sheng.clanfang.com

I've tried what you said, but it still doesn't work. The example version
what I checked out is 1.2.0, I think It's ready for eclipse 3.2.


Rich Kulp wrote:

> Try clearing the cache:

> 1) Open a VE and then close it and all other VE's.
> 2) Do Project->Clean...->Clean All projects and wait for build to complete.
> 3) Open a VE, the cache should now be cleaned.
Re: Exception to launch the customwidget example [message #615074 is a reply to message #135913] Thu, 15 February 2007 19:48 Go to previous message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try clearing the cache:

1) Open a VE and then close it and all other VE's.
2) Do Project->Clean...->Clean All projects and wait for build to complete.
3) Open a VE, the cache should now be cleaned.

--
Thanks,
Rich Kulp
Re: Exception to launch the customwidget example [message #615075 is a reply to message #135927] Fri, 16 February 2007 08:15 Go to previous message
Eclipse User
Originally posted by: sheng.clanfang.com

I've tried what you said, but it still doesn't work. The example version
what I checked out is 1.2.0, I think It's ready for eclipse 3.2.


Rich Kulp wrote:

> Try clearing the cache:

> 1) Open a VE and then close it and all other VE's.
> 2) Do Project->Clean...->Clean All projects and wait for build to complete.
> 3) Open a VE, the cache should now be cleaned.
Previous Topic:Exception to launch the customwidget example
Next Topic:Plug-in
Goto Forum:
  


Current Time: Tue Sep 02 21:20:45 GMT 2014

Powered by FUDForum. Page generated in 0.01680 seconds