Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE Parse Error
VE Parse Error [message #141621] Tue, 09 October 2007 21:59 Go to next message
Eclipse User
Originally posted by: johnny.issa.l-3com.com

I am currently run eclipse 3.2 with VE 1.2. I am trying to open a file
using the Visual Editor but I keep getting a parse error. Is there a way
to figure out why I am getting the parse error. This file used to open in
VE but it was modified by another team member and I am trying to figure
what is causing the problem.

I am including the error I get and I can't tell where the problem is.

Regards,
jissa

eclipse.

buildId=M20060921-0945
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file C:\workspace\.metadata\.bak_0.log
Created Time: 2007-10-08 15:47:48.363

Error
Tue Oct 09 14:56:48 PDT 2007
Exception thrown.

java.lang.NullPointerException
at
org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(JavaInstantiation.java:39)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(EventDecoderHelper.java:214)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getInvocationIndex(EventDecoderHelper.java:693)
at
org.eclipse.ve.internal.java.codegen.java.AllocationStyleHel per.processEvent(AllocationStyleHelper.java:45)
at
org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .decode(EventDecoderHelper.java:489)
at
org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.decode(AbstractEventDecoder.java:95)
at
org.eclipse.ve.internal.java.codegen.model.CodeEventRef.deco deExpression(CodeEventRef.java:146)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeExpression(JavaSourceTranslator.java:608)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:734)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(JavaSourceTranslator.java:866)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:939)
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)
Re: VE Parse Error [message #141630 is a reply to message #141621] Tue, 09 October 2007 22:23 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Try clearing the cache first:

1) Open a VE, even though you get an error. Close it and all other VE's.
2) Do Project->Clean all... wait for build to finish
3) Open your VE.

The error shown is usually a stale cache problem.

> Error
> Tue Oct 09 14:56:48 PDT 2007
> Exception thrown.
>
> java.lang.NullPointerException
> at
> org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(JavaInstantiation.java:39)
>
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(EventDecoderHelper.java:214)

--
Thanks,
Rich Kulp
Re: VE Parse Error [message #142089 is a reply to message #141621] Wed, 17 October 2007 20:36 Go to previous message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
I also had an "parse error" a few days ago. Keep in mind that VE tries to
instantiate your private members in the target vm. so it is no good idea to
have final members or unmarked members (I mean this ve comment behind the
declaration.)

Greets
Marco

"jissa" <johnny.issa@l-3com.com> schrieb im Newsbeitrag
news:85e05416924f6babf126a7bb9ca68e3a$1@www.eclipse.org...
>I am currently run eclipse 3.2 with VE 1.2. I am trying to open a file
>using the Visual Editor but I keep getting a parse error. Is there a way to
>figure out why I am getting the parse error. This file used to open in VE
>but it was modified by another team member and I am trying to figure what
>is causing the problem.
> I am including the error I get and I can't tell where the problem is.
>
> Regards,
> jissa
>
> eclipse.
>
> buildId=M20060921-0945
> java.version=1.5.0_11
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
> This is a continuation of log file C:\workspace\.metadata\.bak_0.log
> Created Time: 2007-10-08 15:47:48.363
>
> Error
> Tue Oct 09 14:56:48 PDT 2007
> Exception thrown.
>
> java.lang.NullPointerException
> at
> org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(JavaInstantiation.java:39)
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(EventDecoderHelper.java:214)
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getInvocationIndex(EventDecoderHelper.java:693)
> at
> org.eclipse.ve.internal.java.codegen.java.AllocationStyleHel per.processEvent(AllocationStyleHelper.java:45)
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .decode(EventDecoderHelper.java:489)
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.decode(AbstractEventDecoder.java:95)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeEventRef.deco deExpression(CodeEventRef.java:146)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeExpression(JavaSourceTranslator.java:608)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:734)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(JavaSourceTranslator.java:866)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:939)
> 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)
>
>
>
Re: VE Parse Error [message #616756 is a reply to message #141621] Tue, 09 October 2007 22:23 Go to previous message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Try clearing the cache first:

1) Open a VE, even though you get an error. Close it and all other VE's.
2) Do Project->Clean all... wait for build to finish
3) Open your VE.

The error shown is usually a stale cache problem.

> Error
> Tue Oct 09 14:56:48 PDT 2007
> Exception thrown.
>
> java.lang.NullPointerException
> at
> org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(JavaInstantiation.java:39)
>
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(EventDecoderHelper.java:214)

--
Thanks,
Rich Kulp
Re: VE Parse Error [message #616780 is a reply to message #141621] Wed, 17 October 2007 20:36 Go to previous message
Marco Maniscalco is currently offline Marco Maniscalco
Messages: 30
Registered: July 2009
Member
I also had an "parse error" a few days ago. Keep in mind that VE tries to
instantiate your private members in the target vm. so it is no good idea to
have final members or unmarked members (I mean this ve comment behind the
declaration.)

Greets
Marco

"jissa" <johnny.issa@l-3com.com> schrieb im Newsbeitrag
news:85e05416924f6babf126a7bb9ca68e3a$1@www.eclipse.org...
>I am currently run eclipse 3.2 with VE 1.2. I am trying to open a file
>using the Visual Editor but I keep getting a parse error. Is there a way to
>figure out why I am getting the parse error. This file used to open in VE
>but it was modified by another team member and I am trying to figure what
>is causing the problem.
> I am including the error I get and I can't tell where the problem is.
>
> Regards,
> jissa
>
> eclipse.
>
> buildId=M20060921-0945
> java.version=1.5.0_11
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
> This is a continuation of log file C:\workspace\.metadata\.bak_0.log
> Created Time: 2007-10-08 15:47:48.363
>
> Error
> Tue Oct 09 14:56:48 PDT 2007
> Exception thrown.
>
> java.lang.NullPointerException
> at
> org.eclipse.jem.internal.instantiation.base.JavaInstantiatio n.getSFeature(JavaInstantiation.java:39)
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getEventSF(EventDecoderHelper.java:214)
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .getInvocationIndex(EventDecoderHelper.java:693)
> at
> org.eclipse.ve.internal.java.codegen.java.AllocationStyleHel per.processEvent(AllocationStyleHelper.java:45)
> at
> org.eclipse.ve.internal.java.codegen.java.EventDecoderHelper .decode(EventDecoderHelper.java:489)
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractEventDecod er.decode(AbstractEventDecoder.java:95)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeEventRef.deco deExpression(CodeEventRef.java:146)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeExpression(JavaSourceTranslator.java:608)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:734)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reverseParse(JavaSourceTranslator.java:866)
> at
> org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:939)
> 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)
>
>
>
Previous Topic:Use "BeanDecoderAdapter" to change the order of source code
Next Topic:Visual Editor in RCP application - VE+RCP=GUI for building GUIs
Goto Forum:
  


Current Time: Tue Sep 23 04:31:50 GMT 2014

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

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